Docsity

Stat 571 - Second Midterm Exam Solutions (December 2, 2008) - Prof. Cecile M. Ane, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Stat 571 Second Midterm Exam Solutions December 2, 2008
1(a) (1) (4 points) Each rat must be independent of every
other rat - this can’t really be verified from the given
information, but there’s no particular reason to think
it is invalid. (2) Expected counts must be 5 or more
in each cell - they are, see (b) below.
(b) (5 points) Expected counts (upper left, upper right,
lower left, lower right) are 14, 6, 21, 9.
(c) (7 points) df is (2 −1) ∗(2 −1) = 1. χ2
1,0.005 = 7.88
and χ2
1,0.001 = 10.83 so 0.001 < p < 0.005. We would
reject the null hypothesis of no relationship and con-
clude that tuna does have an effect on longevity.
2(a) (16 points) Correct boxplot is B3. It’s the only one
with the median in the right place. We would not use
a t-test since there is strong skew in both samples,
and the sample size is too small for the CLT to work
well. The researcher could use Mann-Whitney in this
case. Sample sizes can be determined from the qq
plots by counting the points. nA= 13 and nB= 10.
Consulting the Mann-Whitney table at 0.05 level, T
would need to be less than or equal to 88 to reject. It
is not, so we conclude that there is no evidence that
genetic diversity affects abundance (p > .05).
(b) (4 points) Since the deviations from respective medi-
ans are exactly the same in both groups, the p-value
would be exactly 1. Thus, p > 0.20 is the correct
choice.
(c) (2 points) True. We only get as many df as number
of pairs.
(d) (2 points) True. If there is more variability between
sample units than there is within a sample unit, pair-
ing is usually a good idea.
(e) (4 points) Power = αwhen the true difference equals
the difference under the null, which is zero in this
example. Thus, the solid curve is not correct be-
cause the power is less than 0.05 at zero. Of the two
other curves, the one that slopes up more steeply
(dot-dashed) has the higher sample size of 30. It has
a value of 0.85 at a difference of 1, and thus the an-
swer is n= 30.
3 (22 points) dfTrt = 3 −1 = 2, dfErr =8+6+4−3 =
15, and dfTot = 2 + 15 = 17. The grand mean is
a weighted average of the treatment means, and is
equal to (12 ∗8 + 6 ∗6 + 15.5∗4)/18 = 10.78. Then
SSTrt = 8∗(12−10.78)2+6∗(6 −10.78)2+ 4 ∗(15.5−
10.78)2= 238.1. SSTot is 238.1+277 = 515.1, MSTrt
= 238.1/2 = 119.05, MSErr = 277/15 = 18.47, and
F = 119.05/18.476 = 6.44. F2,15,0.01 = 6.36 and
F2,15,0.005 = 7.70, so 0.005 < p < 0.01. We would
reject the null at the 1% level or lower, and conclude
that at least one of the treatments has a different
average re-growth score than one other treatment.
4 (16 points) Since Levene’s test has a very low p-value,
we would conclude that the variances probably dif-
fer, and use the variances allowed to differ t-test. The
t-statistic is (13.5−9.19)/p(21.62)/12 + (8.72)/9 =
0.6267. The appropriate df is 15.3, round down to
15 to be conservative. t15,0.1= 1.341, so the p-value
is larger than 2 ∗0.1=0.2. We do not have suf-
ficient evidence to reject the null at the 10% level,
and conclude that the average wing spans of the two
sub-species are the same.
5 (18 points) We must assume independence, no re-
porting bias, and large sample size. Independence is
somewhat questionable, since there could be infec-
tions among family members, or a particularly bad
strain could travel through a hospital, etc. There
is also likely to be some reporting bias, since it is
likely that many cases that did not result in deaths
may not have been reported. This data would then
probably over-estimate the probability of survival.
We can use the normal approximation so long as
n∗p≥5 and n∗(1 −p)≥5. They are, since
(37/42) ∗42 = 37 ≥5, and (5/42) ∗42 = 5 ≥5. Then
the CI is 5/42 ±z0.1/2∗p((5/42) ∗(37/42))/42, or
0.119 ±0.082: (.037, .201).
Frequency
30 40 50 60 70 80 90 100
0 10 20 30 40 50 60
Summary of grades
●● ●● ●●
81 87 91
1

Partial preview of the text

