normal equations

We consider the problem A⁢x≈b , where A is an m×n matrix with m≥n rank (A)=n, b is an m×1 vector, and x is the n×1 vector to be determined.

The sign ≈ stands for the least squares approximation, i.e. a minimization of the norm of the residual r=A⁢x-b.

||A⁢x-b||2=||r||2=[∑i=1mri2]1/2

or the square

F⁢(x) = 12⁢||A⁢x-b||22=12⁢(A⁢x-b)T⁢(A⁢x-b)
= 12⁢(xT⁢AT⁢A⁢x-2⁢xT⁢AT⁢b+bT⁢b)

i.e. a differentiable function of x. The necessary condition for a minimum is:

∇F(x)=0or∂⁡F∂⁡xi=0(i=1,…,n)

These equations are called the normal equations , which become in our case:

AT⁢A⁢x=AT⁢b

The solution x=(AT⁢A)-1⁢AT⁢b is usually computed with the following algorithm: First (the lower triangular portion of) the symmetric matrixMathworldPlanetmath AT⁢A is computed, then its Cholesky decompositionMathworldPlanetmath L⁢LT. Thereafter one solves L⁢y=AT⁢b for y and finally x is computed from LT⁢x=y.

Unfortunately AT⁢A is often ill-conditioned and strongly influenced by roundoff errors (see [Golub89]). Other methods which do not compute AT⁢A and solve A⁢x≈b directly are QR decompositionMathworldPlanetmath and singular value decompositionMathworldPlanetmath.

References

  • •

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

Title normal equations
Canonical name NormalEquations
Date of creation 2013-03-22 12:04:28
Last modified on 2013-03-22 12:04:28
Owner akrowne (2)
Last modified by akrowne (2)
Numerical id 7
Author akrowne (2)
Entry type Definition
Classification msc 65-00
Classification msc 15-00