Skip to main content

Biostatistics in Practice: Principles and Procedures - A MedCalc companion e-book

Multiple Testing

When a single hypothesis is tested at the 5% significance level, there is a 5% chance of a false positive — rejecting the null hypothesis when it is in fact true. But when many hypotheses are tested simultaneously, the probability of obtaining at least one false positive increases rapidly with the number of tests, even if every null hypothesis is true. This is the multiple testing problem. It arises in any setting where several outcomes, subgroups, time points, or predictors are examined in the same dataset: a clinical trial reporting ten secondary endpoints, a diagnostic study comparing several biomarkers, or a set of pairwise comparisons following a significant ANOVA. Failing to account for multiplicity inflates the apparent evidence and leads to results that do not replicate. The main strategies — controlling the family-wise error rate (the probability of any false positive across all the tests) or the false discovery rate (the expected proportion of false positives among the results declared significant) — differ in how conservatively they trade power against error control. MedCalc's procedures control the family-wise error rate throughout, using the Bonferroni correction and the post-hoc tests described below.

Family-Wise Error Rate

The family-wise error rate (FWER) is the probability of making at least one false-positive decision among a set, or "family", of tests. For $m$ independent tests, each conducted at significance level $\alpha$, the probability that none produces a false positive is $(1-\alpha)^m$, so the probability that at least one does is:

$$ \text{FWER} = 1 - (1-\alpha)^m $$

The Clinical versus statistical significance chapter notes that 20 independent tests at $\alpha = 0.05$ yield one false positive on average. The FWER makes the same fact more alarming: the probability of at least one false positive among those 20 tests is $1 - 0.95^{20} = 0.64$ — a 64% chance of a spurious "significant" result somewhere in the study, even though every null hypothesis is true. With $m = 5$ tests the FWER is already 23%; with $m = 10$ it is 40%.

This formula assumes the tests are independent. Many of the tests this chapter is concerned with — pairwise comparisons among the same set of group means, for instance — are correlated with one another, which lowers the true FWER somewhat below the formula's value. The qualitative conclusion is unaffected: uncorrected multiple testing inflates the chance of a false positive well beyond the nominal 5%, and by an amount that grows with the number of tests.

The Bonferroni Correction

The Bonferroni correction controls the family-wise error rate by dividing the significance threshold by the number of tests, $m$:

$$ \alpha_{\text{corrected}} = \frac{\alpha}{m} $$

Equivalently, each raw $P$ value can be multiplied by $m$ (capped at 1) and compared against the original threshold $\alpha$ — this is how MedCalc reports Bonferroni-corrected results, as an adjusted $P$ value rather than an adjusted threshold. Either way, the result is the same decision.

Example: A trial reports results for five secondary endpoints. Testing each at the conventional $\alpha = 0.05$ would give a family-wise error rate of 23% (as above). The Bonferroni-corrected threshold is $0.05 / 5 = 0.01$: only an endpoint with a raw $P$ value below 0.01 is declared significant, holding the family-wise rate at 5% across all five.

Bonferroni's advantage is that it makes no assumption about how the tests are correlated with one another — it is valid whatever the dependence structure among them, which is why it works as a general-purpose correction across the very different test statistics used in ANOVA, Kruskal–Wallis, and elsewhere. That generality comes at a cost: when the tests are correlated, as pairwise comparisons among related group means typically are, Bonferroni is more conservative than it needs to be, and statistical power is lost. Less conservative corrections exist for exactly this situation — Holm's step-down procedure tightens Bonferroni without losing its validity, and the Benjamini–Hochberg procedure controls the false discovery rate rather than the family-wise rate, trading a looser error guarantee for substantially more power in exploratory settings with many tests — but neither is implemented in MedCalc.

A correction is needed only when several comparisons are examined and the reported result depends on which ones turned out significant. A single comparison that was decided in advance, before the data were seen, does not need adjustment, whatever else was measured in the same study. This is the same principle that makes stepwise variable selection in regression problematic: testing many candidate predictors and reporting only the ones that cleared a significance threshold is a multiple testing problem in disguise (see Why Stepwise Selection Is Not Recommended in the Multiple Regression chapter). Pre-specifying which comparisons will be made — and how many — before looking at the outcome data is the most reliable way to limit the scope of the problem in the first place.

The Case Against Routine Correction

Not every statistician accepts that correction should be applied as routinely as the sections above imply. In an influential paper still cited today, Kenneth Rothman argued that adjusting for multiple comparisons does more harm than good (Rothman, 1990). His objection targets the logic behind the correction, not its arithmetic: routine adjustment treats every association as if it were most likely pure chance — a "universal null hypothesis" — and raises the bar accordingly as more tests are performed. Real clinical and biological effects, Rothman argued, are not random noise, and a policy built to suppress false positives among null effects necessarily suppresses true positives among the real ones just as effectively. Tightening the significance threshold to guard against noise trades a lower Type I error rate for a higher Type II error rate, and that trade is rarely acknowledged, let alone justified, when a correction is applied by default.

Richard Hooper revisited the debate more recently and reached a more conditional conclusion (Hooper, 2025): whether adjustment helps or hurts depends on what the analysis is for. In exploratory screening across many candidate associations — where a promising lead will be re-tested before anything is acted on — an inflated false-positive rate is cheap and an overly conservative one is costly, so correction can do more harm than good. In a single confirmatory analysis meant to support a specific clinical or regulatory decision, controlling the error rate matters more, and correction earns its keep. Hooper also makes a point that holds regardless of which side of the debate one takes: a study that tests twenty endpoints and reports only the two that reached significance is misleading no matter what correction, if any, was applied to those two — selective reporting does more damage than the choice of correction method ever could.

MedCalc implements the family-wise corrections described in this chapter because they remain the conventional choice and the one most reviewers and regulators expect.

Post-Hoc Tests in MedCalc

A significant omnibus test — an ANOVA, a Kruskal–Wallis test, a Friedman test — establishes only that some difference exists somewhere among the groups or conditions being compared; it does not say which ones differ. The follow-up pairwise comparisons needed to answer that question are exactly the kind of multiple testing this chapter is about, and MedCalc offers a different set of post-hoc procedures depending on which omnibus test was used:

Omnibus test Post-hoc test(s) in MedCalc Chapter
One-way ANOVAStudent–Newman–Keuls, Tukey–Kramer, SchefféANOVA
Two-way ANOVABonferroni (pairwise comparisons of estimated marginal means)Two-way ANOVA
Repeated-measures ANOVABonferroni (pairwise comparisons across conditions)Repeated-measures ANOVA
Kruskal–Wallis testDunn's test, Conover's testKruskal–Wallis test
Friedman testConover's testFriedman test

The two-way and repeated-measures designs use the general Bonferroni correction described above. The remaining three rows use purpose-built post-hoc procedures, each already covered in full — with its formula and a worked clinical example — in its own chapter, and only summarised here:

There is no single "multiple testing" procedure in MedCalc: each correction is applied within the specific procedure it belongs to, as listed above.

Literature