Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (7)–(9) — W=1n∑iVXi≤EVnW = \frac1n\sum_i\mathbb VX_i \le \mathbb EV_nW=n1​∑i​VXi​≤EVn​ for independent variables

Proved
EmpiricalBernstein.SVP.eq_7_9

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

concentrationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sample-variance

Let n≥2n \ge 2n≥2 and let X1,…,XnX_1,\dots,X_nX1​,…,Xn​ be independent random variables with values in [0,1][0,1][0,1]. Write W=1n∑iVXiW = \frac1n \sum_i \mathbb V X_iW=n1​∑i​VXi​ for the average variance. Then

W≤1n∑iE(Xi−EXi)2+12n(n−1)∑i≠j(EXi−EXj)2=12n(n−1)∑i,jE(Xi−Xj)2=EVn.W \le \frac1n \sum_i \mathbb E(X_i - \mathbb E X_i)^2 + \frac{1}{2n(n-1)} \sum_{i \ne j} (\mathbb E X_i - \mathbb E X_j)^2 = \frac{1}{2n(n-1)}\sum_{i,j}\mathbb E(X_i - X_j)^2 = \mathbb E V_n .W≤n1​i∑​E(Xi​−EXi​)2+2n(n−1)1​i=j∑​(EXi​−EXj​)2=2n(n−1)1​i,j∑​E(Xi​−Xj​)2=EVn​.

The statement asserts the inequality W≤EVnW \le \mathbb E V_nW≤EVn​ and the identity between the sum of the terms (7)–(8) and EVn\mathbb E V_nEVn​. For non-identically distributed variables, the expected sample variance overestimates the average variance by the spread of the means; this is what lets Bennett's inequality be combined with the variance bounds of Theorem 10.

Formalization Note Xi∼μiX_i \sim \mu_iXi​∼μi​, each μi\mu_iμi​ a probability measure on R\mathbb RR with μi(R∖[0,1])=0\mu_i(\mathbb R\setminus[0,1]) = 0μi​(R∖[0,1])=0; EVn\mathbb E V_nEVn​ is the integral of VnV_nVn​ against ∏iμi\prod_i \mu_i∏i​μi​; VXi\mathbb V X_iVXi​ is Mathlib's variance of the identity under μi\mu_iμi​. The display sits inside the proof of Theorem 11, whose hypotheses ([0,1][0,1][0,1]-valued independent variables) are used here; n≥2n\ge2n≥2 is needed for VnV_nVn​. The paper's indices are Lean's Fin n.

Preamble
import Mathlib
import Definitions.Def_EmpiricalBernstein_SVP_sampleVar

open MeasureTheory ProbabilityTheory
Formal statement
namespace EmpiricalBernstein.SVP

/-- Eqs. (7)–(9) (arXiv:0907.3740v1, p. 4, proof of Theorem 11): for independent `[0,1]`-valued
`X_i ∼ μ_i` and `n ≥ 2`, `W = (1/n) ∑ 𝕍X_i ≤ 𝔼V_n`, with `(7) + (8) = 𝔼V_n`. -/
theorem eq_7_9 {n : ℕ} (hn : 2 ≤ n) (μs : Fin n → Measure ℝ)
    [∀ i, IsProbabilityMeasure (μs i)] (hμs : ∀ i, μs i (Set.Icc (0 : ℝ) 1)ᶜ = 0) :
    (1 / (n : ℝ)) * ∑ i, variance (fun y : ℝ => y) (μs i)
        ≤ ∫ z, sampleVar z ∂(Measure.pi μs) ∧
      (1 / (n : ℝ)) * ∑ i, ∫ y, (y - ∫ w, w ∂(μs i)) ^ 2 ∂(μs i)
          + 1 / (2 * (n : ℝ) * ((n : ℝ) - 1))
            * ∑ i, ∑ j ∈ Finset.univ.filter (fun j => j ≠ i),
                ((∫ w, w ∂(μs i)) - ∫ w, w ∂(μs j)) ^ 2
        = ∫ z, sampleVar z ∂(Measure.pi μs) := by sorry

end EmpiricalBernstein.SVP
Source
Maurer, Pontil, Empirical Bernstein Bounds and Sample Variance Penalization, arXiv:0907.3740v1, eqs. (7)–(9), p. 4 (proof of Theorem 11)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me