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