A full QR decomposition of a real by matrix with writes
where 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 solution
Back 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 is
Let . Then and , so
Thus 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 is
Direct multiplication gives
To eliminate the remaining third-row entry in the second column, reflect the last two coordinates using . Then
and
Both steps are Householder reflections; the second happens to exchange two coordinates. Solve the leading triangular equations and to obtain
For 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 (0)

There are currently no matching articles.