Estimating means of bounded random variables by betting

Ian Waudby-Smith, Aaditya Ramdas

Abstract

This paper derives confidence intervals (CI) and time-uniform confidence sequences (CS) for the classical problem of estimating an unknown mean from bounded observations. We present a general approach for deriving concentration bounds that can be seen as a generalization and improvement of the celebrated Chernoff method. At its heart, it is based on a class of composite nonnegative martingales, with strong connections to testing by betting and the method of mixtures. We show how to extend these ideas to sampling without replacement, another heavily studied problem. In all cases, our bounds are adaptive to the unknown variance and empirically vastly outperform existing approaches based on Hoeffding or empirical Bernstein inequalities and their recent supermartingale generalizations. In short, we establish a new state-of-the-art for four fundamental problems: CSs and CIs for bounded means, when sampling with and without replacement.

Introduction

Estimating the mean of a distribution from a finite sample is a foundational task in statistics. While textbooks often point to Hoeffding’s or Bernstein’s inequalities for bounded variables, these classical tools have significant limitations. They are frequently "loose," producing wider intervals than necessary, and they fail to adapt to the specific characteristics of the data, such as low variance or high asymmetry. Furthermore, standard methods typically apply only to a fixed sample size $n$. In modern data science, we often require "time-uniform" confidence sequences—bounds that remain valid even if an experiment is stopped early based on observed results.

This paper introduces a betting framework to address these challenges. By framing statistical inference as a game where a statistician wins money by betting against incorrect mean values, the authors derive confidence intervals and sequences that are significantly tighter and more adaptive than traditional methods.

The Betting Framework

The core innovation lies in using nonnegative martingales interpreted as a "capital process."

The Game-Theoretic Approach

For every candidate mean $m$, a statistician plays a "fair" game against nature. If the true mean is actually $m$, the statistician’s wealth (the martingale) stays at 1 in expectation. However, if the true mean is not $m$, the statistician can use a smart betting strategy to make their wealth grow. A value $m$ is excluded from the confidence set if the statistician has "made too much money" betting against it—specifically, if the wealth exceeds $1/\alpha$, where $\alpha$ is the significance level.

Predictable Plug-ins and Hedging

To maximize wealth growth, the authors employ "predictable" strategies, where the amount bet on the next observation depends only on past data. They introduce several strategies:

  • aGRAPA (Approximate Growth Rate Adaptive to the Particular Alternative): An adaptive strategy that optimizes the betting rate.
  • ONS-m (Online Newton Step): A strategy that allows bounds to adapt to unknown variance and skewness.
  • Hedged Capital Process: A strategy designed to ensure the resulting confidence set is always a single, continuous interval, preventing the disjoint sets that can sometimes arise from aggressive betting.

Key Insights

  • Martingale Efficiency: Traditional Chernoff-style bounds rely on exponential supermartingales. The betting approach uses "test martingales," which are more efficient because they do not "waste" expectation, leading to narrower intervals.
  • Inherent Adaptivity: Because the betting strategy is updated at every step based on observed data, the bounds automatically shrink faster if the data has low variance, without requiring prior knowledge of that variance.
  • Duality with Empirical Likelihood: The authors establish a mathematical connection between their optimal betting strategy and Owen’s empirical likelihood ratio, providing a game-theoretic justification for a classic statistical tool.
  • Computational Speed: The proposed "Predictable Plug-in" methods (like PrPl-EB) are up to 500 times faster to compute than previous state-of-the-art numerical mixture methods while delivering comparable or superior performance.

Experimental Results

The paper evaluates these methods using extensive synthetic simulations across various distributions, including Bernoulli and Beta distributions. A key finding is the framework's superiority in handling asymmetric, low-variance data.

Comparison of confidence sequences and intervals for a Beta(10, 30) distribution, demonstrating the tightness and adaptivity of the betting-based methods (Hedged, PrPl) compared to traditional approaches.

As shown in the figure above, the betting-based methods (Hedged and PrPl) consistently produce narrower confidence widths than traditional benchmarks. This is particularly evident in the asymmetric Beta(10, 30) case, where the betting bounds adapt to the distribution's shape more effectively than symmetric bounds like Bernstein's. Furthermore, the authors prove that their confidence sequences converge at the optimal rates dictated by the Law of the Iterated Logarithm ($O(\sqrt{\log \log t / t})$).

Conclusion and Future Work

The betting framework establishes a new state-of-the-art for both confidence intervals and sequences in bounded mean estimation. While highly effective, the authors note that aggressive strategies can theoretically produce non-convex confidence sets in extreme cases, though the "Hedged" approach mitigates this. Future research directions include extending these strategies to multivariate data, unbounded distributions with specific tail properties (like sub-Gaussian), and other statistical functionals such as quantiles.

Summary updated

BibTeX
@article{waudbysmith2020estimating,
  author = {Ian Waudby-Smith and Aaditya Ramdas},
  title = {{Estimating means of bounded random variables by betting}},
  journal = {Journal of the Royal Statistical Society Series B (Statistical Methodology)},
  year = {2020},
}
Figure