Docsity

Statistical Methods for Bioscience I - Midterm Exam with Solutions | STAT 571, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Stat/For/Hort 571
Final Exam, Fall 2003
Brief Solutions
1. This is a case of paired samples.
(a) For testing H0:µD= 0 versus HA:µD6= 0,
use T=¯
d−0
sD/√n. Since n= 5,¯
d= 8.5/5=1.7,
and sD=p(22.56 −5×1.72)/4 = √2.03 =
1.4247, the observed t=1.7
1.4247/√5= 2.67.
Compare with T4, the p-value = 2 ×P(T4≥
2.67) is between 0.05 and 0.10. There is weak
evidence of change in bacteria count.
(b) Use the formula n=(Zα/2+Zβ)2
(µA−µ0)2. Since
α/2 = 0.025, β = 1 −0.95 = 0.05, Z0.025 =
1.96, Z0.05 = 1.645, µA−µ0= 1.5, we have
n=(1.96+1.645)2
(1.5)2= 5.77 ↑6.
2. (a) Let p1denote the preference of BS1 for young
leaves. Then 1 −p1is the the preference of BS1
for old leaves. The hypotheses are H0:p1=
0.5 versus H0:p16= 0.5 and the test statistic is
Z=ˆp1−0.5
√0.5×0.5/n1
. Since n1= 60,ˆp1= 38/60 =
0.633, the observed z=0.633−0.5
√0.5×0.5/60 = 2.06.
Compare with standard normal distribution,
the p-value = 2 ×P(Z≥2.06) <0.05. Re-
ject H0at 5% and there is some evidence of a
preference. Normal approximation is appropri-
ate because n1ˆp1≥5 and n1(1 −ˆp1)≥5.
(b) Let p2denote the preference of BS2 for young
leaves. The hypotheses are H0:p1=p2ver-
sus H0:p16=p2and the test statistic is
Z=ˆp1−ˆp2
√ˆp(1−ˆp)(1/n1+1/n2). Here n1= 60,ˆp1=
38/60 = 0.633, n2= 48,ˆp2= 18/48 = 0.375,
and ˆp=38+18
60+48 = 0.5185, the observed z=
0.633−0.375
√0.5185×0.4815×(1/60+1/48) = 2.665. Compare
with standard normal distribution, the p-value
= 2 ×P(Z≥2.665) <0.05. Reject H0at 5%.
There is evidence of a difference between the
two species. Normal approximation is appro-
priate because niˆpi≥5 and ni(1 −ˆpi)≥5 for
i= 1,2.
3. (a) SSError = 4×102+ 4×102+4×112+ 4 ×112=
1768 and SSAgent = 5 ×[(20 −34.5)2+ (32 −
34.5)2+ (36 −34.5)2+ (50 −34.5)2] = 2295
(as overall mean ¯y·· = 34.5). Hence SSTotal =
SSAgent + SSError = 4063 and the ANOVA
table is:
Source df SS MS
Agent 3 2295 765
Error 16 1768 110.5
Total 19 4063 –
For testing H0:µ1=µ2=µ3=µ4, use
F=MSAgent
MSError and the observed f= 6.923.
Compare with F3,16, the p-value is less than
0.01. Reject H0at 5% and there is strong evi-
dence of treatment differences.
(b) The hypotheses of interest is H0:1
2(µ1+
µ3)−1
2(µ2+µ4) = 0 versus not H0. Use
T=
1
2(¯y1+ ¯y3)−1
2(¯y2+ ¯y4)
√MSEp4×1
4/n . Hence the observed
t=
1
2(20+36)−1
2(32+50)
√110.5p4×1
4/5=−2.765. Compare
with T16, the p-value = 2 ×P(T16 ≤ −2.765)
is between 0.01 and 0.05. Reject H0at 5% and
there is evidence of a difference between treat-
ment 1,3 and treatment 2,4. That is, the addi-
tive A has an overall effect on milk production.
4. (a) The MSE is 120.0 and is on 36 df. Thus LSD =
t36,0.025√MSEp2
n= 2.028 ×√120.0×p2
10 =
9.935. The display is:
20.5 32.0 38.3 48.2
(b) An equivalent of LSD t36,0.025/6√MSEp2
n=
2.719 ×√120.0×p2
10 = 13.32.
The display is:
20.5 32.0 38.3 48.2
Bonferroni is preferred if one wants to be con-
servative and LSD is preferred if one wants to
be liberal.
5. (a) ˆ
b1=17.7457−2.09×45.95/6
0.9079−2.092/6= 9.67 and ˆ
b0=
45.95/6−9.67 ×2.09/6 = 4.29.
(b)
Source df SS MS
Regression 1 16.82 16.82
Error 4 0.33 0.083
Total 5 17.21 –
The observed f=MSReg
MSErr = 201.5. Compare
with F1,4, the p-value = P(F1,4≥203.45) <
0.01. Reject H0at 5% and there is strong evi-
dence of a linear relationship.
(c) Since ˆypr ed = 4.34 + 9.53 ×0.4 = 8.158 and
s.e.(ˆypred) is
√0.083p1 + 1/6 + (0.4−0.348)2/(0.91 −2.092/6) =
0.313,the 95% PI is
ˆypr ed ±t4,0.025 ×s.e.(ˆypred) = 8.158 ±0.868.

Partial preview of the text

Download Statistical Methods for Bioscience I - Midterm Exam with Solutions | STAT 571 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Stat/For/Hort 571

Final Exam, Fall 2003

Brief Solutions

  1. This is a case of paired samples.

