Documentation

CslibFrontier.Foundations.Probability.Reasonable

Reasonable random variables #

A real random variable X on a measure space (Ω, μ) is B-reasonable when it has a finite fourth moment and E[X⁴] ≤ B E[X²]² O'Donnell, Definition 9.1. Under the uniform distribution on a finite type this is the inequality 𝔼 X ^ 4 ≤ B (𝔼 X ^ 2) ^ 2 between finite averages (ProbabilityTheory.isReasonable_uniformOn_univ_iff). Generalizing the uniform ±1 bit of O'Donnell, Example 9.2, every random variable taking only the values ±1 is 1-reasonable; it has E[X²] = 1 and E[X³] = E[X], so a uniformly random ±1 bit satisfies E[X] = E[X³] = 0.

On a finite type, CslibFrontier.Foundations.Data.Finset.PaleyZygmund deliberately states reasonableness as the hypothesis 𝔼 X ^ 4 ≤ B (𝔼 X ^ 2) ^ 2 for the tail and anticoncentration bounds (Fintype.pow_four_mul_dens_le_of_expect_pow_four_le, Fintype.sq_one_sub_sq_le_mul_dens_of_expect_pow_four_le); isReasonable_uniformOn_univ_iff converts between the two. The predicate here is needed for random variables on general probability spaces, such as Gaussians, where reasonableness also requires a finite fourth moment and must transfer along laws (HasLaw.isReasonable_iff) and under scaling.

Main definitions #

Main results #

References #

structure ProbabilityTheory.IsReasonable {Ω : Type u_1} {mΩ : MeasurableSpace Ω} (B : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) :

A real random variable X on (Ω, μ) is B-reasonable when it has a finite fourth moment and E[X⁴] ≤ B E[X²]² O'Donnell, Definition 9.1. The integrability field makes the moments meaningful (a Bochner integral of a non-integrable function is 0). The book also assumes B ≥ 1; that condition is dropped here. On a probability space it holds automatically unless X = 0 almost everywhere, since E[X²]² ≤ E[X⁴] there.

This is the measure-theoretic form of the definition. Under the uniform distribution on a finite type it is the inequality between finite averages 𝔼 X ^ 4 ≤ B (𝔼 X ^ 2) ^ 2 (isReasonable_uniformOn_univ_iff).

  • memLp : MeasureTheory.MemLp X 4 μ

    A reasonable random variable has a finite fourth moment.

  • integral_pow_four_le : ∫ (ω : Ω), X ω ^ 4 ∂μ ≤ B * (∫ (ω : Ω), X ω ^ 2 ∂μ) ^ 2

    The fourth moment is at most B times the square of the second moment.

theorem ProbabilityTheory.IsReasonable.mono {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {B C : ℝ} {X : Ω → ℝ} (hX : IsReasonable B X μ) (hBC : B ≤ C) :

A B-reasonable random variable is C-reasonable for every C ≥ B.

theorem ProbabilityTheory.IsReasonable.const_mul {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {B : ℝ} {X : Ω → ℝ} (hX : IsReasonable B X μ) (c : ℝ) :
IsReasonable B (fun (ω : Ω) => c * X ω) μ

Reasonableness is invariant under scaling: if X is B-reasonable then so is c X.

theorem ProbabilityTheory.isReasonable_const_mul_iff {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {B : ℝ} {X : Ω → ℝ} {c : ℝ} (hc : c ≠ 0) :
IsReasonable B (fun (ω : Ω) => c * X ω) μ ↔ IsReasonable B X μ

Reasonableness is invariant under scaling by a nonzero constant.

theorem ProbabilityTheory.HasLaw.isReasonable_iff {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {B : ℝ} {X : Ω → ℝ} {ν : MeasureTheory.Measure ℝ} (hX : HasLaw X ν μ) :

Reasonableness depends only on the law: if X has law ν, then X is B-reasonable exactly when the identity is B-reasonable under ν.

theorem ProbabilityTheory.integral_uniformOn_univ {α : Type u_2} [Fintype α] [MeasurableSpace α] [DiscreteMeasurableSpace α] (f : α → ℝ) :
∫ (x : α), f x ∂uniformOn Set.univ = Finset.univ.expect fun (x : α) => f x

The integral against the uniform distribution on a finite type is the average.

theorem ProbabilityTheory.isReasonable_uniformOn_univ_iff {B : ℝ} {α : Type u_2} [Fintype α] [MeasurableSpace α] [DiscreteMeasurableSpace α] {X : α → ℝ} :
IsReasonable B X (uniformOn Set.univ) ↔ (Finset.univ.expect fun (x : α) => X x ^ 4) ≤ B * (Finset.univ.expect fun (x : α) => X x ^ 2) ^ 2

Under the uniform distribution on a finite type, X is B-reasonable exactly when 𝔼 X ^ 4 ≤ B (𝔼 X ^ 2) ^ 2 O'Donnell, Definition 9.1.

A random variable with standard Gaussian law is 3-reasonable O'Donnell, Example 9.2.

theorem ProbabilityTheory.integral_pow_three_eq_integral_of_sq_eq_one {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} (h : ∀ᵐ (ω : Ω) ∂μ, X ω ^ 2 = 1) :
∫ (ω : Ω), X ω ^ 3 ∂μ = ∫ (ω : Ω), X ω ∂μ

The third moment of a ±1-valued random variable is its mean.

theorem ProbabilityTheory.integral_sq_eq_one_of_sq_eq_one {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (h : ∀ᵐ (ω : Ω) ∂μ, X ω ^ 2 = 1) :
∫ (ω : Ω), X ω ^ 2 ∂μ = 1

The second moment of a ±1-valued random variable is 1.

theorem ProbabilityTheory.isReasonable_one_of_sq_eq_one {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hX : AEMeasurable X μ) (h : ∀ᵐ (ω : Ω) ∂μ, X ω ^ 2 = 1) :

A ±1-valued random variable is 1-reasonable. This generalizes the uniform ±1 bit of O'Donnell, Example 9.2 to any law on {-1, 1}.