Post-Hoc
Comparisons
After ANOVA tells you something differs, post-hoc tests reveal exactly which groups are driving that difference: and how to do it without inflating your error rate.
What Is a Post-Hoc Test?
"Post-hoc" is Latin for "after this." In statistics, it refers to pairwise comparisons made after an ANOVA has rejected the null hypothesis. ANOVA tells you that at least one group mean differs, but it does not tell you which specific pairs of means are different.
Why Not Just Use Multiple \(t\)-Tests?
If you have \(k\) groups, the number of pairwise comparisons is \(\binom{k}{2} = \frac{k(k-1)}{2}\). Each test at \(\alpha = 0.05\) carries a 5% false-positive risk. Running many tests inflates the overall error rate dramatically.
The Family-wise Error Rate
The family-wise error rate (FWER) is the probability of making at least one Type I error across all pairwise comparisons. If each test uses significance level \(\alpha\), then for \(m\) independent comparisons:
When Do You Need Post-Hoc Tests?
The Bonferroni Correction
The simplest post-hoc adjustment: divide the significance level by the number of comparisons. Each pairwise test uses an adjusted alpha:
Tukey's HSD Test
Tukey's Honestly Significant Difference (HSD) is the most popular post-hoc test. It compares all pairs simultaneously using the Studentized Range Distribution \(q\).
Bonferroni vs. Tukey
| Bonferroni | Tukey HSD | |
|---|---|---|
| Approach | Adjusts \(\alpha\) for each test | Uses Studentized Range \(q\) |
| Comparisons | Any subset of pairs | All pairwise comparisons |
| Conservatism | More conservative | Less conservative |
| Equal Sizes? | Not required | Assumes equal \(n\) |
| Best When | Few planned comparisons | All pairs need testing |
Other Post-Hoc Methods
How to Apply Post-Hoc Tests
Example: Three Ad Campaigns
A company tests three advertising campaigns (A, B, C) on click-through rates. Each campaign is shown to \(n = 10\) users. ANOVA yields \(F = 5.82\), \(p = 0.008\). We reject \(H_0\) and proceed with Tukey HSD.
Computing the HSD Threshold
Now compare every pair of means against the threshold of 1.33:
| Pair | \(|\bar{X}_i - \bar{X}_j|\) | Significant? |
|---|---|---|
| A vs. B | \(|4.2 - 5.8| = 1.6\) | ✓ Yes (1.6 > 1.33) |
| A vs. C | \(|4.2 - 6.1| = 1.9\) | ✓ Yes (1.9 > 1.33) |
| B vs. C | \(|5.8 - 6.1| = 0.3\) | ✕ No (0.3 < 1.33) |
Example: Bonferroni with 4 Groups
A retailer tests 4 store layouts (k = 4). ANOVA is significant. Using Bonferroni at \(\alpha = 0.05\):
Each pairwise \(t\)-test must have \(p < 0.0083\) to be declared significant. Suppose the results are:
| Pair | \(p\)-value | Significant? |
|---|---|---|
| 1 vs. 2 | 0.032 | ✕ No |
| 1 vs. 3 | 0.004 | ✓ Yes |
| 1 vs. 4 | 0.001 | ✓ Yes |
| 2 vs. 3 | 0.210 | ✕ No |
| 2 vs. 4 | 0.018 | ✕ No |
| 3 vs. 4 | 0.045 | ✕ No |
Visualizing Post-Hoc Results
A common way to display post-hoc results is a mean comparison diagram with connecting lines showing which groups differ significantly.
Common Mistakes
Summary of Post-Hoc Methods
| Method | Controls FWER? | Conservatism | Best Use |
|---|---|---|---|
| Bonferroni | ✓ Yes | High | Few planned comparisons |
| Tukey HSD | ✓ Yes | Moderate | All pairwise (equal \(n\)) |
| Scheffé | ✓ Yes | Highest | Complex contrasts |
| Fisher LSD | ✕ Weak | Low | Exploratory only |
| Dunnett | ✓ Yes | Moderate | Treatments vs. control |
Question 1 of 5
What is the primary purpose of a post-hoc test?
Question 2 of 5
With \(k = 5\) groups, how many pairwise comparisons are there?
Question 3 of 5
Using the Bonferroni correction with \(\alpha = 0.05\) and \(m = 10\) comparisons, what is the adjusted significance level for each test?
Question 4 of 5
A researcher runs an ANOVA on 3 groups and gets \(p = 0.12\). What should they do next?
Question 5 of 5
Which post-hoc method is most appropriate when you want to compare every treatment group to a single control group?