LECTURE’S NOTE
FIRRA ROSARIAWARI
ONE-FACTOR
ANALYSIS OF VARIANCE
4
Brand
Source DF SS MS F P
Brand 4 1174.8 293.7 7.95 0.000
Error 45 1661.7 36.9
Total 49 2836.5
The variation between the group means and the grand mean
is larger than the variation within the groups.
“ANALYSIS OF
VARIANCE”
The variation between the group means and the grand mean
is smaller than the variation within the groups.
ANALYSIS OF VARIANCE
• A division of the overall variability in data values in
order to compare means.
• Overall (or “total”) variability is divided into two
components:
• the variability “between” groups, and
• the variability “within” groups
• Summarized in an “ANOVA” table.
ANOVA TABLE FOR
STUDY #1
“F” means “F test statistic”
One-way Analysis of Variance
Source DF SS MS F P
Factor 2 2510.5 1255.3 93.44 0.000
Error 12 161.2 13.4
Total 14 2671.7
P-Value
Source DF SS MS F P
Factor 2 2510.5 1255.3 93.44 0.000
Error 12 161.2 13.4
Total 14 2671.7
m X m1 X m2 X mnm X m
Grand Mean X
GENERAL ANOVA
TABLE
One-way Analysis of Variance
Source DF SS MS F P
Factor m-1 SS(Between) MSB MSB/MSE
Error n-m SS(Error) MSE
Total n-1 SS(Total)
From F-distribution
with m-1 numerator and
n-m denominator d.f.
MSB = SS(Between)/(m-1)
n-1 = (m-1) + (n-m) MSE = SS(Error)/(n-m)
Source DF SS MS F P
Factor 2 2510.5 1255.3 93.44 0.000
Error 12 161.2 13.4
Total 14 2671.7
1255.3 = 2510.5/2
13.4 = 161.2/12
14 = 2 + 12 93.44 = 1255.3/13.4
2671.7 = 2510.5 + 161.2
TOTAL SUM OF
SQUARES SS(TO)
ni
SS (TO ) X X
m
2
Definition: ij
i 1 j 1
i 1 j 1
m ni m ni
SS (TO ) X ij2 2 X X ij nX 2
i 1 j 1 i 1 j 1
m ni
Shortcut: SS (TO ) X ij2 nX 2
i 1 j 1
TREATMENT SUM OF
SQUARES SS(T)
ni
SS (T ) X i X
m
2
Definition:
i 1 j 1
SS (T ) ni X i X ni X i2 2 X i X X 2
m m
2
i 1 i 1
m m m
SS (T ) ni X 2 X ni X i X
2
i
2
n i
i 1 i 1 i 1
m
Shortcut: SS (T ) ni X i2 nX 2
i 1
ERROR SUM OF
SQUARES SS(E)
ni
SS ( E ) X X
m
2
Definition: ij i
i 1 j 1
Shortcut: SS ( E ) SS (TO ) SS (T )
SS(TO) = SS(T) + SS(E)
ni ni
SS (TO ) X ij X X ij X i X i X
m m
2 2
i 1 j 1 i 1 j 1
ni ni
X ij X i 2 X ij X i X i X
m m
2
i 1 j 1 i 1 j 1
ni
X i X
m
2
i 1 j 1
SS (TO ) SS (T ) SS ( E )
Source DF SS MS F P
Factor 2 80.1 40.1 0.46 0.643
Error 12 1050.8 87.6
Total 14 1130.9
Source DF SS MS F P
Factor 2 1723.8 861.9 61.69 0.000
Error 117 1634.8 14.0
Total 119 3358.6