A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

VC Dimension

Research Depth 97 in the knowledge graph I know this Set as goal
29topics build on this
581prerequisites beneath it
See this on the map →
Growth Function and ShatteringPAC Learning Framework+1 moreAgnostic PAC LearningBias-Complexity Tradeoff (Formal)+7 more
learning-theory capacity generalization

Core Idea

The Vapnik-Chervonenkis (VC) dimension measures the expressive capacity of a hypothesis class by finding the largest set of points the class can shatter — that is, classify in all 2n possible ways. A hypothesis class with VC dimension d can shatter some set of d points but no set of d+1 points. The VC dimension is the key quantity in the fundamental theorem of statistical learning: a class is PAC-learnable if and only if its VC dimension is finite, and the sample complexity for learning scales linearly with the VC dimension.

Explainer

Building on the PAC framework, we now need a way to measure how "complex" a hypothesis class is, because this complexity determines how many training examples are needed to learn. The Vapnik-Chervonenkis dimension provides exactly this measure. Rather than counting parameters or describing the functional form, VC dimension asks a combinatorial question: what is the largest number of data points that the hypothesis class can classify in every possible way?

The formal definition centers on the concept of shattering. A hypothesis class H shatters a set of points S = {x_1, ..., x_n} if for every possible labeling of these points (every assignment of +1 or -1 to each point), there exists some hypothesis h in H that perfectly classifies them according to that labeling. Since n points have 2n possible labelings, shattering requires that H is expressive enough to realize all 2n dichotomies. The VC dimension of H is the largest n for which there exists some set of n points that H can shatter. If H can shatter arbitrarily large sets, its VC dimension is infinite.

The canonical example is linear classifiers in Rd, which have VC dimension d+1. In R2, lines can shatter 3 points in general position: for each of the 8 labelings, you can draw a line separating the positives from the negatives. But no set of 4 points can be shattered — by Radon's theorem, any 4 points in the plane contain a partition whose convex hulls overlap, creating a labeling that no line can achieve. This result generalizes: hyperplanes in Rd shatter d+1 points but not d+2, giving VC dimension d+1. The connection to the number of "free parameters" (d+1 coefficients for a hyperplane in Rd) is suggestive but coincidental in general — the sine function counterexample, with one parameter but infinite VC dimension, shows parameters alone do not determine capacity.

The profound consequence is the fundamental theorem of statistical learning: a hypothesis class is PAC-learnable if and only if its VC dimension is finite. When VC dimension is d, the sample complexity for achieving error epsilon with confidence 1-delta is O((d/epsilon) * log(1/epsilon) + (1/epsilon) * log(1/delta)). This is a tight characterization — no measure other than VC dimension (and its equivalents) captures learnability so precisely. For practitioners, VC dimension explains why models with too much capacity overfit (they can shatter the training data, memorizing noise) and why controlling capacity — through regularization, architecture constraints, or explicit complexity penalties — is essential for generalization.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityLaw of Total ProbabilityBayes' TheoremPAC Learning FrameworkGrowth Function and ShatteringVC Dimension

Longest path: 98 steps · 581 total prerequisite topics

Prerequisites (3)

Leads To (9)