Abstract
Testing whether a variable of interest affects the outcome is one of the most fundamental problems in statistics and is often the main scientific question of interest. To tackle this problem, the conditional randomization test (CRT) is widely used to test the independence of variable(s) of interest (X) with an outcome (Y) holding other variable(s) (Z) fixed. The CRT uses randomization or design-based inference that relies solely on the iid sampling of (X,Z) to produce exact finite-sample p-values that are constructed using any test statistic. We propose a new method, the adaptive randomization test (ART), that tackles the independence problem while allowing the data to be adaptively sampled. We first showcase the ART in a particular multi-arm bandit problem known as the normal-mean model. Under this setting, we theoretically characterize the powers of both the iid sampling procedure and the adaptive sampling procedure and empirically find that the ART can uniformly outperform the CRT that pulls all arms independently with equal probability. We also surprisingly find that the ART can be more powerful than even the CRT that uses an oracle iid sampling procedure when the signal is relatively strong. We believe that the proposed adaptive procedure is successful because it takes arms that may initially look like "fake" signals due to random chance and stabilizes them closer to "null" signals. We additionally showcase the ART to a popular factorial survey design setting known as conjoint analysis. We find similar results through simulations and a recent application concerning the role of gender discrimination in political candidate evaluation.
Introduction
In modern data science, data collection is rarely a static, one-time event. From tech companies running adaptive A/B tests to medical researchers using multi-arm bandits to prioritize effective treatments, data is increasingly collected in real-time loops. However, traditional statistical tools like the Conditional Randomization Test (CRT)—a robust "Model-X" approach—rely on the assumption that data is independent and identically distributed (iid).
When data is sampled adaptively, the "randomness" of a current sample depends on the history of previous outcomes. This dependency invalidates standard p-values. This paper introduces the Adaptive Randomization Test (ART), a framework that maintains mathematical validity and exact p-values for sequential, history-dependent sampling.
Methodology: The Adaptive Randomization Test
ART extends the "Model-X" philosophy to sequential settings. If the researcher knows the exact logic used to sample variables ($X$), they can test for an effect on the outcome ($Y$) without needing to model the complex relationship of $Y|X$.
Key Components
- Sequential Adaptive Sampling: A formal definition where the next treatment $(X_t, Z_t)$ is a function of the entire preceding history.
- Natural Adaptive Resampling Procedure (NARP): To calculate p-values, ART generates "synthetic" versions of the treatment history. These are created using the exact same adaptive logic as the real experiment, but under the null hypothesis assumption that $X$ has no effect.
- The "No-Adaptation" Constraint: For the test to remain valid, covariates ($Z$) cannot adapt based on previous values of the variable of interest ($X$). This ensures "exchangeability," allowing for a valid comparison between real and synthetic data.
Key Insights: Why Adaptive Sampling Helps
The "De-noising" Effect
Adaptive procedures naturally sample more from "fake" signals—arms that appear to have an effect due to random chance early on. By collecting more data on these noisy arms, the procedure "stabilizes" them back toward the null. This reduces variance and allows the true signal to stand out more clearly against the noise.
Surpassing the Oracle
Surprisingly, ART with adaptive sampling can be more powerful than a CRT using an "oracle" iid procedure (one that knows the signal location and samples it more frequently). When the signal is strong, the adaptive nature of ART reduces the variance of the test statistic more effectively than static oracle sampling.
Experimental Results
The paper evaluates ART across three primary settings: a simulated Normal-Means Model (multi-arm bandit), a Conjoint Analysis simulation, and a real-world study on political candidate evaluation.
- Uniform Superiority: In the multi-arm bandit setting, ART uniformly outperformed standard uniform iid tests across various signal strengths.
- Significant Power Gains: In both simulated settings, ART demonstrated power gains of up to 15 percentage points over traditional iid sampling.
- Real-world Efficiency: Re-analyzing a study on gender discrimination in US politics (Ono and Burden, 2018), ART achieved a 30% increase in power at a sample size of $n=3,000$. This suggests researchers could reach the same scientific conclusions with significantly fewer respondents by using adaptive designs.
Limitations and Future Work
While powerful, ART requires the analyst to have perfect knowledge of the adaptive sampling algorithm used (the "black box" must be replicable). Additionally, the "no-adaptation" constraint on covariates can be difficult to satisfy in complex reinforcement learning scenarios. Future research aims to extend this framework to variable selection (controlling False Discovery Rate) and characterizing the specific strength of dependencies beyond binary existence tests.
Summary updated