Hoeffding and Bernstein bounds on finite product spaces #
Concentration for a sum ∑ i, Y i (ω i) of independent coordinates, where
ω : Fin n → γ is drawn uniformly (so the coordinates ω i are independent
uniform draws from the finite type γ). As everywhere in this library the
probability of an event is the average of its indicator, and independence is
avg_prod_pi; no measure theory is used.
one_sub_add_mul_exp_le: Hoeffding's lemma for a Bernoulli variable,1 - p + p eᵗ ≤ exp(p t + t²/8), proved by two monotonicity arguments.avg_hoeffding: Hoeffding's inequality for{0,1}-valued coordinates,P(X ≥ 𝔼X + λ) ≤ exp(-2λ²/n).exp_le_bernstein: the scalar inequality behind Bernstein's bound,e^y ≤ 1 + y + y² / (2(1 - u/3))fory ≤ u < 3, from the monotonicity of(1 + y + y²/(2(1 - y/3))) e^{-y}on either side of0.avg_bernstein: Bernstein's inequality,P(X ≥ 𝔼X + λ) ≤ exp(-λ² / (2σ²(1 + bλ/(3σ²))))whenever every coordinate satisfiesYᵢ - 𝔼Yᵢ ≤ bandσ²bounds the variance ofX.
Scalar inequalities #
Tail bounds for sums of independent coordinates #
The variance of a coordinate, 𝔼[(Y - 𝔼Y)²].
Equations
- Dynamics.variance f = Dynamics.avg fun (y : γ) => (f y - Dynamics.avg f) ^ 2
Instances For
theorem
Dynamics.avg_bernstein
{n : ℕ}
{γ : Type u_1}
[Fintype γ]
[Nonempty γ]
(Y : Fin n → γ → ℝ)
{b σ2 lam : ℝ}
(hb : 0 < b)
(hYb : ∀ (i : Fin n) (x : γ), Y i x - avg (Y i) ≤ b)
(hσ : ∑ i : Fin n, variance (Y i) ≤ σ2)
(hσ0 : 0 < σ2)
(hlam : 0 ≤ lam)
:
Bernstein's inequality (Dubhashi–Panconesi): if every coordinate
satisfies Yᵢ - 𝔼Yᵢ ≤ b and σ² is at least the variance of
X = ∑ᵢ Yᵢ, then P(X ≥ 𝔼X + λ) ≤ exp(-λ² / (2σ²(1 + bλ/(3σ²)))).