Documentation

CslibFrontier.Probability.BitString.Massart

Massart's finite-class lemma #

For finitely many vectors a j : κ → ℝ (j : ι) of Euclidean norm at most r, the expected maximum of the Rademacher sums ∑ i, a j i * signVal (σ i) over a uniformly random sign vector σ : κ → Bool is at most r √(2 log |ι|) [Massart2000, Lemma 5.2] [MohriRostamizadehTalwalkar2018, Theorem 3.7].

The proof is the Chernoff argument for maxima. For t > 0, Jensen's inequality for exp, the bound of a maximum of nonnegative terms by their sum, and the sub-Gaussian moment generating function bound of Rademacher sums (expect_exp_mul_sum_mul_signVal_le) give exp (t 𝔼 max_j Y_j) ≤ |ι| exp (t² r² / 2), that is, 𝔼 max_j Y_j ≤ log |ι| / t + t r² / 2. Minimizing over t gives r √(2 log |ι|).

Main results #

References #

theorem Fintype.bddAbove_range_expect {ι : Type u_1} {κ : Type u_2} [Fintype κ] (g : ι → κ → ℝ) {B : ℝ} (hg : ∀ (j : ι) (k : κ), g j k ≤ B) :
BddAbove (Set.range fun (j : ι) => Finset.univ.expect fun (k : κ) => g j k)

The averages of a family of functions on a finite type that is bounded above by B are bounded above.

theorem Cslib.BitString.bddAbove_range_expect_signVal_mul {ι : Type u_1} {κ : Type u_2} [Fintype κ] (a : ι → κ → ℝ) {B : ℝ} (ha : ∀ (j : ι) (i : κ), |a j i| ≤ B) (σ : κ → Bool) :
BddAbove (Set.range fun (j : ι) => Finset.univ.expect fun (i : κ) => signVal (σ i) * a j i)

The correlations of a uniformly bounded family of vectors with a fixed sign vector are bounded above.

theorem Cslib.BitString.expect_sum_mul_signVal_eq_zero {κ : Type u_1} [Fintype κ] [DecidableEq κ] (a : κ → ℝ) :
(Finset.univ.expect fun (σ : κ → Bool) => ∑ i : κ, a i * signVal (σ i)) = 0

A Rademacher sum has mean zero: flipping every sign negates it.

theorem Cslib.BitString.expect_ciSup_sum_mul_signVal_le {ι : Type u_1} {κ : Type u_2} [Fintype ι] [Fintype κ] [DecidableEq κ] (a : ι → κ → ℝ) {r : ℝ} (hr : 0 ≤ r) (ha : ∀ (j : ι), ∑ i : κ, a j i ^ 2 ≤ r ^ 2) :
(Finset.univ.expect fun (σ : κ → Bool) => ⨆ (j : ι), ∑ i : κ, a j i * signVal (σ i)) ≤ r * √(2 * Real.log ↑(Fintype.card ι))

Massart's lemma [Massart2000, Lemma 5.2] [MohriRostamizadehTalwalkar2018, Theorem 3.7]: if the vectors a j : κ → ℝ, j : ι, have Euclidean norm at most r, then the expected maximum of their correlations with a uniformly random sign vector is at most r √(2 log |ι|).

For empty ι the maximum is 0 by the convention ⨆ j ∈ ∅ = 0 for real numbers, and so is the bound.