Suppose that there are N web pages. A user staying at a web page at time t (t≥0) will move to one of the linked pages at time t+1 with equal probability. If there are no linked pages, the user will stay at the same page as time t. Let pn(t) (1≤n≤N) denote the probability of the user staying at the n-th page at time t, and p(t)=(p1(t)p2(t)…pN(t))T denote the vector that summarizes them.
First, let us consider the case of N=3 shown in Table 1. When there are three web pages shown in Table 1, the state transition diagram that represents a user's state is depicted as a graph in Figure 1. Each node in the graph shown in Figure 1 corresponds one-to-one to a page in Table 1, and an edge represents a transition between the pages from time t to time t+1. The value appended to an edge shows the probability of the transition occurring. Note that when there are no linked pages and a user keeps staying at the same page, it is interpreted as a transition to the same page as time t.
Answer the following questions.
(1) Given p(0)=(100)T, find p(1) and p(2).
(2) Represent p1(t) and p2(t) using t. p(0) is the same as in Question (1).
(3) Find p(t) when t→∞. p(0) is the same as in Question (1).
Next, we introduce an operation called "jump" that occurs during a move between pages from time t to time t+1 with a constant probability α>0. When a jump occurs, the user moves to one of N pages (including the current page) with equal probability. When a jump does not occur, the user moves to one of the linked pages with equal probability in the same manner as before (if there are no linked pages, the user will keep staying at the current page).
(4) We introduce the jump operation into the case in Table 1. Suppose that α=1/3. Draw a state transition diagram for this case. Also, find the transition probability matrix A that satisfies the following equation
p(t+1)=Ap(t).
(5) When p(t+1)=p(t)(=p), this p is called a stationary distribution. Find the stationary distribution in the case of Question (4).
Finally, we consider the transition probability matrix R and stationary distribution of a general case where the jump operation is introduced. For answering the following questions, you can use the Perron–Frobenius theorem described below.
Perron–Frobenius theorem for positive matrices
A positive square matrix has a positive eigenvalue k that satisfies the following. Here, a positive matrix is a matrix whose elements are all positive real numbers.
(i) For the absolute value of an arbitrary eigenvalue λ other than k, ∣λ∣<k holds.
(ii) The eigenvalue k is a simple root (i.e., has the multiplicity of 1), and there exists a positive eigenvector that belongs to the eigenvalue k. Here, a positive vector is a vector whose elements are all positive real numbers.
(iii) There are no positive eigenvectors that belong to eigenvalues other than k.
(6) Show that RT, the transpose of R, has 1 as an eigenvalue, and that this is the eigenvalue with the largest absolute value.
(7) Show that a stationary distribution exists uniquely. Here, you can assume the following fact as given; In general, a square matrix and its transpose have the same set of eigenvalues.
(8) Show that, by iteratively computing p(t) following the equation p(t+1)=Rp(t), regardless of the initial probability distribution p(0), p(t) converges to the stationary distribution when t→∞. You can assume that p(0) can be represented as a linear combination of eigenvectors, p(0)=∑i=1Ncixi. Here, xi denotes the i-th eigenvalue of R while ci is its coefficient.
Since R is a transition probability matrix, we have
i∑Rij=1∀j
hence
R⊤1=1⋅1
which implies that 1 is an eigenvalue of R⊤.
Since R⊤ is positive and 1 is a positive eigenvector, the Perron--Frobenius eigenvalue is 1. Therefore every other eigenvalue has absolute value less than 1.
Since R and R⊤ have the same eigenvalues, R has eigenvalue 1. Perron--Frobenius gives a positive eigenvector v; normalizing it by p=v/(1⊤v) yields a stationary distribution Rp=p.
For uniqueness, assume that there exist two different stationary distributions p and q.
Then by definition we have
Rp=1⋅p,Rq=1⋅q
i.e., p and q are both eigenvectors corresponding to the eigenvalue λ=1.
(the Perron Frobenius theorem) Since for positive matrices, 1 is a simple root, which means that the eigenspace for λ=1 is 1-dimensional. Hence
p=cq
Note that p and q are both probability distributions, i.e., ∑pi=∑qj=1. Thus c=1, which is contradictory to the assumption that p and q are different.
Expand the initial state p(0) in the eigenbasis of R:
p(0)=c1x1+i=2∑Ncixi,
where x1 is the eigenvector associated with the eigenvalue λ1=1, and each xi corresponds to λi.
Apply the matrix R for t steps:
p(t)=Rtp(0)=c1(1)tx1+i=2∑Nci(λi)txi.
By the Perron–Frobenius theorem, for all i≥2 we have ∣λi∣<1. Hence limt→∞(λi)t=0, and therefore
t→∞limp(t)=c1x1.
Now left-multiply both sides by 1T (the row vector of all ones, i.e., summing all components). Since total probability is conserved, 1Tp(t)=1 for all t. Thus,
1=1T(c1x1)=c1(1Tx1).
Assuming x1 is normalized so that its entries sum to 1, we have 1Tx1=1, which implies c1=1. Therefore,
t→∞limp(t)=x1,
i.e., the distribution converges to the unique stationary distribution.