A class has VC dimension 3. By Sauer's lemma, at most how many different labellings can it produce on 10 points? What fraction of all 210 labellings is that, and what does the bound say for m=3?

Learning theory, VC dimension
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you can evaluate the Sauer–Shelah bound and see how it transitions from exponential to polynomial growth.

Key idea

τH(m)≤∑i=0d(mi) for VCdim⁡(H)=d. Here d=3, m=10.

Steps

  1. Write the bound with d=3 and m=10: ∑i=03(10i)=(100)+(101)+(102)+(103).
  2. Evaluate: 1+10+45+120=176 labellings at most.
  3. Compare with 210=1024: 176/1024≈0.172, so at most about 17% of the labellings can appear.
  4. For m=3: (30)+(31)+(32)+(33)=8=23. Nothing is ruled out, as it should be, since 3 points may be shattered.
  5. For m>d the bound is a polynomial of degree d in m (about (em/d)d), which is why finite VC dimension gives uniform convergence.

Common mistakes

How long your answer should be

3–4 lines of arithmetic; about 1 minute.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: Run the weighted majority algorithm by hand with 5 experts, all starting with weight 1, and penalty factor β=12 (the weight of a wrong expert is multiplied by β). In round 1, experts 1,2,3 predict 1 and experts 4,5 predict 0, and the true label is 0. In round 2, experts 1,2 predict 0 and experts 3,4,5 predict 1, and the true label is 1. What does the algorithm predict, and what are the weights, after each round?
Next in Learning theory: In kernel ridge regression, predictions take the form f(x)=∑i=1nαik(xi,x) with weights α=(K+λI)−1y, where Kij=k(xi,xj) is the kernel matrix, y is the vector of targets, λ>0 is the regularisation parameter and I is the identity matrix. For two training points with K=(10.50.51), y=(1,0)⊤ and λ=0.5, what are α and the prediction f(x) at a new point with k(x1,x)=0.8 and k(x2,x)=0.2?