Post-Hoc Tests and Multiple Comparisons: Tukey, Bonferroni, and FDR
After ANOVA or multiple t-tests, avoid inflated false positives. Learn Tukey HSD, Bonferroni, Scheffé, Dunn's test, Games-Howell, and the Benjamini-Hochberg FDR procedure.
Post-Hoc Tests and Multiple Comparisons: Tukey, Bonferroni, and FDR
When you run many statistical tests at once (e.g., multiple pairwise comparisons after ANOVA), the chance of at least one false positive grows. Post-hoc tests and multiple comparison corrections control this inflation so your conclusions remain valid.
---
Why You Need Post-Hoc Tests
The Multiple Comparisons Problem
If each test has a 5% chance of a false positive (α = 0.05), then:
| Number of Tests | Probability of ≥1 False Positive |
|---|---|
| 1 | 5% |
| 5 | ~23% |
| 10 | ~40% |
| 20 | ~64% |
Family-Wise Error Rate (FWER)
FWER = probability of making at least one Type I error across all comparisons.
- Uncorrected tests: FWER increases with the number of tests.
- Post-hoc corrections: Adjust α or p-values to keep FWER at or below a target (e.g., 5%).
When to Use Post-Hoc Tests
| Situation | Action |
|---|---|
| Significant ANOVA (3+ groups) | Run post-hoc tests to see which groups differ |
| Multiple t-tests (comparing many pairs) | Apply a correction (e.g., Bonferroni, FDR) |
| Planned comparisons (pre-specified) | Fewer comparisons; less correction needed |
| Exploratory analysis (many tests) | Use FDR to control false discoveries |
Common Post-Hoc Tests
Tukey HSD (Honestly Significant Difference)
When: After a significant one-way ANOVA with equal group sizes and equal variances.
- Compares all pairs of means.
- Controls FWER at α for the entire set of pairwise comparisons.
- Uses the studentized range distribution.
| Pros | Cons |
|---|---|
| Designed for all pairwise comparisons | Assumes equal n and variance |
| Commonly used and well understood | Conservative with unequal n |
| Controls FWER |
---
Bonferroni Correction
When: Any set of comparisons (pairwise, planned, or custom).
Method: Use α_adjusted = α / k, where k = number of tests. Or multiply each p-value by k and compare to α.
| Pros | Cons |
|---|---|
| Simple; works for any comparisons | Very conservative with many tests |
| Controls FWER | Can miss real effects (low power) |
---
Scheffé's Test
When: After ANOVA; useful for complex contrasts (e.g., comparing combinations of means).
- More conservative than Tukey for pairwise comparisons.
- Appropriate for data-driven or complex contrasts.
- Controls FWER for any contrast you might test.
| Pros | Cons |
|---|---|
| Flexible; handles any contrast | Very conservative for pairwise |
| Robust to unequal n | Lower power |
Dunn's Test
When: After Kruskal-Wallis (non-parametric alternative to ANOVA).
- Non-parametric pairwise comparisons.
- Use when data are not normal or variances are unequal.
Games-Howell Test
When: After ANOVA with unequal variances (heteroscedasticity).
- Does not assume equal variances.
- Robust alternative to Tukey when Levene's test indicates unequal variance.
False Discovery Rate (FDR)
Instead of controlling FWER (probability of any false positive), FDR controls the expected proportion of false positives among rejected hypotheses.
Benjamini-Hochberg (BH) Procedure
- Order p-values: p₁ ≤ p₂ ≤ ... ≤ pₘ.
- Find the largest i such that pᵢ ≤ (i/m) × α.
- Reject H₁, ..., Hᵢ.
| FWER (Bonferroni, Tukey) | FDR (Benjamini-Hochberg) |
|---|---|
| Controls probability of any false positive | Controls proportion of false positives among rejections |
| Stricter; fewer rejections | More rejections when many are true |
| Good for confirmatory, few tests | Good for exploratory, many tests |
Choosing the Right Post-Hoc Test
| Your Situation | Recommended Test |
|---|---|
| One-way ANOVA, equal n, equal variance | Tukey HSD |
| One-way ANOVA, unequal variance | Games-Howell |
| Kruskal-Wallis (non-parametric) | Dunn's test |
| Any set of k comparisons | Bonferroni (simple but conservative) |
| Complex or custom contrasts | Scheffé |
| Many exploratory tests | Benjamini-Hochberg (FDR) |
| Few pre-planned comparisons | Bonferroni or no correction |
Interpreting Results
Tukey / Bonferroni / Scheffé
- Adjusted p < 0.05: That specific comparison is significant after correction.
- Adjusted p ≥ 0.05: Cannot conclude a difference for that pair.
- Report adjusted p-values and the method used.
FDR (BH)
- q-value or adjusted p < 0.05: That test is a "discovery" at the chosen FDR level.
- FDR = 0.05 means about 5% of discoveries are expected to be false positives.
Common Pitfalls
| Pitfall | Avoid By |
|---|---|
| Skipping post-hoc after significant ANOVA | Always identify which groups differ |
| No correction for multiple t-tests | Use Bonferroni, Tukey, or FDR |
| Using Tukey with unequal variances | Use Games-Howell or a non-parametric method |
| Using parametric tests on non-normal data | Use Kruskal-Wallis + Dunn's |
| Over-correction | For few planned comparisons, Bonferroni may be overly strict; consider less conservative methods |
Quick Reference
| Test | Assumptions | Use Case |
|---|---|---|
| Tukey HSD | Equal n, equal variance | All pairwise after ANOVA |
| Bonferroni | None | Any k comparisons |
| Scheffé | ANOVA | Complex contrasts |
| Dunn's | Non-parametric | After Kruskal-Wallis |
| Games-Howell | Unequal variance OK | Unequal variances |
| Benjamini-Hochberg | None | Many exploratory tests (FDR) |
| Correction | Controls |
|---|---|
| Bonferroni, Tukey, Scheffé | FWER |
| Benjamini-Hochberg | FDR |
What's Next?
- [Statistical Tests Guide](statistical-tests-guide) — ANOVA, t-tests, and when to use each
- [Inferential Statistics](inferential-statistics) — Hypothesis testing and p-values
- [Effect Size and Power Analysis](effect-size-power-analysis) — Interpreting the magnitude of differences
- [Statistics Overview](statistics-overview) — The statistics workspace
Related Articles
Statistical Tests
A complete guide to all 14+ hypothesis tests -- when to use each one, how to run them, and how to interpret results.
Inferential Statistics: Confidence Intervals, Hypothesis Testing, and P-Values
Learn how inferential statistics lets you draw conclusions about populations from samples — confidence intervals, hypothesis testing, p-values, Type I and II errors, and common misconceptions.
Effect Size and Power Analysis: Beyond Statistical Significance
Why p-values aren't enough — learn effect size (Cohen's d, Pearson r, eta-squared), statistical power, sample size planning, and how to avoid underpowered studies and trivial significant results.
Statistics Overview: What Are Statistics and How to Use Them
A beginner-friendly introduction to statistics, descriptive vs inferential analysis, the Statistics workspace layout, and running your first analysis.
Was this helpful?