Documentation

CslibFrontier.Foundations.Probability.AzumaPi

The Azuma–Hoeffding inequality under a product measure #

Let Y i : (∀ j, α j) → ℝ, for i in a finite linear order, be functions of independent coordinates v ∼ Measure.pi μ such that

Then ∑ i, Y i has a sub-Gaussian moment generating function with parameter ∑ i, (c i / 2) ^ 2 (ProbabilityTheory.hasSubgaussianMGF_sum_pi), so it is at least ε ≥ 0 with probability at most exp (-2 ε² / ∑ i, c i ^ 2) (ProbabilityTheory.measure_sum_ge_le_pi). This is the Azuma–Hoeffding inequality [Hoeffding1963; Azuma1967] for the martingale differences Y i of the natural filtration of the coordinates.

Mathlib states the inequality for conditionally sub-Gaussian increments (ProbabilityTheory.measure_sum_ge_le_of_hasCondSubgaussianMGF). That form needs conditional expectation kernels on a standard Borel space, and Mathlib has no conditional form of Hoeffding's lemma to supply its hypotheses. Here the conditioning is explicit. The proof integrates out one coordinate at a time (MeasureTheory.integral_integral_update) and applies Hoeffding's lemma (ProbabilityTheory.hasSubgaussianMGF_of_mem_Icc_of_integral_eq_zero) for each fixed value of the other coordinates, so the coordinate spaces α j are arbitrary measurable spaces.

ProbabilityTheory.HasSubgaussianMGF.measure_sqrt_lt_le is the sub-Gaussian tail bound at confidence δ: a random variable with parameter c exceeds √(2 c ln (1 / δ)) with probability at most δ.

Main results #

References #

theorem ProbabilityTheory.HasSubgaussianMGF.measure_sqrt_lt_le {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {X : Ω → ℝ} {c : NNReal} (h : HasSubgaussianMGF X c μ) {δ : ℝ} (hδ : 0 < δ) (hδ1 : δ ≤ 1) :
μ.real {ω : Ω | √(2 * ↑c * Real.log (1 / δ)) < X ω} ≤ δ

Sub-Gaussian tail bound at confidence δ. A random variable with a sub-Gaussian moment generating function with parameter c exceeds √(2 c ln (1 / δ)) with probability at most δ.

theorem ProbabilityTheory.hasSubgaussianMGF_sum_pi {ι : Type u_1} [Fintype ι] [LinearOrder ι] [DecidableEq ι] {α : ι → Type u_2} [(i : ι) → MeasurableSpace (α i)] {μ : (i : ι) → MeasureTheory.Measure (α i)} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {Y : ι → ((i : ι) → α i) → ℝ} {c : ι → NNReal} (hY : ∀ (i : ι), Measurable (Y i)) (hadapted : ∀ (i j : ι), i < j → ∀ (v : (a : ι) → α a) (z : α j), Y i (Function.update v j z) = Y i v) (hmean : ∀ (i : ι) (v : (a : ι) → α a), ∫ (z : α i), Y i (Function.update v i z) ∂μ i = 0) (hrange : ∀ (i : ι) (v : (a : ι) → α a), ∃ (a : ℝ), ∀ (z : α i), Y i (Function.update v i z) ∈ Set.Icc a (a + ↑(c i))) :
HasSubgaussianMGF (fun (v : (i : ι) → α i) => ∑ i : ι, Y i v) (∑ i : ι, (c i / 2) ^ 2) (MeasureTheory.Measure.pi μ)

Azuma–Hoeffding under a product measure, sub-Gaussian form. Let Y i not depend on the coordinates after i, have mean 0 over coordinate i, and range over an interval of length c i as coordinate i varies. Then ∑ i, Y i has a sub-Gaussian moment generating function with parameter ∑ i, (c i / 2) ^ 2 under Measure.pi μ.

theorem ProbabilityTheory.measure_sum_ge_le_pi {ι : Type u_1} [Fintype ι] [LinearOrder ι] [DecidableEq ι] {α : ι → Type u_2} [(i : ι) → MeasurableSpace (α i)] {μ : (i : ι) → MeasureTheory.Measure (α i)} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {Y : ι → ((i : ι) → α i) → ℝ} {c : ι → NNReal} (hY : ∀ (i : ι), Measurable (Y i)) (hadapted : ∀ (i j : ι), i < j → ∀ (v : (a : ι) → α a) (z : α j), Y i (Function.update v j z) = Y i v) (hmean : ∀ (i : ι) (v : (a : ι) → α a), ∫ (z : α i), Y i (Function.update v i z) ∂μ i = 0) (hrange : ∀ (i : ι) (v : (a : ι) → α a), ∃ (a : ℝ), ∀ (z : α i), Y i (Function.update v i z) ∈ Set.Icc a (a + ↑(c i))) {ε : ℝ} (hε : 0 ≤ ε) :
(MeasureTheory.Measure.pi μ).real {v : (i : ι) → α i | ε ≤ ∑ i : ι, Y i v} ≤ Real.exp (-2 * ε ^ 2 / ∑ i : ι, ↑(c i) ^ 2)

The Azuma–Hoeffding inequality under a product measure. Let Y i not depend on the coordinates after i, have mean 0 over coordinate i, and range over an interval of length c i as coordinate i varies. Then ∑ i, Y i ≥ ε with probability at most exp (-2 ε² / ∑ i, c i ^ 2) under Measure.pi μ, for every ε ≥ 0.