Documentation

CslibFrontier.Foundations.Probability.InvarianceSums

The Invariance Principle for sums of random variables #

Let X₁, …, Xₙ and Y₁, …, Yₙ be independent real random variables in L³ with laws μ i and ν i, and with E[Xᵢ] = E[Yᵢ] and E[Xᵢ²] = E[Yᵢ²]. Write S_X = ∑ Xᵢ, S_Y = ∑ Yᵢ and γ_XY = ∑ (E|Xᵢ|³ + E|Yᵢ|³). The Invariance Principle for Sums of Random Variables O'Donnell, Section 11.5, Invariance Principle for Sums of Random Variables says that |E[ψ(S_X)] - E[ψ(S_Y)]| ≤ ‖ψ'''‖∞ / 6 · γ_XY for every ψ of class C³. Here the vectors X and Y have the product laws Measure.pi μ and Measure.pi ν, and need not live on one probability space.

The proof is the Replacement Method: MeasureTheory.abs_integral_pi_sub_le_sum telescopes over the hybrids, and replacing coordinate t costs at most C / 6 · (E|Xₜ|³ + E|Yₜ|³) by the second-order replacement step ProbabilityTheory.abs_integral_sub_integral_le_of_moments. Smoothing Lipschitz tests by a three-fold moving average (ProbabilityTheory.abs_integral_comp_sub_le_of_lipschitzWith) gives Corollary 11.59, |E[ψ(S_X)] - E[ψ(S_Y)]| ≤ 6 K γ_XY^(1/3) for K-Lipschitz ψ. Smoothing the indicator of (-∞, u] the same way (ProbabilityTheory.measureReal_le_le_add_of_forall_contDiff) gives Corollary 11.61, a bound on the Lévy distance: Pr[S_X ≤ u] ≤ Pr[S_Y ≤ u + ε] + ε and Pr[S_Y ≤ u - ε] - ε ≤ Pr[S_X ≤ u] with ε = 3 γ_XY^(1/4). When S_Y is a standard Gaussian, its anticoncentration gives |Pr[S_X ≤ u] - Φ(u)| ≤ 9/2 · γ_XY^(1/4). Corollary 11.62 is the Berry–Esseen setting, where only X is given, with E[Xᵢ] = 0 and ∑ Var[Xᵢ] = 1: as in the book, take independent Yᵢ ∼ N(0, Var[Xᵢ]), so that S_Y is a standard Gaussian, and bound γ_XY ≤ 3 γ with γ = ∑ E|Xᵢ|³ as in (11.28), giving |Pr[S_X ≤ u] - Φ(u)| ≤ 6 γ^(1/4). The book's bound E|Yᵢ|³ ≤ 2 √(2/π) E|Xᵢ|³ is replaced by E|Yᵢ|³ ≤ 2 E|Xᵢ|³, from ProbabilityTheory.integral_abs_pow_three_gaussianReal_le and Lyapunov's inequality MeasureTheory.sqrt_integral_sq_pow_three_le.

The tools come from CslibFrontier.Foundations.Probability.SmoothTests and CslibFrontier.Foundations.Probability.LevyDistance.

Not proved here: the Berry–Esseen Theorem of Section 11.5, with the error O(∑ E|Xᵢ|³) instead of O(γ^(1/4)); and the Variant Berry–Esseen Theorem, which compares E[ψ(S_X)] with E[ψ(Z)] for C³ tests.

Main results #

References #

The Invariance Principle for sums #

theorem ProbabilityTheory.abs_integral_comp_sum_sub_le {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) {ψ : ℝ → ℝ} (hψ : ContDiff ℝ 3 ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv 3 ψ y| ≤ C) :
|∫ (z : ι → ℝ), ψ (∑ i : ι, z i) ∂MeasureTheory.Measure.pi μ - ∫ (z : ι → ℝ), ψ (∑ i : ι, z i) ∂MeasureTheory.Measure.pi ν| ≤ C / 6 * ∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)

The Invariance Principle for Sums of Random Variables O'Donnell, Section 11.5, Invariance Principle for Sums of Random Variables: let X and Y be vectors of independent random variables with laws μ i and ν i in L³, with E[Xᵢ] = E[Yᵢ] and E[Xᵢ²] = E[Yᵢ²]. If ψ : ℝ → ℝ is of class C³ with |ψ'''| ≤ C, then |E[ψ(∑ Xᵢ)] - E[ψ(∑ Yᵢ)]| ≤ C / 6 · ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³).

Lipschitz tests: Corollary 11.59 #

theorem ProbabilityTheory.abs_integral_comp_sum_sub_le_of_lipschitzWith {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) {ψ : ℝ → ℝ} {K : NNReal} (hψ : LipschitzWith K ψ) :
|∫ (z : ι → ℝ), ψ (∑ i : ι, z i) ∂MeasureTheory.Measure.pi μ - ∫ (z : ι → ℝ), ψ (∑ i : ι, z i) ∂MeasureTheory.Measure.pi ν| ≤ 6 * ↑K * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 3)

Corollary 11.59 O'Donnell, Corollary 11.59: in the setting of the Invariance Principle for sums, if ψ : ℝ → ℝ is K-Lipschitz, then |E[ψ(∑ Xᵢ)] - E[ψ(∑ Yᵢ)]| ≤ 6 K · γ_XY^(1/3) with γ_XY = ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³).

The Lévy distance: Corollary 11.61 #

