Closed-form empirical Bernstein confidence sequences for scalars and matrices

Ben Chugg, Aaditya RamdasarXiv 2025

Abstract

We derive a new closed-form variance-adaptive confidence sequence (CS) for estimating the average conditional mean of a sequence of bounded random variables. Empirically, it yields the tightest closed-form CS we have found for tracking time-varying means, across sample sizes up to $\approx 10^6$. When the observations happen to have the same conditional mean, our CS is asymptotically tighter than the recent closed-form CS of Waudby-Smith and Ramdas [38]. It also has other desirable properties: it is centered at the unweighted sample mean and has limiting width (multiplied by $\sqrt{t/\log t}$) independent of the significance level. We extend our results to provide a CS with the same properties for random matrices with bounded eigenvalues.

Introduction

In sequential experimentation—ranging from online A/B testing to clinical trials—researchers often need to monitor data streams continuously. Standard confidence intervals are insufficient for this task because they do not account for the "look-elsewhere effect," where repeated testing inflates the false positive rate. To solve this, statisticians use confidence sequences (CSs): bounds that remain valid uniformly over all time steps $t$.

For bounded data, "empirical Bernstein" CSs are particularly valuable because they adapt to the data's actual variance rather than relying on conservative worst-case assumptions. However, existing closed-form empirical Bernstein CSs often suffer from practical drawbacks: they may assume a stationary mean, lack centering on the sample average, or exhibit suboptimal asymptotic widths. This paper introduces a new closed-form CS that addresses these limitations simultaneously.

Methodology

The authors develop their new bound through a series of mathematical refinements to existing concentration inequalities:

  1. The Algebraic Flip: Previous bounds utilize Fan's inequality to construct nonnegative supermartingales. By reversing the roles of variables in this inequality, the authors transform the bound into a "sub-Gaussian" form relative to a free tuning parameter, $\xi$.
  2. Method of Mixtures: This sub-Gaussian structure allows the use of the "method of mixtures," where the supermartingale is integrated over a truncated Gaussian distribution for $\xi$. This avoids the need for complex sequential "predictable plug-ins."
  3. Closed-Form Approximation: While the exact mixture bound ($C_t^{\text{mix}}$) requires numerical root-finding, the authors derive a closed-form approximation, $C_t^{\text{apx}}$, using a lower bound on the error function (erf). This makes the sequence computationally efficient for real-time applications.
  4. Stitching and Matrix Extensions: The authors apply a "stitching" technique to achieve the theoretically optimal iterated logarithm rate ($O(\sqrt{\log \log t / t})$). Furthermore, they extend these scalar results to symmetric matrices using matrix concentration tools like Tropp’s transfer rule.

Comparison and Results

The proposed $C_t^{\text{apx}}$ bound demonstrates significant improvements over prior state-of-the-art methods. As shown in the comparison table below, the new bounds achieve tighter asymptotic widths by eliminating unnecessary penalty factors.

Comparison of various closed-form confidence sequences and their asymptotic widths.

Key Findings

  • Empirical Tightness: In simulations using Bernoulli, Uniform, and Beta distributions, $C_t^{\text{apx}}$ is the tightest available closed-form bound for sample sizes up to $10^6$.
  • Asymptotic Superiority: Mathematically, $C_t^{\text{apx}}$ avoids the $\log \log t$ penalty factor found in previous closed-form sequences like those of Waudby-Smith and Ramdas [38].
  • Significance Level Independence: Remarkably, the asymptotic width of the new bound (when scaled by $\sqrt{t/\log t}$) becomes independent of the significance level $\alpha$. The cost of higher confidence is effectively "washed out" as the sample size grows.
  • Centering: Unlike many alternatives, this CS is centered exactly on the unweighted sample mean, making it intuitive for practitioners.

Discussion and Future Work

While $C_t^{\text{apx}}$ offers a robust default for practitioners, it does require choosing a prior variance parameter, $\kappa$. The authors suggest $\kappa=0.25$ as a solid heuristic, though the optimal choice depends on the underlying distribution. Additionally, while the "stitched" version ($C_t^{\text{stch}}$) is theoretically superior in the limit, it is often looser in practice for realistic sample sizes compared to the $O(\sqrt{\log t / t})$ rate of $C_t^{\text{apx}}$.

Future research may explore whether a fully empirical, closed-form CS can be designed to converge exactly to the true standard deviation $\sigma$, matching the performance of "oracle" bounds that require prior knowledge of the variance.

Summary updated

BibTeX
@misc{chugg2025closed,
  author = {Ben Chugg and Aaditya Ramdas},
  title = {{Closed-form empirical Bernstein confidence sequences for scalars and matrices}},
  year = {2025},
  eprint = {2512.21300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21300},
  howpublished = {arXiv},
}
Figure