(a) For testing H 0 : μD = 0 versus HA : μD 6 = 0, use T = d¯− 0 sD /√n. Since^ n^ = 5,^ d¯ = 8. 5 /5 = 1.7, and sD =

(22. 56 − 5 × 1. 72 )/4 =

1 .4247, the observed t = (^1). 42471.^7 /√ 5 = 2 .67. Compare with T 4 , the p-value = 2 × P (T 4 ≥ 2 .67) is between 0.05 and 0.10. There is weak evidence of change in bacteria count.

(b) Use the formula n = (Zα/^2 +Zβ^ )

2 (μA−μ 0 )^2.^ Since α/2 = 0. 025 , β = 1 − 0 .95 = 0. 05 , Z 0. 025 =

  1. 96 , Z 0. 05 = 1. 645 , μA − μ 0 = 1.5, we have n = (1.96+1.645)

2 (1.5)^2 = 5.^77 ↑^ 6.

  1. (a) Let p 1 denote the preference of BS1 for young leaves. Then 1 − p 1 is the the preference of BS for old leaves. The hypotheses are H 0 : p 1 = 0 .5 versus H 0 : p 1 6 = 0.5 and the test statistic is Z = √pˆ^1 −^0.^5 0. 5 × 0. 5 /n 1 . Since n 1 = 60, pˆ 1 = 38/60 =

0 .633, the observed z = √^00.^633. 5 ×− 0.^05 ./^560 = 2.06. Compare with standard normal distribution, the p-value = 2 × P (Z ≥ 2 .06) < 0 .05. Re- ject H 0 at 5% and there is some evidence of a preference. Normal approximation is appropri- ate because n 1 pˆ 1 ≥ 5 and n 1 (1 − pˆ 1 ) ≥ 5. (b) Let p 2 denote the preference of BS2 for young leaves. The hypotheses are H 0 : p 1 = p 2 ver- sus H 0 : p 1 6 = p 2 and the test statistic is Z = √pˆ(1− ˆppˆ)(1^1 −/n^ ˆp^2 1 +1/n 2 )^

. Here n 1 = 60, pˆ 1 = 38 /60 = 0. 633 , n 2 = 48, pˆ 2 = 18/48 = 0.375, and ˆp = 38+1860+48 = 0.5185, the observed z = √^0.^633 −^0.^375

  1. 5185 × 0. 4815 ×(1/60+1/48) = 2.665.^ Compare with standard normal distribution, the p-value = 2 × P (Z ≥ 2 .665) < 0 .05. Reject H 0 at 5%. There is evidence of a difference between the two species. Normal approximation is appro- priate because ni ˆpi ≥ 5 and ni(1 − pˆi) ≥ 5 for i = 1, 2.
  2. (a) SSError = 4× 102 +4× 102 +4× 112 +4× 112 = 1768 and SSAgent = 5 × [(20 − 34 .5)^2 + (32 − 34 .5)^2 + (36 − 34 .5)^2 + (50 − 34 .5)^2 ] = 2295 (as overall mean ¯y·· = 34.5). Hence SSTotal = SSAgent + SSError = 4063 and the ANOVA table is: Source df SS MS Agent 3 2295 765 Error 16 1768 110. Total 19 4063 –

For testing H 0 : μ 1 = μ 2 = μ 3 = μ 4 , use F = MSAgentMSError and the observed f = 6 .923. Compare with F 3 , 16 , the p-value is less than 0.01. Reject H 0 at 5% and there is strong evi- dence of treatment differences. (b) The hypotheses of interest is H 0 : 12 (μ 1 + μ 3 ) − 12 (μ 2 + μ 4 ) = 0 versus not H 0. Use T =

(^12) (¯y 1 +¯y 3 )− 12 (¯y 2 +¯y 4 )

√MSE^ √ 4 × 1

4 /n

. Hence the observed

t =

(^12) (20+36)− 12 (32+50)

√ 110. 5 √ 4 × 1

4 /^5

= − 2 .765. Compare

with T 16 , the p-value = 2 × P (T 16 ≤ − 2 .765) is between 0.01 and 0.05. Reject H 0 at 5% and there is evidence of a difference between treat- ment 1,3 and treatment 2,4. That is, the addi- tive A has an overall effect on milk production.

  1. (a) The MSE is 120.0 and is on 36 df. Thus LSD = t 36 , 0. 025

MSE

n = 2.^028 ×

120. 0 ×

9 .935. The display is: 20.5 32.0 38.3 48.

(b) An equivalent of LSD t 36 , 0. 025 / 6

MSE

n =

  1. 719 ×

120. 0 ×

The display is: 20.5 32.0 38.3 48.

Bonferroni is preferred if one wants to be con- servative and LSD is preferred if one wants to be liberal.

  1. (a) ˆb 1 = 17.^74570. 9079 −^2 −.^092 .× 09452 /. 695 /^6 = 9 .67 and ˆb 0 =
    1. 95 / 6 − 9. 67 × 2. 09 /6 = 4.29.

(b)

Source df SS MS Regression 1 16.82 16. Error 4 0.33 0. Total 5 17.21 – The observed f = MSRegMSErr = 201.5. Compare with F 1 , 4 , the p-value = P (F 1 , 4 ≥ 203 .45) < 0 .01. Reject H 0 at 5% and there is strong evi- dence of a linear relationship. (c) Since ˆypred = 4.34 + 9. 53 × 0 .4 = 8.158 and s.e. √ (ˆypred) is

  1. 083

1 + 1/6 + (0. 4 − 0 .348)^2 /(0. 91 − 2. 092 /6) =

  1. 313 , the 95% PI is ˆypred ± t 4 , 0. 025 × s.e.(ˆypred) = 8. 158 ± 0 .868.