東京大学 情報理工学系研究科 創造情報学専攻 2024年8月実施 筆記試験 第1問
Author
祭音Myyura (with the help of an anonymous contributor), itsuitsuki
Description
Suppose that there are web pages. A user staying at a web page at time () will move to one of the linked pages at time with equal probability. If there are no linked pages, the user will stay at the same page as time . Let () denote the probability of the user staying at the -th page at time , and denote the vector that summarizes them.
First, let us consider the case of 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 to time . 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 .
Answer the following questions.
(1) Given , find and .
(2) Represent and using . is the same as in Question (1).
(3) Find when . is the same as in Question (1).
Next, we introduce an operation called "jump" that occurs during a move between pages from time to time with a constant probability . When a jump occurs, the user moves to one of 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 . Draw a state transition diagram for this case. Also, find the transition probability matrix that satisfies the following equation
(5) When , this is called a stationary distribution. Find the stationary distribution in the case of Question (4).
Finally, we consider the transition probability matrix 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 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 , holds.
(ii) The eigenvalue is a simple root (i.e., has the multiplicity of 1), and there exists a positive eigenvector that belongs to the eigenvalue . 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 .
(6) Show that , the transpose of , 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 following the equation , regardless of the initial probability distribution , converges to the stationary distribution when . You can assume that can be represented as a linear combination of eigenvectors, . Here, denotes the -th eigenvalue of while is its coefficient.
题目描述
有 (N) 个网页。用户在时刻 (t\ge0) 位于某页,时刻 (t+1) 等概率移动到该页链接的某个网页;若该页无外链,则留在原页。记位于第 (n) 页的概率为 (p_n^{(t)}),并令 [ \boldsymbol p^{(t)}=(p_1^{(t)},p_2^{(t)},\ldots,p_N^{(t)})^\mathsf T. ]
先考虑原文表 1 的 (N=3) 情形,图 1 给出状态转移图,边标号为转移概率;无外链时停留也视为自环转移。
- 给定 (\boldsymbol p^{(0)}=(1,0,0)^\mathsf T),求 (\boldsymbol p^{(1)},\boldsymbol p^{(2)})。
- 在相同初始分布下,用 (t) 表示 (p_1^{(t)},p_2^{(t)})。
- 求 (t\to\infty) 时的 (\boldsymbol p^{(t)})。
再引入“跳转”:每次从 (t) 到 (t+1) 以固定概率 (\alpha>0) 跳到 (N) 页中的任意一页(包括当前页),各页等概率;不跳转时仍按原链接等概率移动,无外链则停留。
- 对表 1 情形取 (\alpha=1/3),画新状态转移图,并求满足 [ \boldsymbol p^{(t+1)}=A\boldsymbol p^{(t)} ] 的转移矩阵 (A)。
- 若 (\boldsymbol p^{(t+1)}=\boldsymbol p^{(t)}=\boldsymbol p),称 (\boldsymbol p) 为平稳分布。求第 4 问的平稳分布。
最后考虑一般含跳转操作的转移矩阵 (R)。可使用正矩阵的 Perron–Frobenius 定理:正方阵所有元素均为正时,存在正特征值 (k),且
-
其他任意特征值 (\lambda) 均满足 (|\lambda|<k);
-
(k) 是单根,并有属于 (k) 的正特征向量;
-
其他特征值没有正特征向量。
-
证明 (R^\mathsf T) 有特征值 1,且 1 是绝对值最大的特征值。
-
证明平稳分布存在且唯一。可使用“一般方阵与其转置具有相同特征值集合”。
-
证明无论初始概率分布 (\boldsymbol p^{(0)}) 为何,按 [ \boldsymbol p^{(t+1)}=R\boldsymbol p^{(t)} ] 迭代时,(t\to\infty) 都收敛到平稳分布。可假定初始向量能写成 (R) 的特征向量线性组合 (\boldsymbol p^{(0)}=\sum_{i=1}^Nc_i\boldsymbol x_i)。
考点
- 网页随机游走的马尔可夫链:由链接结构建立列随机转移矩阵,计算有限步分布与平稳分布。
- 跳转机制:把均匀随机跳转与原链接转移混合,使转移矩阵严格为正并消除陷阱、周期问题。
- 矩阵幂极限与 Perron–Frobenius 定理:利用唯一主特征值 1 和其余特征值模小于 1,证明任意初始分布收敛。
Kai
(1)
(2)
Let denote the transition matrix. Then we have
and
(3)
The eigenvalues of are
and the corresponding eigenvectors are
Hence we have
(4)
When ,
- If jump,
- If not, Moves to any page with equal probability
(5)
Let . Then, by solving , i.e., the following equations
we have
(6)
Since is a transition probability matrix, we have
hence
which implies that is an eigenvalue of .
Therefore, by the Perron Frobenius theorem, is the unique positive real eigenvalue with the largest absolute value as is a positive matrix.
(7)
We prove it by contradiction.
Assume that there exists two different stationary distributions and . Then by (4) we have
i.e., and are both eigenvectors corresponding to the eigenvalue .
(the Perron Frobenius theorem) Since for positive matrices, is a simple root, which means that the eigenspace for is 1-dimensional. Hence
Note that and are both probability distributions, i.e., . Thus , which is contradictory to the assumption that and are different.
Therefore the stationary distribution is unique.
(8)
Expand the initial state in the eigenbasis of :
where is the eigenvector associated with the eigenvalue , and each corresponds to .
Apply the matrix for steps:
By the Perron–Frobenius theorem, for all we have . Hence , and therefore
Now left-multiply both sides by (the row vector of all ones, i.e., summing all components). Since total probability is conserved, for all . Thus,
Assuming is normalized so that its entries sum to , we have , which implies . Therefore,
i.e., the distribution converges to the unique stationary distribution.