A full QR decomposition of a real by matrix with writeswhere is an orthogonal by matrix and is upper triangular by . In the full-column-rank case is invertible. Equivalently the reduced factorization is with . Householder transformations can construct the full factorization.
Let with . Since orthogonal transformations preserve the Euclidean norm,Therefore the linear least-squares problem has the full-rank solutionBack substitution solves this triangular system without forming . If the matrix is rank deficient, use a rank-revealing pivoted factorization and minimize over its independent columns; the minimizer need not be unique. The original PDF minimizes over ; the converted TeX's minimization over is a transcription error.
For a nonzero real vector , its Householder reflection isLet . Then and , soThus is an orthogonal matrix, and it is also symmetric with . It sends to and fixes every vector perpendicular to , explaining the reflection in the hyperplane . For a target reduction of a vector to , choose when this vector is nonzero; an alternative sign avoids cancellation in numerical implementations.
The first column is with length three. Choose , so . Its Householder reflection isDirect multiplication givesTo eliminate the remaining third-row entry in the second column, reflect the last two coordinates using . ThenandBoth steps are Householder reflections; the second happens to exchange two coordinates. Solve the leading triangular equations and to obtainFor an independent check, , whose squared norm is nine and which is orthogonal to both columns of . Thus , confirming the least-squares minimizer.
Articles by others on the same topic
There are currently no matching articles.