Factorization-based methods can be used to obtain the least-squares solution
directly from the matrix , without explicitly forming
.
One option is to use QR factorization, an algorithm known for its numerical
stability. For a matrix of size
, with
, we can write
| (1.18) |
| (1.19) |
| (1.20) |
The SVD is an even more general method and also handles rank-deficient
matrices naturally. The decomposition (1.9) can be used to obtain
the pseudoinverse directly via (1.12), and hence the solution
| (1.21) |
The SVD also directly identifies the problem directions associated with very small singular values. These directions correspond to solution components that are poorly determined by the data, and are particularly important when analyzing conditioning and homogeneous linear systems.
From a numerical computing perspective, when possible, the matrix condition
number can also be reduced by appropriately normalizing or scaling the
columns of .
Paolo medici