PROBABILITY & STATISTICS · INTERVIEW QUESTION
What is the multiple comparisons problem? How do you correct for it?
🔴 advanced · Statistical Inference
Hint: If you do 20 tests at α=0.05, you expect 1 false positive by chance.
Answer
When performing multiple statistical tests, the probability of at least one false positive increases. With m independent tests at α=0.05: = 1-(1-α)^m ≈ 1-e^(-mα).
For 20 tests: ~64% chance of a false positive.
Corrections:
-
Bonferroni: α_adj = α/m. Simple but conservative.
-
Holm-Bonferroni: sequential rejection, less conservative.
-
Benjamini-Hochberg (FDR): controls false discovery rate instead of family-wise error rate. Less conservative, preferred in many applications.
-
Bayesian approach: hierarchical models and appropriate priors can address multiplicity, but selecting favorable results across many analyses still requires a declared model and decision rule.
In ML: applies to feature selection (testing many features), hyperparameter search, A/B testing with multiple metrics.
Practical tip: pre-register your primary metric to avoid p-hacking.
Related questions
- What is the difference between Type I and Type II errors? How do they relate to precision and recall?
- What is the difference between descriptive and inferential statistics?
- Explain the difference between parametric and non-parametric tests. When would you use each?
- What is a confidence interval? How is it different from a credible interval?
- Explain Bayes' theorem and give an ML application.