Hoeffding's inequality for the biased binomial distribution #
For a Bernoulli trial with parameter p ∈ [0, 1], the centered moment generating function
(1 - p) exp (-s p) + p exp (s (1 - p)) is bounded above by exp (s² / 8) for every s : ℝ
(Cslib.one_sub_mul_exp_add_mul_exp_le), by Mathlib’s bounded-variable sub-Gaussian estimate.
The binomial theorem gives the centered MGF identity (Cslib.sum_choose_mul_pow_mul_exp).
Specializing finite-PMF concentration to independent coins and using the replicated
Poisson-binomial law gives one-sided (Cslib.sum_filter_le_sub_choose_mul_pow_le,
Cslib.sum_filter_le_mul_sub_choose_mul_pow_le) and two-sided
(Cslib.sum_filter_le_abs_sub_choose_mul_pow_le) Hoeffding tail bounds for Bin(Q, p), together
with the interval-complement form (Cslib.sum_filter_notMem_choose_mul_pow_le) used in Lemma 4.8 of
[OpenAI2026ETH] at p = (r - 1) / (2 r). All tail inequalities hold for every Q : ℕ, including
Q = 0.
For the unbiased case p = 1 / 2 in counting form on ι → Bool, see
Cslib.BitString.card_filter_le_abs_card_filter_sub_half_le.
Main results #
Cslib.one_sub_mul_exp_add_mul_exp_le,Cslib.one_sub_add_mul_exp_le: Hoeffding's lemma for a biased Bernoulli trial (centered and uncentered forms).Cslib.sum_choose_mul_pow_eq_one: binomial probability weights sum to1.Cslib.choose_mul_pow_le_mode: the binomial weight is largest at the moden pwhen that is an integer.Cslib.sum_choose_mul_pow_mul_exp: centered moment generating function ofBin(Q, p).Cslib.sum_filter_le_sub_choose_mul_pow_le: upper-tail Hoeffding bound forBin(Q, p).Cslib.sum_filter_le_mul_sub_choose_mul_pow_le: lower-tail Hoeffding bound forBin(Q, p).Cslib.sum_filter_le_abs_sub_choose_mul_pow_le: two-sided Hoeffding bound forBin(Q, p).Cslib.sum_filter_notMem_choose_mul_pow_le: tail bound outside a subset covering[Q p - t, Q p + t].
References #
- W. Hoeffding, Probability Inequalities for Sums of Bounded Random Variables
- OpenAI, The Exponential Time Hypothesis is False, Section 4.7, Lemma 4.8, pp. 34–35.
Hoeffding's lemma for a biased Bernoulli trial [Hoeffding1963]: for p ∈ [0, 1] and
s : ℝ, the centered moment generating function (1 - p) exp (-s p) + p exp (s (1 - p)) is at
most exp (s² / 8). This specializes Cslib.Probability.PMF.sum_mul_exp_sub_mean_le to
PMF.coin.
Uncentered Bernoulli moment generating function bound [Hoeffding1963]: for p ∈ [0, 1]
and every s : ℝ, 1 - p + p * exp s ≤ exp (p * s + s² / 8). Obtained from
one_sub_mul_exp_add_mul_exp_le by multiplying by exp (p * s).
The centered binomial moment generating function: summing
C(Q, k) p^k (1 - p)^(Q - k) exp (s (k - Q p)) over 0 ≤ k ≤ Q factors as the Q-th power of
the single-trial moment generating function.
Lower-tail Hoeffding inequality for Bin(Q, p): for p ∈ [0, 1] and 0 ≤ t, the
binomial probability mass on Q p - k ≥ t is at most exp (-2 t² / Q). Derived directly from
Cslib.Probability.PMF.pi_sum_le_mean_sub.
Two-sided Hoeffding inequality for Bin(Q, p) [Hoeffding1963]: for p ∈ [0, 1] and
0 ≤ t, the binomial probability mass on |k - Q p| ≥ t is at most 2 exp (-2 t² / Q). Derived
directly from Cslib.Probability.PMF.pi_sum_abs_sub_mean_ge.
Interval-complement Hoeffding bound for Bin(Q, p): if I contains every integer
0 ≤ k ≤ Q within t of the mean Q p, then the binomial mass outside I is at most
2 exp (-2 t² / Q).
The mode of the binomial distribution: when n p = w is an integer, the weight
C(n, k) p ^ k (1 - p) ^ (n - k) of Bin(n, p) is largest at k = w. Consecutive weights satisfy
t (k + 1) (k + 1) (1 - p) = t k (n - k) p, so they increase up to w and decrease after it.