When to use one-way ANOVA
Reach for ANOVA when you have one categorical factor with three or more levels (groups) and a numeric outcome — for example, comparing test scores across three teaching methods, or yield across four fertilizers. With exactly two groups, a t-test is equivalent and simpler. With two factors (e.g. method and school), you need two-way ANOVA.
The key reason to use ANOVA rather than several pairwise t-tests is error control: each t-test at α = 0.05 carries a 5% false-positive risk, and those risks compound. ANOVA gives one omnibus test at your chosen α.
Assumptions, and how to check them
- Independence of observations — a design property; no subject contributes to more than one group.
- Normality of residuals — with reasonable group sizes (n ≳ 30) the Central Limit Theorem makes this mild; check with a Q–Q plot for small samples, or run the normality test on each group.
- Homogeneity of variance — groups should have similar spread. Check with Levene's test; if it fails, use Welch's ANOVA.
Worked example
Three study methods give scores of 12, 14, 13, 15, 18, 20, 17, 19, and 24, 22, 26, 25. The group means (13.5, 18.5, 24.25) are far apart relative to the within-group spread, so ANOVA returns a large F and a tiny p-value — strong evidence that at least one method differs. A post-hoc Tukey test would then show all three pairs differ. Paste the data above to see F, df, and the full table.
Common mistakes
- Running multiple t-tests instead of ANOVA, inflating Type I error.
- Stopping at a significant F. ANOVA tells you that a difference exists, not which groups — always follow with a post-hoc test.
- Ignoring effect size. Report η² (eta-squared) alongside the p-value; see effect size explained.
- Assuming equal group sizes are required — they are not, though balanced designs are more robust.
If assumptions fail
With unequal variances, use Welch's ANOVA. If residuals are badly non-normal and samples are small, use the non-parametric Kruskal–Wallis test. For the computation and validation details, see the methodology page, and for choosing among tests the which-test wizard.