Eqs. (7)–(9) — for independent variables
ProvedEmpiricalBernstein.SVP.eq_7_9Let and let be independent random variables with values in . Write for the average variance. Then
The statement asserts the inequality and the identity between the sum of the terms (7)–(8) and . 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 , each a probability measure on with ; is the integral of against ; is Mathlib's variance of the identity under . The display sits inside the proof of Theorem 11, whose hypotheses (-valued independent variables) are used here; is needed for . The paper's indices are Lean's Fin n.
import Mathlib import Definitions.Def_EmpiricalBernstein_SVP_sampleVar open MeasureTheory ProbabilityTheory
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.