TL;DR
This paper introduces a novel two-armed bandit framework for A/B testing (P-TAB) that significantly boosts statistical power in data-constrained or weak-signal environments. By transforming the test statistic's distribution shape rather than just its mean and incorporating a permutation strategy, the method effectively detects subtle policy improvements in both independent and dynamic settings.
What Problem Does This Paper Address?
A/B testing is the gold standard for policy evaluation in tech companies, but real-world deployments face major practical hurdles: small sample sizes, tiny signal strengths (e.g., a new dispatch algorithm improving revenue by only 0.5% to 2%), and carryover effects.
Carryover effects occur when a policy choice today impacts future outcomes. For instance, in ride-sharing fleet management, dispatching a driver to a specific order alters the spatial distribution of drivers across a city, which directly impacts the platform's ability to fulfill future orders hours later. Traditional statistical tests (like z-tests or t-tests) assume observations are independent and lack the power to reliably detect these small, delayed improvements without massive sample sizes.
Methods
The authors propose P-TAB (Permutation-based Two-Armed Bandit test), which operates in three main stages:
- Pseudo-outcome Construction: Since we can never observe both the control and treatment outcomes for the same individual at the same time, the authors use Doubly Robust Estimation (Augmented Inverse Propensity Weighting, AIPW) to generate unbiased pseudo-outcomes from the observed data.
- Two-Armed Bandit (TAB) Framework: Samples are treated as arriving sequentially. A dynamic policy assigns "arms" based on the history of previous outcomes, leveraging the Strategic Central Limit Theorem (SCLT). Instead of shifting the mean of the test statistic under the alternative hypothesis ($H_1$), it alters the shape of the distribution—making it highly peaked around zero under the null hypothesis ($H_0$) and bimodal under $H_1$.
- Permutation and Aggregation: Because sequential bandit processes are highly sensitive to the order of data arrival (the "p-value lottery"), the authors randomly permute the data multiple times, compute individual p-values for each permutation, and aggregate them using the Cauchy combination method to ensure robustness.
For dynamic settings with carryover effects, they extend this framework using Double Reinforcement Learning (DRL) within a Markov Decision Process (MDP) model.
Datasets
The framework was evaluated using five real-world datasets from a world-leading ride-sharing platform:
- Subsidy Policy Evaluation: Three datasets tracking passenger-side coupon/subsidy experiments. One A/A dataset (20,000 passengers) was used to verify Type-I error control, and two A/B datasets (22,336 and 20,000 passengers) were used to evaluate policy effectiveness.
- Order Dispatch Policy Evaluation: Two 40-day A/A datasets used to build realistic simulation environments via a wild bootstrap algorithm. These environments tested varying levels of policy improvement ($\lambda$) across different sample sizes.
Key Insights and Ideas
- Shape-Shifting Distributions: Traditional tests look for a shift in the mean under the alternative hypothesis. The TAB framework keeps the mean at zero but changes the distribution's structural shape (becoming bimodal under $H_1$). This stark visual and mathematical difference makes it much easier to distinguish a true signal from noise.
- Beating the P-Value Lottery: Sequential tests are notoriously order-dependent. By introducing a permutation step paired with Cauchy p-value aggregation, the authors retain the high statistical power of sequential bandit testing while eliminating sample-ordering vulnerability.
- Taming Carryover Effects: By framing dynamic A/B testing as an MDP and using marginalized importance sampling, the method avoids the "curse of horizon" (exponential variance growth over time) that plagues standard reinforcement learning evaluations.
Key Results
- Subsidy Experiments: On real A/B data, P-TAB successfully rejected the null hypothesis with significantly lower p-values (e.g., 0.044 vs 0.086 for standard TAB and 0.055 for Double Machine Learning), proving its superior sensitivity to weak signals.
- Dispatch Simulations: Across both linear and non-linear simulated environments, P-TAB consistently achieved higher statistical power than standard DRL and standard TAB, especially when the policy improvement was tiny (e.g., 0.2% to 1%) and sample sizes were small ($n=30$). All methods strictly controlled Type-I errors below the nominal 0.05 level.
Limitations and Future Work
- The Markov Assumption: The dynamic extension relies heavily on the Markov property. If carryover effects span across days or exhibit long-term non-Markovian dependencies, the model's accuracy might degrade.
- Interference Types: While the paper masterfully handles temporal carryover effects, it does not explicitly model spatial or network interference (e.g., one user's treatment affecting a neighboring user's experience), which the authors note as an important area for future integration.
Summary updated