On Post-selection Inference in A/B Testing

Alex Deng, Yicheng Li, Jiannan Lu, Vivek RamamurthyKDD 2021 · DOI

Introduction

In the practice of large-scale A/B testing, organizations frequently encounter the "Winner’s Curse." This phenomenon occurs when practitioners focus exclusively on statistically significant results, leading to a systematic overestimation of a feature's true performance. While standard estimators like Maximum Likelihood Estimation (MLE) are unbiased prior to analysis, they become significantly biased once results are filtered for significance. This post-selection inference bias results in "trustworthy" decisions that fail to materialize in production, leading to disappointing product launches and misallocated resources.

Methodology

To address these biases, we introduce two primary methodological innovations: Ghidorah and TARwES.

Ghidorah: The Three-Headed Mixture Prior

Ghidorah utilizes an Empirical Bayes framework with a sophisticated "mixture prior" to model the distribution of treatment effects. It assumes effects originate from one of three components:

  1. The Zero Head: Accounting for the 70-80% of experiments that result in no meaningful change.
  2. The Gaussian Head: Representing the majority of successful, incremental improvements.
  3. The Laplace Head: Capturing rare, high-impact "breakthrough" ideas with heavy-tailed gains.

This structure allows the model to aggressively "shrink" noisy, near-zero results while preserving the integrity of genuine breakthroughs.

TARwES: Theory-Assisted Regression with Experiment Splitting

TARwES (Theory-Assisted Regression with Experiment Splitting) is a hybrid approach combining generative Empirical Bayes theory with discriminative machine learning. By using theoretical EB predictions as features in a regression model trained on split-traffic data, TARwES captures complex, non-linear relationships that traditional linear models miss.

Key Insights: The Non-Linearity of Bias

A critical finding is that post-selection bias is inherently non-linear. Small, noisy results require substantial correction, whereas large, high-signal results require very little. Figure 1 illustrates this relationship using real-world engagement data, showing how the estimated delta varies non-linearly across different sample sizes and effect magnitudes.

Figure 1: Non-linear relationship between observed and true effects across different sample size tiers.

Furthermore, explicitly modeling a "spike" at zero is essential. Most product changes have no effect; failing to account for this leads to a high rate of false positives and over-optimistic estimates.

Experimental Results

The proposed methods were validated using both large-scale simulations and a dataset of over 1,000 real-world experiments from a major business unit.

Simulation Performance

In scenarios where effects are sparse (e.g., 90% zero effects), Ghidorah and TARwES+ significantly outperformed baseline methods. As shown in Table 1, these methods achieved the lowest Root Mean Squared Error (RMSE) and maintained confidence interval coverage near the nominal 95% level, whereas unadjusted methods saw coverage drop significantly.

Table 1: Performance comparison in Case 3 (90% Zero prior).

Real-World Application

On real-world data involving user engagement and site performance, Ghidorah emerged as "best in class." It provided the most accurate point estimates and reduced the width of confidence intervals without sacrificing reliability. Notably, the method is efficient, requiring as few as 50 historical experiments to accurately learn the prior distribution.

Conclusion

Post-selection bias is a pervasive threat to the integrity of A/B testing. By leveraging mixture priors and hybrid ML-EB approaches, Ghidorah and TARwES provide a robust framework for correcting the Winner's Curse. These methods ensure that product decisions are based on honest estimates, leading to more predictable and successful feature deployments. Future work will focus on extending these techniques to complex causal inference and non-randomized observational studies.

Summary updated

BibTeX
@inproceedings{deng2021post,
  author = {Alex Deng and Yicheng Li and Jiannan Lu and Vivek Ramamurthy},
  title = {{On Post-selection Inference in A/B Testing}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467129},
}
Figure