QR decomposition Guide, Meaning , Facts, Information and Description
In linear algebra, the QR decomposition of a matrix A is a factorization expressing A as
- A = QR
The QR decomposition is often used to solve the linear least squares problem. The QR decomposition is also the basis for a particular eigenvalue algorithm, the QR algorithm.
There are several methods for actually computing the QR decomposition, such as by means of Givens rotations, Householder transformations, or the Gram-Schmidt decomposition. Each has a number of advantages and disadvantages.
| Table of contents |
|
2 Computing QR by means of Householder reflections |
Now these equations can be written in matrix form, viz.,
Computing QR by means of Gram-Schmidt
Recall the Gram-Schmidt method, with the vectors to be considered in the process as columns of the matrix A=(a1|...|an). Then
Naturally then, we rearrange the equations so the ais are the subject, to get the following
Each of these projections of the vectors ai onto one of these ej are merely the inner product of the two, since the vectors are normed.
But the product of each row and column of the matrices above give us a respective column of A that we started with, and together, they give us the matrix A, so we have factorized A into an orthogonal matrix Q (the matrix of eks), via Gram Schmidt, and the obvious upper triangular matrix as a remainder R.
A Householder reflection (or Householder transformation) is a transformation that takes a vector and reflects it about some plane. We can use this property to calculate the QR factorization of a matrix.
Q can be used to reflect a vector in such a way that all coordinates but one disappear. Let x be an arbitrary m-dimensional column vector of length |α| (for numerical reasons α should get the same sign as the first coordinate of x).
Then, where e1 is the vector (1,0,...,0)T, and || || the euclidean norm, set
Computing QR by means of Householder reflections
Q is a Householder matrix and
This can be used to gradually transform an m-by-n matrix A to upper triangular form. First, we multiply A with the Householder matrix Q1 we obtain when we choose the first matrix column for x. This results in a matrix QA with zeros in the left column (except for the first line).
- R = Qt...Q2Q1A
- Q = Q1Q2...Qt,
This method has greater numerical stability than using the Gram-Schmidt method above. .
Now, u = (-2, 6, -4)T and v = 14-1/2(-1, 3, -2)T, and then
Take the (1, 1) minor, and then apply the process again to
Now, we find
This is an Article on QR decomposition. Page Contains Information, Facts Details or Explanation Guide About QR decomposition Example
Let us calculate the decomposition of
We need to find a reflection that takes the vector a1 = (12, 6, -4)T to ||a1|| e1 = (14, 0, 0)T.
Observe now:
So we already have almost a triangular matrix. We only need to zero the (3, 2) entry.
By the same method as above, we obtain the matrix of the Householder transformation to be,
after performing a direct sum with 1 to make sure the next step in the process works properly.
The matrix Q is orthogonal and R is upper triangular, so A = QR is the required QR-decomposition.
