Least squares: what exactly is being minimized

Quiz 0, question 2(a). You want to fit y ≈ Ax. Drag the handles on the fit and watch the total area; drag the vector picture to turn it.

Least squares as area, and as a projection Left: the system y is approximately A x written out with the actual numbers, one row per data point, one column of A per parameter. Middle: data points, a fit you can drag, and each residual drawn as a square whose area is the residual squared. Right: the same fit in vector space, where y is projected onto the column space of A and the error splits by Pythagoras into a part inside that space and a part perpendicular to it.
points