Helper lemmas for the Chernoff bounds #
Auxiliary results for Dynamics.Chernoff (roadmap FND-3, Mitzenmacher–Upfal, Theorems 4.4
and 4.5 with Exercise 4.7). The proof is the textbook one: Markov's inequality applied to
exp (t X), the moment-generating function of X = ∑ᵢ Xᵢ factors over the independent
coordinates, each {0,1}-valued factor is 1 + pᵢ (eᵗ - 1) ≤ exp (pᵢ (eᵗ - 1)), and then
t = log (1 + δ) (upper tail) or t = log (1 - δ) (lower tail).
- Scalar inequalities:
two_mul_div_two_add_le_log_one_add(2δ/(2+δ) ≤ log (1+δ)),neg_add_sq_div_two_le_one_sub_mul_log(-δ + δ²/2 ≤ (1-δ) log (1-δ)), and the identityexp_div_rpow_self_rpowrewriting the ratio forms as exponentials. Distribution.prob_le_expect_exp: Markov's inequality forexp (t X).Distribution.independent_expect_exp_sum_le:𝔼 exp (t X) ≤ exp (μ (eᵗ - 1)).Distribution.prob_ge_le_exp,Distribution.prob_le_le_exp: the tails before optimizingt, with an upper (resp. lower) bound on the mean.Distribution.sum_ite_mem_ite_eq_card: the number of heads among the coins ofSas a sum of{0,1}coordinates (the coinDistribution.bernoulliand its expectations are inDynamics.Chernoff, next to the pinned definition).- Uniform rounds:
Distribution.independent_expect_eq_avgandavg_indicator_le_of_independent, which transfer a bound onindependentproducts toavgoverι → γ.
Scalar inequalities #
Markov's inequality and the moment-generating function #
Markov's inequality for exp (t X): if the event s forces t k ≤ t X, then
P(s) ≤ 𝔼[exp (t X)] exp (-(t k)).
The moment-generating function of a sum of independent coordinates factors.
The moment-generating function of one {0,1}-valued trial:
𝔼[e^{tY}] = 1 + 𝔼[Y] (eᵗ - 1) ≤ exp (𝔼[Y] (eᵗ - 1)).
MGF bound for a sum of independent {0,1}-valued trials:
𝔼[exp (t X)] ≤ exp (μ (eᵗ - 1)) with μ = ∑ᵢ 𝔼[Y i], for every real t.
Upper tail before optimizing t: for t ≥ 0 and an upper bound μH on the mean,
P(X ≥ k) ≤ exp (μH (eᵗ - 1) - t k).
Lower tail before optimizing t: for t ≤ 0 and a lower bound μL on the mean,
P(X ≤ k) ≤ exp (μL (eᵗ - 1) - t k).
Counting heads #
Uniform rounds #
If every coordinate distribution has the uniform weights (card γ)⁻¹, the independent
product is the uniform average over ι → γ.
Transfer to uniform rounds. A bound on the probability of an event E under every
independent product whose factors are uniform ((P i).expect = avg) bounds the uniform
average of its indicator over ι → γ. No Nonempty γ is needed: if ι → γ is empty the
average vanishes, and if γ is empty but ι → γ is not, then ι is empty.