Documente Academic
Documente Profesional
Documente Cultură
Day 10
Session-I
Learning Objectives
Assumptions
Populations are normally distributed
H0 : µ1 = µ2 = µ3 = L = µc
All population means are equal
i.e., no treatment effect (no variation in means among
groups)
H1 : Not all of the population means are the same
At least one population mean is different
i.e., there is a treatment effect
Does not mean that all population means are different
(some pairs may be the same)
One-Factor ANOVA
H0 : µ1 = µ2 = µ3 = L = µc
H1 : Not all µ j are the same
µ1 = µ2 = µ3
or
µ1 = µ2 ≠ µ3 µ1 ≠ µ2 ≠ µ3
Total Variation
(continued)
Among-Group Variation
(continued)
c
SSA = ∑ n j ( X j − X)2
j=1
µi µj
SSA = n1 ( x1 − x )2 + n 2 ( x 2 − x )2 + ... + nc ( x c − x )2
Response, X
X3
X2 X
X1
Within-Group Variation
SST = SSA + SSW
c nj
SSW = ∑ ∑ ( Xij − X j )2
j=1 i=1
Where:
c nj
SSW = ∑ ∑ ( Xij − X j )2
j=1 i=1
µj
Within-Group Variation
(continued)
Response, X
X3
X2
X1
SSA
MSA =
c −1
SSW
MSW =
n−c
SST
MST =
n −1
Source of SS df MS F ratio
Variation (Variance)
Among SSA MSA
SSA c-1 MSA = F=
Groups c-1 MSW
Within SSW
SSW n-c MSW =
Groups n-c
SST =
Total n-1
SSA+SSW
c = number of groups
n = sum of the sample sizes from all groups
df = degrees of freedom
Degrees of freedom
df1 = c – 1 (c = number of groups)
df2 = n – c (n = sum of sample sizes from all populations)
Decision Rule:
Reject H0 if F > FU, α = .05
otherwise do not
reject H0 0 Do not Reject H0
reject H0
FU
1 2 3
Club
Critical Decision:
Value:
Reject H0 at α = 0.05
FU = 3.89
α = .05 Conclusion:
There is evidence that
0 Do not Reject H0 at least one µj differs
reject H0 F = 25.275
FU = 3.89 from the rest
Numerical Problems
Ref: 11-28. Page no. 604 The following data show the
number of claims processed per day for a group of
four insurance company employees observed for a
number of days. Test the hypothesis that the
employees’ mean claims per day are all the same.
Use the 0.05 level of significance.
Employee 1 15 17 14 12
Employee 2 12 10 13 17
Employee 3 11 14 13 15 12
Employee 4 13 12 12 14 10 9
Day 10
Session-II
µ1= µ2 µ3 x
MSW 1 1
Critical Range = QU +
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’
QU = 3.77
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.
r
SSBL = c ∑ ( Xi. − X)2
i=1
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)
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 = sum of the sample sizes from all populations
r = number of blocks df = degrees of freedom
MSBL
F=
MSE
Blocking test: df1 = r – 1
df2 = (r – 1)(c – 1)
Reject H0 if F > FU
MSA
F=
MSE
Main Factor test: df1 = c – 1
df2 = (r – 1)(c – 1)
Reject H0 if F > FU
µ1= µ2 µ3 x
MSE
Critical Range = Qu
r
Compare:
Is x.j − x.j' > Critical Range ? x.1 − x .2
If the absolute mean difference x.1 − x .3
is greater than the critical range
then there is a significant x.2 − x .3
difference between that pair of
means at the chosen level of etc...
significance.
Two-Way ANOVA
(continued)
Assumptions
Two-Way ANOVA
Sources of Variation (continued)
Total Variation: r c n′
SST = ∑∑∑ ( Xijk − X)2
i=1 j =1 k =1
Factor A Variation: r
SSA = cn′∑ ( Xi.. − X)2
i=1
Factor B Variation:
c
SSB = rn′∑ ( X. j. − X)2
j =1
Interaction Variation:
r c
SSAB = n′∑∑ ( Xij. − Xi.. − X.j. + X)2
i =1 j=1
where: ∑∑∑ X
i=1 j=1 k =1
ijk
X= = Grand Mean
c n′
rcn′
∑∑ X
j=1 k =1
ijk
∑∑ X ijk
X. j. = i =1 k =1
= Mean of jth level of factor B (j = 1, 2, ..., c)
rn′
n′ Xijk
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)
Two-Way ANOVA
Summary Table
Source of Sum of Degrees of Mean F
Variation Squares Freedom Squares Statistic
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
Examples:
Interaction vs. No Interaction
Interaction is
No interaction:
present:
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.. − X 3..
Multiple Comparisons:
The Tukey Procedure
Critical Range for Factor A:
MSE
Critical Range = QU
c n'
(where Qu is from Table E.10 with r and rc(n’–1) d.f.)
MSE
Critical Range = QU
r n'
(where Qu is from Table E.10 with c and rc(n’–1) d.f.)