Académique Documents
Professionnel Documents
Culture Documents
Microsoft Excel
6th Edition
Module 6
Analysis of Variance
11-1
Learning Objectives
In this chapter, you learn:
11-2
Chapter Overview
DCOVA
Randomized
Block Design
(On Line Topic)
Tukey Multiple
Comparisons
Two-Way
ANOVA
Interaction
Effects
Tukey Multiple
Comparisons
11-3
DCOVA
11-4
Assumptions
Populations are normally distributed
Populations have equal variances
Samples are randomly and independently drawn
11-5
H0 : 1 2 3 c
11-6
One-Way ANOVA
DCOVA
H0 : 1 2 3 c
H1 : Not all j are the same
The Null Hypothesis is True
All Means are the same:
(No Factor Effect)
1 2 3
Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall
11-7
One-Way ANOVA
H0 : 1 2 3 c
DCOVA
(continued)
1 2 3
Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall
1 2 3
11-8
DCOVA
11-9
DCOVA
11-10
Variation Due to
Factor (SSA)
11-11
DCOVA
nj
SST ( Xij X)
Where:
j1 i 1
11-12
Total Variation
DCOVA
(continued)
SST ( X 11 X ) ( X 12 X ) ( X cn X )
R esponse, X
X
G ro u p 1
G ro u p 2
G ro u p 3
11-13
Among-Group Variation
DCOVA
SSA n j ( X j X)2
Where:
j1
11-14
Among-Group Variation
(continued)
c
SSA n j ( X j X)2
DCOVA
j 1
Variation Due to
Differences Among Groups
SSA
MSA
c 1
Mean Square Among =
SSA/degrees of freedom
11-15
Among-Group Variation
DCOVA
(continued)
SSA n 1 (X1 X) n 2 (X 2 X) n c (X c X)
2
R esponse, X
X3
X1
G ro u p 1
G ro u p 2
X2
G ro u p 3
11-16
Within-Group Variation
DCOVA
SSW
Where:
j 1
nj
i 1
( X ij X j )
11-17
Within-Group Variation
(continued)
c
SSW
j 1
nj
i 1
DCOVA
( X ij X j ) 2
SSW
MSW
nc
Mean Square Within =
SSW/degrees of freedom
j
Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall
11-18
Within-Group Variation
DCOVA
(continued)
R esponse, X
X1
G ro u p 1
G ro u p 2
X2
X3
G ro u p 3
11-19
SSA
MSA
c 1
SSW
MSW
nc
SST
MST
n 1
11-20
Degrees of
Freedom
Sum Of
Squares
Among
Groups
c-1
Within
Groups
n-c
SSW
Total
n1
SST
SSA
DCOVA
Mean Square
(Variance)
SSA
MSA =
c-1
SSW
MSW =
n-c
FSTAT =
MSA
MSW
c = number of groups
n = sum of the sample sizes from all groups
df = degrees of freedom
Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall
11-21
One-Way ANOVA
F Test Statistic
DCOVA
H0: 1= 2 = = c
H1: At least two population means are different
Test statistic
MSA
FSTAT
MSW
Degrees of freedom
df1 = c 1
(c = number of groups)
df2 = n c
11-22
Decision Rule:
Reject H if F
0
STAT > F,
otherwise do not reject
H0
Do not
reject H0
Reject H0
F
Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall
11-23
One-Way 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
0.05 significance level, is
there a difference in mean
distance?
Club 1
254
263
241
237
251
Club 2
234
218
235
227
216
DCOVA
Club 3
200
222
197
206
204
11-24
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
Distance
270
260
250
240
230
220
210
X2
200
X
X3
190
1
X1
2
Club
3
11-25
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
X1 = 249.2
n1 = 5
X2 = 226.0
n2 = 5
X3 = 205.8
n3 = 5
X = 227.0
n = 15
c=3
SSA = 5 (249.2 227)2 + 5 (226 227)2 + 5 (205.8 227)2 = 4716.4
SSW = (254 249.2)2 + (263 249.2)2 ++ (204 205.8)2 = 1119.6
2358.2
FSTAT
25.275
93.3
11-26
H0: 1 = 2 = 3
H1: j not all equal
MSA 2358.2
FSTAT
25.275
MSW
93.3
= 0.05
df1= 2
df2 = 12
Critical
Value:
Decision:
Reject H0 at = 0.05
F = 3.89
Conclusion:
There is evidence that
at least one j differs
Reject H
F = 3.89
FSTAT = 25.275 from the rest
= .05
Do not
reject H0
11-27
One-Way ANOVA
Excel Output
DCOVA
SUMMARY
Groups
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
Between
Groups
4716.4
2358.2
Within
Groups
1119.6
12
93.3
Total
5836.0
14
F
25.275
P-value
4.99E-05
F crit
3.89
11-28
ANOVA Assumptions
Normality
DCOVA
Homogeneity of Variance
11-29
ANOVA Assumptions
Levenes Test
DCOVA
H0: 21 = 22 = =2c
11-30
DCOVA
H0: 21 = 22 = 23
H1: Not all 2j are equal
Calculate Medians
Club 1
Club 2
Club 3
Club 1
Club 2
Club 3
237
216
197
14
11
241
218
200
10
251
227
204 Median
254
234
206
263
235
222
12
18
11-31
Count
Club 1
39
7.8
36.2
Club 2
35
17.5
Club 3
31
6.2
50.2
Pvalue
Source of Variation
Between Groups
Within Groups
Total
SS
df
6.4
415.6
12
422
14
MS
3.2 0.092
34.6
F crit
0.912 3.885
Since the
p-value is
greater
than 0.05
there is
insufficient
evidence
of a
difference
in the
variances
11-32
Chapter Summary
ANOVA assumptions
11-33