Prove the perceptron convergence theorem: if there is a unit vector w∗ and a margin γ>0 such that yi(w∗⊤xi)≥γ for all i, and ∥xi∥≤R, then the perceptron (starting from w=0) makes at most (R/γ)2 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 w∗ at a linear rate while their norm grows at most like k.

Key idea

After k mistakes, wk⊤w∗≥kγ (growth of alignment) and ∥wk∥2≤kR2 (limited norm growth). Together, kγ≤∥wk∥≤kR, so k≤R2/γ2.

Steps

  1. Absorb the bias into x by adding a constant 1 feature, and write wk for the weights after k mistakes, with w0=0. On a mistake at (x,y): wk+1=wk+yx and y wk⊤x≤0.
  2. Alignment: wk+1⊤w∗=wk⊤w∗+y x⊤w∗≥wk⊤w∗+γ. By induction wk⊤w∗≥kγ.
  3. Norm: ∥wk+1∥2=∥wk∥2+2y wk⊤x+∥x∥2≤∥wk∥2+R2, because the middle term is ≤0 on a mistake. So ∥wk∥2≤kR2.
  4. Combine with Cauchy–Schwarz (using ∥w∗∥=1): kγ≤wk⊤w∗≤∥wk∥≤k R.
  5. Divide by k γ: k≤R/γ, so k≤R2/γ2. Since mistakes cannot go on beyond this, the algorithm stops after finitely many updates and then classifies all points correctly.
  6. The bound depends only on the geometry (the margin relative to the radius). It is independent of n and the dimension. It also does not depend on η when starting from w=0, since scaling η scales w only.

Common mistakes

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 ei/(1−hii), where ei is the ordinary residual and hii the leverage, so LOOCV needs only one fit. How do you check it on the points (0,1),(1,3),(2,3) 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 X=I2 (two orthonormal columns) with y=(3,1): what is the path of coefficients as a function of the penalty λ, and where does each variable enter?