STaR-Bets: Sequential Target-Recalculating Bets for Tighter Confidence Intervals
Václav Voráček, Francesco Orabona
TL;DR
STaR-Bets introduces a finite-horizon, betting-based framework to construct tight confidence intervals for the mean of bounded variables by using sequential target-recalibrating bets. The method leverages test martingales and an origin-$\bigstar$ betting philosophy to adapt bets to remaining rounds, achieving width on the order of $O\left(\sqrt{\frac{\sigma^2 \log\frac{1}{\delta}}{n}}\right)$ up to a $1+o(1)$ factor, and subsuming classical Hoeffding/Bernstein bounds with improved finite-sample performance. The STaR-Bets algorithm estimates the second-moment term online, discretizes the mean candidates, and proves finite-sample coverage guarantees while delivering near-optimal interval widths; the Bets variant attains the optimal rate up to negligible factors. Empirical results on Beta/Bernoulli distributions show competitive or superior interval tightness with guaranteed coverage, and the approach offers a practical, open-source implementation. Overall, the work advances betting-based CI methods by closing the finite-sample gap and delivering state-of-the-art performance in tightness and reliability for bounded means.
Abstract
The construction of confidence intervals for the mean of a bounded random variable is a classical problem in statistics with numerous applications in machine learning and virtually all scientific fields. In particular, obtaining the tightest possible confidence intervals is vital every time the sampling of the random variables is expensive. The current state-of-the-art method to construct confidence intervals is by using betting algorithms. This is a very successful approach for deriving optimal confidence sequences, even matching the rate of law of iterated logarithms. However, in the fixed horizon setting, these approaches are either sub-optimal or based on heuristic solutions with strong empirical performance but without a finite-time guarantee. Hence, no betting-based algorithm guaranteeing the optimal $\mathcal{O}(\sqrt{\frac{σ^2\log\frac1δ}{n}})$ width of the confidence intervals are known. This work bridges this gap. We propose a betting-based algorithm to compute confidence intervals that empirically outperforms the competitors. Our betting strategy uses the optimal strategy in every step (in a certain sense), whereas the standard betting methods choose a constant strategy in advance. Leveraging this fact results in strict improvements even for classical concentration inequalities, such as the ones of Hoeffding or Bernstein. Moreover, we also prove that the width of our confidence intervals is optimal up to an $1+o(1)$ factor diminishing with $n$. The code is available at https://github.com/vvoracek/STaR-bets-confidence-interval.
