Abstract: This paper introduces a robust framework for sequential hypothesis testing and effect estimation in stratified count data using e-variables. Traditional fixed-n methods, such as the Cochran-Mantel-Haenzel test, are prone to Type-I error inflation under optional stopping. Our proposed "stratified e-processes" and novel "cross-talk" strategies allow for anytime-valid inference, enabling researchers to stop data collection early without compromising statistical validity. Simulations demonstrate significant power gains and narrower confidence intervals, especially when strata share underlying similarities.
Introduction
In traditional "fixed-n" statistics, sample sizes must be determined prior to data collection. Peeking at results to decide whether to stop early—a practice known as optional stopping—inflates Type-I error rates, contributing to the "p-hacking" problem. This is particularly problematic in clinical trials or A/B testing, where ethical or financial considerations often favor stopping as soon as a clear effect is observed.
While sequential methods exist for simple datasets, real-world data is frequently stratified (e.g., drug trials with multiple age subgroups). This paper, presented at AISTATS 2023, addresses the lack of flexible, anytime-valid equivalents for stratified count data.
Methodology: E-Variables and Stratified Inference
The core of this framework is the e-variable. Unlike p-values, e-variables have an expected value of at most 1 under the null hypothesis. This property makes them "safe" under optional stopping; researchers can multiply e-variables as data arrives, and as long as the product remains below $1/\alpha$, the Type-I error is guaranteed to be below $\alpha$.
Stratified E-Processes
The authors define e-variables for $2 \times 2$ contingency tables within individual strata. To combine evidence across these subgroups, they propose several strategies:
- Multiplication: An aggressive approach that can be sensitive to noisy strata.
- Pseudo-Bayesian Averaging: Uses a learning rate to prioritize strata providing the strongest evidence.
- Switching: Initially monitors all strata and eventually focuses on the most promising one.
The "Cross-talk" Innovation
"Cross-talk" is the paper's most significant contribution. If treatment effects (e.g., odds ratios) are suspected to be similar across strata, data from one group can inform the estimates for another. This information sharing increases efficiency and power. Crucially, the test remains mathematically valid even if the assumption of similarity is incorrect, making it a "win-win" strategy for researchers.
Experimental Results
The methods were evaluated using simulated Bernoulli data streams mimicking clinical trials with three strata. The results highlight the efficiency of the proposed e-variable approach.
As shown in Figure 2, cross-talk strategies (such as 'control rate' or 'odds') significantly improve statistical power compared to standard unstratified or no-cross-talk approaches when strata share similarities.
Figure 3 demonstrates that various combination methods, particularly multiplication and pseudo-Bayesian averaging, drastically outperform unstratified baselines in terms of power as the number of batches increases.
Key Insights and Conclusion
- Safety via Betting: The framework treats testing as a betting game where "wealth" (the e-value) grows when the null hypothesis is likely false.
- Anytime-Valid Confidence Sequences: By inverting these tests, the authors generate confidence intervals that remain valid at every time step, allowing for real-time monitoring of treatment effects.
- Efficiency: The anytime-valid sequences are competitive with traditional fixed-n intervals (like Miettinen-Nuninen) but allow for much earlier stopping when effects are strong.
While currently optimized for a small number of strata and Bernoulli outcomes, this work provides a foundational shift toward safer, more flexible sequential testing in complex, stratified environments.
Summary updated