Course outline

Multiple Testing: FWER and FDR

By the end of this lesson, you should be able to: compute how many false winners a scorecard will produce before you read it, tell family-wise error control from false discovery control and pick the right one, explain why slicing by segment is far more dangerous than adding metrics, and pre-register in a way that survives contact with a stakeholder.

A result that would have shipped

Basket changed some microcopy on the checkout button. The primary metric didn't move, but the scorecard tracked twenty secondary metrics alongside it, which is a completely normal number.

Here are the six most promising, sorted by p-value.

MetricLiftp
metric_16+2.81%0.032
metric_01+3.56%0.232
metric_11+2.95%0.255
metric_03+3.39%0.263
metric_14+2.32%0.290
metric_05−2.02%0.309

One of them is significant. It's got a plausible effect size, a p-value comfortably under the threshold, and it's the kind of secondary win that gets a change shipped when the primary metric is flat.

Every one of those twenty metrics was generated with no treatment effect whatsoever. There's nothing to find in any of them. metric_16 is noise, and it's noise that looks exactly like a result.

This is arithmetic, not bad luck

If a metric has no effect, a test at α=0.05\alpha = 0.05 calls it significant 5% of the time. That's the deal you signed. Test one metric and you have a 5% chance of a false winner.

Test mm independent metrics and the chance that at least one fires is:

P(at least one false winner)=1(1α)mP(\text{at least one false winner}) = 1 - (1 - \alpha)^m

Metrics testedFormula saysSimulation says
15.0%5.3%
522.6%21.9%
1040.1%39.3%
2064.2%63.5%
5092.3%92.6%
10099.4%99.4%
Two panels. On the left, a curve of the chance of at least one false winner rising from 5% at one metric to 64% at twenty and above 90% by fifty. On the right, twenty p-values plotted in rank order against a Benjamini-Hochberg line, a flat uncorrected 0.05 line and a much lower Bonferroni line, with the lowest point sitting just under the flat line but above both corrections.
Left, the cost of every extra metric. Right, Basket's twenty p-values against three different thresholds.

At twenty metrics the chance of at least one false winner is 64%. Basket's scorecard wasn't unlucky. A scorecard that size produces a spurious winner about two times in three, so the surprising outcome would have been a clean sweep.

This is the same arithmetic as lesson 14, rotated. There you looked at one metric fourteen times. Here you look at twenty metrics once. Both are "how many chances did I give myself to be wrong", and both have the same answer: more than you thought.