An A/B test evaluates 20 independent metrics at significance level α=0.05 when the treatment actually has zero effect on all of them. What is the probability of getting at least one false positive, how does Bonferroni correction adjust the threshold, and why does sequential peeking cause a similar problem?

ML systems and evaluation, Online experiments
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can quantify family-wise error inflation from multiple comparisons and connect it to repeated significance testing over time.

Key idea

Testing m independent null hypotheses at level α yields a family-wise error rate (FWER, the probability of at least one false positive) of 1−(1−α)m; Bonferroni divides α by m so the union bound guarantees FWER≤α.

Steps

  1. Compute the false-positive probability across m=20 independent null metrics: P(≥1 false positive)=1−(1−0.05)20=1−0.9520≈1−0.3585=0.6415 (64.2%).
  2. Apply Bonferroni correction: test each metric at αadj=αm=0.0520=0.0025; by Boole’s (union) inequality, FWER≤20×0.0025=0.05.
  3. Note the trade-off: Bonferroni is conservative when metrics are correlated and reduces statistical power (making real effects harder to detect), so teams often pre-specify a single primary metric instead of testing many metrics equally.
  4. Connect to peeking: checking the p-value every day and stopping as soon as p<0.05 is multiple testing over time (repeated looks at correlated cumulative data), which likewise pushes the true false-positive rate well above 5% unless sequential stopping boundaries are used.

Common mistakes

How long your answer should be

Two lines of arithmetic and 3–4 sentences; 3 minutes.

Read this

Previous in ML systems and evaluation: A three-class classifier produces confusion matrix rows (true classes A, B, C; predicted columns A, B, C) of [45,5,0], [6,21,3] and [4,4,12]. What are macro-F1 and micro-F1, why does micro-F1 equal overall accuracy here, and when is macro-F1 preferred?
Next in ML systems and evaluation: A loan classifier is evaluated on two demographic groups of 100 applicants each: Group A has TP=48,FN=12,FP=12,TN=28 and Group B has TP=24,FN=6,FP=21,TN=49. What are the positive prediction rate, TPR, FPR and PPV for each group, and which fairness criteria are satisfied or violated?