In the agnostic setting, why does empirical risk minimisation (ERM) return a hypothesis within ϵ of the best in H when every h∈H satisfies ∣LS(h)−LD(h)∣≤ϵ/2? What sample complexity does this give for finite H, and how does the excess risk split into approximation and estimation error?

Learning theory, Uniform convergence
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you understand why ERM needs uniform convergence, not just convergence for each fixed hypothesis, and the bias–complexity trade-off.

Key idea

Write LS(h) for the training error and LD(h) for the true error. Call the sample S ϵ2-representative if ∣LS(h)−LD(h)∣≤ϵ2 for every h∈H. Then for the ERM output hS and any h∈H: LD(hS)≤LS(hS)+ϵ2≤LS(h)+ϵ2≤LD(h)+ϵ. For finite H, Hoeffding plus a union bound makes S representative with probability at least 1−δ once m≥2ln⁡(2∣H∣/δ)ϵ2.

Steps

  1. Chain the three inequalities in the key idea. The middle one is the definition of ERM: LS(hS)≤LS(h) for all h.
  2. For one fixed h, Hoeffding gives Pr⁡[∣LS(h)−LD(h)∣>ϵ/2]≤2e−2m(ϵ/2)2=2e−mϵ2/2.
  3. Union bound over H: failure probability ≤2∣H∣e−mϵ2/2, which is ≤δ when m≥2ln⁡(2∣H∣/δ)ϵ2.
  4. Explain why uniformity is needed: hS is chosen using S, so Hoeffding for a fixed h does not apply to it directly. Controlling every h at once does.
  5. Decompose the excess risk over the Bayes error L∗: LD(hS)−L∗=(min⁡h∈HLD(h)−L∗)⏟approximation+(LD(hS)−min⁡h∈HLD(h))⏟estimation. A larger H lowers the approximation error but raises the ln⁡∣H∣ term that controls the estimation error.

Common mistakes

How long your answer should be

About half a page; 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: Show that for a finite hypothesis class H in the realisable setting, any learner that outputs a hypothesis consistent with the training data is PAC with m≥1ϵ(ln⁡∣H∣+ln⁡1δ) samples. How many samples are needed when ∣H∣=106, ϵ=0.05 and δ=0.01?
Next in Learning theory: In AdaBoost each weak learner has weighted error ϵt=0.4. Using the bound exp⁡(−2γ2T) on training error, how many rounds T guarantee training error below 1%? How does the exact product of the Zt compare with the bound?