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

Quick Overview

Asks how the size or VC dimension of a hypothesis class changes the number of training samples needed to learn it. Tests PAC bounds for finite and infinite classes, the union bound argument, and the approximation versus estimation trade-off.

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

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does the capacity of the hypothesis class impact sample complexity? ```hint Count the ways to be fooled Fix one bad hypothesis and work out the chance that it fits the training sample anyway. Then account for how many such hypotheses the class contains. ``` ```hint Infinite classes When the class is infinite, count something else: how many distinct labelings can the class produce on $m$ points? ``` ### What a Strong Answer Covers - The direction of the effect and the capacity measures used for finite and infinite classes - The sample complexity bounds in the realizable and agnostic settings, and how $\epsilon$ and $\delta$ enter them - The union bound and growth function argument behind the bounds - The trade-off between approximation error and estimation error - Where the classical bounds stop describing practice ### Follow-up Questions - What is the VC dimension of linear classifiers in $k$ dimensions, and how would you show it? - Why does the agnostic setting need on the order of ${1/\epsilon^2}$ samples when the realizable setting needs ${1/\epsilon}$? - Large neural networks have more parameters than training examples and still generalize. How do you square that with VC bounds? - How do structural risk minimization and cross-validation choose capacity in practice?

Overview: Asks how the size or VC dimension of a hypothesis class changes the number of training samples needed to learn it. Tests PAC bounds for finite and infinite classes, the union bound argument, and the approximation versus estimation trade-off.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

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

What a Strong Answer Covers Guidance

  • The direction of the effect and the capacity measures used for finite and infinite classes
  • The sample complexity bounds in the realizable and agnostic settings, and how ϵ\epsilon and δ\delta enter them
  • The union bound and growth function argument behind the bounds
  • The trade-off between approximation error and estimation error
  • Where the classical bounds stop describing practice

Follow-up Questions Guidance

  • What is the VC dimension of linear classifiers in kk dimensions, and how would you show it?
  • Why does the agnostic setting need on the order of 1/ϵ2{1/\epsilon^2} samples when the realizable setting needs 1/ϵ{1/\epsilon} ?
  • Large neural networks have more parameters than training examples and still generalize. How do you square that with VC bounds?
  • How do structural risk minimization and cross-validation choose capacity in practice?