Abstract
Randomized experiments have become the standard method for companies to evaluate the performance of new products or services. In addition to augmenting managers' decision-making, experimentation mitigates risk by limiting the proportion of customers exposed to innovation. Since many experiments are on customers arriving sequentially, a potential solution is to allow managers to "peek" at the results when new data becomes available and stop the test if the results are statistically significant. Unfortunately, peeking invalidates the statistical guarantees for standard statistical analysis and leads to uncontrolled type-1 error. Our paper provides valid design-based confidence sequences, sequences of confidence intervals with uniform type-1 error guarantees over time for various sequential experiments in an assumption-light manner. In particular, we focus on finite-sample estimands defined on the study participants as a direct measure of the incurred risks by companies. Our proposed confidence sequences are valid for a large class of experiments, including multi-arm bandits, time series, and panel experiments. We further provide a variance reduction technique incorporating modeling assumptions and covariates. Finally, we demonstrate the effectiveness of our proposed approach through a simulation study and three real-world applications from Netflix. Our results show that by using our confidence sequence, harmful experiments could be stopped after only observing a handful of units; for instance, an experiment that Netflix ran on its sign-up page on 30,000 potential customers would have been stopped by our method on the first day before 100 observations.
Introduction
In the fast-paced world of online services, randomized experiments (A/B tests) are essential for evaluating new features. However, these tests carry inherent risks: exposing users to a buggy or inferior experience can lead to immediate churn and revenue loss. To mitigate this, experimenters often want to monitor results in real-time—a practice known as "peeking."
The Problem: Inflated Type-1 Error
The primary challenge with peeking is that standard statistical tests are designed for a fixed horizon. They assume the data will be analyzed exactly once after a predetermined sample size is reached. If an experimenter calculates a p-value every time a new user arrives and stops as soon as the result appears significant, the probability of a false positive (Type-1 error) increases dramatically over time.
As shown in the figure above, even with a nominal alpha of 0.05, the actual Type-1 error can exceed 0.50 after just 1,000 observations if the test is monitored continuously. This "optional stopping" problem makes standard inference unreliable for risk mitigation.
Design-Based Confidence Sequences
To address this, we introduce "design-based confidence sequences." Unlike traditional model-based approaches that rely on "super-population" assumptions (treating users as independent draws from an infinite pool), our method treats the potential outcomes of the participants as fixed. We leverage the known randomness of the treatment assignment itself—the experimental design.
Key Technical Innovations
- Anytime-Valid Inference: We construct sequences of confidence sets that maintain a uniform error guarantee over all time points simultaneously. This is achieved using martingale constructions and Ville’s Maximal Inequality.
- Finite-Sample Estimands: We focus on the effect on the actual participants in the study. For a company, the primary concern is the risk incurred by the specific users currently exposed to a treatment, making this a more direct measure of risk.
- Variance Reduction: By incorporating historical covariates (e.g., a user's past engagement) as "proxy outcomes," we can significantly shrink confidence bands without compromising the validity of the test.
Real-World Impact at Netflix
We validated our framework using several real-world datasets from Netflix, demonstrating its ability to "stop the bleed" in harmful experiments.
- Rapid Detection: In a sign-up page experiment where a new feature had a strong negative impact, our confidence sequence reached statistical significance on the very first day. While the original test was slated for 30,000 users, our method could have safely stopped the experiment after observing fewer than 100 users.
- Efficiency Gains: In simulations and panel data experiments, our variance reduction techniques provided up to a 7x reduction in the time required to detect significant effects compared to standard methods.
- Robustness: The design-based nature of our approach makes it applicable to complex scenarios like multi-arm bandits and switchback experiments, where treatment probabilities change over time or are correlated.
Conclusion and Future Directions
Design-based confidence sequences provide a robust, assumption-light framework for real-time monitoring of online experiments. By providing valid inference under continuous peeking, they allow companies to innovate faster while strictly controlling the risk to their user base.
A current limitation is the assumption of no interference (SUTVA), which may not hold in marketplace settings where users compete for resources. Extending these sequences to handle spillover effects remains a priority for future research.
Summary updated