Cauchy–Schwarz for real integrals and integrability of moments #
The Cauchy–Schwarz inequality (∫ f g)² ≤ (∫ f²) (∫ g²) for real functions whose squares and
product are integrable (MeasureTheory.sq_integral_mul_le). Unlike Mathlib's Hölder inequality
integral_mul_le_Lp_mul_Lq_of_nonneg, it needs no sign condition and is stated with natural squares
rather than real powers and roots. The proof is the discriminant argument: t ↦ ∫ (t f - g)² is a
nonnegative quadratic polynomial.
For a real random variable in Lⁿ, the moments E[zʲ] and absolute moments E[|z|ʲ] of order
j ≤ n are integrable under a finite measure (MeasureTheory.integrable_pow_of_memLp,
MeasureTheory.integrable_abs_pow_of_memLp). The third absolute moment is bounded above by
(E|z|³)² ≤ E[z²] E[z⁴] (MeasureTheory.sq_integral_abs_pow_three_le) and below by Lyapunov's
inequality (√E[z²])³ ≤ E|z|³ (MeasureTheory.sqrt_integral_sq_pow_three_le). By
Cauchy–Schwarz, the expectations of a K-Lipschitz function of two random variables in L²
differ by at most K times their L² distance (LipschitzWith.abs_integral_comp_sub_le_sqrt).
Main results #
MeasureTheory.sq_integral_mul_le: Cauchy–Schwarz,(∫ f g)² ≤ (∫ f²) (∫ g²).MeasureTheory.integrable_pow_of_memLp:z ∈ Lⁿandj ≤ ngivezʲintegrable.MeasureTheory.integrable_abs_pow_of_memLp:z ∈ Lⁿandj ≤ ngive|z|ʲintegrable.MeasureTheory.sq_integral_abs_pow_three_le:(E|z|³)² ≤ E[z²] E[z⁴].MeasureTheory.sqrt_integral_sq_pow_three_le: Lyapunov's inequality(√E[z²])³ ≤ E|z|³.LipschitzWith.abs_integral_comp_sub_le_sqrt: forK-LipschitzψandX,YinL²,|E[ψ(X)] - E[ψ(Y)]| ≤ K √E[(X - Y)²].
Cauchy–Schwarz for real integrals: (∫ f g)² ≤ (∫ f²) (∫ g²).
Moments of order at most n of a real random variable in Lⁿ are integrable.
Absolute moments of order at most n of a real random variable in Lⁿ are integrable.
The third absolute moment of a real random variable in L⁴ satisfies
(E|z|³)² ≤ E[z²] E[z⁴], by Cauchy–Schwarz applied to |z| · z².
Lyapunov's inequality for the second and third moments: a real random variable in L³
has (√E[z²])³ ≤ E|z|³. The proof integrates (|z| - σ)² (2 |z| + σ) ≥ 0 for σ = √E[z²].
For K-Lipschitz ψ and X, Y in L² on a probability space,
|E[ψ(X)] - E[ψ(Y)]| ≤ K √E[(X - Y)²], by Cauchy–Schwarz.