Documentation

CslibFrontier.Foundations.Probability.LevyDistance

Lévy-distance bounds from smooth test functions #

Two real random variables X and Y have Lévy distance at most δ when Pr[Y ≤ u - δ] - δ ≤ Pr[X ≤ u] ≤ Pr[Y ≤ u + δ] + δ for every u. This file turns a comparison of E[φ(X)] and E[φ(Y)] for smooth tests φ into such a bound, as in O'Donnell, Corollaries 11.61 and 11.70 and Exercises 11.41 and 11.42.

Suppose that |E[φ(X)] - E[φ(Y)]| ≤ C B for every φ of class Cᵐ with |φ⁽ᵐ⁾| ≤ C. The smoothed step Real.stepSmoothing m u (η / (m + 1)) is 1 on (-∞, u], 0 on [u + η, ∞), takes values in [0, 1] and has |φ⁽ᵐ⁾| ≤ 2ᵐ⁻¹ (m + 1)ᵐ / ηᵐ, so Pr[X ≤ u] ≤ E[φ(X)] ≤ E[φ(Y)] + 2ᵐ⁻¹ (m + 1)ᵐ B / ηᵐ ≤ Pr[Y ≤ u + η] + 2ᵐ⁻¹ (m + 1)ᵐ B / ηᵐ (measureReal_le_le_add_div_pow_of_forall_contDiff). Taking η = δ with 2ᵐ⁻¹ (m + 1)ᵐ B ≤ δᵐ⁺¹ bounds the Lévy distance by δ (measureReal_le_le_add_of_forall_contDiff, measureReal_le_sub_le_of_forall_contDiff); when δ = 0 the right-continuity of distribution functions finishes the argument.

Main results #

References #

Distribution functions and bounded tests #

