Concept · Statistics Library

Multiple comparisons

The multiple-comparisons problem is that running many hypothesis tests inflates the chance of at least one false positive far above the significance level used for any single test.

Chapter 4: Tests, estimates and comparisonsReading 4.7

Understand the idea

A single test at alpha = 0.05 has a 5% chance of a false alarm if nothing is really going on. Run 20 independent tests under the same all-null situation and the chance that AT LEAST ONE comes back significant purely by chance climbs to roughly 64%, not 5%, because each additional test is another roll of the dice.

This happens constantly in ordinary practice: comparing every pair of groups after a significant ANOVA, screening dozens of variables for correlations, or checking many outcomes in one study. None of these are wrong to do, but the resulting p-values need adjusting; otherwise a 'significant' finding is much more likely to just be noise than the single-test 5% figure suggests.

The standard fixes lower the bar for calling something significant, in exchange for controlling the overall error rate: Bonferroni (simple, conservative, divides alpha by the number of tests), Holm (a step-down version of Bonferroni, less conservative), and Benjamini-Hochberg (controls the expected proportion of false discoveries rather than the chance of any false discovery at all, and is less conservative still when many tests are run).

The chance of at least one false alarm across the whole set, or family, of tests is called the familywise error rate. The Bonferroni correction and the Holm correction both keep the familywise error rate at or below the chosen alpha, such as 5%. The false discovery rate is the expected share of 'significant' results that are really false alarms, and it is what the Benjamini-Hochberg method controls.

Practitioner explanation

The familywise error rate for m independent tests each at alpha is 1 - (1-alpha)^m; Bonferroni controls FWER by testing each comparison at alpha/m (conservative, and increasingly so as m grows, especially under positive dependence among tests); Holm's step-down procedure controls the same FWER less conservatively by ordering p-values and testing sequentially against a shrinking threshold.

Benjamini-Hochberg controls the FALSE DISCOVERY RATE (the expected proportion of rejected hypotheses that are false positives) rather than the probability of any false positive at all, which is the appropriate target when many tests are run and some true effects are expected among them (genomics, large screening studies); BY is a more conservative FDR variant valid under arbitrary dependence.

KernelStats' Multiple Testing Correction function and the EDA screen's automatic correction both default to Benjamini-Hochberg regardless of how many tests are in the family (the card's own guidance recommends switching to Holm for a handful of confirmatory tests where any false positive is costly), reporting n_lost_to_correction, the count of raw-significant results that no longer clear the adjusted threshold, because an uncorrected battery of pairwise or variable-screening tests is one of the most common ways a KernelStats user could unintentionally inflate their false-positive rate.

When to use it

Consider it when

Whenever more than a small, pre-planned handful of hypothesis tests are examined together as a family: pairwise post hoc comparisons, screening many variables, or testing several outcomes in one study.

Use caution when

Do not apply a correction to a single, pre-specified confirmatory test performed in isolation: there, no 'family' of comparisons exists to correct across.

Formulas and symbols

Bonferroni-adjusted significance threshold

αadjusted=αm\alpha_{\text{adjusted}} = \frac{\alpha}{m}

m is the number of comparisons in the family being tested together.

Common misconceptions

Misconception

Running more tests only helps you find more real effects, with no downside.

Correction

Each additional test run without correction adds to the chance of at least one false positive appearing in the results. The correction exists specifically to keep that overall error rate honest as the number of tests grows.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.7.1 Are all the means equal?, NIST/SEMATECH (2012), §7.4.7.1.
  2. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing, Benjamini, Y. and Hochberg, Y. (1995).