Solution to Least Squares Problem
Let be a matrix with with QR decomposition
be the full QR decomposition via Householder QR Factorisation
Assuming is non-singular so has full column rank then
Least Squares Problem
has solution
Proof
As
for any then
where bottom part is always regardless of
with top part being if