How do you show that if H has VC dimension d, then every deterministic online learner can be forced to make at least d mistakes even in the realisable setting?

Learning theory, Mistake-bound model
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can use an adversary argument with a shattered set.

Key idea

Present a shattered set one point at a time and always reveal the label opposite to the learner's prediction. Shattering guarantees some h∈H is consistent.

Steps

  1. Since VCdim⁡(H)=d, pick a shattered set {x1,…,xd}.
  2. In round t=1,…,d show xt. The learner is deterministic, so the adversary can compute its prediction y^t before choosing the label.
  3. The adversary reveals yt=1−y^t. The learner makes a mistake in every one of the d rounds.
  4. Is this sequence realisable? The labels (y1,…,yd) are one labelling of the shattered set, so some h∈H produces it. The learner has not been given an unrealisable task.
  5. Hence the worst-case mistake count is at least d. Combined with the halving bound log⁡2∣H∣, this is consistent with the fact d≤log⁡2∣H∣ for finite classes.

Common mistakes

How long your answer should be

Half a page; 3 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: How do you prove the perceptron convergence theorem (Novikoff): if ∥xi∥≤R and some unit vector w∗ has yi w∗ ⁣⋅xi≥γ>0 for all i, then the perceptron makes at most R2/γ2 mistakes?
Next in Learning theory: How do you derive the mistake bound of the weighted majority algorithm, with N experts, penalty factor β∈(0,1), and an expert that makes m mistakes, so that the algorithm makes at most ln⁡N+mln⁡(1/β)ln⁡21+β mistakes?