CalculatorsToolsGuides 日本語
BenchFig › Guides › Bonferroni correction and other multiple-comparison adjustments (Holm, Benjamini–Hochberg)
Statistics

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.

Updated: BenchFig日本語

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 m12351020
Chance of at least one false positive5.0%9.8%14.3%22.6%40.1%64.2%
Key points
  • 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.

Bold = below 0.05. Significant: raw 4, Bonferroni 1, Holm 2, BH 4. Bonferroni and Holm from BenchFig; BH matches SciPy (scipy.stats.false_discovery_control).
GeneRaw PBonferroniHolmBH (FDR)
Il60.0040.020.020.02
Tnf0.0110.0550.0440.0275
Cxcl10.020.10.060.0275
Ccl20.0220.110.060.0275
Il100.310.30.3

Bonferroni correction

Multiply each P by m = 5 (equivalently, compare raw P with 0.05 ÷ 5 = 0.01).

Adjusted P = min(1, P × m)  e.g. 0.011 × 5 = 0.055

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.

The 4th product (Ccl2, 0.044) is smaller than the row above (0.060), so it is raised to 0.060: a larger raw P can never get a smaller adjusted P.
RankGenePMultiplierProductHolm-adjusted P
1Il60.004× 50.020.02
2Tnf0.011× 40.0440.044
3Cxcl10.02× 30.060.06
4Ccl20.022× 20.0440.06
5Il100.3× 10.30.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).

BH-adjusted P = P × m ÷ rank k  e.g. 0.022 × 5 ÷ 4 = 0.0275

From the same P values, Bonferroni keeps 1, Holm 2 and BH 4. Choose the method before looking at the data.

Corrected multiple comparisons in BenchFigPick Tukey or Dunnett after ANOVA, or Dunn’s test with Bonferroni or Holm after Kruskal–Wallis. Adjusted P values, brackets, asterisks and a methods sentence are generated for you.
Open for free →

Which method to use

SituationRecommended
ANOVA with 3+ groups, all pairwise comparisonsTukey (one-way ANOVA and Tukey)
ANOVA with 3+ groups, each vs controlDunnett (Dunnett’s test)
Pairwise comparisons after Kruskal–WallisDunn’s test with Holm or Bonferroni (Kruskal–Wallis and Dunn)
A few pre-planned comparisons, or different kinds of testsHolm (more powerful than Bonferroni)
Tens to thousands of genes or proteinsBenjamini–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:

CorrectionExcel formula
Bonferroni=MIN(1,B2*COUNT($B$2:$B$6)) (fill down)
HolmSort 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

Expression of five genes was compared by Student’s t test, and P values were adjusted by the Holm method (m = 5). Adjusted P < 0.05 was considered significant.

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.

Multiple comparisons on sample dataPaste three or more groups into the graph screen and choose Tukey, Dunnett, or Dunn’s test (with Bonferroni or Holm) for nonparametric data. Adjusted P values, brackets and asterisks are added automatically.
Open for free →
Your own data, all the way to the final figure.Loading your files, saving, and journal-ready export (PDF, TIFF, PNG, SVG) are in BenchFig Pro for Windows, updated based on researchers’ requests: ¥3,980/year (2 PCs), with lab and perpetual licenses too.
About the app →

Related guides

Microsoft Excel is a trademark of Microsoft Corporation. Product and journal names are trademarks or registered trademarks of their respective owners.