Lemma 1 — the f-divergence robust mean equals almost surely
ProvedGenEmpLik.Expansion.lemma_1Let be a strictly stationary ergodic sequence of real random variables with , and let satisfy Assumption A. Fix . For each let be the empirical distribution of and the sample variance. Then
Equivalently, almost surely
The robust mean is therefore the sample mean plus a variance penalty, up to an error of smaller order than . Combined with the central limit theorem this gives the asymptotically exact coverage of generalized empirical likelihood intervals for a mean.
Formalization Note The supremum is over (robustMean); mean and variance are the published empMean and empVar. Stationarity and ergodicity is IsStationaryErgodic (the law of the path is invariant and ergodic for the shift). The paper's a.s. is stated as the almost sure convergence of times the left-hand side, which is the same statement (take equal to that quantity). Lean's Z 0 is the paper's , and the first observations are Z 0, …, Z (n-1).
import Mathlib import Definitions.Def_GenEmpLik_Expansion_AssumptionA import Definitions.Def_GenEmpLik_Expansion_robustMean import Definitions.Def_GenEmpLik_Expansion_IsStationaryErgodic import Definitions.Def_VarianceRegularization_Expansion_empMean import Definitions.Def_VarianceRegularization_Expansion_empVar open MeasureTheory ProbabilityTheory Filter Topology VarianceRegularization.Expansion
namespace GenEmpLik.Expansion
/-- Lemma 1 (Duchi, Glynn & Namkoong, arXiv:1610.03425v3, p. 7, (8)). Let `Z 0, Z 1, …` (the
paper's `Z₁, Z₂, …`) be a strictly stationary ergodic sequence of real random variables with
`E[Z₁²] < ∞`, and let Assumption A hold. With `P̂_n` the empirical distribution of the first `n`
observations and `s_n² = E_{P̂n}[Z²] − E_{P̂n}[Z]²`,
`| sup_{P : D_f(P‖P̂n) ≤ ρ/n} E_P[Z] − E_{P̂n}[Z] − √(ρ/n · s_n²) | ≤ ε_n / √n` with `ε_n → 0`
almost surely; equivalently, `√n` times the left-hand side tends to `0` almost surely. -/
theorem lemma_1 {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsProbabilityMeasure P]
(f : ℝ → EReal) (hA : AssumptionA f) {ρ : ℝ} (hρ : 0 ≤ ρ)
(Z : ℕ → Ω → ℝ) (hZ : IsStationaryErgodic Z P)
(hmom : Integrable (fun ω => Z 0 ω ^ 2) P) :
∀ᵐ ω ∂P, Tendsto (fun n : ℕ => Real.sqrt n *
|robustMean f ρ (fun i : Fin n => Z i ω) - empMean (fun i : Fin n => Z i ω) -
Real.sqrt (ρ / n * empVar (fun i : Fin n => Z i ω))|) atTop (𝓝 0) := by sorry
end GenEmpLik.Expansion
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.