New concepts:
Projection review, projection onto subspaces
Best approximation
LSQ through projection
LSQ solution by normal equations
Orthogonal projection of 𝒗∈ℝm along direction 𝒒∈ℝm, ||𝒒||=1
Figure 1. Orthogonal projection operation P𝒒.
𝒘=(||𝒗||⁡cos⁡θ)⁡𝒒=(||𝒗||⁡)𝒒=(𝒒T⁡𝒒)𝒒=𝒒(𝒒T𝒗)=(𝒒⁡𝒒T)𝒗⇒
Projection matrix 𝑷𝒒=𝒒⁡𝒒T (||𝒒||=1)
Simple example: projection in ℝ3 onto x1x2-plane of 𝒗∈ℝ3
The projection of 𝒗 onto x1x2 plane is 𝒘=v1𝒆1+v2𝒆2=[ v1 v2 0 ]
Projection is linear mapping, hence 𝒘=𝑷12⁡𝒗
Recall definition of orthonormal vectors
Columns of 𝑸=[ 𝒒1 … 𝒒n ]∈ℝm×n are orthonormal if
Consider C(𝑸) with 𝑸=[ 𝒒1 … 𝒒n ]∈ℝm×n orthonormal. The matrix
is the standard matrix of the orthogonal projection of a vector in ℝm onto the subspace spanned by { 𝒒1 … 𝒒n }, namely C(𝑸).
Consider approximating 𝒃∈ℝm by linear combination of n vectors, 𝑨∈ℝm×n
Make approximation error 𝒆=𝒃-𝒗=𝒃-𝑨⁡𝒙 as small as possible
Error is measured in the 2-norm ⇒ the least squares problem (LSQ)
Solution is the projection of 𝒃 onto C(𝑨)
The vector 𝒙 is found by back-substitution from
The best approximant is found when the error vector 𝒆 is orthogonal to C(𝑨)
The system (𝑨T⁡𝑨)⁡𝒙=𝑨T⁡𝒃 is the normal system of the LSQ problem
Note that 𝑨T⁡𝑨∈ℝn×n