TL;DR
This paper introduces a novel framework for designing sequential nonparametric two-sample tests by reframing the problem as a game of "testing by betting." This approach allows for tests that adapt their sample size to the difficulty of the problem and offers strong theoretical guarantees, including consistency and efficient stopping times.
What Problem Does This Paper Address?
The core problem addressed is nonparametric two-sample testing, where the goal is to determine if two samples come from the same underlying distribution without making assumptions about the distribution's form. Traditional methods often rely on a fixed sample size, which can be inefficient: too many samples might be collected for easy problems, while too few might be gathered for difficult ones. Sequential testing aims to solve this by allowing the test to stop as soon as enough evidence is gathered. However, existing sequential tests often struggle with composite null hypotheses (where the null is not a single, simple distribution) and nonparametric settings, especially for multivariate data. This paper tackles the challenge of designing sequential tests that are both theoretically sound and practically efficient in these complex, nonparametric scenarios.
Methods
The paper's central innovation is the "testing by betting" framework. This approach reinterprets hypothesis testing as a game where a "bettor" (the statistician) aims to maximize their wealth by betting on observations. The bettor's wealth growth is directly linked to the evidence against the null hypothesis. Key techniques include:
- Game-Theoretic Formulation: The problem is framed as a repeated game between a "Skeptic" (statistician) and a "Forecaster" (null hypothesis). The Skeptic's wealth acts as a test statistic.
- Integral Probability Metrics (IPMs): These are used to quantify the distance between distributions and form the basis for defining "witness functions" that best distinguish between distributions.
- Test Martingales: The wealth process is designed to be a test martingale under the null hypothesis, ensuring type-I error control.
- Prediction and Betting Strategies: The core of the practical test involves learning estimates of the "witness function" and "optimal bet" from the data in a sequential manner. The paper utilizes the Online Newton Step (ONS) betting strategy for its efficiency.
- Regret Minimization: The statistical properties of the sequential test are directly linked to the "regret" of the prediction strategy used to estimate the witness function. Minimizing regret leads to better test performance.
- Kernel MMD: The general framework is instantiated with the widely used Kernel Maximum Mean Discrepancy (MMD) metric, leading to a powerful and adaptive sequential test.
Datasets
Not discussed in the paper. The paper focuses on theoretical development and simulation-based experiments using synthetic data generated according to specified distributions.
Key Insights and Ideas
- Betting as Evidence: The paper elegantly connects the growth of a bettor's wealth to the strength of evidence against a null hypothesis. This provides a powerful and intuitive way to design sequential tests.
- Adaptivity to Problem Hardness: By linking test performance to the regret of a prediction strategy, the proposed tests can automatically adapt to the "hardness" of the alternative, meaning they stop faster when the difference between distributions is more pronounced.
- Unified Framework: The "testing by betting" approach, combined with IPMs, provides a general framework that can be extended beyond standard two-sample testing to problems like time-varying distributions and abstract invariant testing problems (symmetry, independence).
- Theoretical Guarantees: The paper provides strong theoretical guarantees for its proposed tests, including type-I error control, asymptotic power one, and bounds on expected stopping times, all derived from the properties of the prediction strategy.
Key Results
- Consistent Sequential Tests: The proposed framework yields sequential tests that are consistent against any alternative distribution.
- Adaptive Stopping Times: The expected stopping time of the tests adapts to the difficulty of the problem, outperforming fixed-sample size tests that require prior knowledge of this difficulty.
- Kernel MMD Test: A practical sequential Kernel MMD test is developed, demonstrating strong theoretical guarantees and good empirical performance compared to existing sequential tests.
- Generalizability: The framework is shown to extend to time-varying distributions and abstract invariant testing problems, highlighting its versatility.
Limitations and Future Work
- Computational Complexity: While the ONS betting strategy is computationally efficient, the Kernel MMD test can have quadratic complexity in the number of observations due to kernel computations.
- Unbounded Kernels: The paper addresses the extension to unbounded kernels (like linear kernels) by using a sigmoidal function, but developing prediction schemes with theoretical guarantees for modified regret in these cases is noted as a challenge.
- Other Distance Measures: The authors suggest instantiating the framework with other distance measures like Wasserstein metric and f-divergences as a future direction.
- Empirical Evaluation of Generalizations: Further empirical evaluation of the "invariant" tests proposed for more general settings (Section 5.2) is suggested.
Summary updated