Linear algebra · Orthogonality and least squares
When a system has no exact solution, the best approximate one comes from projecting the data onto the column space.