CSCE 470 Lecture 11

From Notes
Jump to navigation Jump to search

« previous | Wednesday, September 18, 2013 | next »


Pagerank

Random surfer

Transition Probability Matrix

"If I'm on (row), what's the probability that I will go to (col)" Each row must sum to 1, but what about pages without any outlinks?

When surfer gets bored, magically pick a random page and continue walking. This is called the "I'm bored matrix" or the "teleport matrix":

[14141414141414141414141414141414]

Let's use α to represent our "am I not bored?" coin. So I get bored at each page with probability (1−α).

For pages with no outlinks, we'll use a "hack" row from our teleport matrix (since our only way out is to teleport). Thus our "follow link matrix" becomes

[0100001212100014141414]

Now we can apply our "am I bored?" parameter to represent the choices we will make:

α[0100001212100014141414]+(1−α)[14141414141414141414141414141414]=[1161316116116116116716716131611611611614141414]

This shall henceforth be informally known as the "final super mega" matrix.

Markov Property

"I'm forgetful. I forgot where I was. All I know is that I'm here, so what do I do now?"

Formally: Markov chains are stateless; no history

Encode current location as a vector. Suppose the surfer is at B: x→0=⟨0,1,0,0⟩

Our next position will be x→1=x→0P^, then x→2=x→1P^=x→0P^2

We continue to infinity, and our position magically converges. This converged vector becomes our Pagerank

Things to take away

  • Now to blow our mind: it doesn't matter where we start, limn→∞xn
  • If we start with the converged vector, it converges in one step

Since start position actually doesn't matter; we could start simultaneously at all pages: x→0=⟨14,14,14,14⟩

Bottom line:

x→=limn→∞x→0P^n

Thus the PageRank vector x→ is a left eigenvector of the transition matrix P^. (i.e. x→ is an eigenvector of P^T.)

Solving the Markov Chain

Recall the equations we came up with last time:

PR(A)=αPR(C)+1−αnPR(B)=αPR(A)+1−αnPR(C)=αPR(B)+1−αnPR(D)=αPR(B)2+1−αn

The 1−αn represents our teleport probability from our matrix above.

Let's add subscripts to reflect the fact that the values change at each iteration.

PR(A)t=αPR(C)t−1+1−αnPR(B)t=αPR(A)t−1+1−αnPR(C)t=αPR(B)t−1+1−αnPR(D)t=αPR(B)t−12+1−αn

We start our 0th iteration t=0 with all pagerank values equal to 1.

As t→∞, the values will converge to the same thing as our condition matrix.

Obviously, since the system of equations can be represented as a matrix.