An Adaline has two weights, no bias, starting at w=(0,0), with learning rate η=0.1 and the delta rule w←w+η(t−w⊤x) x. Apply it to the sample x=(1,2) with target t=3, then to x=(2,1) with target t=1. What are the weights after each step? For what range of η is a single repeated sample x=(1,2) stable?

Supervised learning, Adaline and the delta rule
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

A hand run of the LMS rule, and the stability condition for a single sample.

Key idea

Each step changes w by η error⋅x. For one repeated sample the error shrinks by the factor 1−η∥x∥2 each step, so stability needs 0<η<2/∥x∥2.

Steps

  1. Step 1: output =0, error =3−0=3. Update w=0.1⋅3⋅(1,2)=(0.3,0.6).
  2. Step 2: output =0.3⋅2+0.6⋅1=1.2, error =1−1.2=−0.2. Update w=(0.3,0.6)+0.1⋅(−0.2)⋅(2,1)=(0.26,0.58).
  3. Stability: for a fixed sample, the new error is t−(w+ηex)⊤x=e−ηe∥x∥2=e(1−η∥x∥2).
  4. Here ∥x∥2=1+4=5. The errors shrink if ∣1−5η∣<1, which gives 0<η<2/5=0.4.
  5. Note that η=0.2 would give 1−5η=0, so the error vanishes in one step. Above 0.4 the error grows with alternating sign.

Common mistakes

How long your answer should be

Half a page, 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: Run the perceptron algorithm with learning rate 1, starting from w=(0,0) and b=0, on the points (2,1) with label +1, (1,−1) with +1, (−1,0) with −1 and (0,2) with −1, in this order. A point counts as a mistake if y(w⊤x+b)≤0. What are the weights after each update, and when does it stop?
Next in Supervised learning: With p=10 candidate features, how many models does best-subset selection have to consider, and how many model fits does forward stepwise selection need? What changes for p=30, and why might forward stepwise still give a worse model than best subset?