Inner product
Over ℝ, a symmetric positive-definite bilinear form. It defines a norm by ‖v‖=√⟨v,v⟩ and orthogonality by ⟨u,v⟩=0.
REFERENCE SHEET
Approximate a vector by its closest point in a subspace.
Before this Vector spaces & linear maps
Over ℝ, a symmetric positive-definite bilinear form. It defines a norm by ‖v‖=√⟨v,v⟩ and orthogonality by ⟨u,v⟩=0.
The unique closest vector to b in a finite-dimensional inner-product subspace S. Its residual is orthogonal to S.
The nonnegative square roots of the eigenvalues of AᵀA for a real matrix A.
A vector p∈S minimizes ‖b−p‖ exactly when b−p is orthogonal to S.
Every least-squares minimizer solves AᵀAx=Aᵀb. The coefficient vector is unique if A has full column rank.
Every real m×n matrix has A=UΣVᵀ with orthogonal U,V and rectangular diagonal Σ with nonnegative entries. Complex matrices use conjugate transpose.
Least squares fits a response vector to the column space of a design matrix.
Truncating the SVD to the k largest singular values gives a best rank-at-most-k approximation in Frobenius norm.
01 / Compute
Use ⟨b,u⟩u/⟨u,u⟩.
The projection is (1,1); the residual (1,−1) is orthogonal to (1,1).
02 / Compute
Use AᵀA.
AᵀA=diag(9,4,0), so the singular values are 3, 2, and 0.
These sheets use this topic as a prerequisite.
Further reading and full-length treatments: