Holm–Bonferroni correction in one sentence: sort the p-values in a pre-declared family from smallest to largest, compare the i-th one with α / (m − i + 1), and reject until the first p-value that exceeds its own boundary; after that point nothing else is rejected. This keeps the chance of any false positive in the family at or below α, and rejects at least as many hypotheses as plain Bonferroni.
- Also called
- Holm correction, Holm’s sequentially rejective procedure, Holm–Bonferroni method, Bonferroni–Holm, Holm step-down
- Controls
- Family-wise error rate (FWER): the probability of one or more false rejections in the family, under any dependence structure
- Procedure type
- Step-down, sequentially rejective (Bonferroni is single-step)
- Boundary for rank i
- α / (m − i + 1), where m is the size of the family
- Power vs Bonferroni
- Uniformly greater than or equal to it
- Requires independence?
- No. Valid under arbitrary dependence of valid p-values
- Original paper
- Holm, S. (1979), Scandinavian Journal of Statistics 6(2), 65–70
- R / Python / Excel
p.adjust(p, "holm")(the R default) ·multipletests(p, method="holm")· running-maximum formula
Holm–Bonferroni calculator
Paste the p-values from one planned family of hypotheses. The calculator ranks them, shows the boundary each one is tested against, returns adjusted p-values and marks the point where the procedure stops. Switch the procedure to compare the same family under Bonferroni, Šidák, Hochberg or Benjamini–Hochberg.
Reading the output. The boundary column is the threshold the ranked p-value must beat; for Holm that is α / (m − i + 1), and other procedures show their own boundary in the same column. The adjusted p column expresses the same decision on a p-value scale, built as a running maximum so it never decreases down the ranks. Adjusted p ≤ α means reject. Holm and Hochberg share the same critical values; only the direction of travel differs, which is why a step-up procedure can reject more.
What is the Holm–Bonferroni correction?
When a team evaluates several hypotheses at a conventional per-test alpha of 0.05, chance alone makes an apparently significant result increasingly likely. The Holm–Bonferroni procedure, usually just called the Holm correction, modifies the decision thresholds so that the probability of at least one false rejection across the whole planned family is no greater than the chosen alpha, provided the individual p-values are valid. It works on any set of valid p-values, not only t-tests.
The method is a sequentially rejective improvement on Bonferroni. Bonferroni tests every one of m hypotheses at α / m. Holm begins with the smallest p-value at that same strict threshold, then relaxes the threshold as earlier hypotheses are rejected: the second-smallest is compared with α / (m − 1), the third with α / (m − 2), and so on. Because every boundary Holm uses is at least as generous as Bonferroni’s, it rejects every hypothesis Bonferroni would reject and can reject more. The guarantee is strong family-wise error control: it holds even when some null hypotheses are false, and it does not require independent test statistics.
The same decisions are usually reported as Holm-adjusted p-values. A hypothesis is rejected when its adjusted p-value is at most alpha, which makes reporting, filtering and sorting straightforward. Keep the raw values and the family definition next to them so a reviewer can reconstruct the decision.
Why a correction is needed
Uncorrected testing compounds error. With a family of five independent comparisons at α = 0.05, the chance of at least one false positive is already 22.6%; with ten it is 40.1%; with twenty it is 64.2%. In a multi-variant test roughly the same arithmetic applies to the probability that some variant is declared a winner when nothing has actually improved.
How the step-down procedure works
- Define the family before you look. Choose the collection of claims that will be decided together, for example all treatment-versus-control contrasts on one primary metric, and fix the family alpha, typically 0.05.
- Compute valid p-values with the analysis methods pre-specified for the experiment, at the unit of randomization.
- Sort them ascending: p(1) ≤ p(2) ≤ … ≤ p(m), keeping track of which hypothesis each one belongs to.
- Compare p(1) with α / m. If it exceeds that boundary, stop: no hypothesis is rejected.
- Move down the ladder. If p(1) passes, reject H(1) and compare p(2) with α / (m − 1), then p(3) with α / (m − 2), and so on, until the first p-value that exceeds its own boundary.
- Stop at the first failure. That hypothesis and every larger p-value are not rejected, even if a later p-value would clear its looser boundary.
Reject \( H_{(i)} \) when \( \tilde p_{(i)} \le \alpha \). The running maximum enforces monotonicity, so adjusted p-values never decrease as you move down the ladder.
For six hypotheses at α = 0.05 the ordered boundaries are 0.00833, 0.010, 0.0125, 0.0167, 0.025 and 0.05. Only the first is as strict as the Bonferroni threshold; the rest are progressively easier to clear, which is where the extra power comes from.
Worked example: three checkout variants
A retailer randomizes 120,000 eligible users equally among a control and three checkout designs. Before launch it declares three confirmatory treatment-versus-control comparisons on seven-day purchase conversion and sets the family alpha at 0.05. The team checks allocation, exposure logging, the fixed analysis window and the user-level denominator before any p-value is computed.
Raw results: design A lifts conversion by +0.23 percentage points (p = 0.031), design B by +0.31 points (p = 0.004), and design C changes it by −0.04 points (p = 0.72).
| Rank | Comparison | Raw p | Boundary α / (m − i + 1) | Adjusted p | Decision |
|---|---|---|---|---|---|
| 1 | B vs control | 0.004 | 0.05 / 3 = 0.0167 | 0.012 | Reject |
| 2 | A vs control | 0.031 | 0.05 / 2 = 0.025 | 0.062 | Stop · not rejected |
| 3 | C vs control | 0.720 | 0.05 / 1 = 0.05 | 0.720 | Not rejected |
The decision. Only design B has statistically detectable evidence of a conversion difference under the planned family-wise rule. Design A is not a confirmed improvement, even though its unadjusted p-value of 0.031 sits below 0.05; that is exactly the false-positive risk the correction exists to absorb. The team reports B’s absolute lift and its confidence interval (+0.10 to +0.52 points), expected incremental orders, refund and latency guardrails, and the rollout constraints.
Where people go wrong. The tempting mistake is to keep walking down the ladder. Here p = 0.031 fails its rank-2 boundary of 0.025, so the procedure stops. Had design C come in at p = 0.045, it would appear to clear its rank-3 boundary of 0.05, but it still could not be rejected: once a step fails, nothing below it is tested. Continuing after a failure is the most common misuse of step-down procedures, and it silently restores the false-positive risk the correction was supposed to remove.
Holm vs Bonferroni, Hochberg, Šidák and Benjamini–Hochberg
Every method below adjusts the same ranked p-values; they differ in what they guarantee and in how much power they give away. Holm and Hochberg use identical critical values. The difference is the direction of travel and the dependence conditions they require.
| Procedure | Controls | Critical value, rank i | Rule | Dependence | Use when |
|---|---|---|---|---|---|
| Bonferroni | FWER | α / m for every rank | Single-step | Any | Very small family, hand-computed, or a protocol names it |
| Holm–Bonferroni | FWER | α / (m − i + 1) | Step-down, stop at first failure | Any | Default for a small, pre-declared family, such as 3–5 variants vs control |
| Hochberg | FWER | α / (m − i + 1) | Step-up, start at the largest p | Independence or positive dependence (PRDS) | Same family size, when you can rely on positive dependence for extra power |
| Hommel | FWER | Simes-type, rank-dependent | Step-up type | Simes-type conditions | More power than Hochberg under the same conditions; rarely worth the complexity in product analytics |
| Šidák | FWER | 1 − (1 − α)1/m | Single-step | Independence | Many comparisons believed independent; marginal gain over Bonferroni |
| Holm–Šidák | FWER | 1 − (1 − α)1/(m − i + 1) | Step-down | Independence | Step-down version of Šidák; slightly more power than Holm |
| Benjamini–Hochberg | FDR | (i / m) · α | Step-up | Independence or PRDS | Many metrics or segments where a controlled share of false discoveries is tolerable |
| Dunnett | FWER | Model-based, several arms vs one control | Single-step, joint | ANOVA-type model assumptions | A/B/n with a roughly normal outcome and a shared control; typically more powerful than Holm for that design |
Choosing in practice
- Two to six planned comparisons and any false positive is expensive: Holm. No assumptions about correlation, and you lose nothing relative to Bonferroni.
- One primary metric, one comparison: no correction at all. A family of one has nothing to correct.
- Dozens of secondary metrics or segments: Benjamini–Hochberg, labelled as discovery, with the confirmatory claim kept separate. Holm on fifty metrics will reject very little unless the effects are large.
- A/B/n with a shared control and a continuous outcome: Dunnett’s test if your tooling supports it, Holm otherwise; the conclusions rarely differ.
- Any of the above, but the protocol already names Bonferroni: keep Bonferroni. Reproducibility of a pre-specified analysis outranks a small power gain.
P-values are not the whole decision. All of these procedures act on p-values, but a decision needs a magnitude. Report the effect, its confidence interval and the practical threshold for shipping alongside any adjustment; an adjusted p-value below alpha for an effect too small to matter is still a “no” for the product.
Assumptions and limits
Holm’s multiplicity guarantee relies on valid marginal p-values. Each test needs the right randomization and analysis unit, a pre-specified or otherwise valid stopping rule, and an appropriate model for the outcome. The correction cannot repair biased assignment, a shifting metric definition, missing exposure records, or repeated unplanned looks at accumulating data. A sample ratio mismatch is a data-quality problem to investigate before any inferential adjustment.
The procedure makes no independence assumption, which is a genuine practical advantage for correlated product metrics. Its protection is nevertheless conditional on a defensible family. A family is a collection of claims decided together, for example all treatment-versus-control comparisons for one primary metric, or all pre-declared claims in an experiment report. It is not “the significant results we decided to show”. Defining a family after inspecting outcomes defeats the intended protection.
Family-wise error rate is a conservative target when a single false launch claim is costly. For broad hypothesis discovery, false discovery rate methods may yield more useful signal, but they answer a different question. Holm also does not decide what matters commercially: a corrected p-value below 0.05 may correspond to an effect too small to justify engineering cost, while a non-rejection may leave a commercially meaningful improvement plausible if the interval is wide.
Holm correction in A/B and A/B/n testing
In a multi-variant experiment, Holm is useful for a finite, pre-declared collection of comparisons. Take a control and three treatments with one primary conversion metric. If the team plans three treatment-versus-control contrasts, it computes the three valid contrast p-values and applies Holm at family alpha 0.05. That controls the chance of falsely declaring any treatment superior when the relevant null effects are absent, and it is more flexible than model-specific procedures because it can cover a mixed collection of planned endpoints.
Do not assume the correction is needed for every number on a dashboard. Designate one primary outcome and the decision it governs, then label secondary outcomes as confirmatory, guardrail, diagnostic or exploratory. The framework in primary and guardrail metrics makes those roles explicit. If several confirmatory primary claims can each trigger a success decision, they normally belong in one multiplicity strategy. Guardrails may use separate harm-monitoring rules rather than being folded casually into a “win” family.
For conversion, analyze a user-level success indicator when users are randomized. For revenue per user, aggregate to one contribution per assigned user, including zero revenue where that matches the estimand. A correction applied to event-level p-values does not fix pseudoreplication. Likewise, applying Holm after choosing the most favourable of dozens of segments understates the selection problem: either include the full planned segment family, or label the result exploratory and confirm it in a follow-up test.
Does the correction change the sample size I need?
Yes, indirectly. The stricter boundary for the smallest p-value means the same true effect needs more evidence to clear it, so a test powered for a single comparison at α = 0.05 will be underpowered for the rank-1 comparison in a family of five. The conservative approach is to size the experiment against the Bonferroni-level alpha, which for a family of three is 0.0167 rather than 0.05, or to accept lower power explicitly. Use the power calculator and the sample size calculator to see the trade-off before launch, not after.
Holm–Bonferroni in R, Python, Excel and SPSS
All four routes below produce the same numbers as the calculator on this page. Verify them once against a hand-computed example (six p-values, alpha 0.05: three rejections) before wiring them into a pipeline.
R
# Raw p-values, in any order
p <- c(b_vs_control = 0.004,
a_vs_control = 0.031,
c_vs_control = 0.720)
# "holm" is the default method of p.adjust()
p.adjust(p, method = "holm")
# b_vs_control a_vs_control c_vs_control
# 0.012 0.062 0.720
# Decision at family alpha 0.05
p.adjust(p, method = "holm") <= 0.05
# Pairwise t-tests after an ANOVA-style layout
pairwise.t.test(response, group, p.adjust.method = "holm")
# rstatix equivalent
# rstatix::adjust_pvalue(df, p.col = "p", output.col = "p_holm", method = "holm")
Python
from statsmodels.stats.multitest import multipletests
import numpy as np
p = np.array([0.002, 0.006, 0.011, 0.020, 0.033, 0.410])
reject, p_adj, _, _ = multipletests(p, alpha=0.05, method="holm")
print(reject) # [ True True True False False False]
print(p_adj) # [0.012 0.03 0.044 0.06 0.066 0.41 ]
# The same procedure without statsmodels
def holm(p, alpha=0.05):
p = np.asarray(p, dtype=float)
m = p.size
adjusted = np.empty(m)
running = 0.0
for k, idx in enumerate(np.argsort(p)):
running = max(running, (m - k) * p[idx])
adjusted[idx] = min(1.0, running)
return adjusted, adjusted <= alpha
p_adj, reject = holm(p, 0.05)
Excel and Google Sheets
# A2:A7 holds the raw p-values, B1 holds alpha (0.05)
# Enter row 2, then fill D2:H2 down to row 7
# 1. sorted p-values (Excel 365 / Sheets spill the whole column)
C2: =SORT(A2:A7)
# older Excel: =SMALL($A$2:$A$7, ROW()-1), filled down
# 2. rank
D2: =ROW()-1
# 3. boundary for this rank
E2: =$B$1/(COUNT($A$2:$A$7)-D2+1)
# 4. rank-wise adjusted p
F2: =MIN(1,(COUNT($A$2:$A$7)-D2+1)*C2)
# 5. Holm-adjusted p: running maximum of column F
G2: =MAX($F$2:F2)
# 6. decision
H2: =IF(G2<=$B$1,"reject","not rejected")
Sorting only the p-values loses track of which hypothesis is which. Sort the labels with them, for example with SORTBY, so each ranked row can be traced back to its comparison.
SPSS
* Sequential Bonferroni (Holm) is available for pairwise comparisons in
* procedures such as GENLIN (PADJUST=SEQBONFERRONI), but not for a column
* of p-values from separate analyses. Set m to the family size.
SORT CASES BY p (A).
COMPUTE m = 6.
COMPUTE rank = $CASENUM.
COMPUTE boundary = 0.05 / (m - rank + 1).
COMPUTE adj_p = MIN(1, (m - rank + 1) * p).
IF (rank > 1) adj_p = MAX(adj_p, LAG(adj_p)).
COMPUTE rejected = (adj_p <= 0.05).
EXECUTE.
* The running maximum via LAG enforces the stop rule: nothing ranked below
* the first failure can have adj_p at or below alpha.
How to report Holm-adjusted results
Two conventions are in circulation. Both are correct, but mixing them in one document is not:
- Adjusted p-values. Keep alpha at 0.05 and report the adjusted p-value; reject when it is at most 0.05. Easiest to sort and filter.
- Adjusted alpha. Keep raw p-values and report the α / (m − i + 1) boundary each one was compared against. Easiest to audit.
A report line that satisfies both readers looks like this:
“Across the three pre-declared contrasts (family α = 0.05, Holm–Bonferroni), only the redesigned checkout B showed a detectable difference in 7-day conversion: +0.31 pp (95% CI +0.10 to +0.52), raw p = 0.004, Holm-adjusted p = 0.012. Design A (+0.23 pp) was not confirmed after adjustment (raw p = 0.031, adjusted p = 0.062).”
State the family size, the alpha, the procedure and the direction of the claim. If simultaneous confidence intervals are required, construct them to match the family-wise procedure. Software support varies, and printing unadjusted intervals next to adjusted p-values invites the reader to double-count the correction.
Common mistakes
- Using a convenient subset of tests. The family must include every comparison that was a candidate for a claim, including the unfavourable ones.
- Continuing after the first failure. Once an ordered p-value exceeds its boundary, later hypotheses are not rejected even if they would pass a looser threshold.
- Correcting invalid p-values. Multiplicity adjustment cannot rescue peeking, wrong denominators, or broken randomization.
- Adjusting event-level p-values. If users are randomized, the unit of analysis is the user; a correction on top of pseudoreplication just dresses it up.
- Calling non-rejection “no effect”. Read the confidence interval against a minimum important effect; the study may simply lack precision.
- Picking a winner after the fact. Reporting the largest observed lift from many variants needs a pre-planned comparison and cautious effect estimation.
- Folding guardrails into the win family. Harm monitoring and success claims answer different questions and usually deserve different error rules.
- Equating error control with product safety. Practical impact, guardrails and implementation review remain necessary.
Frequently asked questions
How do you perform a Holm–Bonferroni correction step by step?
Fix the family and alpha, sort the p-values ascending, then compare the smallest with α/m. If it passes, reject it and compare the next with α/(m − 1), continuing down the ladder until the first p-value that exceeds its own boundary. Everything from that point on is not rejected. The calculator above runs exactly this procedure and shows the stop point.
What is the Holm–Bonferroni correction formula?
The i-th ordered p-value is compared with α/(m − i + 1). The corresponding adjusted p-value is the running maximum of (m − j + 1)·p(j) over j ≤ i, capped at 1. A hypothesis is rejected when its adjusted p-value is at most α.
Is Holm–Bonferroni the same as Bonferroni?
No. Both control the family-wise error rate, but Bonferroni tests every hypothesis at α/m, while Holm tests ordered p-values against progressively less strict boundaries. Holm rejects every hypothesis Bonferroni rejects and can reject more, with the same error guarantee, so there is little reason to prefer plain Bonferroni except simplicity or a protocol that names it.
Is Holm always more powerful than Bonferroni?
It is uniformly at least as powerful. The set of hypotheses Holm rejects always contains the Bonferroni rejection set, and the two procedures coincide whenever the smallest p-value fails α/m.
What is the difference between Holm and Hochberg?
They share the critical values α/(m − i + 1) but move in opposite directions. Holm steps down from the smallest p-value and stops at the first failure. Hochberg steps up from the largest p-value and, at the first one that clears its boundary, rejects it and every smaller p-value. Hochberg can reject more, but its validity requires independence or positive dependence (PRDS), whereas Holm requires no dependence assumption at all.
Holm or Šidák: which should I use?
Šidák’s boundary 1 − (1 − α)^(1/m) is a shade more generous than α/m and is valid for independent tests. Under real dependence Holm’s guarantee is unconditional, so it is the safer default; Holm–Šidák combines the two ideas if your tests are plausibly independent.
Does Holm control the false discovery rate?
Holm targets the family-wise error rate, the probability of one or more false rejections in the family. Because FWER ≤ α implies FDR ≤ α, the false discovery rate is bounded too, but the procedure is deliberately conservative. If the goal is discovery across many metrics, use Benjamini–Hochberg and label the output as exploratory.
Do I need a correction for a single primary metric?
Not for one pre-declared comparison: a family of one has no multiplicity to absorb, and Holm or Bonferroni with m = 1 changes nothing. Multiplicity enters when several claims can each trigger the same decision, such as multiple variants against one control, several primary metrics, or a set of planned segments.
Does Holm require independent tests?
No. The family-wise guarantee holds under arbitrary dependence as long as the individual p-values are valid. Correlation still matters for interpretation and should be documented: correlated metrics tend to move together, and the correction will feel conservative when they do.
Can Holm adjust confidence intervals?
Simultaneous intervals can be constructed to match a family-wise procedure, though software support is uneven and the intervals are wider than per-test ones. Reporting estimates with clearly labelled adjusted intervals is more honest than pairing adjusted p-values with unadjusted intervals.
How do I report Holm-adjusted p-values in an experiment readout?
Give the family size, the procedure, alpha, the raw p-value, the adjusted p-value or boundary, and the effect with its confidence interval. Then state the decision in one sentence. The reporting section has a template line.
Should I use Holm for many exploratory metrics or segments?
It can be used, but it will be too stringent when the purpose is discovery and confirmatory follow-up is planned. Consider false discovery rate control or a pre-declared hierarchy, and clearly label anything that came out of the exploratory pass.
How to cite the Holm–Bonferroni procedure
The method is named after Sture Holm’s 1979 paper in the Scandinavian Journal of Statistics.
@article{holm1979simple,
title = {A simple sequentially rejective multiple test procedure},
author = {Holm, Sture},
journal = {Scandinavian Journal of Statistics},
volume = {6},
number = {2},
pages = {65--70},
year = {1979},
url = {https://www.jstor.org/stable/4615733}
}
When the procedure is applied inside a paper or a readout, report it as “Holm–Bonferroni correction (Holm, 1979)” and state the family size; that one number is what makes the result reproducible.
Sources and further reading
- Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2), 65–70.
- Hochberg, Y. (1988). A sharper Bonferroni procedure for multiple tests of significance. Biometrika, 75(4), 800–802.
- Hochberg, Y., & Tamhane, A. C. (1987). Multiple Comparison Procedures. Wiley.
- Benjamini, Y., & Hochberg, Y. (1995). Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society: Series B, 57(1), 289–300.
- NIST/SEMATECH e-Handbook of Statistical Methods, section on multiple comparisons.
- R documentation for
stats::p.adjust; statsmodels documentation forstatsmodels.stats.multitest.multipletests. - AB-Labz blog: multiple comparisons in A/B testing.