# EECS Publication

Computing the Conditioning of the Components of a Linear Least Squares Solution

Marc Baboulin, Jack Dongarra, Serge Gratton, and Julien Langou

In this paper, we address the accuracy of the results for the overdetermined full rank linear least squares problem. We recall theoretical results obtained in [2] on conditioning of the least squares solution and the components of the solution when the matrix perturbations are measured in Frobenius or spectral norms. Then we define computable estimates for these condition numbers and we interpret them in terms of statistical quantities. In particular, we show that, in the classical linear statistical model, the ratio of the variance of one component of the solution by the variance of the right-hand side is exactly the condition number of this solution component when perturbations on the right-hand side are considered. We also provide fragment codes using LAPACK [1] routines to compute the variance-covariance matrix and the least squares conditioning and we give the corresponding computational cost. Finally we present a small historical numerical example that was used by Laplace [19] for computing the mass of Jupiter and experiments from the space industry with real physical data.

Published **2007-09-28 04:00:00** as
**ut-cs-07-604 (ID:126)**