Math 2.0

Probability theory and stochastic processes Inequalities Theorem

McDiarmid's inequality

Builds on Independence of random variablesExpected valueDoob martingaleAzuma's inequality

Statement

Let X1,…,XnX_1, \dots, X_n be independent random variables, with XiX_i taking values in a measurable space 𝒳i\mathcal{X}_i. Let f ⁣:𝒳1×⋯×𝒳n→ℝf \colon \mathcal{X}_1 \times \dots \times \mathcal{X}_n \to \R be measurable, and let c1,…,cn≥0c_1, \dots, c_n \ge 0 be constants with the bounded differences property: ∣f(x)−f(x′)∣≤ci\abs{f(x) - f(x')} \le c_i whenever xx and x′x' differ only in the ii-th coordinate. Assume c12+⋯+cn2>0c_1^2 + \dots + c_n^2 > 0, and let Y=f(X1,…,Xn)Y = f(X_1, \dots, X_n). Then for every t>0t > 0, P(Y−E[Y]≥t)≤exp⁡(−2t2∑i=1nci2),P(Y - E[Y] \ge t) \le \exp\left(-\frac{2 t^2}{\sum_{i=1}^n c_i^2}\right), and the same bound holds for P(Y−E[Y]≤−t)P(Y - E[Y] \le -t).

Remarks

Proof idea: let Zk=E[Y∣X1,…,Xk]Z_k = E[Y \mid X_1, \dots, X_k], the Doob martingale of YY. By independence and the bounded differences property, given X1,…,Xk−1X_1, \dots, X_{k-1} the increment Zk−Zk−1Z_k - Z_{k-1} lies in an interval of length ckc_k. Hoeffding's lemma then bounds its conditional moment-generating function by eλ2ck2/8e^{\lambda^2 c_k^2 / 8}, and the argument of Azuma's inequality finishes the proof. Example: throw mm balls independently into NN bins and let YY be the number of empty bins. Moving one ball changes YY by at most 11, so P(∣Y−E[Y]∣≥t)≤2e−2t2/mP(\abs{Y - E[Y]} \ge t) \le 2 e^{-2t^2 / m}. With f(x)=x1+⋯+xnf(x) = x_1 + \dots + x_n and Xi∈[ai,bi]X_i \in [a_i, b_i], one gets Hoeffding's inequality. Independence is needed: if X1=⋯=XnX_1 = \dots = X_n is a fair 0/10/1 coin and ff is the sum, then ci=1c_i = 1 but Y∈{0,n}Y \in \set{0, n}, so P(Y−E[Y]≥n/2)=12P(Y - E[Y] \ge n/2) = \frac{1}{2}, far above e−n/2e^{-n/2}.

Going deeper

For a student

This is the method of bounded differences. It is often the quickest way to prove concentration in random graphs, randomized algorithms and learning theory, for instance for generalization bounds through Rademacher complexity. It only gives concentration around the mean; estimating the mean itself needs other arguments. Sharper results for convex Lipschitz functions follow from Talagrand's concentration inequality.

Reading path

To understand this page from the ground up, read these 67 pages in order. The foundations come first.

  1. Conditional expectation concept
  2. Construction of the reals from Cauchy sequences concept
  3. Doob martingale example
  4. Element definition
  5. Expected value concept
  6. Independence of random variables concept
  7. Integers object
  8. Martingale concept
  9. Ordered field definition
  10. Proposition concept
  11. Random experiment concept
  12. Rational numbers object
  13. Real numbers object
  14. Set definition
  15. Ring of integers statement
  16. Disjunction definition
  17. Implication definition
  18. Predicate definition
  19. Ordered pair definition
  20. Union definition
  21. Existential quantifier definition
  22. Universal quantifier definition
  23. Sample space definition
  24. The rationals form a field statement
  25. Cartesian product definition
  26. Subset definition
  27. Uniqueness quantifier definition
  28. The rationals form an ordered field statement
  29. Binary relation definition
  30. Universal set definition
  31. Power set definition
  32. Order on the reals definition
  33. Function definition
  34. Complement definition
  35. Interval definition
  36. Injective function definition
  37. Preimage of a set definition
  38. Sigma-algebra definition
  39. Countable set definition
  40. Event definition
  41. Borel sigma-algebra definition
  42. Probability axioms concept
  43. Probability measure definition
  44. Probability distribution definition
  45. Probability space definition
  46. Conditional probability definition
  47. Monotonicity of probability statement
  48. Random variable definition
  49. Independence of two events definition
  50. Cumulative distribution function definition
  51. Discrete random variable definition
  52. Law of a random variable definition
  53. Random variable with a density definition
  54. Mutual independence of events definition
  55. Probability mass function definition
  56. Expected value definition
  57. Probability density function definition
  58. Independent sigma-algebras definition
  59. Markov's inequality statement
  60. Law of the unconscious statistician statement
  61. Independence of random variables definition
  62. Moment definition
  63. Moment-generating function definition
  64. Chernoff bound statement
  65. Hoeffding's inequality statement
  66. Azuma's inequality statement
  67. McDiarmid's inequality statement

Further reading

  1. Web https://en.wikipedia.org/wiki/McDiarmid%27s_inequality
About this page
Tag8APFT1RPM4
URIm2://8APFT1RPM4
Kindstatement, theorem
WritingW0 stub
MSC60E15, 60G42
StatusThis copy of the site has no build data. Run m2 status 8APFT1RPM4.
AboutIndependence of random variables
UsesIndependence of random variables, Expected value, Doob martingale, Azuma's inequality
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.