A first way to obtain the least-squares solution is to
differentiate the error function with respect to :
| (1.4) |
If has full column rank, that is,
, the matrix
is positive definite and invertible. In this
case, the solution is
The matrix
is symmetric and, in the case of
full column rank, positive definite; the normal equations can therefore
be solved using a Cholesky factorization.
However, explicitly forming
has
a numerical disadvantage: in the 2-norm, the condition number satisfies
| (1.7) |
Paolo medici