theorem ProbabilityTheory.measureReal_le_le_integral_comp {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {X : Ω → ℝ} (hX : AEMeasurable X P) {φ : ℝ → ℝ} (hφ : Continuous φ) (h01 : ∀ (x : ℝ), φ x ∈ Set.Icc 0 1) {v : ℝ} (hv : ∀ x ≤ v, φ x = 1) :
P.real {ω : Ω | X ω ≤ v} ≤ ∫ (ω : Ω), φ (X ω) ∂P

If 0 ≤ φ ≤ 1 and φ = 1 on (-∞, v], then Pr[X ≤ v] ≤ E[φ(X)].

theorem ProbabilityTheory.integral_comp_le_measureReal_le {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {X : Ω → ℝ} (hX : AEMeasurable X P) {φ : ℝ → ℝ} (hφ : Continuous φ) (h01 : ∀ (x : ℝ), φ x ∈ Set.Icc 0 1) {v : ℝ} (hv : ∀ (x : ℝ), v < x → φ x = 0) :
∫ (ω : Ω), φ (X ω) ∂P ≤ P.real {ω : Ω | X ω ≤ v}

If 0 ≤ φ ≤ 1 and φ = 0 on (v, ∞), then E[φ(X)] ≤ Pr[X ≤ v].

theorem ProbabilityTheory.le_measureReal_le_of_forall_lt {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {X : Ω → ℝ} (hX : AEMeasurable X P) {a u : ℝ} (h : ∀ (v : ℝ), u < v → a ≤ P.real {ω : Ω | X ω ≤ v}) :
a ≤ P.real {ω : Ω | X ω ≤ u}

Right-continuity of distribution functions: if a ≤ Pr[X ≤ v] for all v > u, then a ≤ Pr[X ≤ u].

From Cᵐ tests to the Lévy distance #

theorem ProbabilityTheory.measureReal_le_le_add_div_pow_of_forall_contDiff {Ω : Type u_1} {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {P : MeasureTheory.Measure Ω} {Q : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] {X : Ω → ℝ} {Y : Ω' → ℝ} {m : ℕ} {B : ℝ} (hX : AEMeasurable X P) (hY : AEMeasurable Y Q) (h : ∀ (φ : ℝ → ℝ) (C : ℝ), ContDiff ℝ (↑m) φ → (∀ (s : ℝ), |iteratedDeriv m φ s| ≤ C) → |∫ (ω : Ω), φ (X ω) ∂P - ∫ (ω : Ω'), φ (Y ω) ∂Q| ≤ C * B) (u : ℝ) {η : ℝ} (hη : 0 < η) :
P.real {ω : Ω | X ω ≤ u} ≤ Q.real {ω : Ω' | Y ω ≤ u + η} + 2 ^ (m - 1) * (↑m + 1) ^ m * B / η ^ m

From Cᵐ tests to distribution functions: suppose that |E[φ(X)] - E[φ(Y)]| ≤ C B for every φ of class Cᵐ with |φ⁽ᵐ⁾| ≤ C. Then for every u and η > 0, Pr[X ≤ u] ≤ Pr[Y ≤ u + η] + 2ᵐ⁻¹ (m + 1)ᵐ B / ηᵐ. This is the main step of O'Donnell, Corollary 11.61 (Exercise 11.42), with the smoothed step Real.stepSmoothing m u (η / (m + 1)) as the test.

theorem ProbabilityTheory.measureReal_le_le_add_of_forall_contDiff {Ω : Type u_1} {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {P : MeasureTheory.Measure Ω} {Q : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] {X : Ω → ℝ} {Y : Ω' → ℝ} {m : ℕ} {B : ℝ} (hX : AEMeasurable X P) (hY : AEMeasurable Y Q) (h : ∀ (φ : ℝ → ℝ) (C : ℝ), ContDiff ℝ (↑m) φ → (∀ (s : ℝ), |iteratedDeriv m φ s| ≤ C) → |∫ (ω : Ω), φ (X ω) ∂P - ∫ (ω : Ω'), φ (Y ω) ∂Q| ≤ C * B) {δ : ℝ} (hδ : 0 ≤ δ) (hB : 2 ^ (m - 1) * (↑m + 1) ^ m * B ≤ δ ^ (m + 1)) (u : ℝ) :
P.real {ω : Ω | X ω ≤ u} ≤ Q.real {ω : Ω' | Y ω ≤ u + δ} + δ

From Cᵐ tests to the Lévy distance, upper bound: in the setting of measureReal_le_le_add_div_pow_of_forall_contDiff, if δ ≥ 0 satisfies 2ᵐ⁻¹ (m + 1)ᵐ B ≤ δᵐ⁺¹, then Pr[X ≤ u] ≤ Pr[Y ≤ u + δ] + δ for every u O'Donnell, Corollary 11.61.

theorem ProbabilityTheory.measureReal_le_sub_le_of_forall_contDiff {Ω : Type u_1} {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {P : MeasureTheory.Measure Ω} {Q : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] {X : Ω → ℝ} {Y : Ω' → ℝ} {m : ℕ} {B : ℝ} (hX : AEMeasurable X P) (hY : AEMeasurable Y Q) (h : ∀ (φ : ℝ → ℝ) (C : ℝ), ContDiff ℝ (↑m) φ → (∀ (s : ℝ), |iteratedDeriv m φ s| ≤ C) → |∫ (ω : Ω), φ (X ω) ∂P - ∫ (ω : Ω'), φ (Y ω) ∂Q| ≤ C * B) {δ : ℝ} (hδ : 0 ≤ δ) (hB : 2 ^ (m - 1) * (↑m + 1) ^ m * B ≤ δ ^ (m + 1)) (u : ℝ) :
Q.real {ω : Ω' | Y ω ≤ u - δ} - δ ≤ P.real {ω : Ω | X ω ≤ u}

From Cᵐ tests to the Lévy distance, lower bound: in the setting of measureReal_le_le_add_of_forall_contDiff, Pr[Y ≤ u - δ] - δ ≤ Pr[X ≤ u] for every u O'Donnell, Corollary 11.61. Together, the two bound the Lévy distance between X and Y by δ.