The class of thresholds ht(x)=1[x≥t] on [0,1] has VC dimension 1. Show that no online learner can guarantee a finite number of mistakes on it in the realisable setting. What does this say about the relation between VC dimension and online learnability?

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

What's being asked

Whether you can build an adversary strategy (binary search) and understand that online learnability needs more than finite VC dimension.

Key idea

The adversary asks about the midpoint of the interval of thresholds still consistent and always returns the label opposite to the learner's prediction. The learner errs on every round.

Steps

  1. Maintain an interval (a,b] of thresholds consistent with everything revealed so far, starting from (0,1]. Every t∈(a,b] is still a candidate target.
  2. In each round present x=a+b2. The learner predicts y^. The adversary replies with the label y=1−y^, so the learner errs.
  3. Update the interval: if y=1, then x≥t, so t≤x and the new interval is (a,x]. If y=0, then x<t and the new interval is (x,b].
  4. The interval has half the length but is never empty. All previous labels remain consistent with every t in it, so the sequence stays realisable.
  5. This continues for any number of rounds T (real numbers can be bisected forever). So the learner makes T mistakes for any T.
  6. Conclusion: the VC dimension (which controls batch learning, by the fundamental theorem) is 1, but online learning is impossible with a finite mistake bound. The right dimension for online learning is the Littlestone dimension, which is infinite here. On a finite domain of n points the optimal mistake bound is about log⁡2n, matching the halving bound.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: How do you state and prove the representer theorem: for a kernel k with RKHS H, every minimiser of ∑i=1mℓ(f(xi),yi)+g(∥f∥H) with g strictly increasing has the form f=∑iαik(xi,⋅)?
Next in Learning theory: Let F={f∈Hk:∥f∥H≤B} be a ball in an RKHS, with k(x,x)≤R2. Show that R^S(F)≤Bmtr⁡K≤BRm, where K is the kernel matrix of the sample. Why is this significant for the Gaussian kernel?