theorem ProbabilityTheory.measureReal_sum_le_le_add_div_pow {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) (u : ℝ) {η : ℝ} (hη : 0 < η) :
(MeasureTheory.Measure.pi μ).real {z : ι → ℝ | ∑ i : ι, z i ≤ u} ≤ (MeasureTheory.Measure.pi ν).real {z : ι → ℝ | ∑ i : ι, z i ≤ u + η} + (128 / 3 * ∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) / η ^ 3

In the setting of the Invariance Principle for sums, for every u and η > 0, Pr[∑ Xᵢ ≤ u] ≤ Pr[∑ Yᵢ ≤ u + η] + 128 γ_XY / (3 η³) with γ_XY = ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³). This is the main step of O'Donnell, Corollary 11.61 (Exercise 11.42).

theorem ProbabilityTheory.measureReal_sum_le_le_add {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) (u : ℝ) :
(MeasureTheory.Measure.pi μ).real {z : ι → ℝ | ∑ i : ι, z i ≤ u} ≤ (MeasureTheory.Measure.pi ν).real {z : ι → ℝ | ∑ i : ι, z i ≤ u + 3 * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 4)} + 3 * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 4)

Corollary 11.61, upper bound O'Donnell, Corollary 11.61: in the setting of the Invariance Principle for sums, Pr[∑ Xᵢ ≤ u] ≤ Pr[∑ Yᵢ ≤ u + ε] + ε for every u, with ε = 3 γ_XY^(1/4) and γ_XY = ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³).

theorem ProbabilityTheory.measureReal_sum_le_sub_le {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) (u : ℝ) :
(MeasureTheory.Measure.pi ν).real {z : ι → ℝ | ∑ i : ι, z i ≤ u - 3 * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 4)} - 3 * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 4) ≤ (MeasureTheory.Measure.pi μ).real {z : ι → ℝ | ∑ i : ι, z i ≤ u}

Corollary 11.61, lower bound O'Donnell, Corollary 11.61: in the setting of the Invariance Principle for sums, Pr[∑ Yᵢ ≤ u - ε] - ε ≤ Pr[∑ Xᵢ ≤ u] for every u, with ε = 3 γ_XY^(1/4) and γ_XY = ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³). Together with measureReal_sum_le_le_add, the Lévy distance between ∑ Xᵢ and ∑ Yᵢ is at most ε.

Comparison with a Gaussian: Corollary 11.62 #

theorem ProbabilityTheory.abs_measureReal_sum_le_sub_cdf_le_of_hasLaw {ι : Type u_1} [Fintype ι] (μ ν : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (hν : ∀ (i : ι), MeasureTheory.MemLp id 3 (ν i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = ∫ (s : ℝ), s ∂ν i) (h₂ : ∀ (i : ι), ∫ (s : ℝ), s ^ 2 ∂μ i = ∫ (s : ℝ), s ^ 2 ∂ν i) (hG : HasLaw (fun (z : ι → ℝ) => ∑ i : ι, z i) (gaussianReal 0 1) (MeasureTheory.Measure.pi ν)) (u : ℝ) :
|(MeasureTheory.Measure.pi μ).real {z : ι → ℝ | ∑ i : ι, z i ≤ u} - ↑(cdf (gaussianReal 0 1)) u| ≤ 9 / 2 * (∑ i : ι, (∫ (s : ℝ), |s| ^ 3 ∂μ i + ∫ (s : ℝ), |s| ^ 3 ∂ν i)) ^ (1 / 4)

A step of O'Donnell, Corollary 11.62, not the corollary itself (which is abs_measureReal_sum_le_sub_cdf_le): in the setting of the Invariance Principle for sums, if ∑ Yᵢ is a standard Gaussian, then |Pr[∑ Xᵢ ≤ u] - Φ(u)| ≤ 9/2 · γ_XY^(1/4) for every u, where Φ = cdf (gaussianReal 0 1) and γ_XY = ∑ᵢ (E|Xᵢ|³ + E|Yᵢ|³).

The Gaussian comparison family #

theorem ProbabilityTheory.abs_measureReal_sum_le_sub_cdf_le {ι : Type u_1} [Fintype ι] (μ : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (hμ : ∀ (i : ι), MeasureTheory.MemLp id 3 (μ i)) (h₁ : ∀ (i : ι), ∫ (s : ℝ), s ∂μ i = 0) (h₂ : ∑ i : ι, ∫ (s : ℝ), s ^ 2 ∂μ i = 1) (u : ℝ) :
|(MeasureTheory.Measure.pi μ).real {z : ι → ℝ | ∑ i : ι, z i ≤ u} - ↑(cdf (gaussianReal 0 1)) u| ≤ 6 * (∑ i : ι, ∫ (s : ℝ), |s| ^ 3 ∂μ i) ^ (1 / 4)

Corollary 11.62 O'Donnell, Corollary 11.62: in the setting of the Berry–Esseen Theorem, let X₁, …, Xₙ be independent real random variables with laws μ i in L³, with E[Xᵢ] = 0 and ∑ᵢ Var[Xᵢ] = ∑ᵢ E[Xᵢ²] = 1, and let γ = ∑ᵢ E|Xᵢ|³. Then |Pr[∑ Xᵢ ≤ u] - Φ(u)| ≤ 6 γ^(1/4) for every u, where Φ = cdf (gaussianReal 0 1). The book hides the constant in O(γ^(1/4)).

The proof follows the book: it compares X with independent Yᵢ ∼ N(0, Var[Xᵢ]), whose sum is a standard Gaussian (abs_measureReal_sum_le_sub_cdf_le_of_hasLaw), and bounds γ_XY ≤ 3 γ as in (11.28), using E|Yᵢ|³ ≤ 2 Var[Xᵢ]^(3/2) ≤ 2 E|Xᵢ|³.