Documentation

CslibFrontier.Foundations.Probability.Gaussian.ConvexCap

Planar Gaussian projections of three vectors in a spherical cap #

Let x be a unit vector of a finite-dimensional real inner product space E, and let y₀, y₁, y₂ : E be vectors of norm at most 1 lying in the spherical cap κ ≤ ⟪yᵢ, x⟫ (0 < κ ≤ 1). Draw two independent standard Gaussian vectors (X₁, X₂) from (stdGaussian E).prod (stdGaussian E) and form the three planar projections zᵢ = (⟪yᵢ, X₁⟫, ⟪yᵢ, X₂⟫) ∈ ℝ². What is the probability that (0, 0) lies in the triangle conv(z₀, z₁, z₂)?

  1. Orthonormal coordinates in ℝ³. Embedding E isometrically into an ambient space with three spare orthogonal directions and running three steps of Gram–Schmidt produces an orthonormal triple (e₀, e₁, e₂) whose span contains y₀, y₁, y₂. Under stdGaussian, the projections onto any finite orthonormal family are independent N(0, 1) variables (ProbabilityTheory.stdGaussian_map_inner_pi).
  2. Cross-product cap inequality. In the (e₀, e₁, e₂) coordinates, any convex combination c = w₀ c₀ + w₁ c₁ + w₂ c₂ (wᵢ ≥ 0, ∑ wᵢ = 1) has norm at most 1 and inner product at least κ with the normalized projection v ∈ S² of x. If c · g₁ = c · g₂ = 0 for the two N(0, I₃) coordinate samples g₁, g₂, the vector triple product identity c × (g₁ × g₂) = (c · g₂) g₁ - (c · g₁) g₂ = 0 forces g₁ × g₂ to be parallel to c, so κ ^ 2 * ‖g₁ × g₂‖ ^ 2 ≤ (v · (g₁ × g₂)) ^ 2.
  3. Householder–Fubini evaluation (1 - κ). A Householder reflection preserves N(0, I₃) and negates cross products up to reflection ((H a) × (H b) = -H (a × b)). Introducing an independent X ~ N(0, I₃) and swapping expectations via Fubini equates Pr[κ ^ 2 ‖g₁ × g₂‖ ^ 2 ≤ (v · (g₁ × g₂)) ^ 2] with the single-Gaussian double-cone probability Pr[κ ^ 2 (X₀ ^ 2 + X₁ ^ 2 + X₂ ^ 2) ≤ X₀ ^ 2], which evaluates in cylindrical polar coordinates to 1 - κ.

Main results #

Finite orthonormal families under stdGaussian #

theorem ProbabilityTheory.stdGaussian_map_inner_pi {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] {ι : Type u_2} [Fintype ι] {u : ι → E} (hu_norm : ∀ (i : ι), ‖u i‖ = 1) (hu_orth : Pairwise fun (i j : ι) => inner ℝ (u i) (u j) = 0) :
MeasureTheory.Measure.map (fun (x : E) (i : ι) => inner ℝ (u i) x) (stdGaussian E) = MeasureTheory.Measure.pi fun (x : ι) => gaussianReal 0 1

Projections onto a finite orthonormal family. Under stdGaussian E, the inner products with a family of pairwise orthogonal unit vectors u : ι → E are independent standard Gaussian random variables.

Closedness and measurability of the planar origin-in-triangle event #

theorem ProbabilityTheory.measurableSet_convex_zero_three {Z : Type u_1} [TopologicalSpace Z] [MeasurableSpace Z] [OpensMeasurableSpace Z] {f₀ f₁ f₂ : Z → ℝ × ℝ} (hf₀ : Continuous f₀) (hf₁ : Continuous f₁) (hf₂ : Continuous f₂) :
MeasurableSet {z : Z | ∃ (w₀ : ℝ) (w₁ : ℝ) (w₂ : ℝ), 0 ≤ w₀ ∧ 0 ≤ w₁ ∧ 0 ≤ w₂ ∧ w₀ + w₁ + w₂ = 1 ∧ w₀ * (f₀ z).1 + w₁ * (f₁ z).1 + w₂ * (f₂ z).1 = 0 ∧ w₀ * (f₀ z).2 + w₁ * (f₁ z).2 + w₂ * (f₂ z).2 = 0}

