The class of thresholds on has VC dimension . 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
- Maintain an interval of thresholds consistent with everything revealed so far, starting from . Every is still a candidate target.
- In each round present . The learner predicts . The adversary replies with the label , so the learner errs.
- Update the interval: if , then , so and the new interval is . If , then and the new interval is .
- The interval has half the length but is never empty. All previous labels remain consistent with every in it, so the sequence stays realisable.
- This continues for any number of rounds (real numbers can be bisected forever). So the learner makes mistakes for any .
- Conclusion: the VC dimension (which controls batch learning, by the fundamental theorem) is , 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 points the optimal mistake bound is about , matching the halving bound.
Common mistakes
- Concluding that thresholds are not PAC learnable. They are PAC learnable, since the VC dimension is finite. The failure is only for the online worst-case setting.
- Forgetting that the adversary can choose the label after seeing the prediction. This is allowed only for deterministic learners; a randomised learner makes about half as many mistakes in expectation, which is still unbounded.
- Not checking that the sequence is realisable. The shrinking interval is exactly what guarantees it.
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 with RKHS , every minimiser of with strictly increasing has the form ?
Next in Learning theory: Let be a ball in an RKHS, with . Show that , where is the kernel matrix of the sample. Why is this significant for the Gaussian kernel?