Docsity

Solutions for Homework 7 | Statistical Methods | MATH 183, Assignments of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Solutions to Homework 7
By H˚akan Nordgren
Problem 6.2.2: Children with ADD apparently have a mean IQ of 95 with standard deviation 15. Suppose a
random sample of 22 children is drawn and analysed at the 0.06 level of significance. What values of ywould
cause H0to be rejected? Assume that H1is two-sided.
Solution: Define z=y−95
15/√22 . According to theorem 6.2.1 we reject H0if z≤ −zα
2or z≥zα
2. Let α= 0.06 then
α
2= 0.03 and the table in Appendix A.1. tells us that zα
2= 1.88. Thus we will reject H0if y≤95−1.88 ×15
√22 =
89.0 or y≥95 + 1.88 ×15
√22 = 101.0.
Problem 6.2.5: Assuming that αis fixed, if the hypothesis H0:µ=µ0is rejected in favour of H1:µ > µ0,
will it necessarily be rejected in favour of H1:µ6=µ0?
Solution: No.
Problem 6.2.7: Let µdenote the true mean of a sample of 30 breath-analyser tests with standard deviation
0.4. Let the data in the table be the recorded samples. Test the hypothesis H0:µ= 12.6 versus the hypothesis
H1:µ6= 12.6 at the α= 0.05 significance level. What statistical assumptions are made in the previous part? Is
there any reason to suspect that those assumptions may not hold?
Solution: Define z=y−12.6
0.4/√30 = 2.19. Again, according to theorem 6.2.1 we reject H0if z≤ −zα
2or z≥zα
2.
To find zα
2we again look in the table in Appendix A.1. and find that zα
2= 1.96. Thus we reject H0. In the
above question we have assumed that the samples are drawn from a normal distribution. There is no reason to
believe otherwise.
Problem 6.2.9: Suppose that H0:µ= 120 is tested against H1:µ6= 120. If σ= 10 and n= 16, what P-value
is associated with the sample mean y= 122.3. Under what circumstances will H0be rejected?
Solution: We have z=y−µ
σ/√n=122.3−µ
10/√16 . If H0holds, then z= 0.92. The P-value is then P(Z≥0.92)+ P(Z≤
−0.92) = 0.36. Thus H0would be rejected if we have a level of significance larger than 0.36.
Problem 6.3.3: In exit-polls for an election which a politician lost indicated that 65% of those who voted for
him were men. Suppose that a random sample of 120 persons shows that 72 who now support him are men.
Using the 0.05 significance level, test the hypothesis that his proportion of male supporters has remained the
same. Use a one-sided alternative.
Solution: Let pbe the probability that a supporter is male. Then H0:p= 0.65 and H1:p < 0.65. nis large
−120 −so we can use theorem 6.3.1 to test the hypothesis H0. Let z=72−120×0.65
√120×0.65×0.35 =−1.15. Thus we have
to reject H0if −1.15 ≤ −zα. Since zα= 1.64, we fail to reject H0.
Problem 6.3.4: Suppose that H0:p= 0.45 is being tested against H1:p > 0.45 at the 0.14 level of significance.
Suppose that the sample size is 200. What is the smallest number of successes which will reject H0?
Solution: Again, nis large so we may use theorem 6.3.1. We have z=k−200×0.45
√200×0.45×0.55 . To reject H0we need
z≥z0.14 where z0.14 satisfies P(Z≥z0.14) = 0.14. Thus z0.14 = 1.08 and we require ksuch that
k−200 ×0.45
√200 ×0.45 ×0.55 ≥1.08.
1
pf2

Partial preview of the text

Download Solutions for Homework 7 | Statistical Methods | MATH 183 and more Assignments Data Analysis & Statistical Methods in PDF only on Docsity!

Solutions to Homework 7

By H˚akan Nordgren

Problem 6.2.2: Children with ADD apparently have a mean IQ of 95 with standard deviation 15. Suppose a random sample of 22 children is drawn and analysed at the 0.06 level of significance. What values of y would cause H 0 to be rejected? Assume that H 1 is two-sided.

Solution: Define z = 15 y−/√^9522. According to theorem 6.2.1 we reject H 0 if z ≤ −z α 2 or z ≥ z α 2. Let α = 0.06 then α 2 = 0.03 and the table in Appendix A.1. tells us that^ z^ α 2 = 1.88. Thus we will reject^ H^0 if^ y^ ≤^95 −^1.^88 ×^ √^15 22 = 89 .0 or y ≥ 95 + 1. 88 × √^1522 = 101.0.

Problem 6.2.5: Assuming that α is fixed, if the hypothesis H 0 : μ = μ 0 is rejected in favour of H 1 : μ > μ 0 , will it necessarily be rejected in favour of H 1 : μ 6 = μ 0?

Solution: No.

Problem 6.2.7: Let μ denote the true mean of a sample of 30 breath-analyser tests with standard deviation 0 .4. Let the data in the table be the recorded samples. Test the hypothesis H 0 : μ = 12.6 versus the hypothesis H 1 : μ 6 = 12.6 at the α = 0.05 significance level. What statistical assumptions are made in the previous part? Is there any reason to suspect that those assumptions may not hold?

Solution: Define z = 0 y.− 4 /^12 √. 306 = 2.19. Again, according to theorem 6.2.1 we reject H 0 if z ≤ −z α 2 or z ≥ z α 2.

To find z α 2 we again look in the table in Appendix A.1. and find that z α 2 = 1.96. Thus we reject H 0. In the above question we have assumed that the samples are drawn from a normal distribution. There is no reason to believe otherwise.

