Академический Документы
Профессиональный Документы
Культура Документы
Analysis of Variance
Assumptions
Populations are normally distributed
Populations have equal variances
Samples are randomly and independently drawn
Copyright 2015, 2012, 2009 Pearson Education, Inc.
H0 : 1 2 3 c
One-Way ANOVA
H0 : 1 2 3 c
DCOVA
1 2 3
Copyright 2015, 2012, 2009 Pearson Education, Inc.
One-Way ANOVA
(continued)
DCOVA
H0 : 1 2 3 c
H1 : Not all j are equal
When The Null Hypothesis is NOT true
At least one of the means is different
(Factor Effect is present)
or
1 2 3
Copyright 2015, 2012, 2009 Pearson Education, Inc.
1 2 3
Chapter 11, Slide 5
DCOVA
DCOVA
Variation Due to
Factor (SSA)
DCOVA
nj
SST ( Xij X)
Where:
j1 i 1
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
Among-Group Variation
DCOVA
SSA n j ( X j X)2
Where:
j1
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
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
Within-Group Variation
DCOVA
SSW
j 1
nj
i 1
( Xij X j )
Where:
Within-Group Variation
(continued)
c
SSW
j1
nj
i 1
DCOVA
( Xij X j )2
SSW
MSW
nc
Mean Square Within =
SSW/degrees of freedom
j
Copyright 2015, 2012, 2009 Pearson Education, Inc.
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
SSA
MSA
c 1
SSW
MSW
nc
SST
MST
n 1
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 2015, 2012, 2009 Pearson Education, Inc.
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
Decision Rule:
Reject H if F
0
STAT > F,
otherwise do not reject
H0
Do not
reject H0
Reject H0
F
Chapter 11, Slide 20
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
DCOVA
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
270
260
250
240
230
220
DCOVA
210
X1
X2
200
X
X3
190
1
2
Club
3
Chapter 11, Slide 22
Club 2
234
218
235
227
216
Club 3
200
222
197
206
204
DCOVA
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
H0: 1 = 2 = 3
H1: j not all equal
= 0.05
df1= 2
df2 = 12
Critical
Value:
F = 3.89
= .05
Do not
reject H0
DCOVA
Reject H0
F0.05 = 3.89
MSA 2358.2
FSTAT
25.275
MSW
93.3
Decision:
Reject H0 at = 0.05
Conclusion:
There is evidence that
at least one j differs
from the rest
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
0.0000
F crit
3.89
Test Statistic
Rejection Rule
where
H 0 : i j
H a : i j
xi xj
Reject H0 ifxi xj
> LSD
LSD t / 2 MSE( 1n 1n )
i
j
Example
Club 1
254
263
241
237
251
Club 2
234
218
235
227
216
DCOVA
Club 3
200
222
197
206
204
Example
(continued)
DCOVA
1
1
1 1
MSW
5 5
j n j'
4. Compare:
5. All of the absolute mean differences
x1 x 2 23.2
are greater than the critical range.
Therefore there is a significant
x1 x 3 43.4
difference between each pair of
means at 5% level of significance.
x 2 x 3 20.2
Thus, with 95% confidence we conclude that
the mean distance for club 1 is greater than
club 2 and 3, and club 2 is greater than club 3.
Copyright 2015, 2012, 2009 Pearson Education, Inc.
ANOVA Assumptions
Normality
DCOVA
Homogeneity of Variance
ANOVA Assumptions
Levenes Test
DCOVA
H0: 21 = 22 = =2c
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
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
F crit
0.912 3.885
34.6
Since the
p-value is
greater
than 0.05
there is
insufficient
evidence
of a
difference
in the
variances
Chapter 11, Slide 33