Professional Documents
Culture Documents
CH 13
CH 13
JOHN S. LOUCKS
St. Edwards University
2
An Introduction to Analysis of Variance
4
Analysis of Variance:
Testing for the Equality of K Population
Means
Between-Samples Estimate of Population
Variance
Within-Samples Estimate of Population
Variance
Comparing the Variance Estimates: The F Test
The ANOVA Table
5
Between-Samples Estimate
of Population Variance
A between-samples estimate of 2 is called
the mean square between (MSB).
k
2
nj (xj_ x)=2
j1
MSB
k 1
The numerator of MSB is called the sum of
squares between (SSB).
The denominator of MSB represents the
degrees of freedom associated with SSB.
6
Within-Samples Estimate
of Population Variance
The estimate of 2 based on the variation of
the sample observations within each sample is
called the mean square within (MSW).
k
(nj 1)s2j
j 1
MSW
nT k
The numerator of MSW is called the sum of
squares within (SSW).
The denominator of MSW represents the
degrees of freedom associated with SSW.
7
Comparing the Variance Estimates: The F
Test
If the null hypothesis is true and the ANOVA
assumptions are valid, the sampling
distribution of MSB/MSW is an F distribution
with MSB d.f. equal to k - 1 and MSW d.f. equal
to nT - k.
If the means of the k populations are not
equal, the value of MSB/MSW will be inflated
because MSB overestimates 2.
Hence, we will reject H0 if the resulting value of
MSB/MSW appears to be too large to have
been selected at random from the appropriate
F distribution.
8
Test for the Equality of k Population
Means
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
Sampling Distribution of MSTR/MSE
10
The ANOVA Table
11
Example: Reed Manufacturing
Analysis of Variance
J. R. Reed would like to know if the mean
number of
hours worked per week is the same for the
department
managers at her three manufacturing plants
(Buffalo,
Pittsburgh, and Detroit).
A simple random sample of 5 managers from
each of
the three plants was taken and the number of
hours
worked by each manager for the previous week
is 12
Example: Reed Manufacturing
Analysis of Variance
Plant 1 Plant 2 Plant 3
Observation Buffalo Pittsburgh
Detroit
1 48 73 51
2 54 63 63
3 57 66 61
4 54 64 54
5 62 74 56
Sample Mean 55 68 57
Sample Variance 26.0 26.5
24.5
13
Example: Reed Manufacturing
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
Example: Reed Manufacturing
Analysis of Variance
Mean Square Between
15
Example: Reed Manufacturing
Analysis of Variance
F - Test
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
Example: Reed Manufacturing
Analysis of Variance
ANOVA Table
Source of Sum of Degrees of Mean
Variation Squares Freedom Square
F
Treatments 490 2 245
9.55
Error 308 12 25.667
Total 798 14
18
Multiple Comparison Procedures
19
Fishers LSD Procedure
Hypotheses
H0: i = j
Ha: i j
Test Statistic
xi xj
t
MSW( 1n 1n )
i j
Rejection Rule
Reject H0 if t < -ta/2 or t > ta/2
21
Example: Reed Manufacturing
Fishers LSD
Assuming = .05,
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
Example: Reed Manufacturing
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
An Introduction to Experimental Design
25
An Introduction to Experimental Design
26
Completely Randomized Designs
27
Between-Treatments Estimate
of Population Variance
In the context of experimental design, the
between-samples estimate of 2 is referred to
as the mean square due to treatments (MSTR).
It is the same as what we previously called
mean square between (MSB).
k
The formula for MSTR is nj (xj x)2
j1
MSTR _ =
k 1
The numerator is called the sum of squares
due to treatments (SSTR).
The denominator k - 1 represents the degrees
of freedom associated with SSTR.
28
Within-Treatments Estimate
of Population Variance
The second estimate of 2, the within-samples
estimate, is referred to as the mean square
due to error (MSE).
It is the same as what we previously called
mean square within (MSW). k
The formula for MSE is (nj 1)s2j
j1
MSE
nT k
29
ANOVA Table for a
Completely Randomized Design
Total SST nT - 1
30
Example: Home Products, Inc.
Sample Mean 55 68 57
Sample Variance 26.0 26.5
24.5
32
Example: Home Products, Inc.
H0: 1=2=3
Ha: Not all the means are equal
where:
1 = mean number of washes for Type 1
wax
2 = mean number of washes for Type 2
wax
3 = mean number of washes for Type 3
wax
33
Example: Home Products, Inc.
34
Example: Home Products, Inc.
36
Randomized Block Design
37
The ANOVA Procedure
Total SST nT - 1
39
Example: Eastern Oil Co.
40
Example: Eastern Oil Co.
41
Example: Eastern Oil Co.
43
End of Chapter 13
44