THE WHOLE UNIT · ONE REFERENCE
Orthogonality and Least Squares
Cheat sheet.
The key rules, formulas and reminders from all 3 topics, gathered into reference cards.
Key formulas, conditions and traps · Read down each column.
Dot Products and Orthogonal Projection
Core rule
Watch for
The direction vector must be nonzero. Projection onto a line is a vector, not just its scalar coefficient.
Gram–Schmidt and QR Factorization
Core rule
Subtract earlier projections, then normalize. For full column rank, with and upper triangular invertible .
Watch for
Zero residuals indicate dependence. Rectangular does not satisfy on the entire output space.
Least Squares and Data Fitting
Core rule
Watch for
Full column rank gives unique coefficients. QR or SVD is generally safer numerically than forming normal equations.
Dot Products and Orthogonal Projection
2 reference blocks
Core rule
Watch for
The direction vector must be nonzero. Projection onto a line is a vector, not just its scalar coefficient.
Gram–Schmidt and QR Factorization
2 reference blocks
Core rule
Subtract earlier projections, then normalize. For full column rank, with and upper triangular invertible .
Watch for
Zero residuals indicate dependence. Rectangular does not satisfy on the entire output space.
Least Squares and Data Fitting
2 reference blocks
Core rule
Watch for
Full column rank gives unique coefficients. QR or SVD is generally safer numerically than forming normal equations.