Sharp empirical Bernstein bounds for the variance of bounded random variables
Diego Martinez-Taboada, Aaditya Ramdas
TL;DR
This work develops sharp empirical Bernstein-type bounds for the variance of bounded random variables under constant conditional mean and variance, without requiring independence. It constructs time-uniform, anytime-valid confidence sequences via a novel nonnegative supermartingale framework, yielding upper and lower variance bounds whose leading terms asymptotically match the oracle Bernstein rate $\sqrt{2 \mathbb{V}[(X-\mu)^2] \log (1/\alpha)}$ in the iid case. The results are instantiated for batch and sequential settings and extended to separable Hilbert spaces, with empirical evidence showing superior performance over the existing Maurer-Pontil inequalities. These tools enable robust, online variance inference in sequential decision-making contexts where variance estimation is crucial for uncertainty quantification.
Abstract
We develop novel empirical Bernstein inequalities for the variance of bounded random variables. Our inequalities hold under constant conditional variance and mean, without further assumptions like independence or identical distribution of the random variables, making them suitable for sequential decision making contexts. The results are instantiated for both the batch setting (where the sample size is fixed) and the sequential setting (where the sample size is a stopping time). Our bounds are asymptotically sharp: when the data are iid, our CI adpats optimally to both unknown mean $μ$ and unknown $\mathbb{V}[(X-μ)^2]$, meaning that the first order term of our CI exactly matches that of the oracle Bernstein inequality which knows those quantities. We compare our results to a widely used (non-sharp) concentration inequality for the variance based on self-bounding random variables, showing both the theoretical gains and improved empirical performance of our approach. We finally extend our methods to work in any separable Hilbert space.
