The Geometry of Least Squares and Gradient Descent

Least squares projects the label vector onto the subspace spanned by the feature rows, so the residual is orthogonal to every feature. When inverting XXᵀ is too costly, gradient descent walks downhill on the squared error instead; stochastic gradient descent uses one point or a small batch per step, trading noisy steps for cheap ones.

Machine Learning Techniques

Sign up free to read the rest of this lesson