Documentation

CslibFrontier.Foundations.Probability.SmoothTests

Comparing expectations through smooth test functions #

General tools for invariance principles proved by the Replacement Method O'Donnell, Sections 11.5 and 11.6, for test functions ψ : ℝ → ℝ of class Cᵐ with a bounded m-th derivative.

The corresponding step to distribution functions is in CslibFrontier.Foundations.Probability.LevyDistance.

Main results #

References #

One coordinate #

theorem ProbabilityTheory.abs_integral_sub_integral_le_of_moments {μ ν : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν] {n : ℕ} (hμ : MeasureTheory.MemLp id (↑(n + 1)) μ) (hν : MeasureTheory.MemLp id (↑(n + 1)) ν) (hmom : ∀ j ≤ n, ∫ (s : ℝ), s ^ j ∂μ = ∫ (s : ℝ), s ^ j ∂ν) {ψ : ℝ → ℝ} (hψ : ContDiff ℝ (↑n + 1) ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv (n + 1) ψ y| ≤ C) (a b : ℝ) :
|∫ (s : ℝ), ψ (a + s * b) ∂μ - ∫ (s : ℝ), ψ (a + s * b) ∂ν| ≤ C / ↑(n + 1).factorial * |b| ^ (n + 1) * (∫ (s : ℝ), |s| ^ (n + 1) ∂μ + ∫ (s : ℝ), |s| ^ (n + 1) ∂ν)

The one-dimensional replacement step. If the laws μ and ν have finite moments of order n + 1 and the same moments of orders 0, …, n, and ψ is C^(n+1) with |ψ⁽ⁿ⁺¹⁾| ≤ C, then for all a, b, |E_μ ψ(a + s b) - E_ν ψ(a + s b)| is at most C / (n + 1)! · |b| ^ (n + 1) · (E_μ |s| ^ (n + 1) + E_ν |s| ^ (n + 1)).

theorem ProbabilityTheory.integrable_comp_of_memLp {ψ : ℝ → ℝ} {n : ℕ} (hψ : ContDiff ℝ (↑n + 1) ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv (n + 1) ψ y| ≤ C) {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure P] {U : Ω → ℝ} (hU : MeasureTheory.MemLp U (↑(n + 1)) P) :
MeasureTheory.Integrable (fun (ω : Ω) => ψ (U ω)) P

If ψ is C^(n+1) with |ψ⁽ⁿ⁺¹⁾| ≤ C, then ψ grows at most like a polynomial of degree n + 1, so ψ ∘ U is integrable for every U in L^(n+1) on a finite measure space.

From Cᵐ tests to Lipschitz tests #

theorem ProbabilityTheory.abs_integral_comp_sub_le_of_lipschitzWith {Ω : 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 : ℕ} (hm : m ≠ 0) {τ : ℝ} (hτ : 0 ≤ τ) (h : ∀ (φ : ℝ → ℝ) (C : ℝ), ContDiff ℝ (↑m) φ → (∀ (u : ℝ), |iteratedDeriv m φ u| ≤ C) → MeasureTheory.Integrable (fun (ω : Ω) => φ (X ω)) P ∧ MeasureTheory.Integrable (fun (ω : Ω') => φ (Y ω)) Q ∧ |∫ (ω : Ω), φ (X ω) ∂P - ∫ (ω : Ω'), φ (Y ω) ∂Q| ≤ C * τ ^ m) {ψ : ℝ → ℝ} {K : NNReal} (hψ : LipschitzWith K ψ) :
|∫ (ω : Ω), ψ (X ω) ∂P - ∫ (ω : Ω'), ψ (Y ω) ∂Q| ≤ (2 * ↑m + 2 ^ (m - 1)) * ↑K * τ

From Cᵐ tests to Lipschitz tests: let m ≥ 1 and suppose that for every φ of class Cᵐ with |φ⁽ᵐ⁾| ≤ C, the random variables φ(X) and φ(Y) are integrable and |E[φ(X)] - E[φ(Y)]| ≤ C τᵐ. Then |E[ψ(X)] - E[ψ(Y)]| ≤ (2m + 2ᵐ⁻¹) K τ for every K-Lipschitz ψ. This is the smoothing argument behind O'Donnell, Corollary 11.59 (m = 3, constant 10) and O'Donnell, Corollary 11.68 (m = 4, constant 16).