Singular Value Decomposition for Least Squares
📂Matrix AlgebraSingular Value Decomposition for Least Squares
Algorithm
A∈Cm×n and vector b∈Cm, let’s say rankA=n and the least squares solution of Ax=b is x∗.
Step 1. Singular Value Decomposition
Find orthogonal matrix U, diagonal matrix Σ, and unitary matrix V that satisfy A=UΣV∗.
Step 2.
Using U obtained from the singular value decomposition, compute the projection P:=UU∗.
Given Ax∗=Pb, we have UΣV∗x∗=UU∗b, and by multiplying the left side of both sides by U∗, we obtain ΣV∗x∗=U∗b.
Step 3.
Compute y:=U∗b to get ΣV∗x∗=y.
Step 4.
Considering ΣV∗x∗=y as w:=V∗x∗, solve equation Σw=y for w.
Step 5.
Since V is a unitary matrix, compute x∗=Vw.