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?

Learning theory, Mistake-bound model
Level L3 Intermediate. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can combine a lower bound on the growth of w⋅w∗ with an upper bound on the growth of ∥w∥.

Key idea

After M mistakes, w⋅w∗≥Mγ but ∥w∥2≤MR2. Cauchy–Schwarz gives Mγ≤MR.

Steps

  1. Setup: start with w0=0. On a mistake, meaning yt wt⋅xt≤0, update wt+1=wt+ytxt. Let wM be the weight vector after M mistakes.
  2. Lower bound: wt+1⋅w∗=wt⋅w∗+yt xt⋅w∗≥wt⋅w∗+γ. By induction wM⋅w∗≥Mγ.
  3. Upper bound: ∥wt+1∥2=∥wt∥2+2yt wt⋅xt+∥xt∥2≤∥wt∥2+R2, because the middle term is ≤0 on a mistake. By induction ∥wM∥2≤MR2.
  4. Combine with Cauchy–Schwarz and ∥w∗∥=1: Mγ≤wM⋅w∗≤∥wM∥≤M R.
  5. Divide by Mγ (if M>0): M≤R/γ, so M≤R2/γ2.
  6. Remark: the bound does not depend on the dimension or on the number of examples, only on the margin.

Common mistakes

How long your answer should be

One page; 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: What is the VC dimension of axis-aligned rectangles in R2, and how do you prove it?
Next in Learning theory: 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?