ANOVA (Analysis of Variance) › Summary

Michael BrenndoerferJanuary 5, 20261 min read
Machine Learning from ScratchAll chapters
Part 2 of 9Hypothesis Testing
Chapter 17ANOVA (Analysis of Variance) › Summary
Reading section 11 of 13 · Summary · 1 minSection 11 of 13 · 1 min

Book contents

Section 11 of 13 · 1 min read

ANOVA (Analysis of Variance) › SummaryOne section · Sections in this chapter11 / 13 ↓
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:

SSTotal=SSBetween+SSWithinSS_{Total} = SS_{Between} + SS_{Within}

The F-statistic:

F=MSBetweenMSWithin=SSBetween/(k−1)SSWithin/(N−k)F = \frac{MS_{Between}}{MS_{Within}} = \frac{SS_{Between}/(k-1)}{SS_{Within}/(N-k)}

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 (η2\eta^2, ω2\omega^2) 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