

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


STAT 503-1 HW 8 Fall 2008
(a) The average DL reading for non-smoker is known to be 100. Set up H 0 and Ha to formally test whether the DL readings of current smokers are lower than non-smokers. Solution: H 0 : μ ≥ 100 versus Ha : μ < 100. (b) Use α = .05 and suppose it is known that the DL readings are normally distributed and σ = 15. Specify the test statistic and the decision rule. Specify the rejection region in terms of Y¯. Note that you do not need the data at this point. Solution: The test statistic is Z = X 15 ¯−/√^10020. One rejects H 0 when Z < − 1 .645 = z. 05. The rejection region is Z = X¯− 100 15 /√ 20 <^ −^1 .645, or^
(c) Plug the data into your decision rule, do you accept or reject H 0? What is the p-value? Solution: Since ¯x = 89. 87 < 94 .4825, or Z = 8915.^87 /√− 20100 = − 3. 02 < − 1 .645, one rejects H 0 at the 5% level. The p-value is p = P (Z < − 3 .02) = .0013.
(a) Suppose the average DL reading for current smokers is actually μ 1 = 90. Calculate the β-risk (the probability of committing a type-II error) for the decision rule of 1(b). Solution: H 0 is accepted when X¯ ≥ 94 .4825. For μ = 90,
β = P ( X¯ ≥ 94 .4825)
= P (
(b) Repeat the above calculation for μ 1 = 97. Solution: For μ = 97,
β = P ( X¯ ≥ 94 .4825)
= P (
C. Gu Due November 3
STAT 503-1 HW 8 Fall 2008
(a) Specify the test statistic and the decision rule. Solution: For σ unknown, use the test statistic t = X¯− 100 s/ √ 20 , and reject^ H^0 when t < − 1 .729 = t. 05 , 19. (b) Plug the data into your decision rule and make a decision. What is the p-value? Solution: Since t = 8914 ..^8791 −/√^10020 = − 3. 038 < − 1 .729, reject H 0 at the 5% level. The p-value is p = P (t 19 < − 3 .038) = .0034 (R function pt(-3.038,19)), or
. 0025 < p < .005 (using Table C.4).
(a) Calculate a CI for μ the average DL reading for current smokers. Solution: A 95% CI for μ is 89. 87 ± 1 .96(15)/
20, or (83. 30 , 96 .44), for σ = 15 known. Another 95% CI for μ is 89. 87 ± 2 .093(14.91)/
20, or (82. 89 , 96 .85), for σ unknown. Either one will do here. (b) Suppose one wishes to construct a 95% CI no wider than 5 (total length), how large a sample should be drawn? You may use σ = 15 as a rough estimate for the purpose. Solution: n ≥ (15(1 2 .. 5 96) )^2 = 138.29, so need a sample size about 140.
9 , 20 , 3 , 2 , 8 , 6 , 6 , 2 , 10
(a) Calculate ¯x and s. Solution: ¯x = 7.333, s = 5.590. (b) Test the null hypothesis of nil caffeine effect versus a two-sided alternative. Cal- culate the test statistic and make a decision. Solution: Test H 0 : μ = 0 versus μ 6 = 0. Since t = (^75) ..^33359 /√−^09 = 3. 935 > 2 .306 = t. 975 , 8 , we reject H 0. (c) Find the p-value of the test. Solution: The p-value is p = P (|t 8 | > 3 .935) = .0043 (R function 2*(1-pt(3.935))), or. 002 < p < .005 (Table C.4).
C. Gu Due November 3