Documentation

CslibFrontier.Foundations.Probability.Gaussian.Sheppard

Sheppard's bound and formula for threshold crossings of correlated Gaussians #

Let X be a standard Gaussian vector of a finite-dimensional real inner product space, and let u, v be vectors of equal norm at angle θ. When the common norm is positive, ⟪u, X⟫ and ⟪v, X⟫ are Gaussians of equal variance with correlation cos θ. Sheppard's bound (measureReal_stdGaussian_mem_uIoc_le_angle): a threshold t lies between ⟪u, X⟫ and ⟪v, X⟫ with probability at most θ / π. For vectors of positive norm the bound is attained at t = 0: that is Sheppard's formula [She99] O'Donnell, Example 11.19 for the probability that two correlated Gaussians differ in sign (measureReal_stdGaussian_zero_mem_uIoc_eq_angle, which needs only u ≠ 0 and v ≠ 0, since the signs are unchanged by rescaling). For u = v = 0 the crossing event is empty while Mathlib's angle 0 0 is π / 2, so the bound is then strict.

The proof has four steps.

  1. Change of variables. The vectors u + v and v - u are orthogonal, so U = ⟪u + v, X⟫ and V = ⟪v - u, X⟫ are independent centered Gaussians, and a crossing at t forces |U - 2 t| ≤ |V|.
  2. Anderson's inequality on the line (ProbabilityTheory.gaussianReal_Icc_le). Conditioning on V, the shift 2 t only decreases the probability.
  3. The planar angle law (gaussianReal_prod_setOf_abs_le_mul_abs). For independent standard Gaussians Z₁, Z₂, the event |Z₁| ≤ k |Z₂| constrains only the angle of (Z₁, Z₂) in polar coordinates, to two arcs of total length 4 arctan k, so it has probability (2 / π) arctan k. Rescaling, |U| ≤ |V| has probability (2 / π) arctan (‖v - u‖ / ‖u + v‖) (measureReal_stdGaussian_mem_uIoc_le_arctan).
  4. The half-angle formula (InnerProductGeometry.angle_eq_two_mul_arctan). For vectors of equal norm at angle θ < π, the ratio ‖v - u‖ / ‖u + v‖ is tan (θ / 2).

For Sheppard's formula, outside the null event ⟪v, X⟫ = 0, ⟪u, X⟫ and ⟪v, X⟫ have the same sign exactly when ⟪u, X⟫ and ⟪-v, X⟫ differ in sign, so Sheppard's bound at angle angle u (-v) = π - θ gives the matching lower bound.

The event that t lies between x and y, the lower one strictly below t, is t ∈ Set.uIoc x y.

Main results #

References #

The planar angle law #

The planar angle law. For independent standard Gaussians Z₁ and Z₂, the event |Z₁| ≤ k |Z₂| has probability (2 / π) arctan k.

The planar angle law for any variances. For independent centered Gaussians X and Y of variances s ≠ 0 and r, the event |X| ≤ k |Y| has probability (2 / π) arctan (k √r / √s).

Sheppard's bound #

Sheppard's bound, arctan form. If u and v have equal norms and nonzero sum, a threshold lies between ⟪u, X⟫ and ⟪v, X⟫, for a standard Gaussian vector X, with probability at most (2 / π) arctan (‖v - u‖ / ‖u + v‖).

Sheppard's bound. If u and v have equal norms, a threshold lies between ⟪u, X⟫ and ⟪v, X⟫, for a standard Gaussian vector X, with probability at most angle u v / π.

Sheppard's formula [She99] O'Donnell, Example 11.19: for nonzero u and v at angle θ and a standard Gaussian vector X, ⟪u, X⟫ and ⟪v, X⟫ differ in sign (0 lies between them) with probability exactly θ / π. Rescaling reduces to ‖u‖ = ‖v‖; there the upper bound is measureReal_stdGaussian_mem_uIoc_le_angle, and outside a null set the complementary event is the crossing event for u and -v, at angle π - θ.

Sheppard's formula, correlation form. For unit vectors u, v with ⟪u, v⟫ = ρ, the correlated standard Gaussians ⟪u, X⟫ and ⟪v, X⟫ differ in sign with probability arccos ρ / π.