Anova Test
Anova Test
Analysis of Variance
One-Way ANOVA
Source SS df MS F p
Between
Within
Total
Grand Mean
The grand mean is the average of all the values when the
factor is ignored
nx +n x + +n x
k
n x
x= i =1
i i
x= 1 1 2 2 k k
n +n + +n
k
n
i =1
i 1 2 k
SS ( B ) = n ( x − x )
k 2
i i
i =1
SS ( B ) = n ( x − x ) + n ( x − x ) + + n (x − x )
2 2 2
1 1 2 2 k k
SS ( B ) = 1900.8376 1902
Within Group Variation, SS(W)
SS (W )
k
= df s i
2
i
i =1
SS (W ) = df s + df s +
1
2
1 2
2
2
+ df s
k
2
k
SS (W ) = 3386.31 3386
❑ The between group df is one less than the number of
groups
❑ We have three groups, so df(B) = 2
❑ df(W) = 6 + 8 + 7 = 21
Source SS df MS F p
Between 1902 2
Within 3386 21
Total 5288 23
Variances
◼ The variances are also called the Mean of the
Squares and abbreviated by MS, often with an
accompanying variable MS(B) or MS(W)
◼ MS = SS / df
Variation
Variance =
df
❖ MS(B) = 1902 / 2 = 951.0
❖ This works for the sum of squares SS(Total), but not the
mean square MS(Total)
F = MS(B) / MS(W)
Source SS df MS F p
Source SS df MS F p
Total 39 2257.1
INTERPRETATION of ANOVA:
How much of the variance in height is explained by treatment group?
R2=“Coefficient of Determination” = SSB/TSS = 196.5/2275.1=9%
Coefficient of Determination
SSB SSB
R =2
=
SSB + SSE SST