Probably Approximately Correct (PAC) learning is the standard formal model for asking how many training examples a learning algorithm needs. A learner sees independent, identically distributed labeled examples drawn from an unknown distribution and must output a hypothesis from a fixed class; the model asks how large must be so that, with probability at least over the random sample, ‘s true error is within some small amount of the best error achievable by any hypothesis in the class.
In the realizable setting, some hypothesis in the class perfectly labels the data (achieves zero error), and the question is how fast the learner’s error shrinks toward zero as grows. In the more realistic agnostic setting, no hypothesis need be perfect — the best achievable error may be strictly positive (for example, because the labels themselves are noisy) — and the learner is instead judged by how close its error comes to . The size of the hypothesis class that matters for these bounds is usually not its raw cardinality but its VC dimension , a combinatorial measure of how many different labelings of a finite point set the class can realize; sample-complexity bounds are typically stated in terms of , the sample size , and the confidence parameter , often with two additive terms — a “slow” term scaling like that dominates when is large, and a “fast” term scaling like that dominates when is small or zero.