NLAlib.measureReal_sub_integral_ge_le_mcdiarmid
Library · theorem
Headline of mcdiarmid
McDiarmid's inequality: for a measurable function f of independent coordinates with bounded differences c_i and t \ge 0, \mathbb{P}\bigl[t \le f(X) - \mathbb{E} f(X)\bigr] \le \exp\Bigl(-\frac{2t^2}{\sum_i c_i^2}\Bigr). [McDiarmid1989]; [BoucheronLugosiMassart2013, Theorem 6.2]. The source's constant. At \sum_i c_i^2 = 0 the bound is e^0 = 1 (Lean's \mathbf{x} / 0 = 0), which is true. Result: mcdiarmid
NLAlib.measureReal_sub_integral_ge_le_mcdiarmid.{u_1, u_2, u_3} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {ι : Type u_2} [Fintype ι] [DecidableEq ι]
{S : ι → Type u_3} [(i : ι) → MeasurableSpace (S i)] {X : Ω → (i : ι) → S i}
{f : ((i : ι) → S i) → ℝ} {c : ι → ℝ≥0} (hX : ∀ (i : ι), AEMeasurable (fun ω ↦ X ω i) μ)
(hind : iIndepFun (fun i ω ↦ X ω i) μ) (hf : Measurable f)
(hc : ∀ (i : ι) (x : (a : ι) → S a) (y : S i), |f (Function.update x i y) - f x| ≤ ↑(c i)) {t : ℝ}
(ht : 0 ≤ t) :
μ.real {ω | t ≤ f (X ω) - ∫ (ω' : Ω), f (X ω') ∂μ} ≤ rexp (-2 * t ^ 2 / ∑ i, ↑(c i) ^ 2)Import NLAlib.Probability.BoundedDifferences.