The fundamental theorem of statistical learning
Parent: vc-dimension Prereq: learning-theory —
H,err,ε,δ,m; and sauer-shelah.
PAC-learnable ⟺ finite VCA binary hypothesis class
His PAC-learnable if and only ifVCdim(H) = d < ∞. Moreover empirical risk minimization (pick theh ∈ Hwith fewest mistakes on the sample) achieves it, with sample complexityin the agnostic case (and in the realizable case).
Two directions.
(⇐) Finite VC ⟹ learnable — uniform convergence
The whole game is to bound the generalization gap (where is the error on the sample). If this is ≤ ε for all h at once, then the empirical minimizer is within 2ε of the best in H.
- Symmetrization (ghost sample). Compare the sample of
mpoints to a second independent "ghost" sample ofm; the gap is controlled by howHbehaves on the2mpoints together. - Sauer–Shelah. On those
2mpointsHrealizes at most distinct labelings — polynomial, not . So althoughHis infinite, only polynomially many "effective hypotheses" matter here. - Union bound + Hoeffding. For each of those finitely many behaviors, Hoeffding bounds the chance its empirical and true errors differ by
> ε; a union bound over the(2em/d)ᵈbehaviors gives
Because is only polynomial in m, the exponential wins: the bound drops below δ once . Uniform convergence holds → ERM generalizes → learnable. ∎
The one place VC entered was step 2 — finite d is exactly what makes the union bound polynomial instead of vacuous.
(⇒) Infinite VC ⟹ not learnable — no free lunch
Suppose VCdim(H) = ∞. Fix any sample size m; pick a shattered set of size 2m and put the uniform distribution on it. Let the target be a uniformly random labeling of these 2m points (realizable: H shatters them, so some h matches).
A learner sees m labeled points; the other ≥ m are unseen. On an unseen point the label is an independent fair coin that the sample reveals nothing about, so any learner errs there with probability 1/2. Unseen points carry ≥ 1/2 of the mass, so expected true error ≥ 1/4 — for every m. No finite sample drives error below 1/4 → not PAC-learnable. ∎
Reading it
dis the price tag: samples scale linearly inVCdim(H)— this is where the bias–variance cost comes from.d = ∞is a wall: the sin class (one parameter, infinite VC) cannot be learned, no matter the algorithm or data size — the exact "too flexible to learn" boundary.