Академический Документы
Профессиональный Документы
Культура Документы
Analysis of Variance
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 1
Chapter Overview
DCOVA
Analysis of Variance (ANOVA)
Tukey-
Kramer
Multiple
Comparisons
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 2
General ANOVA Setting
DCOVA
population.
Observe effects on the dependent variable.
Are the groups the same?
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 3
One-Way Analysis of Variance
DCOVA
Assumptions:
Populations are normally distributed.
selected.
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 4
Hypotheses of One-Way ANOVA
DCOVA
H0 : μ1 μ2 μ3 μc
All population means are equal.
i.e., no factor effect (no variation in means among
groups.)
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 5
One-Way ANOVA
H0 : μ1 μ2 μ3 μc DCOVA
μ1 μ 2 μ 3
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 6
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 μ1 μ2 μ3
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 7
Partitioning the Variation
DCOVA
Total variation can be split into two parts:
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 8
Partitioning the Variation
(continued)
DCOVA
SST = SSA + SSW
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 9
Partition of Total Variation
DCOVA
Total Variation (SST)
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 10
Total Sum of Squares
DCOVA
SST ( Xij X) 2
j1 i1
Where:
SST = Total sum of squares
c = number of groups or levels
nj = number of values in group j
Xij = ith observation from group j
X = grand mean (mean of all data values)
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 11
Total Variation DCOVA
(continued)
2 2 2
SST ( X 11 X ) ( X 12 X ) ( X cn X )
c
Response, X
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 12
Among-Group Variation
DCOVA
j1
Where:
SSA = Sum of squares among groups
c = number of groups
nj = sample size from group j
Xj = sample mean from group j
X = grand mean (mean of all data values)
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 13
Among-Group Variation
(continued)
c
DCOVA
SSA n j ( X j X) 2
j1
Variation Due to SSA
Differences Among MSA
Groups. c 1
Mean Square Among =
SSA/degrees of freedom.
i j
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 14
Among-Group Variation
DCOVA
(continued)
SSA n1 (X1 X) n 2 (X 2 X) n c (X c X)
2 2 2
Response, X
X3
X2 X
X1
j1 i1
Where:
SSW = Sum of squares within groups
c = number of groups
nj = sample size from group j
Xj = sample mean from group j
Xij = ith observation in group j
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 16
Within-Group Variation
(continued)
DCOVA
c nj
SSW ( Xij X j ) 2
j1 i1
SSW
Summing the variation
MSW
within each group and then
adding over all groups. nc
Mean Square Within =
SSW/degrees of freedom.
μj
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 17
Within-Group Variation
DCOVA
(continued)
Response, X
X3
X2
X1
SST
MST Mean Square Total
n 1 (d.f. = n-1).
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 19
One-Way ANOVA Table
DCOVA
c = number of groups
n = sum of the sample sizes from all groups
df = degrees of freedom
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 20
One-Way ANOVA
F Test Statistic DCOVA
H0: μ1= μ2 = … = μc
H1: At least two population means are different
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 21
Interpreting One-Way ANOVA
F Statistic DCOVA
Decision Rule:
Reject H0 if FSTAT > Fα,
otherwise do not reject 0 Do not Reject H0
H0. reject H0
Fα
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 22
One-Way ANOVA
DCOVA
F Test Example
You want to see if three Club 1 Club 2 Club 3
different golf clubs yield 254 234 200
different distances traveled 263 218 222
by ball struck on an 241 235 197
automated driving machine. 237 227 206
You randomly select five 251 216 204
measurements from trials on
an automated driving
machine for each club.
At the 0.05 significance
level, is there a difference in
mean distance?
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 23
Excel, JMP, & Minitab Scatter Plots
DCOVA
Distance vs Club Group
270
260
250
Distance
240
230
220
210
200
190
0 1 2 3 4
Club Group
260
250
240
Distance
230
220
210
200
190
1.0 1.5 2.0 2.5 3.0
Club Group
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 24
One-Way ANOVA Example:
Scatter Plot Distance DCOVA
270
Club 1 Club 2 Club 3 •
260
254 234 200 ••
263 218 222 250 X1
241 235 197 240 •
• ••
237 227 206 230
251 216 204 • X2 X
220 •
••
210
•• X3
x1 249.2 x 2 226.0 x 3 205.8 200 ••
x 227.0 190
1 2 3
Club
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 25
One-Way ANOVA Example
Computations DCOVA
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 26
One-Way ANOVA Example
Solution DCOVA
H0: μ1 = μ2 = μ3 Test Statistic:
H1: μj not all equal
MSA 2,358.2
= 0.05 FSTAT 25.275
df1= 2 df2 = 12 MSW 93.3
Critical Decision:
Value:
Reject H0 at = 0.05.
Fα = 3.89
= .05 Conclusion:
There is evidence that
0 Do not Reject H0 at least one μj differs
reject H0
F0.05 = 3.89 from the rest.
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 27
One-Way ANOVA Excel, Minitab, & JMP
Output DCOVA
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 28
You Must Make Three Assumptions About
Your Data To Use The ANOVA F Test
DCOVA
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 29
When the ANOVA F Test Is
Statistically Significant DCOVA
μ1= μ2 μ3 x
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 31
Tukey-Kramer Critical Range
DCOVA
MSW 1 1
Critical Range Q α
2 n j n j'
where:
Qα = Upper Tail Critical Value from Studentized
Range Distribution with c and n - c degrees
of freedom (see appendix E.7 table)
MSW = Mean Square Within
nj and nj’ = Sample sizes from groups j and j’
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 32
The Tukey-Kramer Procedure:
Example DCOVA
1. Compute absolute mean
Club 1 Club 2 Club 3 differences:
254 234 200
263 218 222 x1 x 2 249.2 226.0 23.2
241 235 197 x1 x 3 249.2 205.8 43.4
237 227 206
251 216 204 x 2 x 3 226.0 205.8 20.2
Q α 3.77
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 33
The Tukey-Kramer Procedure:
Example (continued)
MSW 1 1 93.3 1 1
Critical Range Q α 3.77 16.285
2 n j n j' 2 5 5
4. Compare:
5. All of the absolute mean differences
are greater than the critical range. x1 x 2 23.2
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.
ALWAYS LEARNING Copyright © 2019, 2015, 2012 Pearson Education, Inc. Slide 34