Problem 6.2.9: Suppose that H 0 : μ = 120 is tested against H 1 : μ 6 = 120. If σ = 10 and n = 16, what P -value is associated with the sample mean y = 122.3. Under what circumstances will H 0 be rejected?

Solution: We have z = (^) σ/y−√μn = (^12210) /.√^3 − 16 μ. If H 0 holds, then z = 0.92. The P -value is then P (Z ≥ 0 .92) + P (Z ≤

− 0 .92) = 0.36. Thus H 0 would be rejected if we have a level of significance larger than 0.36.

Problem 6.3.3: In exit-polls for an election which a politician lost indicated that 65% of those who voted for him were men. Suppose that a random sample of 120 persons shows that 72 who now support him are men. Using the 0.05 significance level, test the hypothesis that his proportion of male supporters has remained the same. Use a one-sided alternative.

Solution: Let p be the probability that a supporter is male. Then H 0 : p = 0.65 and H 1 : p < 0 .65. n is large − 120 − so we can use theorem 6.3.1 to test the hypothesis H 0. Let z = √^72120 −×^1200. 65 ×^0 ×.^650. 35 = − 1 .15. Thus we have

to reject H 0 if − 1. 15 ≤ −zα. Since zα = 1.64, we fail to reject H 0.

Problem 6.3.4: Suppose that H 0 : p = 0.45 is being tested against H 1 : p > 0 .45 at the 0.14 level of significance. Suppose that the sample size is 200. What is the smallest number of successes which will reject H 0?

Solution: Again, n is large so we may use theorem 6.3.1. We have z = √ 200 k−^200 × 0 .× 450 ×.^450. 55. To reject H 0 we need

z ≥ z 0. 14 where z 0. 14 satisfies P (Z ≥ z 0. 14 ) = 0.14. Thus z 0. 14 = 1.08 and we require k such that

k − 200 × 0. 45 √ 200 × 0. 45 × 0. 55

This means that k ≥ 98.

Problem 6.3.6: In a sample of 348 persons 16 were found to have died in the month preceding birth month. Use the 0.05 level of significance to test the postponement hypothesis with a one-sided alternative.

Solution: Again, n = 348 is large and we use theorem 6.3.1. Let p be the probability that a person dies in the month before his birth month. Let H 0 : p = 121 and let H 1 : p < 121. We have z 0. 05 = 1.61 and

z =

√^16 −^348 ×^121

348 × 121 × 1112 =^ −^2 .52. Thus according to theorem 6.3.1, we reject^ H^0.

Problem 6.4.6: Suppose that 36 observations are taken from a normal distribution with σ = 8, for the purpose of testing H 0 : μ = 60 versus H 1 : μ 6 = 60 at the 0.07 significance level. Suppose that we will reject H 0 if y falls in the interval (60 − y∗, 60 + y∗). Find y∗. What is the power of this test when μ = 62. What is the power of the test if the critical interval is defined as usual?

Solution: α which in this case is 0.07 gives the probability of comitting a type I error; that is, of rejecting H 0 even though it holds. Suppose that H 0 holds. This means that the sample that we grabbed, Y , is almost a normal random variable which has mean 60, an standard deviation 8. In this problem we reject H 0 if Y falls in the interval (60 − y∗, 60 + y∗). Therefore we want P (60 − y∗^ ≤ Y ≤ 60 + y∗) = 0.07. We have

P (60 − y∗^ ≤ Y ≤ 60 + y∗) = P

60 − y∗^ − 60 8 /

Y − 60

60 + y∗^ − 60 8 /

= P (− 0. 75 y∗^ ≤ Z ≤ 0. 75 y∗)

We have P (− 0. 09 ≤ Z ≤ 0 .09) = 0.07 so y∗^ = 0.12. Thus we reject H 0 if y falls in the interval (59. 88 , 60 .12). β is defined to be the probability of committing a type II error; that is, failing to reject H 0 when H 0 is false. The power of the test is given by 1 − β which is the probability of rejecting H 0 if H 0 is false. So suppose that H 0 is false and that the sample that we grabbed, Y , has a mean of 62. Then the power of the above test is

1 − β = P (59. 88 ≤ Y ≤ 60 .12) = P

≤ Z ≤

Finally, let z = 8 y/−√^6036. We reject H 0 if z ≤ −z α 2 or z ≥ z α 2. We have α = 0.07 so α 2 = 0.035 and z 0. 035 = 1.81.

Thus we reject H 0 if y ≤ 57 .50 or y ≥ 62 .41. Let us now find β the probability of committing a type II error. Suppose that Y is a random variable with mean 62. We reject H 0 for Y ≤ 57 .50 and 62. 41 ≤ Y. Thus we fail to reject H 0 if Y falls in the interval (57. 50 , 62 .41). Thus

β = P (57. 50 ≤ y ≤ 62 .41) = P

≤ Z ≤

Thus the power of the test in this case is 1 − β = 0.3788.

Problem 6.4.11: Consider the data below. What is α and β? Should they both carry the same weight?

Suspect’s true status Innocent Guilty Examiner’s decision Innocent 131 15 Guilty 9 125

Solution: Let H 0 be the null hypothesis that the suspect is innocent. Then α gives the probability of a guilty verdict on an innocent person which has probability 1409. Let H 1 be the hypothesis that the suspect is guilty. Then β gives the probability of finding a guilty person innocent: 14015. It is not clear to me whether it is more serious to convict an innocent person or to let a guilty person go.