linear least squares


Let A be an m×n matrix with mn and b an m×1 matrix. We want to consider the problem

Axb

where stands for the best approximate solution in the least squares sense, i.e. we want to minimize the Euclidean normMathworldPlanetmath of the residual r=Ax-b

||Ax-b||2=||r||2=[i=1mri2]1/2

We want to find the vector x which is closest to b in the column space of A.

Among the different methods to solve this problem, we mention Normal EquationsMathworldPlanetmath, sometimes ill-conditioned, QR DecompositionMathworldPlanetmath, and, most generally, Singular Value DecompositionMathworldPlanetmath. For further reading, [Golub89], [Branham90], [Wong92], [Press95].

Example: Let us consider the problem of finding the closest point (vertex) to measurements on straight lines (e.g. trajectories emanating from a particle collision). This problem can be described by Ax=b with

A=[a11a12am1am2];x=[uv];b=[b1bm]

This is clearly an inconsistent system of linear equations, with more equations than unknowns, a frequently occurring problem in experimental data analysis. The system is, however, not very inconsistent and there is a point that lies “nearly” on all straight lines. The solution can be found with the linear least squares method, e.g. by QR decomposition for solving Ax=b:

QRx=bx=R-1QTb

References

  • Originally from The Data Analysis Briefbook (http://rkb.home.cern.ch/rkb/titleA.htmlhttp://rkb.home.cern.ch/rkb/titleA.html)

  • Wong92

    S.S.M. Wong, Computational Methods in Physics and Engineering, Prentice Hall, 1992.

  • Golub89

    Gene H. Golub and Charles F. van Loan: Matrix Computations, 2nd edn., The John Hopkins University Press, 1989.

  • Branham90

    R.L. Branham, Scientific Data Analysis, An Introduction to Overdetermined Systems, Springer, Berlin, Heidelberg, 1990.

  • Press95

    W.H. Press, S.A. Teukolsky, W.T. Vetterling, and B.P. Flannery, Numerical Recipes in C, Second edition, Cambridge University Press, 1995. (The same book exists for the Fortran language). There is also an Internet version which you can work from.

Title linear least squares
Canonical name LinearLeastSquares
Date of creation 2013-03-22 12:05:50
Last modified on 2013-03-22 12:05:50
Owner akrowne (2)
Last modified by akrowne (2)
Numerical id 5
Author akrowne (2)
Entry type Definition
Classification msc 15-00
Related topic LeastSquares