We have identified three methods to solve the least-squares problem.
Method 1: normal equation for tall skinny matrix :
Method 2: recommended method using QR:
Method 3: for rank deficient , we use the SVD:
Dec 05, 20241 min read
We have identified three methods to solve the least-squares problem.
Method 1: normal equation for tall skinny matrix A:
x=(ATA)−1ATbMethod 2: recommended method using QR:
A=QRx=R−1QTbMethod 3: for rank deficient A, we use the SVD:
A=UΣVTx=VΣ−1UTb