Académique Documents
Professionnel Documents
Culture Documents
Chap 11-1
Learning Objectives
After completing this chapter, you should be able to:
Recognize situations in which to use analysis of variance
(ANOVA)
Understand different analysis of variance designs
Evaluate assumptions of the model
Perform a single-factor ANOVA and interpret the results
Conduct and interpret a Tukey-Kramer post-analysis to
determine which means are different
Analyze two-factor analysis of variance tests
Conduct and interpret a Tukey-Kramer post-analysis procedure
to determine which factors are different
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-2
categories/classifications
Other factors contains two or more levels or groups or
categories/classifications
Experimental design: the plan used to test the hypothesis
Chap 11-3
One-Factor ANOVA
Also known as Completely Randomized
Chap 11-4
Assumptions
Populations are normally distributed
Chap 11-5
difference of means
Each t test contains Type 1 error
The total Type 1 error with k pairs of means is 1- (1 - ) k
If there are 5 means and you use = .05
Must perform 10 comparisons
Type I error is 1 (.95) 10 = .40
40% of the time you will reject the null hypothesis of equal
Chap 11-6
H0 : 1 2 3 c
All population means are equal
i.e., no treatment effect (no variation in means among groups)
Chap 11-7
Hypotheses: One-Factor
ANOVA
H0 : 1 2 3 c
H1 : Not all j are the same
All Means are the same:
The Null Hypothesis is True
(No Group Effect)
1 2 3
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-8
Hypotheses: One-Factor
ANOVA
H 0 : 1 2 3 c
or
1 2 3
1 2 3
Chap 11-9
df
SS
MS
(Variance)
P-value
Between
Groups
c-1
SSA
MSA
P(X=F)
Within
Groups
n-c
SSW
MSW
Total
n-1
SST =
SSA+SSW
F-Ratio
MSA
MSW
c = number of groups
n = sum of the sample sizes from all groups
df = degrees of freedom
Chap 11-10
One-Factor ANOVA
Test Statistic
H0: 1= 2 = = c
H1: At least two population means are different
Test statistic
MSA
F
MSW
(c = number of groups)
df2 = n c
Chap 11-11
One-Factor ANOVA
Test Statistic
The F statistic is the ratio of the among variance to the
within variance
The ratio must always be positive
df1 = c -1 will typically be small
df2 = n - c will typically be large
Decision Rule:
Reject H0 if F > FU,
otherwise do not reject H0
= .05
Do not
reject H0
Reject H0
FU
Chap 11-12
One-Factor ANOVA
F Test Example
You want to see if three different
golf clubs yield different
distances. You randomly select
five measurements from trials on
an automated driving machine
for each club. At the .05
significance level, is there a
difference in mean driving
distance?
Club 1
254
263
241
237
251
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
Chap 11-13
One-Way ANOVA
Example
Distance
270
Club 1
254
263
241
237
251
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
260
250
240
230
220
X 1
X2
210
200
190
2
Club
X
X3
3
Chap 11-14
Count
Sum
Average
Variance
Club 1
1246
249.2
108.2
Club 2
1130
226
77.5
Club 3
1029
205.8
94.2
ANOVA
Source of
Variation
SS
df
MS
P-value
25.275
4.99E-05
Between
Groups
4716.4
2358.2
Within
Groups
1119.6
12
93.3
Total
5836.0
14
F crit
3.89
Chap 11-15
Chap 11-16
range
1= 2
Chap 11-17
Critical Range QU
MSW 1
1
2 n j n j'
where:
QU = Value from Studentized Range Distribution with c
and n - c degrees of freedom for the desired level
of (see appendix E.9 table)
MSW = Mean Square Within
nj and nj = Sample sizes from groups j and j
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-18
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
QU 3.77
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-19
MSW 1 1
93.3 1 1
3.77
16.285
2 n j n j'
2 5 5
4. Compare:
5. All of the absolute mean differences x x 23.2
1
2
are greater than critical range.
Therefore there is a significant
x1 x 3 43.4
difference between each pair of
x 2 x 3 20.2
means at 5% level of significance.
PhStat does all the calculations for you
but you must input the Q value
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-20
Tukey-Kramer in PHStat
Chap 11-21
ANOVA Assumptions
Levenes Test
Tests the assumption that the variances of each
Chap 11-22
Two-Factor ANOVA
Examines the effect of
Two factors of interest on the dependent
variable
e.g., Percent carbonation and line speed on soft
two factors
e.g., Does the effect of one particular carbonation
Chap 11-23
Two-Factor ANOVA
Assumptions
Populations are normally distributed
Populations have equal variances
Independent random samples are selected
Chap 11-24
Two-Factor ANOVA
Sources of Variation
Two Factors of interest: A and B
r = number of levels of factor A
c = number of levels of factor B
n/ = number of replications for each cell
n = total number of observations in all cells
(n = rcn/)
Xijk = value of the kth observation of level i
of factor A and level j of factor B
Statistics for Managers Using Microsoft Excel, 5e
Chap 11-25
Degrees of
Freedom
Sum of
Squares
Mean
Squares
F
Statistic
p-value
Sample
Factor A
(Row)
r1
SSA
MSA =
SSA/(r 1)
MSA/
MSE
f (FA)
Columns
Factor B
c1
SSB
MSB =
SSB/(c 1)
MSB/
MSE
f (FB)
MSAB/
MSE
f (FA&B)
Interaction
(AB)
(r 1)(c 1)
SSAB
MSAB =
SSAB/ [(r 1)(c 1)]
Within
Error
rc n 1)
SSE
MSE =
SSE/[rc n 1)]
Total
rc n 1
SST
Chap 11-26
Two-Factor ANOVA
With Replication
As production manager,
Chap 11-28
Summary Table
Source of
Variation
Sample
(Boxes)
Columns
(Machines)
Degrees of Sum of
Mean
Freedom
Squares Square
P-Value
5-1=4
7.4714
1.8678
3.6868
3-1=2
106.298
53.149
104.908 1.52E-09
Interaction (5-1)(3-1) = 8
9.7032
1.2129
7.5994
.5066
Within
(Error)
53(2-1)=15
Total
352 -1 = 29 131.0720
2.3941
.0277
.0690
Chap 11-29
MSW
cn '
Chap 11-30
Chapter Summary
Described one-factor analysis of variance
ANOVA assumptions
ANOVA test for difference in c means
The Tukey-Kramer procedure for multiple comparisons
observations
The Tukey-Kramer procedure for multiple comparisons for both
Chap 11-32