Hoeffding's inequality for sums of independent bounded random variables
ProvedConcentration.hoeffding_two_sidedHoeffding's inequality, in two-sided form, bounds the probability that a sum of independent bounded random variables deviates from its mean.
Here are independent real random variables on a probability space, is a finite index set, and each lies almost surely in the interval . The deviation is arbitrary.
The content is that boundedness alone forces subgaussian tails: the probability of a deviation of size decays like , where plays the role of a variance proxy. No assumption on the distributions is needed beyond independence and the range constraint. Chebyshev's inequality would give only polynomial decay; Hoeffding upgrades this to Gaussian-type decay, which is what makes it the workhorse of concentration of measure. It underlies the standard generalisation bounds in statistical learning theory, the analysis of randomised algorithms, and empirical-process arguments throughout probability and statistics.
Formalization note. Independence is Mathlib's iIndepFun, the almost-sure range constraint is
stated with ∀ᵐ ω ∂μ, X i ω ∈ Set.Icc (lo i) (hi i), and the conclusion is phrased with
Measure.real so that the bound is an inequality between real numbers. The variance proxy is
accumulated in ℝ≥0 and cast to ℝ. Only Mathlib is required.
import Mathlib open MeasureTheory ProbabilityTheory open scoped ENNReal NNReal BigOperators
namespace Concentration
/-- Hoeffding's inequality, two-sided: a sum of independent bounded random variables
concentrates around its mean with subgaussian tails. -/
theorem hoeffding_two_sided {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
[IsProbabilityMeasure μ] {ι : Type*} {X : ι → Ω → ℝ}
(h_indep : iIndepFun X μ) {s : Finset ι} {lo hi : ι → ℝ}
(h_meas : ∀ i, AEMeasurable (X i) μ)
(h_bdd : ∀ i, ∀ᵐ ω ∂μ, X i ω ∈ Set.Icc (lo i) (hi i)) {ε : ℝ} (hε : 0 ≤ ε) :
μ.real {ω | ε ≤ |(∑ i ∈ s, X i ω) - ∑ i ∈ s, μ[X i]|}
≤ 2 * Real.exp (-ε ^ 2 /
(2 * ((∑ i ∈ s, (‖hi i - lo i‖₊ / 2) ^ 2 : ℝ≥0) : ℝ))) := by
sorry
end Concentration
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.