A/B Testing: Multiple Hypothesis Testing

Nikolay Nazarov11 Sep 2024

Problem

An analyst wants to test many variants in one experiment, for example 100 neural-network images for a promo mailing, and find which raise average revenue per customer. With one hypothesis the type I error equals the significance level α. With many hypotheses and no real effect anywhere, the chance of at least one false positive climbs fast: for α=0.05 it is 0.40 at 10 hypotheses and 0.99 at 100. Many null variants can also hide a real winner: with one true effect among 100 hypotheses, there is a 0.24 chance that some null variant shows a larger point estimate than the true one.

Example from the article: 100 generated images for a mailing, find those that raise revenue.

Solution in brief

Cut the variants by expert selection first. If two or more remain, apply a correction: Bonferroni or Holm to control the family-wise error rate (FWER), Benjamini-Hochberg to control the false discovery rate (FDR). Corrections lower power, so size the groups with α/m in place of α, for m hypotheses. One shared control group cuts the required data almost in half.

Questions this case answers
  • How to test many variants against a baseline in one experiment without inflating false positives or losing power
  • How to size the groups of a multi-variant test so that the corrected procedure still reaches the target power with the least traffic
  • How to keep false positives under control when one experiment tests many hypotheses or variants?
  • How to choose between Bonferroni, Holm and Benjamini-Hochberg corrections?

Tools and methods

  • Bonferroni correction — tests each hypothesis at α/m; controls FWER, lowest power.
  • Holm correction — step-by-step test that controls FWER with more power than Bonferroni.
  • Benjamini-Hochberg correction — thresholds α·i/m; controls FDR, not FWER.
  • Power analysis with Monte Carlo simulation — sizes groups and measures FWER, FDR and power.
Continue reading — it's free

Google or a one-time email code. No password.