Problem
An analyst runs a randomized experiment and wants a narrower confidence interval for the average treatment effect (ATE) without waiting for more users. Covariates are available, but the choice of adjustment method is unclear. Simple regression assumes a linear world, and CUPED as usually implemented uses one covariate. A poor choice leaves variance unused, and ML models are safe only with cross-fitting.
Example from the article: a simulated experiment with 2000 units and 10 covariates, where the plain difference in means has a standard error of 2.730 and adjusted estimators bring it down to between 1.120 and 1.530.
Solution in brief
All methods below stay unbiased under random assignment, so the choice affects only variance. With linear covariate effects, regression adjustment (OLS) wins. With non-linear effects, which the author calls the norm in practice, an ML model predicting the outcome from covariates (difference-in-differences, DID, or MLRATE) gives the smallest standard errors.
Questions this case answers
- How to reduce the variance of a randomized-experiment effect estimate when many pre-treatment covariates exist and their relation to the outcome may be non-linear
- How to pick a covariate-adjustment estimator for a randomized experiment when the functional form of the outcome and the heterogeneity of the effect are unknown
- How to get tighter confidence intervals from an A/B test without adding users or days?
- How to choose between CUPED, regression adjustment and ML-based adjustment for an experiment readout?
Tools and methods
- Difference-in-means (DIM) — baseline without adjustment.
- Regression adjustment (OLS_adj, OLS_int) — outcome regression on covariates, with or without treatment-covariate interactions.
- CUPED — outcome shifted by a single pre-experiment covariate.
- DID with ML predictions — compares treated and control means of the outcome minus its ML prediction.
- MLRATE — regression that uses the ML prediction as a covariate.
- XGBoost, statsmodels, scikit-learn — prediction model, regressions with robust errors, stratified folds.
Google or a one-time email code. No password.