State McDiarmid's bounded-differences inequality. For a loss in [0,1] and a hypothesis class H, show that Φ(S)=sup⁡h(L(h)−L^S(h)) satisfies bounded differences with constant 1/m. Hence, how do you show that, with probability at least 1−δ, Φ≤E[Φ]+ln⁡(1/δ)2m, and what is the deviation term for m=2000 and δ=0.01?

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 ci, then P(Φ−EΦ≥ϵ)≤exp⁡ ⁣(−2ϵ2/∑ici2). For the generalisation gap ci=1/m, so ∑ci2=1/m.

Steps

  1. McDiarmid: let S=(z1,…,zm) be independent and Φ satisfy ∣Φ(S)−Φ(S′)∣≤ci whenever S,S′ differ only in coordinate i. Then P(Φ−EΦ≥ϵ)≤exp⁡ ⁣(−2ϵ2∑ici2).
  2. Let S′ replace zi by zi′. For any fixed h, ∣L^S(h)−L^S′(h)∣=1m∣ℓ(h,zi)−ℓ(h,zi′)∣≤1m since the loss lies in [0,1]. The true risk L(h) does not depend on the sample.
  3. Supremum is 1-Lipschitz in the sup norm: ∣sup⁡ha(h)−sup⁡hb(h)∣≤sup⁡h∣a(h)−b(h)∣. Hence ∣Φ(S)−Φ(S′)∣≤1m, so ci=1/m and ∑ici2=m⋅1m2=1m.
  4. Apply McDiarmid: P(Φ−EΦ≥ϵ)≤e−2mϵ2.
  5. Set the right side to δ: ϵ=ln⁡(1/δ)2m. So with probability at least 1−δ, Φ≤EΦ+ln⁡(1/δ)2m.
  6. Numbers: ln⁡(100)=4.605, so ϵ=4.605/4000=0.0339. The worst-case gap is within about 0.034 of its mean with 99% confidence.
  7. The remaining task is to bound E[Φ]. A symmetrisation argument bounds it by twice the expected Rademacher complexity 2Rm(ℓ∘H). This gives the standard Rademacher generalisation bound.

Common mistakes

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 N points in general position in Rd have C(N,d)=2∑k=0d−1(N−1k) dichotomies realisable by a hyperplane through the origin. Derive it from the recurrence C(N+1,d)=C(N,d)+C(N,d−1), and compute the fraction of the 2N labellings that are separable for d=3 and N=4,6,8. What does this say about capacity?
Next in Learning theory: What is the VC dimension of linear classifiers (with a bias term) in d-dimensional space Rd, and how do you prove it?