On this page
Three groups, three averages, and they are not the same. Is the gap real, or just the noise any small sample gives? One-way ANOVA answers with one number, F. Here we build it by hand from twelve marks.
What is one-way ANOVA?
Analysis of variance (ANOVA) is the procedure for testing hypotheses about means when you have several populations, as the NIST/SEMATECH e-Handbook of Statistical Methods defines it. It is one-way when there is a single factor, such as one teaching method, set at several levels. The handbook assumes the sampled populations are normally distributed.
The null hypothesis is that all group means are equal; the alternative is that they are not all the same. The alternative does not say which group differs.
Why study variance to learn about means? Spread comes in two kinds:
Between-group variation: how far each group's mean sits from the grand mean.
Within-group variation: how far each value sits from its own group's mean. This is the noise.
When the null hypothesis is true, both estimate the same noise and their ratio should be close to 1, according to the NIST page on the ANOVA table. When the means differ, the between-group part grows.
How is the F statistic calculated?
With k groups and N values in total, the same NIST ANOVA table page builds F in three steps:
Between-group mean square = between-group sum of squares / (k - 1).
Within-group mean square = within-group sum of squares / (N - k).
F = between-group mean square / within-group mean square.
k - 1 and N - k are the degrees of freedom. You need both to read the F table.
A worked example: three small groups by hand
A teacher tries three revision methods with four students each and sets one 12-mark quiz. The marks are invented to keep the arithmetic clean:
Group A (re-reading notes): 4, 5, 7, 4. Mean 5.
Group B (flashcards): 5, 8, 9, 6. Mean 7.
Group C (practice questions): 7, 10, 9, 10. Mean 9.
The grand mean is 84 / 12 = 7.
Step 1, between-group sum of squares. Square each group mean's gap from the grand mean and multiply by group size: 4(5 - 7)^2 + 4(7 - 7)^2 + 4(9 - 7)^2 = 16 + 0 + 16 = 32.
Step 2, within-group sum of squares. Square each mark's gap from its own group mean: A gives 1 + 0 + 4 + 1 = 6, B gives 4 + 1 + 4 + 1 = 10, C gives 4 + 1 + 0 + 1 = 6. Total 22.
Check. Squared gaps of every mark from 7 total 54, and 32 + 22 = 54. If your parts do not add up, find the slip first.
Step 3, degrees of freedom. Between: 3 - 1 = 2. Within: 12 - 3 = 9.
Step 4, mean squares. Between: 32 / 2 = 16. Within: 22 / 9 = 2.444.
Step 5, F. F = 16 / 2.444 = 6.55. The between-group mean square is about six and a half times the within-group one.
How do you read the F table?
Find the numerator degrees of freedom (between groups) across the top and the denominator (within groups) down the side. In the NIST table of F critical values, the 5% value for 2 and 9 degrees of freedom is 4.256 and the 1% value is 8.022.
Our F of 6.55 is above 4.256, so we reject equal means at the 5% level, but below 8.022, so not at the 1% level. The exact p-value is about 0.018; our coin-toss guide to what a p-value means explains what that number does and does not say. Report it as F(2, 9) = 6.55, p = 0.018.
A significant F tells you the means are not all equal, not which ones differ. NIST calls the F-test a preliminary test and lists follow-ups such as Tukey's, Scheffe's and Bonferroni's methods in its section on multiple comparisons.
Why not just run many t-tests?
With three groups you could run three t-tests: A against B, A against C, B against C. Each at the 5% level carries a 5% chance of a false alarm, and the chances pile up. The NIST multiple comparisons page warns that doing pairwise comparison procedures over and over for all possible pairs will not, in general, work, because the overall significance level is no longer the one set for a single comparison.
A rough count shows why. If the tests were independent, the chance of at least one false alarm across three tests would be 1 - 0.95^3, about 14%, and across the 10 pairs from five groups, 1 - 0.95^10, about 40%. Real pairwise tests share data, so the exact figure differs, but the direction does not. ANOVA asks one question at one 5% level first. For how a single t-test is built, see our guide to the one-sample t-test in Class 12 Applied Maths.
A checklist before you run one-way ANOVA
One factor, three or more independent groups.
Write both hypotheses before looking at the means.
Check that between and within sums of squares add to the total.
Read the table with k - 1 and N - k degrees of freedom.
If F is significant, follow up with a multiple-comparison method, not a string of t-tests.
The same table-reading habit carries over to the chi-square goodness-of-fit test for a fair die. If sums of squares still feel shaky, the Fermi Concept Library covers every concept in mathematics, and the Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can see where your working went off track.



