Sequential Hypothesis Testing by Betting

This direction is merged into another direction: anytime-valid inference. Its last version stays readable and citable here.

Version 1 of 119 papers21 conceptsfrozen 2026-10-04

In traditional statistics, we often calculate a p-value at the end of a fixed-size experiment. If we "peek" at the data early and stop because the results look promising, we risk "p-hacking"—inflating our false positive rate.

A growing body of research, synthesized in Game-theoretic statistics and safe anytime-valid inference by Glenn Shafer, Peter Grünwald, and Vladimir Vovk, proposes a different paradigm: Testing by Betting. Instead of calculating a probability, we treat the null hypothesis as a "house" in a casino and ourselves as a "Skeptic" betting against it.

The Intuition: Wealth as Evidence

The core idea is simple: if you start with \$1 and, by betting on outcomes, your wealth grows to \$100, you have strong evidence that your betting strategy is better than random chance. If the "house" (the null hypothesis) were correct, it should be very difficult to increase your wealth significantly.

In this framework, we replace p-values with e-values (or betting scores). An e-value is a random variable whose expected value is at most 1 under the null hypothesis. If you multiply these e-values together as data arrives, you are essentially reinvesting your winnings. If the null hypothesis is false, your wealth will grow exponentially; if it is true, your wealth will likely stay small.

The mathematical beauty of this approach is that it is anytime-valid. Because of Ville’s Inequality—a martingale version of Markov’s Inequality—the probability that your wealth ever exceeds a threshold $1/\alpha$ is at most $\alpha$. This means you can stop the experiment at any time, for any reason, without inflating your false positive rate.

Adaptive Betting via Online Optimization

The challenge in testing by betting is choosing how to bet. If you bet too conservatively, your wealth grows slowly, and the test lacks power. If you bet too aggressively on the wrong outcomes, you go broke.

To solve this, researchers use online optimization to adapt the betting strategy in real-time. As Ben Chugg, Aaditya Ramdas, and colleagues demonstrate in Auditing Fairness by Betting, algorithms like the Online Newton Step can be used to update betting parameters as data flows in.

By treating the betting fraction as a parameter to be optimized, the system "learns" the most effective way to bet against the null hypothesis. This makes the tests highly adaptive:

Plug-in Martingales and Universal Detectors

The flexibility of this framework allows it to handle complex, non-parametric problems. Valentina Fedorova and Vladimir Vovk introduced plug-in martingales in Plug-in martingales for testing exchangeability on-line, where the betting strategy "plugs in" an estimate of the distribution to maintain power even when the underlying data source is unknown.

This adaptivity is particularly useful for changepoint detection. In Universal Sequential Changepoint Detection of Quantum Observables, Matteo Zecchin and Osvaldo Simeone show that by learning the optimal betting strategy on the fly, a detector can identify shifts in quantum states without knowing the post-change state in advance.

Why It Works

Testing by betting works because it transforms a statistical problem into a growth-rate maximization problem. By aiming for "log-optimal" growth—a concept explored by Aleksandr Podkopaev and Aaditya Ramdas in Sequential Predictive Two-Sample and Independence Testing—researchers ensure that if an alternative hypothesis is true, the evidence against the null will grow at the fastest possible exponential rate.

This shift from p-values to wealth-based evidence provides a robust, intuitive, and mathematically rigorous way to monitor data streams, audit algorithms, and conduct experiments in real-time without the traditional constraints of batch-based statistics.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_sequential_hypothesis_testing_by_betting_0a819ba5,
  title = {Sequential Hypothesis Testing by Betting},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/sequential-hypothesis-testing-by-betting/rdr_0a819ba599aa4f68acd914015aff6460},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_sequential_hypothesis_testing_by_betting_0a819ba5_v1,
  title = {Sequential Hypothesis Testing by Betting},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/sequential-hypothesis-testing-by-betting/rdr_0a819ba599aa4f68acd914015aff6460/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}