Download Stat 571 - Second Midterm Exam Solutions (December 2, 2008) - Prof. Cecile M. Ane and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Stat 571 Second Midterm Exam Solutions December 2, 2008

1(a) (1) (4 points) Each rat must be independent of every other rat - this can’t really be verified from the given information, but there’s no particular reason to think it is invalid. (2) Expected counts must be 5 or more in each cell - they are, see (b) below.

(b) (5 points) Expected counts (upper left, upper right, lower left, lower right) are 14, 6, 21, 9.

(c) (7 points) df is (2 − 1) ∗ (2 − 1) = 1. χ^21 , 0. 005 = 7. 88 and χ^21 , 0. 001 = 10.83 so 0. 001 < p < 0 .005. We would reject the null hypothesis of no relationship and con- clude that tuna does have an effect on longevity.

2(a) (16 points) Correct boxplot is B3. It’s the only one with the median in the right place. We would not use a t-test since there is strong skew in both samples, and the sample size is too small for the CLT to work well. The researcher could use Mann-Whitney in this case. Sample sizes can be determined from the qq plots by counting the points. nA = 13 and nB = 10. Consulting the Mann-Whitney table at 0.05 level, T would need to be less than or equal to 88 to reject. It is not, so we conclude that there is no evidence that genetic diversity affects abundance (p > .05).

(b) (4 points) Since the deviations from respective medi- ans are exactly the same in both groups, the p-value would be exactly 1. Thus, p > 0 .20 is the correct choice.

(c) (2 points) True. We only get as many df as number of pairs.

(d) (2 points) True. If there is more variability between sample units than there is within a sample unit, pair- ing is usually a good idea.

(e) (4 points) Power = α when the true difference equals the difference under the null, which is zero in this example. Thus, the solid curve is not correct be- cause the power is less than 0.05 at zero. Of the two other curves, the one that slopes up more steeply (dot-dashed) has the higher sample size of 30. It has a value of 0.85 at a difference of 1, and thus the an- swer is n = 30.

3 (22 points) dfTrt = 3 − 1 = 2, dfErr = 8 + 6 + 4 − 3 = 15, and dfTot = 2 + 15 = 17. The grand mean is a weighted average of the treatment means, and is equal to (12 ∗ 8 + 6 ∗ 6 + 15. 5 ∗ 4)/18 = 10.78. Then SSTrt = 8 ∗ (12 − 10 .78)^2 + 6 ∗ (6 − 10 .78)^2 + 4 ∗ (15. 5 − 10 .78)^2 = 238.1. SSTot is 238.1+277 = 515.1, MSTrt = 238. 1 /2 = 119.05, MSErr = 277/15 = 18.47, and

F = 119. 05 / 18 .476 = 6.44. F 2 , 15 , 0. 01 = 6.36 and F 2 , 15 , 0. 005 = 7.70, so 0. 005 < p < 0 .01. We would reject the null at the 1% level or lower, and conclude that at least one of the treatments has a different average re-growth score than one other treatment.

4 (16 points) Since Levene’s test has a very low p-value, we would conclude that the variances probably dif- fer, and use the variances allowed to differ t-test. The t-statistic is (13. 5 − 9 .19)/

0 .6267. The appropriate df is 15.3, round down to 15 to be conservative. t 15 , 0. 1 = 1.341, so the p-value is larger than 2 ∗ 0 .1 = 0.2. We do not have suf- ficient evidence to reject the null at the 10% level, and conclude that the average wing spans of the two sub-species are the same.

5 (18 points) We must assume independence, no re- porting bias, and large sample size. Independence is somewhat questionable, since there could be infec- tions among family members, or a particularly bad strain could travel through a hospital, etc. There is also likely to be some reporting bias, since it is likely that many cases that did not result in deaths may not have been reported. This data would then probably over-estimate the probability of survival. We can use the normal approximation so long as n ∗ p ≥ 5 and n ∗ (1 − p) ≥ 5. They are, since (37/42) ∗ 42 = 37 ≥ 5, and (5/42) ∗ 42 = 5 ≥ 5. Then the CI is 5/ 42 ± z 0. 1 / 2 ∗

((5/42) ∗ (37/42))/42, or

  1. 119 ± 0 .082: (. 037 , .201).

Frequency

30 40 50 60 70 80 90 100

0

10

20

30

40

50

60

Summary of grades

l l ll l l

81 87 91