Professional Documents
Culture Documents
Statistics For Managers Using Microsoft Excel: 6 Global Edition
Statistics For Managers Using Microsoft Excel: 6 Global Edition
Microsoft Excel
6th Global Edition
Chapter 11
Analysis of Variance
Randomized
One-Way Block Design Two-Way
ANOVA (On Line Topic) ANOVA
F-test
Tukey Multiple Interaction
Tukey- Comparisons Effects
Kramer
Multiple Tukey Multiple
Comparisons Comparisons
Levene Test
For
Homogeneity
of Variance
Copyright ©2011 Pearson Education 11-3
General ANOVA Setting
DCOVA
population
Observe effects on the dependent variable
Are the groups the same?
Assumptions
Populations are normally distributed
μ1 μ 2 μ 3
Copyright ©2011 Pearson Education 11-8
One-Way ANOVA DCOVA
(continued)
H0 : μ1 μ2 μ3 μc
H1 : Not all μ j are the same
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
Copyright ©2011 Pearson Education 11-9
Partitioning the Variation
DCOVA
DCOVA
SST = SSA + SSW
SST ( Xij X) 2
j1 i 1
Where:
SST = Total sum of squares
c = number of groups or levels
nj = number of observations in group j
Xij = ith observation from group j
X = grand mean (mean of all data values)
Copyright ©2011 Pearson Education 11-13
Total Variation DCOVA
(continued)
2 2 2
SST ( X 11 X ) ( X 12 X ) ( X cn X )
c
Response, X
SSA
Variation Due to
Differences Among Groups MSA
c 1
Mean Square Among =
SSA/degrees of freedom
i j
SSA n1 (X1 X) n 2 (X 2 X) n c (X c X)
2 2 2
Response, X
X3
X2 X
X1
j1 i 1
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
Copyright ©2011 Pearson Education 11-18
Within-Group Variation
(continued)
nj
DCOVA
c
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
Copyright ©2011 Pearson Education 11-19
Within-Group Variation
DCOVA
(continued)
Response, X
X3
X2
X1
SST
MST Mean Square Total
n 1 (d.f. = n-1)
Copyright ©2011 Pearson Education 11-21
One-Way ANOVA Table
DCOVA
c = number of groups
n = sum of the sample sizes from all groups
df = degrees of freedom
Copyright ©2011 Pearson Education 11-22
One-Way ANOVA
F Test Statistic DCOVA
H0: μ1= μ2 = … = μc
H1: At least two population means are different
Test statistic MSA
FSTAT
MSW
MSA is mean squares among groups
MSW is mean squares within groups
Degrees of freedom
df1 = c – 1 (c = number of groups)
df2 = n – c (n = sum of sample sizes from all populations)
Copyright ©2011 Pearson Education 11-23
Interpreting One-Way ANOVA
F Statistic DCOVA
Decision Rule:
Reject H if F
0 STAT > Fα,
otherwise do not reject
0
H0 Do not
reject H0
Reject H0
Fα
Copyright ©2011 Pearson Education 11-24
One-Way ANOVA
F Test Example DCOVA
1 2 3
Copyright ©2011 Pearson Education Club 11-26
One-Way ANOVA Example
Computations DCOVA
H 0: μ 1 = μ 2 = μ 3 Test Statistic:
H1: μj not all equal
MSA 2358.2
= 0.05 FSTAT 25.275
MSW 93.3
df1= 2 df2 = 12
Critical Decision:
Value:
Reject H0 at = 0.05
Fα = 3.89
Conclusion:
= .05
There is evidence that
0 Do not Reject H 0
at least one μj differs
reject H0
FSTAT = 25.275 from the rest
Fα = 3.89
Copyright ©2011 Pearson Education 11-28
One-Way ANOVA
Excel Output DCOVA
SUMMARY
Groups Count Sum Average Variance
Club 1 5 1246 249.2 108.2
Club 2 5 1130 226 77.5
Club 3 5 1029 205.8 94.2
ANOVA
Source of
SS df MS F P-value F crit
Variation
Between
4716.4 2 2358.2 25.275 4.99E-05 3.89
Groups
Within
1119.6 12 93.3
Groups
Total 5836.0 14
μ1= μ2 μ3 x
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.10 table)
MSW = Mean Square Within
nj and nj’ = Sample sizes from groups j and j’
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 x1 x 2 23.2
are greater than 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 can conclude
that the mean distance for club 1 is greater
than club 2 and 3, and club 2 is greater than
club 3.
Copyright ©2011 Pearson Education 11-33
ANOVA Assumptions
DCOVA
Total Variation: r c n
SST ( Xijk X) 2
i1 j1 k 1
Factor A Variation: r
SSA cn ( Xi.. X)
2
i 1
Factor B Variation: c
SSB rn ( X. j. X)2
j1
Interaction Variation:
r c
SSAB n ( Xij. Xi.. X.j. X)2
i1 j1
i 1 j1 k 1
where: X
i1 j 1 k 1
ijk DCOVA
X Grand Mean
c n
rcn
X
j1 k 1
ijk
X ijk
X. j. i1 k 1
Mean of jth level of factor B (j 1, 2, ..., c)
rn
Xijk
n
Xij.
r = number of levels of factor A
Mean of cell ij c = number of levels of factor B
k 1 n n’ = number of replications in each cell
SSB
MSB Mean square factor B
c 1
SSAB
MSAB Mean square interaction
(r 1)(c 1)
SSE
MSE Mean square error
rc(n'1)
Copyright ©2011 Pearson Education 11-45
Two-Way ANOVA:
The F Test Statistics DCOVA
MSA MSA
Factor A SSA r–1
= SSA /(r – 1) MSE
MSB MSB
Factor B SSB c–1
= SSB /(c – 1) MSE
AB MSAB MSAB
SSAB (r – 1)(c – 1)
(Interaction) = SSAB / (r – 1)(c – 1) MSE
MSE =
Error SSE rc(n’ – 1)
SSE/rc(n’ – 1)
Total SST n–1
Factor B Level 1
Mean Response
Mean Response
Factor B Level 1
Factor B Level 3
Factor B Level 2
Factor B Level 2
Factor B Level 3
X 2.. X3..
Copyright ©2011 Pearson Education 11-50
Multiple Comparisons:
The Tukey Procedure DCOVA
Online Topic
r
SSBL c ( Xi. X) 2
i1
Where:
c = number of groups
r = number of blocks
Xi. = mean of all values in block i
X = grand mean (mean of all data values)
Copyright ©2011 Pearson Education 11-57
Partitioning the Variation
DCOVA
Total variation can now be split into three parts:
SSBL
MSBL Mean square blocking
r 1
SSA
MSA Mean square among groups
c 1
SSE
MSE Mean square error
(r 1)(c 1)
Total SST rc - 1
c = number of populations rc = total number of observations
r = number of blocks df = degrees of freedom
Copyright ©2011 Pearson Education 11-60
Testing For Factor Effect
DCOVA
H 0 : μ .1 μ .2 μ .3 μ .c
H1 : Not all population means are equal
MSA
FSTAT =
MSE Main Factor test: df1 = c – 1
df2 = (r – 1)(c – 1)
H 0 : μ1. μ 2. μ 3. ... μ r.
H1 : Not all block means are equal
MSBL
FSTAT =
MSE Blocking test: df1 = r – 1
df2 = (r – 1)(c – 1)