Documentation

CslibFrontier.Foundations.Data.Finset.PaleyZygmund

The Paley–Zygmund inequality and reasonable random variables #

A nonnegative function f on a finite type, with values in an ordered field, exceeds a fraction θ of its uniform average on a set of density at least (1 - θ) ^ 2 (𝔼 f) ^ 2 / 𝔼 f ^ 2: this is the Paley–Zygmund inequality (Fintype.sq_one_sub_mul_expect_le_dens_mul_expect_sq), the "second moment method" of O'Donnell, Section 9.1. Its case θ = 0 is the second moment method Fintype.sq_expect_le_dens_mul_expect_sq.

A real random variable X is B-reasonable when 𝔼 X ^ 4 ≤ B (𝔼 X ^ 2) ^ 2 O'Donnell, Definition 9.1. We do not introduce a predicate for it: the results below take the inequality as a hypothesis, for a function on a finite type under the uniform distribution. Reasonable random variables satisfy a tail bound better than Chebyshev's (Fintype.pow_four_mul_dens_le_of_expect_pow_four_le, O'Donnell, Proposition 9.3) and, by Paley–Zygmund, an anticoncentration bound (Fintype.sq_one_sub_sq_le_mul_dens_of_expect_pow_four_le, O'Donnell, Proposition 9.4). A function taking each of its values with probability at least λ is 1 / λ-reasonable (Fintype.mul_expect_pow_four_le_of_le_dens, O'Donnell, Proposition 9.5). Paley–Zygmund and Proposition 9.5 hold in any ordered field; Propositions 9.3 and 9.4 are stated over ℝ, since they normalise by ‖X‖₂ = √(𝔼 X ^ 2).

Main results #

References #

theorem Fintype.sq_one_sub_mul_expect_le_dens_mul_expect_sq {ι : Type u_1} [Fintype ι] {𝕜 : Type u_2} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {f : ι → 𝕜} (hf : ∀ (i : ι), 0 ≤ f i) {θ : 𝕜} (hθ₀ : 0 ≤ θ) (hθ₁ : θ ≤ 1) :
((1 - θ) * Finset.univ.expect fun (i : ι) => f i) ^ 2 ≤ ↑{i : ι | (θ * Finset.univ.expect fun (j : ι) => f j) < f i}.dens * Finset.univ.expect fun (i : ι) => f i ^ 2

The Paley–Zygmund inequality for a uniform average: if f is nonnegative and 0 ≤ θ ≤ 1, then ((1 - θ) 𝔼 f) ^ 2 ≤ Pr[f > θ 𝔼 f] · 𝔼 f ^ 2 O'Donnell, Section 9.1.

theorem Fintype.pow_four_mul_dens_le_of_expect_pow_four_le {ι : Type u_1} [Fintype ι] {f : ι → ℝ} {B : ℝ} (hB : (Finset.univ.expect fun (i : ι) => f i ^ 4) ≤ B * (Finset.univ.expect fun (i : ι) => f i ^ 2) ^ 2) (hf : 0 < Finset.univ.expect fun (i : ι) => f i ^ 2) {t : ℝ} (ht : 0 ≤ t) :
t ^ 4 * ↑{i : ι | t * √(Finset.univ.expect fun (j : ι) => f j ^ 2) ≤ |f i|}.dens ≤ B

Reasonable random variables have light tails: if 𝔼 f ^ 4 ≤ B (𝔼 f ^ 2) ^ 2 and f ≢ 0, then Pr[|f| ≥ t ‖f‖₂] ≤ B / t ^ 4 for t ≥ 0, in the form t ^ 4 Pr[|f| ≥ t ‖f‖₂] ≤ B O'Donnell, Proposition 9.3.

theorem Fintype.sq_one_sub_sq_le_mul_dens_of_expect_pow_four_le {ι : Type u_1} [Fintype ι] {f : ι → ℝ} {B : ℝ} (hB : (Finset.univ.expect fun (i : ι) => f i ^ 4) ≤ B * (Finset.univ.expect fun (i : ι) => f i ^ 2) ^ 2) (hf : 0 < Finset.univ.expect fun (i : ι) => f i ^ 2) {t : ℝ} (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) :
(1 - t ^ 2) ^ 2 ≤ B * ↑{i : ι | t * √(Finset.univ.expect fun (j : ι) => f j ^ 2) < |f i|}.dens

Reasonable random variables are anticoncentrated: if 𝔼 f ^ 4 ≤ B (𝔼 f ^ 2) ^ 2 and f ≢ 0, then Pr[|f| > t ‖f‖₂] ≥ (1 - t ^ 2) ^ 2 / B for t ∈ [0, 1], in the form (1 - t ^ 2) ^ 2 ≤ B Pr[|f| > t ‖f‖₂] O'Donnell, Proposition 9.4. The proof applies Paley–Zygmund to f ^ 2.

theorem Fintype.mul_expect_pow_four_le_of_le_dens {ι : Type u_1} [Fintype ι] {𝕜 : Type u_2} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {f : ι → 𝕜} {l : 𝕜} (hl : ∀ (i : ι), l ≤ ↑{j : ι | f j = f i}.dens) :
(l * Finset.univ.expect fun (i : ι) => f i ^ 4) ≤ (Finset.univ.expect fun (i : ι) => f i ^ 2) ^ 2

A random variable with no rare values is reasonable: if f takes each of its values with probability at least l, then l 𝔼 f ^ 4 ≤ (𝔼 f ^ 2) ^ 2, so f is 1 / l-reasonable when l > 0 O'Donnell, Proposition 9.5.