Cover's counting function says that N points in general position in Rd have C(N,d)=2∑k=0d−1(N−1k) dichotomies realisable by a hyperplane through the origin. Derive it from the recurrence C(N+1,d)=C(N,d)+C(N,d−1), and compute the fraction of the 2N labellings that are separable for d=3 and N=4,6,8. What does this say about capacity?

Learning theory, Capacity of linear classifiers
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can count linearly separable labellings with Cover's recurrence and see that capacity is about 2d points.

Key idea

Adding a point splits the dichotomies of the old points into those that can be extended in both ways and those that can be extended in one way only. The doubled ones correspond to hyperplanes forced through the new point, which live in d−1 dimensions.

Steps

  1. Let C(N,d) be the number of separable labellings of N points in general position. Add a point xN+1. Each old dichotomy extends in at least one way, so C(N+1,d)=C(N,d)+D, where D counts old dichotomies that extend both ways.
  2. A dichotomy extends both ways exactly when a separating hyperplane can be moved to pass through xN+1. Restrict to the (d−1)-dimensional subspace perpendicular to xN+1. The N points project to general position there, so D=C(N,d−1).
  3. This gives C(N+1,d)=C(N,d)+C(N,d−1) with C(1,d)=2 and C(N,1)=2. By induction this is solved by C(N,d)=2∑k=0d−1(N−1k).
  4. For d=3, N=4: 2(1+3+3)=14 out of 16, a fraction of 0.875.
  5. For N=6: 2(1+5+10)=32 out of 64, a fraction of 0.5.
  6. For N=8: 2(1+7+21)=58 out of 256, a fraction of 0.227.
  7. Capacity: for N≤d every labelling is separable. For N=2d exactly half are, since ∑k<d(2d−1k)=22d−2. Beyond 2d the fraction falls fast. So a linear unit has capacity about 2d points: twice its VC dimension d, because VC asks for all labellings while capacity asks when a random labelling is separable with probability one half.

Common mistakes

How long your answer should be

One page; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: For convex losses ft with gradients satisfying ∥gt∥≤G, online gradient descent plays wt+1=Π(wt−ηgt), where Π projects onto the ball {∥w∥≤D}. Prove that regret against any u in the ball is at most ∥u−w1∥22η+ηG2T2. What are the best η and the resulting bound for D=1, G=2, T=10000?
Next 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?