# 随机矩阵

随机矩阵（stochastic matrix）是一个由非负实数构成的方阵，其中每一行或每一列的元素之和为 1，因而每一行或每一列都是一个概率分布。这种矩阵记录有限马尔可夫链的转移概率，也称为马尔可夫矩阵或转移概率矩阵。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup><sup> • </sup><sup>[2](https://www.cl.cam.ac.uk/teaching/1213/PrincComm/mfcn.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 一个（可能无限的）非负元素方阵，其各行或各列之和为 1；右随机矩阵的行和为 1，左随机矩阵的列和为 1<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup><sup> • </sup><sup>[3](https://www.cs.purdue.edu/homes/dgleich/nmcomp/lectures/lecture-8.html)</sup> |
| 马尔可夫解释 | 元素 \( p_{ij} \) 是在当前状态为 \( i \) 时下一步转移到状态 \( j \) 的概率；每个随机矩阵都是某个马尔可夫链的转移矩阵<sup>[2](https://www.cl.cam.ac.uk/teaching/1213/PrincComm/mfcn.pdf)</sup><sup> • </sup><sup>[4](https://math.nyu.edu/~goodman/teaching/StochCalc2004/notes/l1.pdf)</sup> |
| 谱性质 | 特征值的绝对值不超过 1，且 1 总是特征值；对于不可分解矩阵，1 是单特征值<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup> |
| 收敛性 | 对于有限阶不可分解非周期随机矩阵，\( \lim_{n \to \infty} P^{n} = \Pi \)，其中 \( \Pi \) 的每一行都等于平稳向量 \( \pi \)<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup> |
| 双随机情形 | 行和与列和都为 1 的矩阵；由伯克霍夫–冯·诺伊曼定理，每个双随机矩阵都是置换矩阵的凸组合<sup>[5](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6597078)</sup> |
| 历史 | 马尔可夫于 1908 年引入其链，并在随机矩阵这一较简单的框架内预见了若干关键结果；弗罗贝尼乌斯 1912 年的论文建立了后来应用于马尔可夫理论的线性代数基础<sup>[6](https://doi.org/10.1007/s00407-008-0026-x)</sup> |

## 定义的变体

术语随状态向量乘法所采用的约定而不同。**右随机矩阵**是非负元素矩阵，且每一行之和为 1；**左随机矩阵**的每一列之和为 1。许多教材在行约定下直接说“随机矩阵”，而作用于列向量的线性代数教材常采用列约定。<sup>[2](https://www.cl.cam.ac.uk/teaching/1213/PrincComm/mfcn.pdf)</sup><sup> • </sup><sup>[7](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)</sup> 同时为行随机和列随机的矩阵称为**双随机矩阵**。<sup>[8](https://www.cambridge.org/core/books/abs/nonnegative-matrices-and-applications/doubly-stochastic-matrices/AFF0D1D36F40033168BB5053C6C92C9B)</sup>

有两种细化对长期理论很重要。若一个矩阵的每个元素都严格大于零，则称它为**正矩阵**；若它的某个幂为正矩阵，则称它为**正则矩阵**；佩龙–弗罗贝尼乌斯定理适用于这两类矩阵。<sup>[7](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)</sup> **亚随机矩阵**是行和至多为 1 的非负方阵；从随机矩阵中删去由一组状态索引的行和列，便得到一个亚随机矩阵，其结果编码了关于首达时间的信息。<sup>[9](https://www.stat.uchicago.edu/~lalley/Courses/312/MarkovChains.pdf)</sup>

\( n \) 阶随机矩阵的全体具有简单的几何结构：它是 \( n^{n} \) 个元素仅为 0 和 1 的随机矩阵的凸包。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup>

## 马尔可夫链

每个随机矩阵 \( P \) 都定义一个随机过程：在每一个离散时间步，该过程占据这些状态之一；若它当前处于状态 \( i \)，则下一步转移到状态 \( j \) 的概率为 \( p_{ij} \)；这就是一个马尔可夫链。<sup>[10](https://faculty.uml.edu/jpropp/584/Lec03.pdf)</sup> 若初始分布为概率向量 \( \nu \)，则 \( n \) 步后的分布为 \( \nu^{T} P^{n} \)（行向量约定），而 \( n \) 步转移概率是 \( P^{n} \) 的元素，并满足查普曼–科尔莫戈罗夫方程 \( p^{n+m}(i,j) = \sum_{k} p^{n}(i,k)\, p^{m}(k,j) \)。<sup>[9](https://www.stat.uchicago.edu/~lalley/Courses/312/MarkovChains.pdf)</sup>

链的结构可从矩阵读出。当 \( p_{ii} = 1 \) 且对 \( i \neq j \) 有 \( p_{ij} = 0 \) 时，状态为**吸收态**，因此过程永远无法离开它。状态被分类为瞬态、常返、周期或非周期，这些类别对应于有向图的强连通分量，该有向图的边是非零转移概率。<sup>[3](https://www.cs.purdue.edu/homes/dgleich/nmcomp/lectures/lecture-8.html)</sup> 转移矩阵不可分解的链只有一个正状态类。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup>

## 特征值与稳态

随机矩阵的谱性质受到严格约束。所有特征值的绝对值至多为 1，且 1 总是特征值，因为在行约定下全 1 向量是右特征向量。当矩阵不可分解时，特征值 1 的重数为 1；一般而言，它的重数等于相应链的正状态类数。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup>

**稳态**是矩阵对应于特征值 1 的归一化非负左特征向量，或等价地，是其转置的右特征向量；只有在附加假设下其元素才为正，且元素之和为 1。<sup>[17](https://mmids-textbook.github.io/chap07_rwmc/03_stat/roch-mmids-rwmc-stat.html)</sup> 佩龙–弗罗贝尼乌斯定理指出，对于正随机矩阵，该向量唯一，张成特征值 1 的特征空间，并吸引每个初始分布：将迭代 \( P^{n} \) 作用于任何元素和固定为某总数的向量，都会收敛到稳态的某个倍数。<sup>[7](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)</sup> 在同一情形下，\( \lim_{n \to \infty} P^{n} = \Pi \)，其中 \( \Pi \) 的每一行都等于平稳向量 \( \pi \)。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup> 对于无限随机矩阵，平稳方程可能没有非零非负可和解，此时 \( \Pi \) 为零矩阵。<sup>[1](https://encyclopediaofmath.org/wiki/Stochastic_matrix)</sup>

由此得到两种计算方案。手工计算时，先将 P 替换为其转置，然后解 \( (P - I)x = 0 \)，求对应于特征值 1 的非零非负特征向量，并除以其元素之和。用计算机时，只需从任意初始概率向量开始反复相乘，因为迭代会收敛到稳态。<sup>[7](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)</sup> 这种收敛有多快由**混合时间**衡量：对于平稳分布为 \( \pi \) 的行随机矩阵，\( t \) 步后的最坏情形全变差距离为 \( d(t) = \max_{i} \tfrac{1}{2} \sum_{j} \lvert P^{t}_{ij} - \pi_{j} \rvert \)，而混合时间是第一个满足 \( d(t) \le \varepsilon \) 的 \( t \)。对于周期链，\( P^{t}(i, \cdot) \) 根本不收敛到 \( \pi \)，因此混合时间无定义。<sup>[11](https://spedygiorgio.github.io/markovchain/reference/mixingTime.html)</sup>

## 双随机矩阵

双随机矩阵是非负元素矩阵，每一行和每一列之和都为 1。<sup>[8](https://www.cambridge.org/core/books/abs/nonnegative-matrices-and-applications/doubly-stochastic-matrices/AFF0D1D36F40033168BB5053C6C92C9B)</sup> 这类矩阵兼具随机矩阵的谱行为和自身的组合结构。核心结果是**伯克霍夫–冯·诺伊曼定理**：\( n \times n \) 双随机矩阵的全体构成一个凸多面体，其顶点是置换矩阵，因此每个双随机矩阵都是置换矩阵的凸组合。<sup>[5](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6597078)</sup><sup> • </sup><sup>[12](https://www.sciencedirect.com/topics/mathematics/doubly-stochastic-matrix)</sup>

应用不限于马尔可夫链。威斯康星大学麦迪逊分校的数学家理查德·A·布鲁阿尔迪（Richard A. Brualdi）研究了卫星交换时分多址通信系统中的双随机矩阵，并引入图的双随机自同构这一概念，证明了一些以伯克霍夫定理为特例的定理。<sup>[13](https://www.sciencedirect.com/science/article/pii/002437958890239X)</sup> 双随机矩阵也出现在量子信道的研究中；在那里，优序化和伯克霍夫定理被用来判定一个量子信道是否会产生这样的矩阵。<sup>[14](https://doi.org/10.2478/jamsi-2021-0005)</sup>

## 历史

该理论源于对非负矩阵的研究。奥斯卡·佩龙（Oskar Perron）在其 1907 年关于连分数的著作中证明了一个关于正矩阵的定理，而柏林代数学家费迪南德·格奥尔格·弗罗贝尼乌斯（Ferdinand Georg Frobenius）在 1912 年的一篇论文中将其推广到非负矩阵，形成了如今所谓的佩龙–弗罗贝尼乌斯定理。安德烈·马尔可夫（Andrey Markov）于 1908 年引入其链，在随机矩阵这一较简单的框架内预见了该理论的若干关键概念；马尔可夫理论针对一般随机矩阵的线性代数基础，后来通过弗罗贝尼乌斯的工作以及理查德·冯·米泽斯（Richard von Mises）和 V.I. 罗曼诺夫斯基（V.I. Romanovsky）对其的应用而建立。<sup>[6](https://doi.org/10.1007/s00407-008-0026-x)</sup> 历史学家托马斯·霍金斯（Thomas Hawkins）在《精确科学史档案》上发表过一项关于佩龙–弗罗贝尼乌斯定理起源的研究；他指出，非负矩阵理论最初由纯数学关切所驱动，后来在概率论、数值分析、经济学、动态规划和人口学中得到应用。<sup>[6](https://doi.org/10.1007/s00407-008-0026-x)</sup>

## 应用

只要一个系统以固定概率在有限多个状态之间转移，随机矩阵就会出现。在计算机网络中，矩阵的每一行对应于表示网络协议或路由器缓冲区的有限状态机的状态，其中 \( a_{ij} \) 是从状态 \( i \) 进入状态 \( j \) 的概率；这些矩阵也出现在排队论中。<sup>[2](https://www.cl.cam.ac.uk/teaching/1213/PrincComm/mfcn.pdf)</sup> 图上的随机游走给出更多例子：均匀随机游走在离开当前顶点的边中均匀选择下一个顶点，所得的转移矩阵是随机矩阵。<sup>[3](https://www.cs.purdue.edu/homes/dgleich/nmcomp/lectures/lecture-8.html)</sup>

最著名的现代应用是网络搜索。拉里·佩奇（Larry Page）和谢尔盖·布林（Sergey Brin）的 PageRank 算法通过一个随机点击链接的“随机冲浪者”的平稳分布来给网页排序；谷歌矩阵的构造方式是：将链接矩阵变换为随机矩阵，并与一个秩一矩阵取凸组合，阻尼因子接近 1，而 PageRank 向量是主特征向量。<sup>[15](https://citeseerx.ist.psu.edu/document?doi=10b02d306e65af53394bfdb9b2f359898ca90473&repid=rep1&type=pdf)</sup><sup> • </sup><sup>[7](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)</sup>

大型工程系统也以同样方式分析。美国国家标准与技术研究院（National Institute of Standards and Technology）的研究人员用分段齐次离散时间马尔可夫链对大规模网格计算系统建模，将系统状态表示为各状态中任务比例的向量，并扰动转移概率矩阵以生成性能下降的情景，其计算成本远低于详细仿真。<sup>[16](https://www.nist.gov/publications/markov-chain-analysis-large-scale-grid-systems)</sup>

## References

1. [Stochastic matrix, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Stochastic_matrix)
2. [Stochastic matrices, Principles of Communication course notes, University of Cambridge Computer Laboratory](https://www.cl.cam.ac.uk/teaching/1213/PrincComm/mfcn.pdf)
3. [Networks and Matrix Computations, Lecture 8, David F. Gleich, Purdue University](https://www.cs.purdue.edu/homes/dgleich/nmcomp/lectures/lecture-8.html)
4. [Stochastic Calculus Notes, Lecture 1, New York University](https://math.nyu.edu/~goodman/teaching/StochCalc2004/notes/l1.pdf)
5. [Ten Proofs of the Birkhoff–von Neumann Theorem, Pasin Marupanthorn, SSRN](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6597078)
6. [Thomas Hawkins, "Continued fractions and the origins of the Perron–Frobenius theorem," Archive for History of Exact Sciences 62 (2008), 655–717](https://doi.org/10.1007/s00407-008-0026-x)
7. [Stochastic Matrices and the Steady State, Interactive Linear Algebra, Georgia Institute of Technology](https://textbooks.math.gatech.edu/ila/stochastic-matrices.html)
8. [R. B. Bapat and T. E. S. Raghavan, "Doubly stochastic matrices," in Nonnegative Matrices and Applications, Cambridge University Press](https://www.cambridge.org/core/books/abs/nonnegative-matrices-and-applications/doubly-stochastic-matrices/AFF0D1D36F40033168BB5053C6C92C9B)
9. [Markov Chains: Basic Theory, Stephen Lalley, University of Chicago](https://www.stat.uchicago.edu/~lalley/Courses/312/MarkovChains.pdf)
10. [Markov chains lecture notes, Jonathan Propp, University of Massachusetts Lowell](https://faculty.uml.edu/jpropp/584/Lec03.pdf)
11. [Mixing time of a Markov chain, markovchain R package documentation](https://spedygiorgio.github.io/markovchain/reference/mixingTime.html)
12. [Doubly Stochastic Matrix, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/doubly-stochastic-matrix)
13. [Richard A. Brualdi, "Some applications of doubly stochastic matrices," Linear Algebra and its Applications 107 (1988), 77–100](https://www.sciencedirect.com/science/article/pii/002437958890239X)
14. [Doubly stochastic matrices and the quantum channels, Journal of Applied Mathematics and Statistical Inference (2021)](https://doi.org/10.2478/jamsi-2021-0005)
15. [PageRank computation via the Google matrix, CiteSeerX document](https://citeseerx.ist.psu.edu/document?doi=10b02d306e65af53394bfdb9b2f359898ca90473&repid=rep1&type=pdf)
16. [Christopher E. Dabrowski and Fern Y. Hunt, "Markov Chain Analysis for Large-Scale Grid Systems," NISTIR 7566 (2009)](https://www.nist.gov/publications/markov-chain-analysis-large-scale-grid-systems)
17. [7.3. Limit behavior 1: stationary distributions, MMiDS Textbook](https://mmids-textbook.github.io/chap07_rwmc/03_stat/roch-mmids-rwmc-stat.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Stochastic processes › Markov chains and processes › Discrete-time Markov chains › Discrete-time Markov chains: fundamentals and examples

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/stochastic-matrix

English original: https://www.edgepedia.org/stochastic-matrix
