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

Growth Function and Shattering

Research Depth 96 in the knowledge graph ☐ I know this ☆ Set as goal
31topics build on this
580prerequisites beneath it
See this on the map →
PAC Learning FrameworkDiscrete Random Variables→→Fundamental Theorem of Statistical LearningUniform Convergence Bounds+1 more
learning-theory combinatorics capacity

Core Idea

The growth function Pi_H(n) counts the maximum number of distinct labelings a hypothesis class H can induce on any set of n points. Since n points have 2n possible labelings, the growth function satisfies Pi_H(n) <= 2n. When Pi_H(n) = 2n, the class shatters some set of n points. The Sauer-Shelah lemma provides the critical bridge: if the VC dimension is d, then Pi_H(n) <= sum_{i=0}^{d} C(n,i), which is O(nd) — meaning the growth function transitions from exponential to polynomial at the VC dimension. This polynomial growth is what makes uniform convergence and PAC learning possible.

Explainer

The growth function and the concept of shattering provide the combinatorial foundation that connects VC dimension to generalization bounds. While VC dimension gives a single number characterizing a hypothesis class, the growth function reveals the full picture of how the class's effective complexity scales with the number of data points.

For a hypothesis class H and a set of n points, consider all the ways H can label those points. Each hypothesis h in H produces a binary labeling (a restriction of h to those n points), and different hypotheses might produce the same labeling on this particular set. The growth function Pi_H(n) is the maximum, over all possible sets of n points, of the number of distinct labelings H can produce. When Pi_H(n) = 2n — every possible labeling is achievable — we say H shatters some set of n points. The VC dimension is the largest n for which this happens.

The Sauer-Shelah lemma (proved independently by Sauer, Shelah, and Vapnik-Chervonenkis) reveals a remarkable phase transition. If H fails to shatter any set of d+1 points (VC dimension is d), then the growth function cannot simply decrease gradually — it collapses from exponential to polynomial: Pi_H(n) <= sum_{i=0}^{d} C(n,i), which is at most (en/d)d = O(nd). There is no middle ground. Either the class shatters sets of every size (infinite VC dimension, exponential growth function) or it eventually stops shattering and the growth function becomes polynomial. This dichotomy is sometimes called the "shattering lemma" or "Vapnik-Chervonenkis lemma."

This polynomial bound is what makes learning theory work. The key proof technique for generalization bounds — uniform convergence — requires controlling the probability that any hypothesis in the class has a large gap between training and true error. The effective number of hypotheses to control is not the total number (which may be infinite, as with all linear classifiers) but the growth function — the number of distinct behaviors on the sample. If this number is polynomial in n, a union bound argument succeeds: each individual hypothesis is unlikely to have a large gap, and with only polynomially many to check, the probability that any one of them has a large gap remains small. If the growth function were exponential, the union bound would fail, and no finite sample could provide uniform convergence. The exponential-to-polynomial transition at the VC dimension is therefore the exact boundary of learnability.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Law of Total Probability → Bayes' Theorem → PAC Learning Framework → Growth Function and Shattering

Longest path: 97 steps · 580 total prerequisite topics

Prerequisites (2)

Leads To (3)