2026-08-28·von Sijie Wang#idea#math

fundamental-theorem

The fundamental theorem of statistical learning

Parent: vc-dimension Prereq: learning-theory — H, err, ε, δ, m; and sauer-shelah.

PAC-learnable ⟺ finite VC

A binary hypothesis class H is PAC-learnable if and only if VCdim(H) = d < ∞. Moreover empirical risk minimization (pick the h ∈ H with fewest mistakes on the sample) achieves it, with sample complexity

m(ε,δ)  =  Θ ⁣(d+log⁡(1/δ)ε2)m(\varepsilon,\delta) \;=\; \Theta\!\left(\frac{d + \log(1/\delta)}{\varepsilon^{2}}\right)

in the agnostic case (and Θ((dlog⁡(1/ε)+log⁡(1/δ))/ε)\Theta\big((d\log(1/\varepsilon) + \log(1/\delta))/\varepsilon\big) in the realizable case).

Two directions.

(⇐) Finite VC ⟹ learnable — uniform convergence

The whole game is to bound the generalization gap sup⁡h∈H∣err^(h)−err(h)∣\sup_{h\in H} |\hat{err}(h) - err(h)| (where err^\hat{err} 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.

  1. Symmetrization (ghost sample). Compare the sample of m points to a second independent "ghost" sample of m; the gap is controlled by how H behaves on the 2m points together.
  2. Sauer–Shelah. On those 2m points H realizes at most ΠH(2m)≤(2em/d)d\Pi_H(2m) \le (2em/d)^d distinct labelings — polynomial, not 22m2^{2m}. So although H is infinite, only polynomially many "effective hypotheses" matter here.
  3. 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
Pr⁡ ⁣[sup⁡h∈H∣err^(h)−err(h)∣>ε]  ≤  4 ΠH(2m) e−mε2/8.\Pr\!\left[\sup_{h\in H} |{\hat{err}}(h) - err(h)| > \varepsilon\right] \;\le\; 4\,\Pi_H(2m)\,e^{-m\varepsilon^{2}/8}.

Because ΠH(2m)\Pi_H(2m) is only polynomial in m, the exponential wins: the bound drops below δ once m=O((d+log⁡(1/δ))/ε2)m = O\big((d + \log(1/\delta))/\varepsilon^2\big). 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

  • d is the price tag: samples scale linearly in VCdim(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.
über diesen eintrag

Einer von sijie's Wiki-Einträgen. Die KI auf dieser Site ist im selben Corpus verankert und antwortet in sijie's Stimme mit Zitaten zurück auf Einträge wie diesen — das Beantworten kostet sijie Geld, daher wartet sie hinter einem Code: zugriffscode eingeben →