A school tries three ways to teach the same topic — call them methods A, B and C — then gives every class the same test. Method A averages 10 out of 20, B averages 13, C averages 16. The averages differ, sure — but each class also has its own internal wobble: strong and weak pupils, a good day, a bad day. So the real question is not "are the three averages identical?" (they never are) but "are they farther apart than the ordinary wobble inside each class would explain?"
With two groups you already know the tool — the
One-way ANOVA tests a single, blunt claim. With
against the alternative that at least one group mean is different from the rest. Notice how weak the alternative is: it does not say which group, or how many, or in which direction — only that the flat "everyone's equal" picture fails somewhere. Holding on to that modesty will save you from the single most common misreading of an ANOVA result.
Picture the pupils' scores as dots. Two very different kinds of variation live in that picture:
If the methods truly do nothing, the group means will still drift apart a little just by luck — but only about as much as the within-group noise would predict. If a method really works, the group means fly apart faster than that noise can explain. So the whole test boils down to a single ratio,
A large
To turn that idea into arithmetic we split the total spread of all the data into the two
pieces above. Take every data point
In words: SST = SSB + SSW. Total wobble equals between-group wobble plus
within-group wobble, with nothing left over — a tidy Pythagorean-style identity. SSB
measures how far each group mean strays from the grand mean (weighted by group size
A raw sum of squares grows simply because you added more numbers, so before comparing SSB with SSW
we divide each by its degrees of freedom to get an average — a
mean square. With
There are
Under
Three pupils sit each method's test (small numbers so we can do it by hand). Scores out of 20:
Here
Within groups (SSW). Inside every method the scores sit at
Between groups (SSB). The group means sit at
The F-statistic.
The critical value of the F-distribution with
Faced with three groups, the tempting shortcut is: t-test A vs B, A vs C, and B vs C — three tests,
done. The problem is that error piles up. Each t-test at
so the chance of at least one false positive is
nearly three times the 5% you thought you signed up for. With
Three groups of dots (one colour each), with a thick dash marking each group mean and
a dashed line for the grand mean. The scatter inside each column — the
within-group noise, and so SSW — never changes. Drag the slider to pull the group
means apart: only the between-group spread (SSB) grows, and the live
Slide it to the left and the three clouds overlap into one blur: the means huddle at the grand mean,
ANOVA compares the spread between group means to the spread within groups. If the first dwarfs the second, the means are probably not all equal.
This is the classic ANOVA trap. A significant result tells you only that the flat "all equal" picture failed somewhere — not which group is the odd one out, nor how many differ, nor in which direction. To pinpoint the culprits you follow up with a post-hoc test (Tukey's HSD, Bonferroni-corrected pairwise tests, and friends) that compares pairs while controlling the error rate you were trying to protect in the first place.
Three more things to keep straight. F is a ratio: it's between-over-within,
so a big SSB alone proves nothing — it's only big relative to the noise that counts, and a
modest gap over tiny noise beats a huge gap over huge noise. ANOVA also leans on assumptions:
roughly equal group variances (homogeneity) and roughly normal
data within groups; wildly unequal spreads or heavy skew can mislead it, and then a different test
(Welch's ANOVA, Kruskal–Wallis) is safer. And
The whole machinery is the invention of Ronald A. Fisher, who in the 1920s was working at the Rothamsted agricultural station in England, drowning in field trials: which of a dozen fertilisers, barley strains, or manures gave the best yield across plots that varied wildly on their own? Comparing every pair by hand was hopeless and, as we've seen, statistically rotten. Fisher's leap was to partition the variance of the whole experiment into named, additive chunks — treatment vs error — and read the story from their ratio.
That ratio was later christened F in his honour (by George Snedecor), and the same idea grew into the entire field of experimental design: randomisation, blocking, factorial experiments. Modern science's habit of running controlled, multi-group experiments and letting an F-statistic arbitrate traces straight back to a statistician trying to grow better crops.