One-way ANOVA, step by step
6 min read
Short answer
ANOVA tests whether group means are all equal by comparing between-group variation with within-group variation: . If the group means differ much more than the scatter inside groups, is large and you reject equal means.
The decomposition
Total variation splits exactly: . Divide each by its degrees of freedom ( and ) to get mean squares, then take their ratio.
After a significant F
ANOVA says that some means differ, not which. Follow with post-hoc comparisons (for example Tukey's test) that control the overall error rate.
Worked example
Groups A: ; B: ; C: . Test equal means at 5%.
Group means , grand mean . . Within each group , so . , : , , . The 5% critical value for is , so reject: the means are not all equal.
Try it yourself
How many degrees of freedom for the numerator and denominator with 4 groups and 20 observations in total?
Show the answer
Numerator ; denominator .
Keep going with practice
Vidi's variance lessons are the foundation: ANOVA is a bookkeeping of variance.