Abstract
We consider the problem of sequential hypothesis testing by betting. For a general class of composite testing problems — which include bounded mean testing, equal mean testing for bounded random tuples, and some key ingredients of two-sample and independence testing as special cases — we show that any $e$-process satisfying a certain sublinear regret bound is adaptively, asymptotically, and almost surely log-optimal for a composite alternative. This is a strong notion of optimality that has not previously been established for the aforementioned problems and we provide explicit test supermartingales and $e$-processes satisfying this notion in the more general case. Furthermore, we derive matching lower and upper bounds on the expected rejection time for the resulting sequential tests in all of these cases. The proofs of these results make weak, algorithm-agnostic moment assumptions and rely on a general-purpose proof technique involving the aforementioned regret and a family of numeraire portfolios. Finally, we discuss how all of these theorems hold in a distribution-uniform sense, a notion of log-optimality that is stronger still and seems to be new to the literature.
Introduction
In classical statistics, sample sizes are typically fixed in advance. Sequential hypothesis testing offers a more dynamic alternative, allowing researchers to monitor data as it arrives and stop as soon as evidence is sufficient to reject the null hypothesis. A modern, flexible framework for this is "testing by betting," where a researcher designs a sequential test by betting virtual wealth against the null hypothesis. If the null is false, a successful betting strategy causes the wealth (represented as an e-process or test supermartingale) to grow exponentially. Once the wealth crosses a threshold (e.g., $1/\alpha$), the test rejects the null.
The primary challenge arises with composite alternatives, where the alternative hypothesis is a family of distributions rather than a single point. Designing a betting strategy that grows optimally without knowing the true underlying distribution is a non-trivial task. This paper bridges online learning and sequential testing to solve this problem.
A General Framework for Testing
The authors analyze a broad class of test supermartingales formed by convex combinations of e-values. Their framework encompasses several classic problems, ranging from simple bounded mean tests to more complex generalizations.
Instead of relying on standard online convex optimization algorithms that often require strict boundedness, the authors borrow from universal portfolio theory. They prove that if betting fractions are chosen using any algorithm that guarantees sublinear portfolio regret (such as Cover’s Universal Portfolio), the resulting sequential test inherits exceptionally strong optimality properties. The proof mechanism relies on comparing the chosen strategy against a numeraire portfolio—a theoretical "best-in-hindsight" oracle. By showing that the regret against this oracle is sublinear, they demonstrate that the empirical strategy eventually mimics the oracle's optimal growth rate.
Key Insights: Regret and Optimality
The fundamental contribution of this work is the formal proof that sublinear portfolio regret directly translates to universal log-optimality.
- The Theoretical Speed Limit: The authors characterize the "sample complexity" of these tests, proving that the expected number of samples needed to reject the null, $\mathbb{E}[\tau]$, is tightly bounded by $\log(1/\alpha) / \ell^*_Q$. They provide both the lower bound (the absolute limit) and the upper bound, showing that sublinear regret strategies actually achieve this speed.
- Why ONS Falls Short: Common algorithms like Online Newton Step (ONS) often restrict betting fractions to a narrow range (e.g., $[-1/2, 1/2]$) to ensure mathematical stability. If the true optimal bet lies outside this range, ONS cannot adapt, leading to suboptimal power. Universal portfolios, by contrast, search the entire valid space.
- Distribution-Uniformity: The authors introduce "distribution-uniform log-optimality," proving their bounds hold uniformly across a massive class of alternative distributions simultaneously, without needing the strict uniform boundedness assumptions typical in the literature.
Empirical Performance
The theoretical results are validated through simulations comparing various betting strategies on synthetic data.
As illustrated in the figures, the Universal Portfolio and other sublinear regret strategies converge to the optimal asymptotic growth rate $\ell^*_Q$ almost surely. Furthermore, the distribution of "First Rejection Times" for these strategies clusters around the theoretical lower bound $\log(1/\alpha) / \ell^*_Q$. In contrast, restricted strategies like ONS exhibit significantly lower growth rates and delayed rejection times, highlighting the practical importance of the universal approach.
Conclusion
This paper establishes that sublinear portfolio regret is a sufficient condition for achieving universal log-optimality in sequential testing. By providing matching lower and upper bounds on expected rejection times, the authors define the theoretical limits of nonparametric sequential tests. This framework lays the groundwork for developing fully optimal sequential two-sample and independence tests, where the distance between distributions must be learned dynamically.
Summary updated