Академический Документы
Профессиональный Документы
Культура Документы
JOHN S. LOUCKS
St. Edwards University
Chapter 13
Analysis of Variance and Experimental
Design
H0: 1=2=3=.
. .
= k
Analysis of Variance:
Testing for the Equality of K Population
Means
Between-Samples Estimate
of Population Variance
MSB
nj (xj_ x)=2
j1
k 1
Within-Samples Estimate
of Population Variance
MSW
(nj 1)s2j
j 1
nT k
Hypotheses
H0: 1=2=3=. . . = k
Ha: Not all population means are equal
Test Statistic
F = MSB/MSW
Rejection Rule
Reject H0 if F > F
where the value of F is based on an F
distribution with k - 1 numerator degrees of
freedom and nT - 1 denominator degrees of
freedom.
9
Do Not Reject H0
Reject H0
F
Critical Value
MSTR/MSE
10
SST
nT - 1
(
x
x
)
SSTR SSE
as one data set.
ij
j 1 i 1
11
Analysis of Variance
Plant 1 Plant 2
Observation
Buffalo
Detroit
1
2
3
4
5
48
54
57
54
62
Sample Mean
Sample Variance
24.5
Plant 3
Pittsburgh
73
63
66
64
74
55
51
63
61
54
56
68
26.0
57
26.5
13
Analysis of Variance
Hypotheses
H0: 1=2=3
Ha: Not all the means are equal
where:
1 = mean number of hours worked per
week by the managers at Plant 1
2 = mean number of hours worked per
week by the managers at Plant 2
3 = mean number of hours worked per
week by the managers at Plant 3
14
Analysis of Variance
Mean Square Between
Since the sample sizes are all equal
x ==(55 + 68 + 57)/3 = 60
SSB = 5(55 - 60)2 + 5(68 - 60)2 + 5(57 60)2 = 490
MSB = 490/(3 - 1) = 245
Mean Square Within
SSW = 4(26.0) + 4(26.5) + 4(24.5) =
308
MSW = 308/(15 - 3) = 25.667
15
Analysis of Variance
F - Test
If H0 is true, the ratio MSB/MSW should be
near 1
since both MSB and MSW are estimating 2.
If Ha
is true, the ratio should be significantly
larger than
1 since MSB tends to overestimate 2.
Rejection Rule
Assuming = .05, F.05 = 3.89 (2 d.f.
numerator,
12 d.f. denominator). Reject H0 if F > 3.89
16
Analysis of Variance
Test Statistic
F = MSB/MSW = 245/25.667 = 9.55
Conclusion
F = 9.55 > F.05 = 3.89, so we reject H0.
The mean
number of hours worked per week by
department
managers is not the same at each plant.
17
Analysis of Variance
ANOVA Table
Source of
Variation
F
Sum of
Squares
Treatments
490
9.55
Error
308
Total
798
Degrees of
Freedom
2
12
14
Mean
Square
245
25.667
18
19
Hypotheses
H0: i = j
Ha: i
Test Statistic
xi xj
t
MSW( 1n 1n )
i
j
Rejection Rule
Reject H0 if t < -ta/2 or t > ta/2
where the value of ta/2 is based on a t
distribution
with nT - k degrees of freedom.
20
Hypotheses
H0: i = j
Ha: i
Test Statistic
xi - xj
Rejection Rule
LSD t / 2 MSW( 1n 1n )
i
j
21
Fishers LSD
Assuming = .05,
LSD 2. 179 25667
.
(15 15) 6.98
Hypotheses (A)
Ha: 1
H0: 1 = 2
Test Statistic
_ _
|x1 - x2| = |55 - 68| = 13
Conclusion
The mean number of hours worked at Plant
1 is not equal to the mean number worked
at Plant 2.
22
Fishers LSD
Hypotheses (B)
H0: 1 = 3
Ha: 1 3
Test Statistic
_ _
|x1 - x3| = |55 - 57| = 2
Conclusion
There is no significant difference between
the mean number of hours worked at Plant
1 and
the mean number of hours worked at Plant
3.
23
Fishers LSD
Hypotheses (C)
H0: 2 = 3
Ha: 2 3
Test Statistic
_ _
|x2 - x3| = |68 - 57| = 11
Conclusion
The mean number of hours worked at Plant
2 is not equal to the mean number worked
at Plant 3.
24
25
27
Between-Treatments Estimate
of Population Variance
28
Within-Treatments Estimate
of Population Variance
Sum of
Squares
Treatments
Error
Total
SSTR
SSE
SST
Degrees of
Freedom
k-1
nT - k
Mean
Squares
SSTR MSTR
MSTR
k- 1
MSE
SSE
MSE
nT - k
nT - 1
30
31
48
54
57
54
62
Sample Mean
Sample Variance
24.5
Wax
Type 2
73
63
66
64
74
55
26.0
Type
51
63
61
54
56
68
57
26.5
32
34
35
Sum of
Degrees of
Squares
Freedom
490
308
798
2
12
245
25.667
14
36
37
Sum of
Squares
Treatments SSTR
Degrees of
Freedom
k-1
Mean
Squares
SSTR MSTR
MSTR
k- 1
MSE
Error
SSBL
b- 1
SSBL
b-1
SSE
MSE
(k 1)(b 1)
SSE
(k - 1)(b - 1)
Total
SST
Blocks
MSBL
nT - 1
39
40
Blend Y
30
29
28
29
26
Blend Z
30.333
29.333
28.667
31.000
25.667
28.8
28.4
41
42
Test Statistic
F = MSTR/MSE = 2.6/.68 = 3.82
Conclusion
Since 3.82 < 4.46, we cannot reject H0.
There is not sufficient evidence to conclude
that the miles per gallon ratings differ for
the three gasoline blends.
43
End of Chapter 13
44