Documentation

CslibFrontier.Foundations.Probability.Gaussian.Correlated

Correlated Gaussians and Gaussian noise stability #

Two standard Gaussians z, z' are ρ-correlated when they are jointly Gaussian with E[z z'] = ρ O'Donnell, Definition 11.6. Following Fact 11.7, we define their law correlatedGaussian ρ concretely as the law of (g₁, ρ g₁ + √(1 - ρ²) g₂) for independent standard Gaussians g₁, g₂. For unit vectors u, v of a finite-dimensional real inner product space, the projections ⟪u, X⟫, ⟪v, X⟫ of a standard Gaussian vector X are ⟪u, v⟫-correlated (stdGaussian_map_inner_prod_eq_correlatedGaussian, Fact 11.7). For -1 ≤ ρ ≤ 1 it follows that both marginals are standard Gaussians, the law is invariant under swapping and under negating both coordinates, and E[z z'] = ρ. Hence the construction provably agrees with Definition 11.6: it is jointly Gaussian (isGaussian_correlatedGaussian), and every jointly Gaussian law on the plane with means 0, variances 1 and correlation ρ equals it (eq_correlatedGaussian).

An n-dimensional ρ-correlated pair (Definition 11.10) has mutually independent ρ-correlated coordinate pairs (correlatedGaussianPi); equivalently z is a standard Gaussian vector and z' = ρ z + √(1 - ρ²) g for an independent standard Gaussian vector g (correlatedGaussianPi_eq_map). The first vector is a standard Gaussian vector (correlatedGaussianPi_map_fst); for |ρ| ≤ 1 so is the second, and the law is invariant under swapping the two (correlatedGaussianPi_map_snd, correlatedGaussianPi_map_swap). The projections a ⬝ᵥ z, a ⬝ᵥ z' form a ρ-correlated pair scaled by √(a ⬝ᵥ a) (correlatedGaussianPi_map_dotProduct). The Gaussian noise stability Stab_ρ[f] = E[f z f z'] (gaussianNoiseStability, Definition 11.18) of a halfspace through the origin is 1 - (2 / π) arccos ρ (Corollary 11.20), and that of the indicator of (-∞, 0] in one coordinate is 1 / 2 - arccos ρ / (2π) (Example 11.19); both rest on Sheppard's formula.

Main definitions #

Main results #

References #

Correlated pairs of standard Gaussians #

The law of a ρ-correlated pair of standard Gaussians O'Donnell, Definition 11.6, realized as in O'Donnell, Fact 11.7 by the law of (g₁, ρ g₁ + √(1 - ρ²) g₂) for independent standard Gaussians g₁ and g₂. It is meant for -1 ≤ ρ ≤ 1; outside that range √(1 - ρ²) = 0 in Lean. For |ρ| ≤ 1 it provably is the law of Definition 11.6, the jointly Gaussian law with means 0, variances 1 and correlation ρ (isGaussian_correlatedGaussian, eq_correlatedGaussian).

Instances For

    The defining formula of correlatedGaussian: the law of (g₁, ρ g₁ + √(1 - ρ²) g₂).

    Correlated Gaussians as projections O'Donnell, Fact 11.7. For unit vectors u and v and a standard Gaussian vector X, the projections ⟪u, X⟫ and ⟪v, X⟫ are ⟪u, v⟫-correlated standard Gaussians. Indeed v = ρ u + w with w orthogonal to u and ‖w‖ ^ 2 = 1 - ρ ^ 2, so ⟪u, X⟫ and ⟪w, X⟫ are independent.

    The first coordinate of a correlated pair is a standard Gaussian.

    The second coordinate of a ρ-correlated pair is a standard Gaussian when |ρ| ≤ 1.

    A ρ-correlated pair is symmetric: (z', z) has the same law as (z, z').

    A ρ-correlated pair is invariant under negation: (-z, -z') has the same law as (z, z').

    The correlation of a correlated pair. The product of a ρ-correlated pair of standard Gaussians has mean ρ when |ρ| ≤ 1.

    A ρ-correlated pair is jointly Gaussian, as O'Donnell, Definition 11.6 requires: it is a linear image of a pair of independent standard Gaussians.

    theorem ProbabilityTheory.eq_correlatedGaussian {ν : MeasureTheory.Measure (ℝ × ℝ)} [IsGaussian ν] {ρ : ℝ} (hρ : |ρ| ≤ 1) (h1 : ∫ (p : ℝ × ℝ), p.1 ∂ν = 0) (h2 : ∫ (p : ℝ × ℝ), p.2 ∂ν = 0) (h11 : ∫ (p : ℝ × ℝ), p.1 ^ 2 ∂ν = 1) (h22 : ∫ (p : ℝ × ℝ), p.2 ^ 2 ∂ν = 1) (h12 : ∫ (p : ℝ × ℝ), p.1 * p.2 ∂ν = ρ) :

    Definition 11.6 and Fact 11.7 agree O'Donnell, Definition 11.6. A jointly Gaussian law on the plane whose coordinates have mean 0, variance 1 and correlation ρ is correlatedGaussian ρ: both laws have the same characteristic function.

    Sheppard's Formula, in the form O'Donnell, Example 11.19, (11.2): a ρ-correlated pair of standard Gaussians differs in sign (0 lies between them) with probability arccos ρ / π.

    The noise stability of the sign: for a ρ-correlated pair (z, z'), E[sgn z sgn z'] = 1 - (2 / π) arccos ρ O'Donnell, Corollary 11.20. Here sgn 0 = -1, whereas the book takes sgn 0 = 1; that convention is the closed-halfspace case gaussianNoiseStability_ite_nonneg_dotProduct.

    A 0-correlated pair is a pair of independent standard Gaussians.

    Negating the second coordinate of a ρ-correlated pair gives a -ρ-correlated pair.

    A 1-correlated pair is a standard Gaussian repeated: (g, g).

    A -1-correlated pair is a standard Gaussian and its negation: (g, -g).

    Sheppard's Formula O'Donnell, Example 11.19, (11.1): two ρ-correlated standard Gaussians are both nonpositive with probability 1 / 2 - arccos ρ / (2π), i.e. the indicator f of (-∞, 0] has E[f z f z'] = 1 / 2 - arccos ρ / (2π).

    n-dimensional correlated Gaussians and noise stability #

    noncomputable def ProbabilityTheory.correlatedGaussianPi (ι : Type u_2) [Fintype ι] (ρ : ℝ) :
    MeasureTheory.Measure ((ι → ℝ) × (ι → ℝ))

    The law of ρ-correlated n-dimensional Gaussians O'Donnell, Definition 11.10: random vectors z, z' indexed by ι whose coordinate pairs (z i, z' i) are mutually independent ρ-correlated pairs of standard Gaussians.

    Instances For
      theorem ProbabilityTheory.correlatedGaussianPi_eq_map_pi (ι : Type u_2) [Fintype ι] (ρ : ℝ) :
      correlatedGaussianPi ι ρ = MeasureTheory.Measure.map (fun (p : ι → ℝ × ℝ) => (fun (i : ι) => (p i).1, fun (i : ι) => (p i).2)) (MeasureTheory.Measure.pi fun (x : ι) => correlatedGaussian ρ)

      ρ-correlated vectors are assembled from mutually independent ρ-correlated coordinate pairs. This is the definition of correlatedGaussianPi.

      theorem ProbabilityTheory.correlatedGaussianPi_eq_map (ι : Type u_2) [Fintype ι] (ρ : ℝ) :
      correlatedGaussianPi ι ρ = MeasureTheory.Measure.map (fun (q : (ι → ℝ) × (ι → ℝ)) => (q.1, fun (i : ι) => ρ * q.1 i + √(1 - ρ ^ 2) * q.2 i)) ((MeasureTheory.Measure.pi fun (x : ι) => gaussianReal 0 1).prod (MeasureTheory.Measure.pi fun (x : ι) => gaussianReal 0 1))

      ρ-correlated vectors from independent ones O'Donnell, Definition 11.10, Remark 11.11: (z, z') is ρ-correlated when z is a standard Gaussian vector and z' = ρ z + √(1 - ρ²) g for an independent standard Gaussian vector g.

      1-correlated Gaussian vectors are (z, z) for a standard Gaussian vector z.

      theorem ProbabilityTheory.correlatedGaussianPi_map_eval (ι : Type u_2) [Fintype ι] (ρ : ℝ) (i : ι) :
      MeasureTheory.Measure.map (fun (p : (ι → ℝ) × (ι → ℝ)) => (p.1 i, p.2 i)) (correlatedGaussianPi ι ρ) = correlatedGaussian ρ

      The coordinate pairs of ρ-correlated vectors are ρ-correlated.

      The first vector of a ρ-correlated pair is a standard Gaussian vector.

      The second vector of a ρ-correlated pair is a standard Gaussian vector when |ρ| ≤ 1.

      The first projection carries ρ-correlated vectors to a standard Gaussian vector.

      The second projection carries ρ-correlated vectors to a standard Gaussian vector when |ρ| ≤ 1.

      ρ-correlated vectors are symmetric: (z', z) has the same law as (z, z') when |ρ| ≤ 1.

      theorem ProbabilityTheory.correlatedGaussianPi_map_dotProduct (ι : Type u_2) [Fintype ι] (ρ : ℝ) (a : ι → ℝ) :
      MeasureTheory.Measure.map (fun (p : (ι → ℝ) × (ι → ℝ)) => (a ⬝ᵥ p.1, a ⬝ᵥ p.2)) (correlatedGaussianPi ι ρ) = MeasureTheory.Measure.map (fun (p : ℝ × ℝ) => (√(a ⬝ᵥ a) * p.1, √(a ⬝ᵥ a) * p.2)) (correlatedGaussian ρ)

      Projections of correlated vectors. For ρ-correlated vectors z, z', the projections a ⬝ᵥ z and a ⬝ᵥ z' are a ρ-correlated pair of standard Gaussians scaled by √(a ⬝ᵥ a).

      noncomputable def ProbabilityTheory.gaussianNoiseStability {ι : Type u_2} [Fintype ι] (ρ : ℝ) (f : (ι → ℝ) → ℝ) :

      The Gaussian noise stability Stab_ρ[f] = E[f z f z'] of f at ρ, for ρ-correlated n-dimensional Gaussians z, z' O'Donnell, Definition 11.18. The book assumes f ∈ L²(γ) and ρ ∈ [-1, 1]; here f and ρ are arbitrary, and the Bochner integral is 0 when f z f z' is not integrable.

      theorem ProbabilityTheory.gaussianNoiseStability_comp_eval {ι : Type u_2} [Fintype ι] (ρ : ℝ) (i : ι) {g : ℝ → ℝ} (hg : Measurable g) :
      (gaussianNoiseStability ρ fun (z : ι → ℝ) => g (z i)) = ∫ (p : ℝ × ℝ), g p.1 * g p.2 ∂correlatedGaussian ρ

      The noise stability of a function of one coordinate is that of the function on the line.

      theorem ProbabilityTheory.gaussianNoiseStability_comp_dotProduct {ι : Type u_2} [Fintype ι] (ρ : ℝ) (a : ι → ℝ) {g : ℝ → ℝ} (hg : Measurable g) :
      (gaussianNoiseStability ρ fun (z : ι → ℝ) => g (a ⬝ᵥ z)) = ∫ (p : ℝ × ℝ), g (√(a ⬝ᵥ a) * p.1) * g (√(a ⬝ᵥ a) * p.2) ∂correlatedGaussian ρ

      The noise stability of a function of the projection a ⬝ᵥ z is that of a function on the line, after scaling by √(a ⬝ᵥ a).

      theorem ProbabilityTheory.gaussianNoiseStability_indicator_Iic_eval {ι : Type u_2} [Fintype ι] {ρ : ℝ} (hρ : |ρ| ≤ 1) (i : ι) :
      (gaussianNoiseStability ρ fun (z : ι → ℝ) => (Set.Iic 0).indicator 1 (z i)) = 1 / 2 - Real.arccos ρ / (2 * Real.pi)

      Example 11.19 O'Donnell, Example 11.19: the indicator f of z i ≤ 0 has Gaussian noise stability Stab_ρ[f] = 1 / 2 - arccos ρ / (2π).

      theorem ProbabilityTheory.gaussianNoiseStability_ite_pos_dotProduct {ι : Type u_2} [Fintype ι] {ρ : ℝ} (hρ : |ρ| ≤ 1) {a : ι → ℝ} (ha : a ≠ 0) :
      (gaussianNoiseStability ρ fun (z : ι → ℝ) => if 0 < a ⬝ᵥ z then 1 else -1) = 1 - 2 / Real.pi * Real.arccos ρ

      Corollary 11.20, open halfspaces O'Donnell, Corollary 11.20: the ±1 indicator h of the open halfspace 0 < a ⬝ᵥ z, for a ≠ 0, has Gaussian noise stability Stab_ρ[h] = 1 - (2 / π) arccos ρ.

      theorem ProbabilityTheory.gaussianNoiseStability_ite_nonneg_dotProduct {ι : Type u_2} [Fintype ι] {ρ : ℝ} (hρ : |ρ| ≤ 1) {a : ι → ℝ} (ha : a ≠ 0) :
      (gaussianNoiseStability ρ fun (z : ι → ℝ) => if 0 ≤ a ⬝ᵥ z then 1 else -1) = 1 - 2 / Real.pi * Real.arccos ρ

      Corollary 11.20, closed halfspaces O'Donnell, Corollary 11.20: the ±1 indicator h of the closed halfspace 0 ≤ a ⬝ᵥ z, for a ≠ 0, has Gaussian noise stability Stab_ρ[h] = 1 - (2 / π) arccos ρ. It is -1 times the indicator for the open halfspace of -a.