On any topological space Z, the set of z for which (0, 0) is a convex combination of three continuous planar points (f₀ z, f₁ z, f₂ z) is closed, hence measurable.

ℝ³ cross products, Householder reflections, and Gaussian cones #

Three-step Gram–Schmidt with three spare orthogonal coordinates #

Main planar Gaussian convex-hull theorem #

theorem ProbabilityTheory.measureReal_stdGaussian_prod_convex_zero_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] {x y₀ y₁ y₂ : E} (hx : ‖x‖ = 1) {κ : ℝ} (hκ0 : 0 < κ) (hκ1 : κ ≤ 1) (hy₀ : κ ≤ inner ℝ y₀ x) (hy₁ : κ ≤ inner ℝ y₁ x) (hy₂ : κ ≤ inner ℝ y₂ x) (hnorm₀ : ‖y₀‖ ≤ 1) (hnorm₁ : ‖y₁‖ ≤ 1) (hnorm₂ : ‖y₂‖ ≤ 1) :
((stdGaussian E).prod (stdGaussian E)).real {p : E × E | ∃ (w₀ : ℝ) (w₁ : ℝ) (w₂ : ℝ), 0 ≤ w₀ ∧ 0 ≤ w₁ ∧ 0 ≤ w₂ ∧ w₀ + w₁ + w₂ = 1 ∧ w₀ * inner ℝ y₀ p.1 + w₁ * inner ℝ y₁ p.1 + w₂ * inner ℝ y₂ p.1 = 0 ∧ w₀ * inner ℝ y₀ p.2 + w₁ * inner ℝ y₁ p.2 + w₂ * inner ℝ y₂ p.2 = 0} ≤ 1 - κ

Planar Gaussian projections of three vectors in a spherical cap. Let x be a unit vector of E, and let y₀, y₁, y₂ : E have norm at most 1 and inner product at least κ (0 < κ ≤ 1) with x. Under two independent draws (X₁, X₂) ~ (stdGaussian E).prod (stdGaussian E), (0, 0) lies in the triangle conv((⟪y₀, X₁⟫, ⟪y₀, X₂⟫), (⟪y₁, X₁⟫, ⟪y₁, X₂⟫), (⟪y₂, X₁⟫, ⟪y₂, X₂⟫)) with probability at most 1 - κ.

theorem ProbabilityTheory.measureReal_pi_prod_convex_zero_le {ι : Type u_1} [Fintype ι] {x y₀ y₁ y₂ : EuclideanSpace ℝ ι} (hx : ‖x‖ = 1) {κ : ℝ} (hκ0 : 0 < κ) (hκ1 : κ ≤ 1) (hy₀ : κ ≤ inner ℝ y₀ x) (hy₁ : κ ≤ inner ℝ y₁ x) (hy₂ : κ ≤ inner ℝ y₂ x) (hnorm₀ : ‖y₀‖ ≤ 1) (hnorm₁ : ‖y₁‖ ≤ 1) (hnorm₂ : ‖y₂‖ ≤ 1) :
((MeasureTheory.Measure.pi fun (x : ι) => gaussianReal 0 1).prod (MeasureTheory.Measure.pi fun (x : ι) => gaussianReal 0 1)).real {ω : (ι → ℝ) × (ι → ℝ) | ∃ (w₀ : ℝ) (w₁ : ℝ) (w₂ : ℝ), 0 ≤ w₀ ∧ 0 ≤ w₁ ∧ 0 ≤ w₂ ∧ w₀ + w₁ + w₂ = 1 ∧ w₀ * inner ℝ y₀ (WithLp.toLp 2 ω.1) + w₁ * inner ℝ y₁ (WithLp.toLp 2 ω.1) + w₂ * inner ℝ y₂ (WithLp.toLp 2 ω.1) = 0 ∧ w₀ * inner ℝ y₀ (WithLp.toLp 2 ω.2) + w₁ * inner ℝ y₁ (WithLp.toLp 2 ω.2) + w₂ * inner ℝ y₂ (WithLp.toLp 2 ω.2) = 0} ≤ 1 - κ

Coordinatewise Measure.pi specialization of measureReal_stdGaussian_prod_convex_zero_le.