Numerical methods for linear least squares
Builds on Least squaresMoore–Penrose inverseQR decompositionCholesky decomposition
Definition
Let and . The linear least squares problem is to find that minimizes . When has rank less than , one asks for the minimizer of smallest norm. This is , with the Moore–Penrose inverse. A numerical method for linear least squares is an algorithm that computes this minimizer from and . It is exact in exact arithmetic, and accurate up to rounding errors in floating point arithmetic. The standard methods are:
- the normal equations , solved by a Cholesky decomposition of when has full column rank;
- a QR decomposition with having orthonormal columns and upper triangular, when has full column rank, followed by the solution of ;
- the singular value decomposition , followed by .
Remarks
Example: for fitting a line to the points , , , take with rows , , and . Then and , so and ; the residual is orthogonal to both columns of , as it must be. Non-example: solving the square system formed by the first rows of fits those rows exactly, but it does not give the minimizer in general. Here it gives , , with residual norm instead of . The normal equations are the cheapest method but square the condition number, . Householder QR is backward stable and is the standard choice for dense full-rank problems; the SVD is the most robust for rank-deficient problems, at a higher cost. For large sparse problems one uses iterative methods such as LSQR or the conjugate gradient method applied to the normal equations.
Reading path
To understand this page from the ground up, read these 37 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Identity matrix object
- Matrix definition
- Moore–Penrose inverse concept
- Vector space definition
- Square matrix definition
- Transpose definition
- Inner product definition
- Linear combination definition
- Linear map definition
- Linear subspace definition
- Norm definition
- Lower triangular matrix definition
- Upper triangular matrix definition
- Symmetric matrix definition
- Conjugate transpose definition
- Inner product space definition
- Orthogonal vectors definition
- Linear independence definition
- Endomorphism definition
- Linear span definition
- Sum of subspaces definition
- Hermitian matrix definition
- Unitary matrix definition
- Norm induced by an inner product definition
- Orthogonal complement definition
- Orthonormal family definition
- Direct sum of subspaces definition
- Positive definite matrix definition
- A space is the direct sum of a subspace and its orthogonal complement statement
- Gram–Schmidt process concept
- Projection definition
- Cholesky decomposition statement
- QR decomposition statement
- Orthogonal projection definition
- Orthogonal projection is the closest point statement
- Least squares concept
- Numerical methods for linear least squares definition
Further reading
About this page
| Tag | V9R8K4JCVM |
|---|---|
| URI | m2://V9R8K4JCVM |
| Kind | definition |
| Writing | W0 stub |
| MSC | 65F20, 62J05 |
| Defines | Numerical methods for linear least squares |
| Uses | Least squares, Moore–Penrose inverse, QR decomposition, Cholesky decomposition |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.