State McDiarmid's bounded-differences inequality. For a loss in and a hypothesis class , show that satisfies bounded differences with constant . Hence, how do you show that, with probability at least , , and what is the deviation term for and ?
Learning theory, Concentration inequalities
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can verify the bounded-difference condition for a supremum of empirical risks and use McDiarmid to concentrate the worst-case generalisation gap.
Key idea
If changing any one input changes by at most , then . For the generalisation gap , so .
Steps
- McDiarmid: let be independent and satisfy whenever differ only in coordinate . Then .
- Let replace by . For any fixed , since the loss lies in . The true risk does not depend on the sample.
- Supremum is 1-Lipschitz in the sup norm: . Hence , so and .
- Apply McDiarmid: .
- Set the right side to : . So with probability at least , .
- Numbers: , so . The worst-case gap is within about 0.034 of its mean with 99% confidence.
- The remaining task is to bound . A symmetrisation argument bounds it by twice the expected Rademacher complexity . This gives the standard Rademacher generalisation bound.
Common mistakes
- Using the bounded-difference constant instead of . This loses the factor in the exponent.
- Claiming the bound controls itself. It only controls its deviation from the mean , which must be bounded separately.
- Forgetting that the loss must be bounded. For unbounded losses the differences are not bounded.
- Applying McDiarmid to dependent data. The must be independent.
How long your answer should be
One page; 7–9 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: Cover's counting function says that points in general position in have dichotomies realisable by a hyperplane through the origin. Derive it from the recurrence , and compute the fraction of the labellings that are separable for and . What does this say about capacity?
Next in Learning theory: What is the VC dimension of linear classifiers (with a bias term) in -dimensional space , and how do you prove it?