Problem
Overdetermined: more equations than unknowns
$A\mathbf{x} = \mathbf{b}$ has no exact solution
Find $\mathbf{x}$ minimizing $\|A\mathbf{x} - \mathbf{b}\|$
Normal Equations
$A^TA\mathbf{x} = A^T\mathbf{b}$
Solves least squares problem
Assumes $A$ has full column rank
Solution
$\hat{\mathbf{x}} = (A^TA)^{-1}A^T\mathbf{b}$
or $\hat{\mathbf{x}} = A^+\mathbf{b}$ (using pseudoinverse)
Geometric Interpretation
Find projection of $\mathbf{b}$ onto column space of $A$
Residual: $\mathbf{r} = \mathbf{b} - A\hat{\mathbf{x}}$
QR Factorization
$A = QR$ (Q orthogonal, R upper triangular)
Numerically stable for least squares