Docsity

Steady State of Markov Chains and PageRank Algorithm, Study notes of Linear Algebra

Toggle sidebar
bg1
1
Notes for Nov 26
This is a brief note on finding the steady state of a Markov chain and the PageRank
algorithm. For more details read the applications in section 6.3.
Problem 1. Verify that the largest in absolute value egienvalue of the following stochas-
tic matrix Pis 1. Find the steady-state of P.
P=
0.2 0.7 0.5
0.3 0.2 0.1
0.5 0.1 0.4
.
Solution
The characteristic polynomial of Pis
−t3+0.8t2+0.27t−0.07 = (1−t)(t2+0.2t−0.07) = (1−t)(t+0.1−0.2√2)(t+0.1+0.2√2)
The eigenvalues are
λ1= 1, λ2=−0.1+0.2√2, λ3=−0.1−0.2√2.
λ1= 1 is largest in absolute value.
The RREF of P−Iis
1 0 −47/43
0 1 −23/43
0 0 0
Hence the vector
v= [47,23,43]T
is a basis for the eigenspace of λ1= 1. Since v1+v2+v3= 113 we have that
u=v/113 = [47/113,23/113.43/113]T
is the steady-state vector of P.
Problem 2. A web search returns four pages such that:
•page 1 has links to page 2 and page 3,
pf3

Partial preview of the text

Download Steady State of Markov Chains and PageRank Algorithm and more Study notes Linear Algebra in PDF only on Docsity!

Notes for Nov 26

This is a brief note on finding the steady state of a Markov chain and the PageRank

algorithm. For more details read the applications in section 6.3.

Problem 1. Verify that the largest in absolute value egienvalue of the following stochas-

tic matrix P is 1. Find the steady-state of P.

P =

Solution

The characteristic polynomial of P is

−t

3

    1. 8 t

2

    1. 27 t − 0 .07 = (1 − t)(t

2

    1. 2 t − 0 .07) = (1 − t)(t + 0. 1 − 0. 2

2)(t + 0.1 + 0. 2

The eigenvalues are

λ 1 = 1, λ 2 = − 0 .1 + 0. 2

2 , λ 3 = − 0. 1 − 0. 2

λ 1 = 1 is largest in absolute value.

The RREF of P − I is 

Hence the vector

v = [47, 23 , 43]

T

is a basis for the eigenspace of λ 1 = 1. Since v 1 + v 2 + v 3 = 113 we have that

u = v/113 = [47/ 113 , 23 / 113. 43 /113]

T

is the steady-state vector of P.

Problem 2. A web search returns four pages such that:

  • page 1 has links to page 2 and page 3,
  • page 2 has links to page 1 and page 3,
  • page 4 has a link to page 3.

Rank the pages according to Google’s PageRank algorithm, assuming that a surfer follows

a link on a page with probability p = 85/100 and with probability 1 − p = 15/100 picks a

random page.

Solution

Let l ∈ R

4 be such that li is the number of links in page i. Hence

l = [2, 2 , 0 , 1]

T .

l 1 = 2 because page 1 links to pages 2 and 3, and so on. Page 3 is ”dangling” because it

does not contain any links (l 3 = 0). Define

pij =

1 4

, if page j is ”dangling”,

85 100

1 lj

15 100

1 4

, if page j has a link to page i,

15 100

1 4

, otherwise.

For example, since page 1 does not link to page 1 (itself) we have

p 11 = (15/100)(1/4) = 3/ 80

since page 1 links to page 2 we have

p 21 = (85/100)(1/2) + (15/100)(1/4) = 37/ 80

and so on. Thus

P = (pij ) 4 × 4 =

P is stochastic with positive entries, hence 1 is the largest in absolute value eigenvalue of P.