Least Squares
This is note1 based on Linear Algebra And Learning From Data by Gilbert Strang.
Least Squares
Many applications lead to unsolvable linear equations $Ax=b$. The least squares method chooses $\hat x$ to make $||b-A\hat x||^2$ as small as possible. Which is $(Ax-b)^T(Ax-b)$. Minimizing erorr means its derivatives are zero which leads to normal eqautions $A^TA\hat x=A^Tb$.
Four ways to solve
1.The SVD of A leads to its pseudoinverse $A^+$. Then $\hat x = A^+b$ :one short formula (This note)
2.$A^TA\hat x=A^Tb$ can be solved directly when A has independent columns
3.The... read more



Tandy Color Computer TRS80 III