What is the VC dimension of linear classifiers (with a bias term) in d-dimensional space Rd, and how do you prove it?

Learning theory, VC dimension
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove both a lower bound (exhibit a shattered set) and an upper bound (no set of d+2 points can be shattered).

Key idea

A set of points is shattered if the classifiers can produce every possible labelling of it, and the VC (Vapnik–Chervonenkis) dimension is the size of the largest shattered set. The answer here is d+1. The origin plus the d standard basis vectors can be shattered. For any d+2 points, Radon’s theorem splits them into two groups whose convex hulls intersect, and that labelling cannot be realised.

Steps

  1. Define shattering and the VC dimension.
  2. Lower bound: take x0=0 and xi=ei, the i-th standard basis vector. For any labels yi∈{−1,+1}, choose b=y0/2 and wi=yi−b, so that sign⁡(w⊤xi+b)=yi for every point.
  3. Upper bound: by Radon’s theorem, any d+2 points in Rd can be split into groups A and B with conv⁡(A)∩conv⁡(B)≠∅. Here conv⁡(A), the convex hull, is the smallest convex set containing A.
  4. Label A positive and B negative. Each side of a hyperplane is convex, so a point in both hulls would have to lie strictly on both sides, which is a contradiction.
  5. Conclude that the VC dimension is d+1. Connect it to sample complexity: roughly O((d+log⁡(1/δ))/ϵ2) samples, where ϵ is the allowed excess error and δ is the failure probability.

Common mistakes

How long your answer should be

One page; 5–8 minutes.

Read this

Previous in Learning theory: State McDiarmid's bounded-differences inequality. For a loss in [0,1] and a hypothesis class H, show that Φ(S)=sup⁡h(L(h)−L^S(h)) satisfies bounded differences with constant 1/m. Hence, how do you show that, with probability at least 1−δ, Φ≤E[Φ]+ln⁡(1/δ)2m, and what is the deviation term for m=2000 and δ=0.01?
Next in Learning theory: Define the growth function τH(m). State and prove Sauer's lemma: if VCdim⁡(H)=d, then τH(m)≤∑i=0d(mi). Why does this matter for generalisation?