# 几乎必然

**几乎必然**（缩写为 a.s.，也写作“以概率 1”或 w.p.1）是概率论中的一个短语，意为某一性质对随机试验的每个结果都成立，唯独可能对那些构成概率为零的集合的结果不成立。它是测度论概念“几乎处处”的概率测度版本：当底层的测度是概率测度时，人们说某一性质几乎必然成立，而不说几乎处处成立。<sup>[1](https://www.sciencedirect.com/topics/mathematics/null-set)</sup><sup> • </sup><sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/Probability%20Measures%20and%20the%20Mathematical%20Expectation.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 含义 | 若某一性质在零测集之外成立，即在一个概率为 0 的集合之外成立，则称该性质几乎必然成立；等价地说，该性质成立的事件具有概率 1。<sup>[1](https://www.sciencedirect.com/topics/mathematics/null-set)</sup> |
| 术语 | 在概率测度下，“几乎必然”（a.s.）、“几乎处处”（a.e.）与“以概率 1”（w.p.1）是同一条件；“几乎处处”是测度论中的一般术语。<sup>[1](https://www.sciencedirect.com/topics/mathematics/null-set)</sup><sup> • </sup><sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/Probability%20Measures%20and%20the%20Mathematical%20Expectation.pdf)</sup> |
| 收敛 | 序列 \( X_n \) 几乎必然收敛于 \( X \)，若 \( \mathbb{P}\{\omega : \lim_{n \to \infty} X_n(\omega) = X(\omega)\} = 1 \)，即收敛的样本路径所构成的集合具有概率 1。<sup>[3](https://web.stanford.edu/class/ee278b/lectures/lect05-2.pdf)</sup> |
| 蕴含关系 | 几乎必然收敛蕴含依概率收敛，但反之不成立。<sup>[4](https://stat.cmu.edu/~cshalizi/dst/20/lectures/13/lecture-13.html)</sup> |
| 主要应用 | 强大数定律断言样本均值几乎必然收敛于期望值；弱大数定律只断言依概率收敛。<sup>[5](https://probability4datascience.com/eBook/ch06-3.html)</sup><sup> • </sup><sup>[6](https://jse.amstat.org/v17n1/dinov.html)</sup> |
| 标准工具 | 博雷尔-坎泰利引理给出了事件以概率 1 仅发生有限次的条​​件，是证明几乎必然收敛的常用技术。<sup>[7](https://cni.iisc.ac.in/courses/random/Probability%20Foundations/lecture-14.html)</sup><sup> • </sup><sup>[8](https://citeseerx.ist.psu.edu/document?doi=4d7e8097f4a72512b4e1e72b0191fee624d8dfb7&repid=rep1&type=pdf)</sup> |

## 定义与直观理解

概率空间 \( (\Omega, \mathcal{F}, \mathbb{P}) \) 由样本空间 \( \Omega \)、可测事件族 \( \mathcal{F} \) 和概率测度 \( \mathbb{P} \) 组成。满足 \( \mathbb{P}(N) = 0 \) 的集合 \( N \in \mathcal{F} \) 称为零测集。若某事件或性质具有概率 1，等价地，若其补集包含于某个零测集之中，则称该事件或性质几乎必然发生；当需要强调测度时，也称 \( \mathbb{P} \)-几乎必然。<sup>[9](https://keesvs.net/UoM/teaching/martingales/notes/Chapter2.html)</sup><sup> • </sup><sup>[1](https://www.sciencedirect.com/topics/mathematics/null-set)</sup>

“几乎”一词承载着精确的内容。一个几乎必然的陈述可以在个别结果上不成立，只要不成立的结果所构成的集合概率为零。在一般测度论框架中，同一条件写作“几乎处处”（a.e.）；概率论将其改称为“几乎必然”，以明确所讨论的测度是概率测度。<sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/Probability%20Measures%20and%20the%20Mathematical%20Expectation.pdf)</sup><sup> • </sup><sup>[10](https://ericwb.me/prob_book/mt/intro/probability_spaces.html)</sup> 在有限样本空间上，若概率测度对每个结果都赋予正权重，则概率 1 只属于整个空间，因此在那里“几乎必然”与“必然”重合；这一区分在无限样本空间上才有意义。<sup>[9](https://keesvs.net/UoM/teaching/martingales/notes/Chapter2.html)</sup>

## 几乎必然收敛

该短语最常见的用法是在几乎必然收敛的定义中。随机变量序列 \( X_1, X_2, \ldots \) 以概率 1 收敛于随机变量 \( X \)，若

\[ \mathbb{P}\{\omega : \lim_{n \to \infty} X_n(\omega) = X(\omega)\} = 1. \]

对每个结果 \( \omega \)，值 \( X_1(\omega), X_2(\omega), \ldots \) 构成一个普通的数列，而定义要求该数列对所有不在零测集中的 \( \omega \) 都收敛于 \( X(\omega) \)。等价地，对每个 \( \epsilon > 0 \)，

\[ \lim_{m \to \infty} \mathbb{P}\{|X_n - X| < \epsilon \text{ 对所有 } n \geq m\} = 1. \]<sup>[3](https://web.stanford.edu/class/ee278b/lectures/lect05-2.pdf)</sup>

记号上将“a.s.”置于收敛箭头之上，如 \( X_n \xrightarrow{\text{a.s.}} X \)。<sup>[11](https://web.stanford.edu/~hammond/Probab20B.pdf)</sup>

**与其他收敛模式的关系。** 几乎必然收敛蕴含依概率收敛，即对每个 \( \epsilon > 0 \)，概率 \( \mathbb{P}\{|X_n - X| \geq \epsilon\} \) 趋于 0，但反之一般不成立。<sup>[4](https://stat.cmu.edu/~cshalizi/dst/20/lectures/13/lecture-13.html)</sup> 依概率收敛确实蕴含沿某个子列的几乎必然收敛。<sup>[12](https://icourse.club/uploads/files/d58ca741aed862de5eb6343b4d12b1739cf8761c.pdf)</sup> 几乎必然收敛与 \( L^p \) 收敛（即 \( p \) 阶矩收敛）一般也不相容：在没有可积性等额外条件时，两者互不蕴含。<sup>[13](https://onlinelibrary.wiley.com/doi/10.1002/9781118593103.ch11)</sup> 各收敛模式之间的差距并非仅仅是病态例子造成的。大卫·吉拉特（David Gilat）在 1972 年发表于《数理统计年刊》的论文中，构造了依概率收敛但不几乎必然收敛的马尔可夫鞅，以及依分布收敛但不依概率收敛的反例，从而对米歇尔·洛埃夫（Michel Loève）1964 年提出的一个问题给出了否定回答。<sup>[14](https://cris.tau.ac.il/en/publications/convergence-in-distribution-convergence-in-probability-and-almost/)</sup>

这一区分有其实践解读。依概率收敛说的是，在每个固定的大 \( n \) 处，\( X_n \) 很可能接近 \( X \)；而几乎必然收敛说的是，对于整个无穷序列的几乎所有实现，\( X_n(\omega) \) 最终会稳定在 \( X(\omega) \) 上并不再偏离。<sup>[15](https://physics2u.com/maths/vault/kolmogorov-strong-law.html)</sup>

## 博雷尔-坎泰利引理

几乎必然的陈述通常通过控制例外事件发生的频率来证明。博雷尔-坎泰利引理指出，若 \( A_1, A_2, \ldots \) 是一列事件，满足

\[ \sum_{n \in \mathbb{N}} \mathbb{P}(A_n) < \infty, \]

则 \( \mathbb{P}\{A_n \text{ 无穷多次发生}\} = 0 \)；也就是说，以概率 1 只有有限多个事件发生。<sup>[7](https://cni.iisc.ac.in/courses/random/Probability%20Foundations/lecture-14.html)</sup> 当事件相互独立时，逆命题也成立：若 \( \sum_n \mathbb{P}(A_n) = \infty \)，则事件以概率 1 无穷多次发生，这一结果称为博雷尔零一律。<sup>[7](https://cni.iisc.ac.in/courses/random/Probability%20Foundations/lecture-14.html)</sup> 将引理应用于事件 \( A_n = \{|X_n - X| > \epsilon\} \)，可知只要这些尾项和对每个 \( \epsilon \) 都收敛，就有 \( X_n \to X \) 几乎必然。<sup>[7](https://cni.iisc.ac.in/courses/random/Probability%20Foundations/lecture-14.html)</sup><sup> • </sup><sup>[8](https://citeseerx.ist.psu.edu/document?doi=4d7e8097f4a72512b4e1e72b0191fee624d8dfb7&repid=rep1&type=pdf)</sup> 该引理也可以反向用作诊断工具：对于独立伯努利随机变量 \( X_n \)，若 \( \mathbb{P}(X_n = 1) = 1/n \)，则概率之和发散，可以证明该序列并不几乎必然收敛于 0，尽管 \( X_n \to 0 \) 依概率成立。<sup>[16](https://www.probabilitycourse.com/chapter7/7_2_7_almost_sure_convergence.php)</sup>

## 强大数定律

几乎必然陈述的核心例子是强大数定律。若 \( X_1, X_2, \ldots \) 是均值为 \( \mu \) 的随机变量，且满足适当条件，则样本均值 \( S_n / n \) 几乎必然收敛于 \( \mu \)。相比之下，弱大数定律只断言 \( S_n/n \) 依概率收敛于 \( \mu \)，即在每个固定的大样本量处均值很可能接近 \( \mu \)；强大数定律更强，因为它对整个已实现的序列作出陈述。<sup>[5](https://probability4datascience.com/eBook/ch06-3.html)</sup><sup> • </sup><sup>[6](https://jse.amstat.org/v17n1/dinov.html)</sup><sup> • </sup><sup>[15](https://physics2u.com/maths/vault/kolmogorov-strong-law.html)</sup>

这两个定律的历史脉络清晰可辨。雅各布·伯努利（Jakob Bernoulli）在其 1713 年出版的《推测术》中陈述了弱大数定律的早期形式，西梅翁-德尼·泊松（Siméon-Denis Poisson）推广了这一结果并赋予其现代名称“大数定律”（la loi de grands nombres）。<sup>[17](https://arxiv.org/abs/0807.4665)</sup> 安德烈·柯尔莫哥洛夫（Andrey Kolmogorov）在 20 世纪 30 年代建立了强大数定律的一般形式，改进了伯努利、切比雪夫（Chebyshev）和辛钦（Khinchin）的较弱结果，以及坎泰利（Cantelli）和博雷尔（Borel）此前证明的强大数定律的特殊情形——博雷尔曾确立正规数的情形。<sup>[15](https://physics2u.com/maths/vault/kolmogorov-strong-law.html)</sup> 该定理是真正测度论的：其证明需要极大不等式、零一律和可和性引理，而非特征函数或初等切比雪夫界，且收敛集 \( \{\omega : \lim_n S_n(\omega)/n = \mu\} \) 是可测的，因为它可以由 \( S_n \) 通过可数运算构造出来。<sup>[15](https://physics2u.com/maths/vault/kolmogorov-strong-law.html)</sup> 强大数定律还超越了独立变量的范围：它对强混合过程类成立，应用包括自适应马尔可夫链蒙特卡洛算法，并通过伯克霍夫（Birkhoff）遍历定理对平稳遍历过程成立。<sup>[17](https://arxiv.org/abs/0807.4665)</sup>

## 在统计学中的作用

在估计理论中，收敛模式决定了相合性的强度。量 \( \psi \) 的估计量 \( \hat{\psi}_n \) 若依概率收敛于 \( \psi \)，则称为相合的；若 \( \mathbb{P}\{\hat{\psi}_n \to \psi\} = 1 \)，即收敛是几乎必然的，则称为强相合的。<sup>[4](https://stat.cmu.edu/~cshalizi/dst/20/lectures/13/lecture-13.html)</sup> 由于几乎必然收敛蕴含依概率收敛，在同一模型下强相合蕴含弱相合。<sup>[18](https://watanabe.you/wiki/Consistent%20Estimator)</sup> 由大数定律，样本均值是真均值的相合估计量，而它究竟是弱相合还是强相合，取决于所建立的是依概率收敛还是几乎必然收敛。<sup>[19](https://apothesis.eap.gr/archive/download/07178383-faaf-4288-b2aa-d3b608a2461b.pdf)</sup> 格利文科-坎泰利定理指出经验分布函数几乎必然一致收敛于理论分布函数，是这种更强收敛模式的早期例子，它将大数定律推广到一致收敛的情形。<sup>[20](https://arxiv.org/abs/2110.13236)</sup><sup> • </sup><sup>[21](https://www.cambridge.org/core/books/abs/asymptotic-statistics/empirical-processes/66D3AFAD985A0E7F4EF5EC377FF1F409)</sup>

## 相关应用

几乎必然收敛也贯穿于鞅论之中。鞅收敛定理建立了适当有界的鞅和上鞅的几乎必然收敛性；一个具有平稳转移概率的离散实值马尔可夫链，若它同时是鞅，则当它依分布收敛时也几乎必然收敛，前提是极限测度具有均值。<sup>[14](https://cris.tau.ac.il/en/publications/convergence-in-distribution-convergence-in-probability-and-almost/)</sup><sup> • </sup><sup>[22](https://www.tandfonline.com/doi/full/10.1080/27684520.2023.2261429)</sup> 同样存在几乎必然中心极限定理，其中在鞅的递增过程满足正则条件下，归一化矩沿几乎每条样本路径收敛。<sup>[23](https://arxiv.org/abs/0812.3528)</sup>

## References

1. [Null Set, ScienceDirect Topics](https://www.sciencedirect.com/topics/mathematics/null-set)
2. [1.4 Almost sure properties, University of Melbourne lecture notes](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/Probability%20Measures%20and%20the%20Mathematical%20Expectation.pdf)
3. [Lecture Notes 5: Convergence With Probability 1, Stanford EE278b](https://web.stanford.edu/class/ee278b/lectures/lect05-2.pdf)
4. [Inference I — Inference with Independent Data, Cosma Shalizi, Carnegie Mellon University](https://stat.cmu.edu/~cshalizi/dst/20/lectures/13/lecture-13.html)
5. [6.3 Law of Large Numbers, Introduction to Probability for Data Science](https://probability4datascience.com/eBook/ch06-3.html)
6. [Dinov, Christou, and Gould, Journal of Statistics Education 17(1)](https://jse.amstat.org/v17n1/dinov.html)
7. [Almost sure convergence, Probability and Random Processes, IISc lecture notes](https://cni.iisc.ac.in/courses/random/Probability%20Foundations/lecture-14.html)
8. [Lecture Notes on Probability Theory, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=4d7e8097f4a72512b4e1e72b0191fee624d8dfb7&repid=rep1&type=pdf)
9. [Probability spaces, random variables and modes of convergence, MATH4/67201 Martingale Theory notes](https://keesvs.net/UoM/teaching/martingales/notes/Chapter2.html)
10. [Measures, Measure Theoretic Probability Theory](https://ericwb.me/prob_book/mt/intro/probability_spaces.html)
11. [Lecture Notes 9: Probability, Part B: Probability as Measure, Peter J. Hammond](https://web.stanford.edu/~hammond/Probab20B.pdf)
12. [Introduction to Probability Theory, lecture notes](https://icourse.club/uploads/files/d58ca741aed862de5eb6343b4d12b1739cf8761c.pdf)
13. [Convergence Types. Almost Sure Convergence. Lp-Convergence. Convergence in Probability, Handbook of Probability, Wiley](https://onlinelibrary.wiley.com/doi/10.1002/9781118593103.ch11)
14. [Gilat, D. (1972). Convergence in Distribution, Convergence in Probability and Almost Sure Convergence of Discrete Martingales, The Annals of Mathematical Statistics 43(4)](https://cris.tau.ac.il/en/publications/convergence-in-distribution-convergence-in-probability-and-almost/)
15. [The strong law of large numbers, maths2u](https://physics2u.com/maths/vault/kolmogorov-strong-law.html)
16. [Almost Sure Convergence, ProbabilityCourse.com](https://www.probabilitycourse.com/chapter7/7_2_7_almost_sure_convergence.php)
17. [A Strong Law of Large Numbers for Strongly Mixing Processes, arXiv:0807.4665](https://arxiv.org/abs/0807.4665)
18. [Consistent Estimator](https://watanabe.you/wiki/Consistent%20Estimator)
19. [Convergence of random sequences with emphasis on the law of large numbers, the central limit theorem and their applications in statistics, Hellenic Open University](https://apothesis.eap.gr/archive/download/07178383-faaf-4288-b2aa-d3b608a2461b.pdf)
20. [A Constructive Proof of the Glivenko–Cantelli Theorem, arXiv:2110.13236](https://arxiv.org/abs/2110.13236)
21. [Empirical Processes, Asymptotic Statistics, Cambridge University Press](https://www.cambridge.org/core/books/abs/asymptotic-statistics/empirical-processes/66D3AFAD985A0E7F4EF5EC377FF1F409)
22. [A proof and an application of the continuous parameter martingale convergence theorem](https://www.tandfonline.com/doi/full/10.1080/27684520.2023.2261429)
23. [On the Almost Sure Central Limit Theorem for Vector Martingales, arXiv:0812.3528](https://arxiv.org/abs/0812.3528)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Random variables › Convergence of random variables › Almost sure convergence

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/almost-surely

English original: https://www.edgepedia.org/almost-surely
