Link Graph Encyclopedia

PageRank in depth

The Perron–Frobenius theorem

The theorem that guarantees a nonnegative matrix has a dominant eigenvector with positive entries. It is why PageRank exists, why it is unique, and why eigenvector centrality fails on graphs that are not strongly connected.

Every spectral ranking, from eigenvector centrality to PageRank, declares the scores to be an eigenvector of some matrix built from the graph. That raises awkward questions. Does such an eigenvector exist? Is it unique? Are its entries all positive, so that they can be read as scores? Will power iteration find it? For matrices with nonnegative entries, which all link matrices are, the theorem of Oskar Perron (1907) and Georg Frobenius (1912) answers all four. Its conditions are exactly the graph properties that teleportation was invented to supply.

Positive matrices: Perron’s theorem

Let MM be a square matrix with all entries strictly positive. Then:

  1. Its spectral radius rr, the largest absolute value of any eigenvalue, is itself an eigenvalue, real and positive.
  2. rr is a simple eigenvalue: its eigenspace is one-dimensional.
  3. There is an eigenvector for rr with all entries strictly positive, and up to scaling it is the only nonnegative eigenvector of MM.
  4. Every other eigenvalue λ\lambda satisfies ∣λ∣<r|\lambda| < r.

Point 3 gives a unique ranking. Point 4 makes power iteration converge: repeated multiplication shrinks every other eigenvector’s component relative to the dominant one.

Nonnegative matrices: Frobenius’s extension

Adjacency matrices are full of zeros, so Perron’s theorem does not apply directly. Frobenius extended it to nonnegative matrices with two graph-theoretic conditions:

An irreducible but periodic matrix has other eigenvalues of modulus rr. A graph whose only cycle is A ⇄ B has eigenvalues 11 and −1-1; power iteration starting from (1,0)(1, 0) flips to (0,1)(0, 1) and back forever.

The running example

The running example’s adjacency matrix is reducible: D, E and F cannot be reached from the core, and F and G reach nothing. Its core {A, B, C} is irreducible, and primitive because it contains cycles of length 2 and 3. The core’s spectral radius, 1.3247, is the largest eigenvalue of the whole matrix, and its eigenvector is positive on the core and on G, which the core feeds, and zero on D, E and F. That is the eigenvector centrality of the running example: the theorem guarantees nothing outside an irreducible piece, and on a reducible graph nonnegative eigenvectors can have zeros in exactly the places the dominant component cannot reach.

How PageRank satisfies the theorem

PageRank’s matrix is

G=αPˉ+1−αn11⊤,G = \alpha \bar P + \frac{1 - \alpha}{n} \mathbf{1} \mathbf{1}^\top ,

where Pˉ\bar P is the transition matrix with dangling rows replaced by uniform rows. Every entry of GG is at least (1−α)/n>0(1 - \alpha)/n > 0. GG is positive, so Perron’s original theorem applies without any condition on the web graph:

Teleportation is the trick that turns an arbitrary, reducible, periodic web graph into a positive matrix. Without it, the theorem’s conditions fail on every real crawl, and the raw random walk’s stationary distributions are neither unique nor positive (see random walks).

Bounds on the spectral radius

A companion result, the Collatz–Wielandt bound, says that the spectral radius of a nonnegative matrix lies between its smallest and largest row sum, and likewise for column sums. For an adjacency matrix, rr is at least the minimum and at most the maximum out-degree, and the same for in-degrees. Because the spectral radius of a principal submatrix never exceeds that of the whole matrix, any dense subgraph pushes rr up for the entire graph. This is why a single dense cluster forces Katz centrality’s parameter to be tiny on the web, while PageRank’s matrix, with every row summing to 1, always has r=1r = 1.

Why it matters in practice

References

Edit this entry on GitHub