ML0128 Multiple Comparisons & FDR

Your experiment dashboard shows 200 metrics and 3 are ‘significant’. How do you separate real effects from false discoveries: FWER, FDR, and Benjamini-Hochberg?

Line-art experiment dashboard: a frame holding a grid of 200 small metric tiles comparing treatment against control, with three tiles highlighted and linked to cards reading checkout conversion p = 0.00008, session length p = 0.011, and support tickets p = 0.038, under a header saying these were flagged with p under 0.05

The Problem: One experiment readout with 200 metric tiles comparing treatment against control. Three tiles cross the p \leq 0.05 cutoff, with p-values 0.00008, 0.011, and 0.038.

Answer

With 200 metrics each tested at \alpha = 0.05, pure noise is expected to produce 10 significant results, so 3 hits is not evidence that anything moved. The family-wise error rate (FWER) is the probability of even one false positive across the family. With 200 independent null metrics it reaches 1 - 0.95^{200} \approx 0.99996. Bonferroni and Holm cap FWER at \alpha by demanding roughly p \leq 0.05/200 = 0.00025, which suits a launch claim but destroys power on a broad scan. The false discovery rate (FDR) bounds the expected share of false calls among the metrics you flag, and the Benjamini-Hochberg (BH) step-up procedure controls it at level q with far more power. In practice you split the 200 metrics into pre-registered families by decision role and give each family the error rate that matches what a wrong call would cost.

(1) Count Before You Celebrate: The expected number of false positives under the global null is m\alpha = 10, so the count of hits says little. The size of the smallest p-values says a lot.
(2) FWER vs FDR: FWER is P(V \geq 1) and treats any single false call as a failure. FDR is the expected false discovery proportion V/R, which tolerates a known fraction of false calls among discoveries.
(3) Bonferroni and Holm: Bonferroni tests each metric at \alpha/m and is valid under any dependence. Holm’s step-down gives the same guarantee with uniformly more power, so plain Bonferroni is never the better choice.
(4) Benjamini-Hochberg Step-Up: Sort the p-values, find the largest rank k with p_{(k)} \leq kq/m, and reject every rank up to it, even ranks that miss their own threshold. It is proven under independence and positive dependence (PRDS), and the Benjamini-Yekutieli variant covers arbitrary dependence at a cost of \ln m.
(5) Families by Decision Role: Success metrics that support a launch get FWER control, guardrails get non-inferiority tests sized for power, and exploratory metrics and segments get BH because their hits only seed a confirmatory test.

Mathematical Formulation:
\mathrm{FWER} = P(V \geq 1)
\mathrm{FDR} = \mathbb{E}\left[\frac{V}{\max(R, 1)}\right]
P(V \geq 1) = 1 - (1 - \alpha)^{m}
p_{i} \leq \frac{\alpha}{m}
p_{(k)} \leq \frac{\alpha}{m - k + 1}
k^{*} = \max\left\{k : p_{(k)} \leq \frac{k}{m}\,q\right\}
c(m) = \sum_{i=1}^{m} \frac{1}{i}
q_{\mathrm{BY}} = \frac{q}{c(m)}

Where:

  • V is the number of true null metrics you reject (false discoveries) and R the total number rejected. The \max(R, 1) defines the false discovery proportion as 0 when nothing is rejected.
  • m is the number of tests in the family and \alpha the per-test or family-wise level. The third line is the FWER of m independent true nulls tested without correction: 0.64 at m = 20 and 0.99996 at m = 200.
  • p_{i} is the raw p-value of metric i, and the fourth line is the Bonferroni rule.
  • p_{(k)} is the k-th smallest p-value. Holm checks its threshold for k = 1, 2, \ldots, stops at the first failure, and rejects every rank before it.
  • q is the target FDR level and k^{*} the largest rank under the BH line kq/m. BH rejects H_{(1)}, \ldots, H_{(k^{*})}, scanning from the top down, which is why it is called step-up.
  • c(m) is the harmonic number, about \ln m + 0.577, so c(200) \approx 5.88. Running BH at q_{\mathrm{BY}} gives Benjamini-Yekutieli, valid under any dependence.

Worked Example: Take a 10-metric family with sorted p-values 0.001, 0.012, 0.014, 0.019, 0.040, 0.09, 0.21, 0.36, 0.55, and 0.81, and run BH at q = 0.05. The BH threshold for rank k is 0.005k. The BH-adjusted p-value is p_{(k)} m / k, made monotone by taking the running minimum from the bottom rank upward.

Rank kSorted pBH threshold kq/mBH-adjusted pDecision at q = 0.05
10.0010.0050.010Reject
20.0120.0100.0467Reject (misses its own threshold, rescued by rank 4)
30.0140.0150.0467Reject
40.0190.0200.0475Reject (largest passing rank, k* = 4)
50.0400.0250.080Keep (raw p under 0.05, not a discovery)
60.0900.0300.150Keep
70.2100.0350.300Keep
80.3600.0400.450Keep
90.5500.0450.611Keep
100.8100.0500.810Keep

Five metrics have a raw p-value under 0.05, but the procedures disagree sharply. Bonferroni uses 0.05/10 = 0.005 and rejects only rank 1. Holm also stops at rank 2 because 0.012 > 0.05/9 \approx 0.0056. BH rejects four, and rank 2 is rejected despite failing its own threshold, because rank 4 passes. That rescue is the step-up property. Back on the 200-metric dashboard, the rank-2 BH threshold is 2 \times 0.05/200 = 0.0005, so 0.011 and 0.038 both fail. Only checkout conversion survives, with a BH-adjusted p of 0.00008 \times 200 = 0.016. Bonferroni reaches the same verdict here, which shows that BH gains power only when many small p-values exist to lift the line.

The more important decision happens before any correction runs: which metrics belong to which family. A single BH pass over all 200 metrics mixes a launch claim, harm detection, and exploration into one error budget. The primary metric is tested first at full \alpha as a gatekeeper. Secondary success metrics get Holm only if the primary wins. Guardrails are non-inferiority checks where missed harm is the costly error. The exploratory long tail and segment slices get BH at a looser q, because a false lead there costs a follow-up experiment rather than a bad launch.

Left-to-right pipeline: 200 metrics from one experiment feed a decision box that splits them into families by decision role fixed before unblinding; four family boxes follow (primary metric tested first at alpha 0.05, 9 secondary metrics with Holm at FWER 0.05, 20 guardrails as non-inferiority tests powered jointly, 170 exploratory metrics and segments with BH at q 0.10), each leading to an outcome box: launch claim, supporting claims, block launch if any guardrail fails, and hypotheses for a fresh confirmatory test

Figure 1: The same 200 p-values get different treatment depending on the decision each family drives. FWER control guards launch claims, non-inferiority with power planning guards against missed harm, and BH keeps the exploratory tail useful without letting it ship anything.


Login to view more content
Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *