Bonferroni correction and other multiple-comparison adjustments (Holm, Benjamini–Hochberg)
Run enough tests and something will be “significant” by chance. Multiple-comparison corrections stop that. This guide applies the simplest one, Bonferroni (multiply P by the number of tests), the more powerful Holm method, and the Benjamini–Hochberg FDR procedure for large screens, to the same set of P values.
Why correct at all?
A test at α = 0.05 is “significant” 5% of the time when there is no real difference. Over m independent tests, the chance of at least one false positive (the family-wise error rate) is 1 − 0.95m.
| Number of tests m | 1 | 2 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|---|
| Chance of at least one false positive | 5.0% | 9.8% | 14.3% | 22.6% | 40.1% | 64.2% |
- Bonferroni: adjusted P = P × m (max 1). Simplest and strictest
- Holm: smallest P × m, next × (m − 1)… Same error control, never fewer hits than Bonferroni
- Benjamini–Hochberg (FDR): P × m ÷ rank. For large screens
- After ANOVA, use Tukey for all pairs and Dunnett for comparisons with control
Worked example
Five genes compared between treated and control samples, one t test each (made-up P values). Without correction, 4 are significant.
| Gene | Raw P | Bonferroni | Holm | BH (FDR) |
|---|---|---|---|---|
| Il6 | 0.004 | 0.02 | 0.02 | 0.02 |
| Tnf | 0.011 | 0.055 | 0.044 | 0.0275 |
| Cxcl1 | 0.02 | 0.1 | 0.06 | 0.0275 |
| Ccl2 | 0.022 | 0.11 | 0.06 | 0.0275 |
| Il10 | 0.3 | 1 | 0.3 | 0.3 |
Bonferroni correction
Multiply each P by m = 5 (equivalently, compare raw P with 0.05 ÷ 5 = 0.01).
Holm (Holm–Bonferroni) method
Sort P values ascending; multiply the first by m, the second by m − 1, … the last by 1. If a value falls below the one above it, carry the previous value forward so the order is kept.
| Rank | Gene | P | Multiplier | Product | Holm-adjusted P |
|---|---|---|---|---|---|
| 1 | Il6 | 0.004 | × 5 | 0.02 | 0.02 |
| 2 | Tnf | 0.011 | × 4 | 0.044 | 0.044 |
| 3 | Cxcl1 | 0.02 | × 3 | 0.06 | 0.06 |
| 4 | Ccl2 | 0.022 | × 2 | 0.044 | 0.06 |
| 5 | Il10 | 0.3 | × 1 | 0.3 | 0.3 |
Benjamini–Hochberg (FDR)
Sort ascending and multiply the P at rank k by m ÷ k. Working up from the largest P, no value may exceed the one below it: here Cxcl1’s 0.020 × 5 ÷ 3 = 0.0333 exceeds Ccl2’s 0.022 × 5 ÷ 4 = 0.0275 below it, so it becomes 0.0275. BH controls the false discovery rate when the tests are independent or positively dependent (Benjamini & Hochberg 1995; Benjamini & Yekutieli 2001). Report the values as BH-adjusted P values (they are not Storey’s q values).
From the same P values, Bonferroni keeps 1, Holm 2 and BH 4. Choose the method before looking at the data.
Which method to use
| Situation | Recommended |
|---|---|
| ANOVA with 3+ groups, all pairwise comparisons | Tukey (one-way ANOVA and Tukey) |
| ANOVA with 3+ groups, each vs control | Dunnett (Dunnett’s test) |
| Pairwise comparisons after Kruskal–Wallis | Dunn’s test with Holm or Bonferroni (Kruskal–Wallis and Dunn) |
| A few pre-planned comparisons, or different kinds of tests | Holm (more powerful than Bonferroni) |
| Tens to thousands of genes or proteins | Benjamini–Hochberg (FDR) |
Bonferroni becomes very strict as the number of tests grows and can miss real effects (Perneger 1998). Decide whether to correct, and which comparisons form a family, from the research question.
In Excel
With P values in B2:B6:
| Correction | Excel formula |
|---|---|
| Bonferroni | =MIN(1,B2*COUNT($B$2:$B$6)) (fill down) |
| Holm | Sort P ascending. C2: =MIN(1,B2*(COUNT($B$2:$B$6)-ROW()+ROW($B$2))); D2: =C2; D3: =MAX(D2,C3) (fill D3 down). Column D is the adjusted P |
| BH (FDR) | Sort P ascending. C2: =MIN(1,B2*COUNT($B$2:$B$6)/(ROW()-ROW($B$2)+1)) (fill down). Last row D6: =C6; D5: =MIN(D6,C5) (fill up). Column D is the adjusted P |
How to report it
State which comparisons were corrected together (m) and whether P values in tables and figures are raw or adjusted. See how to report statistics and significance asterisks.
Sources: Bland JM, Altman DG (1995) Multiple significance tests: the Bonferroni method. BMJ 310:170; Holm S (1979) A simple sequentially rejective multiple test procedure. Scand J Stat 6:65–70; Benjamini Y, Hochberg Y (1995) Controlling the false discovery rate. J R Stat Soc B 57:289–300; Benjamini Y, Yekutieli D (2001) The control of the false discovery rate in multiple testing under dependency. Ann Stat 29:1165–1188; Perneger TV (1998) What’s wrong with Bonferroni adjustments. BMJ 316:1236–1238.
FAQ
Is Bonferroni “P × m” or “α ÷ m”?
They give the same decision: compare the raw P with 0.05/m, or multiply P by m (capped at 1) and compare with 0.05. Papers usually report the adjusted P (P × m).
What counts as m?
The number of comparisons made to answer the same question: four treatments each vs control is m = 4; all pairs of four groups is m = 6. You do not have to count every test in the paper, but state which comparisons were corrected together.
Can I use Bonferroni after ANOVA?
You can, but Tukey’s test (all pairs) or Dunnett’s test (vs control) is more powerful and standard. Bonferroni and Holm suit pre-planned small sets of comparisons or mixed kinds of tests.
Is Holm always better than Bonferroni?
It controls the same family-wise error rate under the same assumptions and always rejects at least as many hypotheses, so there is no downside to using Holm instead.
When should I use FDR (Benjamini–Hochberg)?
For screens of tens to thousands of genes or proteins. It controls the expected proportion of false positives among the hits rather than the chance of any false positive, so it finds more. For experiments that draw conclusions from a few comparisons, use Holm, Tukey or Dunnett.
Related guides
Microsoft Excel is a trademark of Microsoft Corporation. Product and journal names are trademarks or registered trademarks of their respective owners.