Ridge starts from the least-squares fit. This book uses a through-origin one-weight model so every change is visible as one exact denominator change.
The setup
Use a through-origin line y≈w*x on the exact points (1, 2) and (2, 3). With one weight, least squares uses the exact ratio sum xy over sum x squared.
y≈wx,(x,y)=(1,2), (2,3)
Exact sums
The shown data give sum xy=8 and sum x squared=5. So the unregularized weight is 8/5.
∑xy=8,∑x2=5,w=8/5
Why ridge enters
A large or sensitive weight can be discouraged by adding a penalty. This is a mechanical change to the arithmetic, not a claim about future data.
change the objective, then recompute exactly