Bernstein's inequality #
Let X₁, …, Xₙ be independent real random variables with mean zero, finite second moments and
Xᵢ ≤ b almost surely, and put v = ∑ᵢ E Xᵢ². Bernstein's inequality bounds the upper tail of
S = ∑ᵢ Xᵢ by exp (-ε ^ 2 / (2 * (v + b * ε / 3))) for every ε ≥ 0. For moderate ε this is
the Gaussian tail with the true variance v, rather than the worst-case variance proxy of
Hoeffding's inequality (ProbabilityTheory.HasSubgaussianMGF.measure_sum_ge_le_of_iIndepFun);
for large ε it decays exponentially at rate 3 / (2 b).
Main results #
MeasureTheory.MemLp.mgf_le_exp_of_ae_le: ifE X = 0,E X² < ∞andX ≤ balmost surely, thenE exp (t X) ≤ exp (E X² * t ^ 2 / (2 * (1 - t * b / 3)))for0 ≤ twitht * b < 3;ProbabilityTheory.iIndepFun.mgf_sum_le_exp_of_ae_le: the same bound for an independent sum, withE X²replaced byv;ProbabilityTheory.iIndepFun.measureReal_sum_ge_le_of_ae_le: Bernstein's inequality for the upper tail;ProbabilityTheory.iIndepFun.measureReal_abs_sum_ge_le_of_abs_le: the two-sided formP(|S| ≥ ε) ≤ 2 * exp (-ε ^ 2 / (2 * (v + b * ε / 3)))when|Xᵢ| ≤ b.
References #
- S. Bernstein, Theory of Probability (in Russian), Moscow (1927).
- S. Boucheron, G. Lugosi and P. Massart, Concentration Inequalities: A Nonasymptotic Theory of Independence, Oxford University Press (2013), §2.8.
Bernstein's moment-generating-function bound. If X has mean zero, a finite second
moment and X ≤ b almost surely, then for 0 ≤ t with t * b < 3,
E exp (t X) ≤ exp (E X² * t ^ 2 / (2 * (1 - t * b / 3))).
Bernstein's moment-generating-function bound for independent sums. If the Xᵢ, i ∈ s,
are independent with mean zero, finite second moments and Xᵢ ≤ b almost surely, then for
0 ≤ t with t * b < 3 the moment-generating function of ∑ i ∈ s, Xᵢ at t is at most
exp (v * t ^ 2 / (2 * (1 - t * b / 3))), where v = ∑ i ∈ s, E Xᵢ².
Bernstein's inequality. Let the Xᵢ, i ∈ s, be independent with mean zero, finite
second moments and Xᵢ ≤ b almost surely, and let v = ∑ i ∈ s, E Xᵢ². Then for 0 ≤ ε,
P(ε ≤ ∑ i ∈ s, Xᵢ) ≤ exp (-ε ^ 2 / (2 * (v + b * ε / 3))).
Bernstein's inequality, two-sided form. Let the Xᵢ, i ∈ s, be independent and
almost-everywhere measurable with mean zero and |Xᵢ| ≤ b almost surely, and let
v = ∑ i ∈ s, E Xᵢ². Then for 0 ≤ ε,
P(ε ≤ |∑ i ∈ s, Xᵢ|) ≤ 2 * exp (-ε ^ 2 / (2 * (v + b * ε / 3))).