Non-stationary A/B Tests: Optimal Variance Reduction, Bias Correction, and Valid Inference

50 Pages Posted: 29 Apr 2022

See all articles by Yuhang Wu

Yuhang Wu

University of California, Berkeley

Zeyu Zheng

University of California, Berkeley

Guangyu Zhang

Amazon

Zuohua Zhang

Amazon

Chu Wang

Amazon

Date Written: June 18, 2023

Abstract

We develop an analytical framework to appropriately model and adequately analyze A/B tests in presence of nonparametric non-stationarities in the targeted business metrics. A/B tests, also known as online randomized controlled experiments, have been used at scale by data-driven enterprises to guide decisions and test innovative ideas to improve core business metrics. Meanwhile, non-stationarities, such as the time-of-day effect and the day-of-week effect, can often arise nonparametrically in key business metrics involving purchases, revenue, conversions, customer experiences, etc. First, we develop a generic nonparametric stochastic model to capture nonstationarities in A/B test experiments. We build a practically relevant limiting regime to facilitate analyzing large-sample estimator performances under nonparametric non-stationarities. Second, we show that ignoring or inadequately addressing non-stationarities can cause standard A/B tests estimators to have sub-optimal variance and non-vanishing bias, therefore leading to loss of statistical efficiency and accuracy. We provide a new estimator that views time as a continuous strata and performs post stratification with a data-dependent number of stratification levels. Without making parametric assumptions, we prove a central limit theorem for the proposed estimator and show that the estimator attains the best achievable asymptotic variance and is asymptotically unbiased. Third, we propose a time-grouped randomization that is designed to balance treatment and control assignments at granular time scales. We show that when the time-grouped randomization is integrated to standard experimental designs to generate experiment data, simple A/B test estimators can achieve asymptotically optimal variance. A brief account of numerical experiments are conducted to illustrate the analysis.

Keywords: A/B tests, non-stationarity, central limit theorem, optimal asymptotic variance, bias, inference

Suggested Citation

Wu, Yuhang and Zheng, Zeyu and Zhang, Guangyu and Zhang, Zuohua and Wang, Chu, Non-stationary A/B Tests: Optimal Variance Reduction, Bias Correction, and Valid Inference (June 18, 2023). Available at SSRN: https://ssrn.com/abstract=4557431 or http://dx.doi.org/10.2139/ssrn.4077638

Yuhang Wu

University of California, Berkeley ( email )

CA
United States

Zeyu Zheng (Contact Author)

University of California, Berkeley ( email )

4125 Etcheverry Hall
Berkeley, CA 94720
United States

Guangyu Zhang

Amazon ( email )

Zuohua Zhang

Amazon ( email )

Chu Wang

Amazon ( email )

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
80
Abstract Views
218
Rank
92,026
PlumX Metrics