What is the VC dimension of linear classifiers (with a bias term) in -dimensional space , 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 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 . The origin plus the standard basis vectors can be shattered. For any points, Radon’s theorem splits them into two groups whose convex hulls intersect, and that labelling cannot be realised.
Steps
- Define shattering and the VC dimension.
- Lower bound: take and , the -th standard basis vector. For any labels , choose and , so that for every point.
- Upper bound: by Radon’s theorem, any points in can be split into groups and with . Here , the convex hull, is the smallest convex set containing .
- Label positive and 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.
- Conclude that the VC dimension is . Connect it to sample complexity: roughly samples, where is the allowed excess error and is the failure probability.
Common mistakes
- Showing one set of points is shattered and stopping. The upper bound is the hard part.
- Thinking the VC dimension requires every set of that size to be shattered. Only one set needs to be.
- Forgetting that without a bias term the answer is .
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 and a hypothesis class , show that satisfies bounded differences with constant . Hence, how do you show that, with probability at least , , and what is the deviation term for and ?
Next in Learning theory: Define the growth function . State and prove Sauer's lemma: if , then . Why does this matter for generalisation?