Anytime Valid Inference and Confidence Sequences

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

Version 1 of 156 papers56 conceptsfrozen 2026-10-04

In classical statistics, an experiment is a contract. You commit to a sample size $n$ before you begin, and you only look at the results once that $n$ is reached. If you "peek" at the data early and decide to stop because the results look significant, you have broken the contract. This practice, known as optional stopping, is a primary driver of the replication crisis because it drastically inflates false positive rates.

A growing body of research, led by Aaditya Ramdas, Ian Waudby-Smith, and others, provides a way to tear up that contract. They develop Anytime-Valid Inference (AVI): statistical tools that remain valid no matter when you stop, how often you peek, or how you adapt your experiment as data arrives.

The Peeking Problem

Standard confidence intervals (CIs) are designed to cover the true parameter with 95% probability for a fixed $n$. However, if you calculate a new 95% CI every time a new data point arrives, the probability that the true parameter ever falls outside the interval at any point in time is much higher than 5%.

As Aaditya Ramdas and Ian Waudby-Smith explain in Confidence sequences for sampling without replacement, this "peeking problem" makes traditional A/B testing and clinical trials statistically fragile. To fix this, we need Confidence Sequences (CS)—a sequence of intervals that contain the true value at all time steps simultaneously with high probability.

The Intuition: Testing by Betting

The most powerful way to build these sequences is to frame statistics as a game of chance. In Estimating means of bounded random variables by betting, the authors suggest that instead of calculating a p-value, we should "bet" against a null hypothesis.

Imagine you are testing if a coin is fair (mean = 0.5). You start with $1. If you believe the mean is actually higher than 0.5, you bet some of your wealth on "heads." - If heads comes up, your wealth increases. - If tails comes up, your wealth decreases.

The core mathematical insight is Ville’s Inequality: if the null hypothesis is true, the probability that your wealth ever exceeds a threshold (say, $20) is very low (less than 1/20). Therefore, your current wealth acts as a measure of evidence. If you get rich betting against the null, the null is likely false.

This "betting" framework is inherently anytime-valid. Because your wealth is a martingale (or supermartingale) under the null, the guarantee holds regardless of when you decide to stop playing. You don't need to pre-specify $n$; you just stop when you're "rich" enough to reject the null.

E-values: The New Currency of Evidence

In this framework, the "wealth" is represented by e-values. Unlike p-values, which are difficult to combine across experiments, e-values can be multiplied together to aggregate evidence. Rosanne Turner and Peter Grünwald demonstrate in Safe Sequential Testing and Effect Estimation in Stratified Count Data that e-values provide a "safe" alternative for sequential testing in complex scenarios like stratified medical trials.

Adaptivity and Robustness

Because AVI doesn't rely on fixed sample sizes, it is uniquely suited for modern, dynamic data environments:

  1. Adaptive Experiments: In A/B testing, we often want to stop a "losing" arm early. Alan Mishler and Aaditya Ramdas show in Semiparametric Efficient Inference in Adaptive Experiments how to maintain valid inference even when the treatment assignment logic changes based on past results.
  2. Robustness to Outliers: Real-world data is often "messy" or heavy-tailed. Aaditya Ramdas has extended these sequences to be Huber-robust, meaning they remain valid even if a fraction of the data is corrupted or contains extreme outliers.
  3. Privacy Auditing: Checking if an algorithm is truly "differentially private" usually requires thousands of runs. By using anytime-valid tests, Tomás González and colleagues show in Sequentially Auditing Differential Privacy that violations can be detected much faster by stopping as soon as the evidence is sufficient.

Why It Works

The magic of this research direction is that it replaces the "static" logic of traditional frequentist statistics with a "dynamic" logic. By using the Law of the Iterated Logarithm and martingale theory, researchers like Brian M Cho and Nathan Kallus are building a world where data science can be both efficient (stopping early) and rigorous (guaranteed error rates).

As Eugenio Clerico and Hamish Flynn show in their work on Generalized Linear Models, these sequences are becoming as tight and computationally efficient as the fixed-sample tests they replace, removing the "penalty" for being flexible.

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_anytime_valid_inference_and_confidence_s_3475acf2,
  title = {Anytime Valid Inference and Confidence Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/anytime-valid-inference-and-confidence-sequences/rdr_3475acf2071347e893f5683601683147},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_anytime_valid_inference_and_confidence_s_3475acf2_v1,
  title = {Anytime Valid Inference and Confidence Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/anytime-valid-inference-and-confidence-sequences/rdr_3475acf2071347e893f5683601683147/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}