ANOVA — Analysis of Variance
ANOVA is a statistical test used to compare the means of three or more groups to determine whether at least one group mean is significantly different from the others. The name comes from the fact that it works by analyzing and partitioning variance in data — not by directly comparing means one by one.
The Core Idea
Instead of running multiple t-tests (which inflates false-positive risk), ANOVA asks a single question:
Is the variation between group means larger than we'd expect from random chance alone?
It does this by comparing two sources of variance:
| Source | What it measures |
|---|
| Between-group variance | How much group means differ from the overall mean |
| Within-group variance | How much individual values vary inside each group |
The ratio of these two is the F-statistic:
F = Between-group variance / Within-group variance
A large F means the groups differ more than chance would predict → low p-value → statistically significant result.
Types of ANOVA
| Type | When to use |
|---|
| One-way ANOVA | One independent variable (factor), 3+ groups. Example: comparing crop yield across 3 fertilizer types |
| Two-way ANOVA | Two independent variables. Example: comparing exam scores by teaching method AND class size simultaneously |
| Repeated-measures ANOVA | Same subjects measured multiple times. Example: patient blood pressure at 3 different time points |
| MANOVA | Multiple dependent variables at once |
Real-World Use Cases
- Medicine/Clinical trials: Does Drug A, Drug B, or Placebo produce different outcomes?
- Education: Do three teaching methods (lecture, workshop, online) produce different test scores?
- Agriculture: Which of four fertilizers produces the highest yield?
- Marketing: Do customers in three regions have different average spending?
- Psychology: Does anxiety level differ across four therapy types?
Key Assumptions
For ANOVA results to be valid, the data should meet these conditions:
- Independence — observations are independent of each other
- Normality — data within each group is approximately normally distributed
- Homogeneity of variance — groups have roughly equal variances (tested with Levene's test)
What ANOVA Tells You (and Doesn't)
A significant ANOVA result tells you at least one group is different — but not which ones. To find out which specific groups differ, you need a post-hoc test such as:
- Tukey's HSD (most common)
- Bonferroni correction
- Scheffé test
How to Report Results
ANOVA results are typically reported as:
F(df_between, df_within) = value, p = value
Example: F(2, 87) = 4.32, p = .016 — meaning there are 3 groups and the result is statistically significant at the 0.05 level.
In short: use ANOVA whenever you want to compare means across 3+ groups in a single test, rather than running multiple pairwise comparisons. It's one of the most widely used tools in statistics across science, medicine, social research, and business.