F-Tests and Anova
F-Tests and Anova
(3) H1: ¹
1
2
2
2
F cal=
∑ ( x 1−μ1 ) /n ₁
2
(3) F Cal > Fn , n ,α /2
1 2
∑ ( x 2−μ2 )2 /n ₂ OR
*test statistic has been corrected here. Please make a change in your
handout too.
2) Testing of two independent normal population standard deviation (variances)
when population means (m1 and m2) are unknown
Always consider sample having larger variance as 1st sample.
OR
*most books use Fcal = S12/S22 as test statistic which is also correct.
1. An insurance company is interested in the length of hospital-stays for various illnesses. The
company has randomly selected 20 patients from hospital A and 25 from hospital B who were
treated for the same ailment. The amount of time spent in hospital A had an average of 2.4 days
with s.d of 0.6 days. The treatment time in hospital B averaged 2.3 days with s.d of 0.9 days. Do
patient at hospital A has significantly less variability in their recovery time? Test at 0.01
significance level.
Solution: Xi: length of hospital-stays for various illness
at hospital B and A respectively, where i = 1,2. (as
sample variance of hospital B is more than that for
hospital A.)
Xi: N (µi, σi) where µ₁, µ₂ are unknown.
(i) Hₒ: σ₁2 = σ₂2 Vs H₁: σ₁2 > σ₂2 (right tailed test)
(ii) Since n₁ = 25, n₂ = 20, s₁ = 0.9, s₂ = 0.6, and
population mean µ₁, µ₂ are unknown, we use
F-test with n – 1 df. (note that the sample
means given as 2.3 and 2.4 respectively are
not required in calculating test statistic)
(iii) Test statistic:
2
n1 s1 /(n1−1) 25 x 0.81/(25−1)
F cal= 2
s ₂ n /(n −1)
= 20 x 0.36 /(20−1)
=0.84375/0.37895
2 2
= 2.2265
(iv) Decision criteria: Reject Hₒ if Fcal > Ftab
Ftab = Fn₁ - 1, n₂ - 1, α = F25 – 1, 20 -1, 0.01
= F24, 19, 0.01 = 2.9249.
Since Fcal = 2.2265 < 2.9249, we do not reject
Hₒ at 1% level of significance.
(v) Conclusion: No, there is no significant
difference in the recovery time at hospital A
and B.
Note: The table for sampling distribution of F is
. . . . .
. . . . .
. . . . .
Col. Total T₁ T₂ …. TK
(Ti)
Rejection criterion: reject null hypothesis if F Cal > Ftab =F (k−1 ), (n−k ) ,α
7. Suppose that a random sample of 5 was selected from the vineyard properties for sale in Sonoma
County, California, in each of 3 years. The following data are on price per acre (in dollars,
rounded to the nearest thousand) for 3 years on Sonoma County. Carry out an ANOVA to
determine there is evidence to support the claim that the mean price per acre for land was not
same for the 3 years considered. Use 5 % level of significance.
1996(nearest thousand) 1997(nearest thousand) 1998(nearest thousand)
30 30 40
34 35 41
36 37 43
38 38 44
40 40 50
8. Over the course of two days, you have tracked how many hours it took each of your fifteen staff
members to complete the same assignment. Here are the results:
9. Group 1 Soda Group 2 B-Vitamin Group 3
(hrs ) drink(hrs.) Coffee(hrs.)
8 5 7
8 6 6
10 6 7
7 4 7
10 8 9
Test at 1 percent level of significance that the supplied beverages affect productivity.
i=1 , 2 ,… , k ∧ j=1, 2 , … , ni
ANOVA