One projection, geometrically
The numerator is the signed error. Dividing by the squared normal length gives exactly the movement needed to reach the selected line. Here the original normals have unit length.
A Kaczmarz route to the least-squares answer
Form the two normal equations, including the new observation at its current weight:
Each row is another line in parameter space. Unlike the original observations, these two lines meet exactly at the weighted least-squares solution. The same projection formula, now using a row of , converges to that intersection.
The influence solve works the same way, with as the unknown and on the right. Two rows, two consistent lines, one influence direction.
What about weights and larger systems?
Scaling a row by the square root of its weight leaves its full geometric projection unchanged. Cycling once through every positive-weight observation therefore does not implement weighted least squares. Weight-aware stochastic updates with diminishing steps, or extended Kaczmarz methods, address inconsistent systems. This demo uses normal equations to keep that distinction visible.
For a large or ill-conditioned problem, forming normal equations squares the condition number of the weighted design matrix. QR, SVD, LSQR, or an appropriate extended Kaczmarz method can be better choices. Here we solve only a positive-definite 2 × 2 system, and evaluate influence independently of the animated solver.