How do you prove that for a class of functions F with values in [0,1], with probability at least 1−δ over a sample S of size m, every f∈F satisfies E[f]≤E^S[f]+2Rm(F)+ln⁡(1/δ)2m, where Rm is the expected Rademacher complexity?

Learning theory, Rademacher complexity
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can combine McDiarmid's concentration inequality with symmetrisation through a ghost sample.

Key idea

Write Φ(S)=sup⁡f(Ef−E^Sf). McDiarmid bounds Φ by its expectation, and symmetrisation bounds EΦ by 2Rm.

Steps

  1. Bounded differences: changing one example in S changes E^Sf by at most 1m for each f, so changes Φ by at most 1m. McDiarmid gives Pr⁡[Φ−EΦ≥t]≤e−2mt2. Set t=ln⁡(1/δ)2m to get Φ≤EΦ+t with probability at least 1−δ.
  2. Ghost sample: let S′ be an independent copy of S. Then Ef=ES′E^S′f, so EΦ=ESsup⁡fES′[E^S′f−E^Sf]≤ES,S′sup⁡f(E^S′f−E^Sf), because a supremum of expectations is at most the expectation of a supremum.
  3. Introduce signs: the pair (zi,zi′) is exchangeable. Swapping them in the i-th term flips the sign of f(zi′)−f(zi). So the expectation is unchanged if we insert independent signs σi: Esup⁡f1m∑iσi(f(zi′)−f(zi)).
  4. Split the supremum: sup⁡(a+b)≤sup⁡a+sup⁡b, and the distribution of −σi is the same as that of σi. So this is at most Esup⁡f1m∑iσif(zi′)+Esup⁡f1m∑iσif(zi)=2Rm(F).
  5. Combine: with probability at least 1−δ, sup⁡f(Ef−E^Sf)≤2Rm(F)+ln⁡(1/δ)2m, which is the claim.
  6. Application: for binary classification, take f=ℓ∘h with the 0-1 loss. Then Rm(ℓ∘H)=12Rm(H), giving the generalisation bound LD(h)≤LS(h)+Rm(H)+ln⁡(1/δ)2m.

Common mistakes

How long your answer should be

One and a half pages; 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: How do you prove the no free lunch theorem: for any learning algorithm A for binary classification with the 0-1 loss over a domain X, and any training size m<∣X∣/2, there is a distribution D and a labelling function f with LD(f)=0 such that with probability at least 17 over S∼Dm, LD(A(S))≥18?
Next in Learning theory: How do you prove Massart's finite class lemma: for a finite set A⊂Rm with ∥a∥2≤r for all a∈A, Eσsup⁡a∈A1m∑iσiai≤r2ln⁡∣A∣m. How do you use it with Sauer's lemma to bound the Rademacher complexity of a class of VC dimension d?