Theorem EC.1 (Bernstein), p. ec5 — Pr((1/N)ΣXⁱ − E X¹ ≥ t) ≤ exp(−Nt²/(2σ² + 2tc/3))
ProvedDataDrivenNV.LRS.theoremEC1_bernsteinBernstein's inequality. Let () be i.i.d. real random variables with common law such that and almost surely, and . Then for every ,
In the paper this is applied to indicators (with and ) to bound how far the empirical cdf can overshoot the true cdf, which is the step (EC.2) of the proof of Proposition EC.1.
Formalization Note The i.i.d. sample is the coordinate process of the product measure on . The paper prints only ; the centred bound is added because this form of Bernstein's inequality is the standard one for centred bounded variables (with only the centred variable can reach ). The printed form is false without it: for with , , and , the exact binomial tail is about while the printed bound is about . Both bounds hold for the indicators to which the paper applies the inequality, so every use in the paper is covered.
import Mathlib import Definitions.Def_DataDrivenNV_LRS_Setting open MeasureTheory ProbabilityTheory
namespace DataDrivenNV.LRS
/-- Theorem EC.1 (Bernstein's inequality), p. ec5. Let `X¹, …, Xᴺ` be i.i.d. with law `ν`
(the coordinates of the product measure `ν^⊗N`), with `|X¹| ≤ c` and `|X¹ - E X¹| ≤ c` almost
surely and `Var(X¹) = σ²`. Then for every `t > 0`,
`Pr((1/N) Σᵢ Xⁱ - E X¹ ≥ t) ≤ exp(-N t² / (2σ² + 2tc/3))`.
The centred bound `hcent` is added to the printed hypothesis `|X¹| ≤ c`; it holds in every use
the paper makes of the inequality (indicators, `c = 1`). -/
theorem theoremEC1_bernstein (ν : Measure ℝ) [IsProbabilityMeasure ν] (N : ℕ) (hN : 1 ≤ N)
(c σ : ℝ) (hc : ∀ᵐ x ∂ν, |x| ≤ c) (hcent : ∀ᵐ x ∂ν, |x - ∫ y, y ∂ν| ≤ c)
(hvar : ∫ x, (x - ∫ y, y ∂ν) ^ 2 ∂ν = σ ^ 2) (t : ℝ) (ht : 0 < t) :
(Measure.pi fun _ : Fin N => ν)
{x : Fin N → ℝ | t ≤ (1 / (N : ℝ)) * ∑ i, x i - ∫ y, y ∂ν} ≤
ENNReal.ofReal (Real.exp (-((N : ℝ) * t ^ 2) / (2 * σ ^ 2 + 2 * t * c / 3))) := by sorry
end DataDrivenNV.LRS
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.