Puneet Varma (Editor)

Power iteration

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, the power iteration (also known as power method) is an eigenvalue algorithm: given a matrix A , the algorithm will produce a number λ , which is the greatest (in absolute value) eigenvalue of A , and a nonzero vector v , the corresponding eigenvector of λ , such that A v = λ v . The algorithm is also known as the Von Mises iteration.

Contents

The power iteration is a very simple algorithm, but it may converge slowly. It does not compute a matrix decomposition, and hence it can be used when A is a very large sparse matrix.

The method

The power iteration algorithm starts with a vector b 0 , which may be an approximation to the dominant eigenvector or a random vector. The method is described by the recurrence relation

b k + 1 = A b k A b k

So, at every iteration, the vector b k is multiplied by the matrix A and normalized.

If we assume A has an eigenvalue that is strictly greater in magnitude than its other eigenvalues and the starting vector b 0 has a nonzero component in the direction of an eigenvector associated with the dominant eigenvalue, then a subsequence ( b k ) converges to an eigenvector associated with the dominant eigenvalue.

Without the two assumptions above, the sequence ( b k ) does not necessarily converge. In this sequence,

b k = e i ϕ k v 1 + r k ,

where v 1 is an eigenvector associated with the dominant eigenvalue, and r k 0 . The presence of the term e i ϕ k implies that ( b k ) does not converge unless e i ϕ k = 1 . Under the two assumptions listed above, the sequence ( μ k ) defined by

μ k = b k A b k b k b k

converges to the dominant eigenvalue.

One may compute this with the following algorithm:

The value of n o r m converges to the absolute value of the dominant eigenvalue, and the vector b to an associated eigenvector.

Note: The above code assumes that the entries of A and b are real. To handle complex values, change A [ i ] [ j ] above to c o n j ( A [ i ] [ j ] ) , and change t m p [ k ] t m p [ k ] to c o n j ( t m p [ k ] ) t m p [ k ] .

This algorithm is the one used to calculate such things as the Google PageRank.

The method can also be used to calculate the spectral radius (the largest eigenvalue of a matrix) by computing the Rayleigh quotient

b k A b k b k b k = b k + 1 b k b k b k .

Analysis

Let A be decomposed into its Jordan canonical form: A = V J V 1 , where the first column of V is an eigenvector of A corresponding to the dominant eigenvalue λ 1 . Since the dominant eigenvalue of A is unique, the first Jordan block of J is the 1 × 1 matrix [ λ 1 ] , where λ 1 is the largest eigenvalue of A in magnitude. The starting vector b 0 can be written as a linear combination of the columns of V: b 0 = c 1 v 1 + c 2 v 2 + + c n v n . By assumption, b 0 has a nonzero component in the direction of the dominant eigenvalue, so c 1 0 .

The computationally useful recurrence relation for b k + 1 can be rewritten as: b k + 1 = A b k A b k = A k + 1 b 0 A k + 1 b 0 , where the expression: A k + 1 b 0 A k + 1 b 0 is more amenable to the following analysis.
b k = A k b 0 A k b 0 = ( V J V 1 ) k b 0 ( V J V 1 ) k b 0 = V J k V 1 b 0 V J k V 1 b 0 = V J k V 1 ( c 1 v 1 + c 2 v 2 + + c n v n ) V J k V 1 ( c 1 v 1 + c 2 v 2 + + c n v n ) = V J k ( c 1 e 1 + c 2 e 2 + + c n e n ) V J k ( c 1 e 1 + c 2 e 2 + + c n e n ) = ( λ 1 | λ 1 | ) k c 1 | c 1 | v 1 + 1 c 1 V ( 1 λ 1 J ) k ( c 2 e 2 + + c n e n ) v 1 + 1 c 1 V ( 1 λ 1 J ) k ( c 2 e 2 + + c n e n )
The expression above simplifies as k
( 1 λ 1 J ) k = [ [ 1 ] ( 1 λ 1 J 2 ) k ( 1 λ 1 J m ) k ] [ 1 0 0 ] as k .
The limit follows from the fact that the eigenvalue of 1 λ 1 J i is less than 1 in magnitude, so ( 1 λ 1 J i ) k 0 as k
It follows that:
1 c 1 V ( 1 λ 1 J ) k ( c 2 e 2 + + c n e n ) 0 as k
Using this fact, b k can be written in a form that emphasizes its relationship with v 1 when k is large:
b k = ( λ 1 | λ 1 | ) k c 1 | c 1 | v 1 + 1 c 1 V ( 1 λ 1 J ) k ( c 2 e 2 + + c n e n ) v 1 + 1 c 1 V ( 1 λ 1 J ) k ( c 2 e 2 + + c n e n ) = e i ϕ k c 1 | c 1 | v 1 + r k where e i ϕ k = ( λ 1 / | λ 1 | ) k and r k 0 as k
The sequence ( b k ) is bounded, so it contains a convergent subsequence. Note that the eigenvector corresponding to the dominant eigenvalue is only unique up to a scalar, so although the sequence ( b k ) may not converge, b k is nearly an eigenvector of A for large k.

Alternatively, if A is diagonalizable, then the following proof yields the same result
Let λ1, λ2, …, λm be the m eigenvalues (counted with multiplicity) of A and let v1, v2, …, vm be the corresponding eigenvectors. Suppose that λ 1 is the dominant eigenvalue, so that | λ 1 | > | λ j | for j > 1 .

The initial vector b 0 can be written:

b 0 = c 1 v 1 + c 2 v 2 + + c m v m .

If b 0 is chosen randomly (with uniform probability), then c1 ≠ 0 with probability 1. Now,

A k b 0 = c 1 A k v 1 + c 2 A k v 2 + + c m A k v m = c 1 λ 1 k v 1 + c 2 λ 2 k v 2 + + c m λ m k v m = c 1 λ 1 k ( v 1 + c 2 c 1 ( λ 2 λ 1 ) k v 2 + + c m c 1 ( λ m λ 1 ) k v m ) .

The expression within parentheses converges to v 1 because | λ j / λ 1 | < 1 for j > 1 . On the other hand, we have

b k = A k b 0 A k b 0 .

Therefore, b k converges to (a multiple of) the eigenvector v 1 . The convergence is geometric, with ratio

| λ 2 λ 1 | ,

where λ 2 denotes the second dominant eigenvalue. Thus, the method converges slowly if there is an eigenvalue close in magnitude to the dominant eigenvalue.

Applications

Although the power iteration method approximates only one eigenvalue of a matrix, it remains useful for certain computational problems. For instance, Google uses it to calculate the PageRank of documents in their search engine, and Twitter uses it to show users recommendations of who to follow. For matrices that are well-conditioned and as sparse as the web matrix, the power iteration method can be more efficient than other methods of finding the dominant eigenvector.

Some of the more advanced eigenvalue algorithms can be understood as variations of the power iteration. For instance, the inverse iteration method applies power iteration to the matrix A 1 . Other algorithms look at the whole subspace generated by the vectors b k . This subspace is known as the Krylov subspace. It can be computed by Arnoldi iteration or Lanczos iteration.

References

Power iteration Wikipedia