MLCrack

    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: P(≥1falsepositive)P(≥1 false positive) = 1-(1-α)^m ≈ 1-e^(-mα).

    For 20 tests: ~64% chance of a false positive.

    Corrections:

    1. Bonferroni: α_adj = α/m. Simple but conservative.

    2. Holm-Bonferroni: sequential rejection, less conservative.

    3. Benjamini-Hochberg (FDR): controls false discovery rate instead of family-wise error rate. Less conservative, preferred in many applications.

    4. 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.