An A/B test evaluates 20 independent metrics at significance level 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 independent null hypotheses at level yields a family-wise error rate (, the probability of at least one false positive) of ; Bonferroni divides by so the union bound guarantees .
Steps
- Compute the false-positive probability across independent null metrics: ().
- Apply Bonferroni correction: test each metric at ; by Boole’s (union) inequality, .
- 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.
- Connect to peeking: checking the -value every day and stopping as soon as 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
- Multiplying and saying a false positive is guaranteed with probability 1; is an upper bound, not the exact probability.
- Correcting for multiple metrics while still peeking daily at the dashboard without sequential boundaries.
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 , and . 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 and Group B has . What are the positive prediction rate, , and for each group, and which fairness criteria are satisfied or violated?