Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Business Industries Finance Tax

Home > QR decomposition


In linear algebra, the QR decomposition of a matrix A is a factorization expressing A as
A = QR

where Q is an orthogonal matrix (QQT = I), and R is an upper triangular matrix.

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.

1 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.

Now these equations can be written in matrix form, viz.,

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.

2 Computing QR by means of Householder reflections

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

.

Q is a Householder matrix and

Qx = (α,0,...,0)T.

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).

This can be repeated for A' resulting in a Housholder matrix Q'2. Note that Q'2 is smaller than Q1. Since we want it really to operate on Q1A instead of A' we need to expand it to the upper left, filling in a 1, or in general:

After t iterations of this process, t = min(m − 1, n),

R = Qt...Q2Q1A

is a upper triangular matrix. So, with

Q = Q1Q2...Qt,

A = QR is a QR decompositionIn linear algebra, the QR decomposition of a matrix A is a factorization expressing A as A QR where Q is an orthogonal matrix QQ''T I , and R is an upper triangular matrix. The QR decomposition is often used to solve the linear least squares problem. of A.

This method has greater numerical stability than using the Gram-Schmidt method above. .

2.1 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.

Now, u = (-2, 6, -4)T and v = 14-1/2(-1, 3, -2)T, and then

Observe now:

So we already have almost a triangular matrix. We only need to zero the (3, 2) entry.

Take the (1, 1) minorIn linear algebra, a minor of a matrix is the determinant of a certain smaller matrix. Suppose A is an m ''n matrix and k is a positive integer not larger than m and n''. A k ''k minor of A is the determinant of a k ''k matrix obtained from A by deleting, and then apply the process again to

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.

Now, we find

The matrix Q is orthogonal and R is upper triangular, so A = QR is the required QR-decomposition.

Matrix theoryIn mathematics, matrix theory is a branch of mathematics which focuses on the study of matrices. Initially, a sub-branch of linear algebra, it soon grew to cover subjects related to graph theory, algebra, combinatorics and statistics as well. History The



Non User