How does the capacity of the hypothesis class impact sample complexity?

Last updated 14 November 2026

  • Sample complexity grows roughly linearly with capacity: log|H| for finite classes, VC dimension d for infinite ones. More hypotheses means more chances for one to look good by chance.

  • Bounds are about (d + log(1/δ))/ε in the realizable case and (d + log(1/δ))/ε² in the agnostic case. Lower bounds show these are tight.

  • Larger capacity lowers approximation error but raises sample needs (estimation error), so with fixed data choose capacity that balances both.

  • https://en.wikipedia.org/wiki/Sample_complexity
  • https://www.pass4sure.com/blog/introduction-to-sample-complexity-in-machine-learning/
  • https://www.geeksforgeeks.org/machine-learning/understanding-pac-learning-theoretical-foundations-and-practical-applications-in-machine-learning/
All Supervised Learning interview questions