Prove the perceptron convergence theorem: if there is a unit vector and a margin such that for all , and , then the perceptron (starting from ) makes at most mistakes. Why does the bound not depend on the number of points or the dimension?
Supervised learning, Perceptron
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
The classic two-inequality proof: the weights align with at a linear rate while their norm grows at most like .
Key idea
After mistakes, (growth of alignment) and (limited norm growth). Together, , so .
Steps
- Absorb the bias into by adding a constant 1 feature, and write for the weights after mistakes, with . On a mistake at : and .
- Alignment: . By induction .
- Norm: , because the middle term is on a mistake. So .
- Combine with Cauchy–Schwarz (using ): .
- Divide by : , so . Since mistakes cannot go on beyond this, the algorithm stops after finitely many updates and then classifies all points correctly.
- The bound depends only on the geometry (the margin relative to the radius). It is independent of and the dimension. It also does not depend on when starting from , since scaling scales only.
Common mistakes
- Forgetting that the middle term is non-positive, which is where the mistake condition is used.
- Claiming the bound is the number of epochs. It counts updates (mistakes).
- Saying the theorem proves convergence on any data. It requires separability with a positive margin.
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Prove that the leave-one-out residual of ordinary least squares is , where is the ordinary residual and the leverage, so LOOCV needs only one fit. How do you check it on the points by computing the LOOCV mean squared error both ways?
Next in Supervised learning: Describe the least angle regression (LAR) algorithm and how it relates to the lasso path. In the case (two orthonormal columns) with : what is the path of coefficients as a function of the penalty , and where does each variable enter?