What is the empirical Rademacher complexity of a function class, and why does it measure capacity? What is it for (a) a class containing one function and (b) the class of all ±1 labellings of m distinct points, and what generalisation bound does it give?

Learning theory, Rademacher complexity
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you understand Rademacher complexity as how well a class can correlate with random noise, and can compute the two extreme cases.

Key idea

R^S(F)=Eσ[sup⁡f∈F1m∑i=1mσif(xi)] with i.i.d. uniform signs σi∈{−1,+1}. A class that can fit random signs has complexity near 1 and can overfit. For a class G of losses with values in [0,1], with probability at least 1−δ, every g∈G satisfies E[g]≤E^S[g]+2Rm(G)+ln⁡(1/δ)2m.

Steps

  1. Define R^S and read it: draw random labels σ, let the class pick the function most correlated with them, and average over σ.
  2. (a) One function f: Eσ[1m∑iσif(xi)]=0 because E[σi]=0. No capacity, so no overfitting.
  3. (b) All labellings: for each σ pick f(xi)=σi, so the sup equals 1m∑iσi2=1. Maximal capacity; the bound says nothing.
  4. In between: for a finite class with values in [−1,1], Massart's lemma gives R^S(F)≤2ln⁡∣F∣/m; for linear functions with ∥w∥2≤B and ∥x∥2≤R, it is at most BR/m.
  5. State the bound in the key idea, applied to the loss class. For 0-1 loss with ±1 labels, the loss class has exactly half the Rademacher complexity of H. Note that the empirical version is computable from data, which can make it tighter than a VC bound.

Common mistakes

How long your answer should be

About half a page; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: A PAC-Bayes bound says that, with probability at least 1−δ over m examples, every posterior Q satisfies L(Q)≤L^(Q)+KL(Q∥P)+ln⁡(2m/δ)2m. Take P=N(0,I100) and Q=N(w,I100) with ∥w∥2=100. Compute the KL, and the bound for m=10000, δ=0.05 and L^(Q)=0.08. Why does the bound beat a naive one for a large network?
Next in Learning theory: What is double descent? Why can test error fall again once a model has more parameters than training points, and how does this fit with the classical bias–variance picture?