ANOVA (Analysis of Variance) › Summary
Michael BrenndoerferJanuary 5, 20261 min read
Machine Learning from ScratchAll chapters Part 2 of 9Hypothesis Testing
ANOVA (Analysis of Variance) › SummaryOne section · Sections in this chapter11 / 13 ↓
Sections in this chapter13
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Analysis of Variance (ANOVA) is a powerful technique for comparing means across three or more groups while maintaining control over the Type I error rate.
Core concepts:
- ANOVA compares variances to test means: between-group variation vs. within-group variation
- If group means truly differ, between-group variance will be inflated relative to within-group variance
- The F-statistic is the ratio of these variance estimates
The ANOVA decomposition:
The F-statistic:
Key results:
- ANOVA tests the omnibus hypothesis: are all means equal?
- A significant F-test indicates at least one mean differs, but not which ones
- Post-hoc tests (like Tukey's HSD) identify specific pairwise differences
- Effect sizes (, ) quantify the magnitude of group differences
Assumptions:
- Independence of observations
- Normality within groups (moderate departures are tolerated)
- Equal variances across groups (Levene's test to check)
When assumptions fail:
- Unequal variances: Welch's ANOVA
- Non-normality: Kruskal-Wallis test