Quant Memo
Advanced

PAC Learning

Probably Approximately Correct learning is the theoretical framework that says how much data you need before a learning algorithm's error is small with high confidence, rather than just "eventually."

Before PAC learning, "can an algorithm learn this concept" had no precise meaning — you could always get lucky or unlucky with the training sample you happened to draw. Leslie Valiant's Probably Approximately Correct (PAC) framework fixed that by asking a more honest question: how much data does it take for a learner's error to be small (approximately correct) with high confidence (probably), rather than guaranteed in every possible case?

Formally, a concept class is PAC-learnable if, for any error tolerance ϵ\epsilon and failure probability δ\delta, there's a sample size mm — growing only polynomially as ϵ\epsilon and δ\delta shrink — after which the learner's true error is below ϵ\epsilon with probability at least 1δ1-\delta. In words: name how wrong you're willing to be and how often you're willing to accept getting unlucky, and the theory tells you how much data buys you that guarantee.

PAC learning turns "will this algorithm work" into a question with a number attached — a required sample size — rather than a vague promise, and that sample size scales with how complex the hypothesis class is, which is the theoretical seed of why overly flexible models need much more data to generalize reliably.

Worked example. For a finite hypothesis class of size HH, a standard PAC bound gives sample complexity m1ϵ(lnH+ln1δ)m \geq \frac{1}{\epsilon}\left(\ln|H| + \ln\frac{1}{\delta}\right). With 1,000 candidate hypotheses (ln10006.9\ln 1000 \approx 6.9), wanting 95% confidence (δ=0.05\delta = 0.05, ln203.0\ln 20 \approx 3.0) of error below 10% (ϵ=0.1\epsilon = 0.1): m10×(6.9+3.0)=99m \geq 10 \times (6.9 + 3.0) = 99 examples. Tightening to 1% error instead multiplies the required sample roughly tenfold — a concrete illustration of why demanding much higher accuracy costs far more data, not just proportionally more.

Related concepts

Further reading

  • Valiant, 'A Theory of the Learnable' (1984)
ShareTwitterLinkedIn