Anova
Anova
Anova
Source SS df MS F p
Between
Within
Total
One-Way ANOVA
• The M.Pharm classroom is divided into three rows:
front, middle, and back
• The instructor noticed that the further the students were
from him, the more likely they were to miss class or
used an instant messenger during class
• He wanted to see if the students further away did worse
on the exams
One-Way ANOVA
The ANOVA doesn’t test that one mean is less than
another, only whether they’re all equal or at least
one is different.
H :
0 F M B
One-Way ANOVA
• A random sample of the students in each row
was taken
• The score for those students on the exam was
recorded
– Front: 82, 83, 97, 93, 55, 67, 53
– Middle: 83, 78, 68, 61, 77, 54, 69, 51, 63
– Back: 38, 59, 55, 66, 45, 52, 52, 61
One-Way ANOVA
The summary statistics for the grades of each row are
shown in the table below
Sample size 7 9 8
n x n x n x n x
x x
i i
i 1 1 1 2 2 k k
n n n
k
n
i 1
i 1 2 k
One-Way ANOVA
• Grand Mean for our example is 65.08
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
One-Way ANOVA
The Between Group Variation for our example is
SS(B)=1902
SS B 1900.8376 1902
One-Way ANOVA
• Within Group Variation, SS(W)
– The Within Group Variation is the weighted total of the
individual variations
– The weighting is done with the degrees of freedom
– The df for each sample is one less than the sample size
for that sample.
One-Way ANOVA
Within Group Variation
SS W df s
k
2
i i
i 1
SS W df s df s df s
1 1
2
2
2
2 k
2
k
One-Way ANOVA
SS W 3386.31 3386
One-Way ANOVA
• After filling in the sum of squares, we have …
Source SS df MS F p
Between 1902
Within 3386
Total 5288
One-Way ANOVA
• Filling in the degrees of freedom gives this …
Source SS df MS F p
Between 1902 2
Within 3386 21
Total 5288 23
One-Way ANOVA
• 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)
– They are an average squared deviation from the mean and
are found by dividing the variation by the degrees of
freedom
– MS = SS / df
Variation
Variance
df
One-Way ANOVA
• MS(B) = 1902 / 2 = 951.0
• MS(W) = 3386 / 21 = 161.2
• MS(T) = 5288 / 23 = 229.9
– Notice that the MS(Total) is NOT the sum of
MS(Between) and MS(Within).
One-Way ANOVA
• Completing the MS gives …
Source SS df MS F p
Source SS df MS F p
Source SS df MS F p