# 依概率一致收敛

**依概率一致收敛**是一类函数或集合的性质：在该性质下，由随机样本计算出的经验平均会对该类中的每个成员同时且以相同速率收敛到其真实期望。形式化地说，若

\[
\sup_{g \in \mathcal{G}} |P_n g - P g| \; \xrightarrow{\mathbb{P}} \; 0,
\]

则称实值函数类 \(\mathcal{G}\) 为格里文科-坎泰利（Glivenko-Cantelli，GC）类，其中 \(P_n g = \frac{1}{n} \sum_{i=1}^{n} g(X_i)\) 是来自 \(P\) 的独立同分布抽样的经验平均，\(P g = E[g(X)]\) 是真实期望<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。这种收敛常常可以从依概率收敛（即对每个 \(\varepsilon > 0\)，\(\lim_{n \to \infty} \mathbb{P}(|T_n - T| > \varepsilon) = 0\)）加强为几乎必然收敛；后者蕴含依概率收敛<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。

| 关键事实 | 细节 |
|---|---|
| 定义 | 当 \(\sup_{g \in \mathcal{G}} \lvert P_n g - P g\rvert \to 0\) 依概率（或几乎必然）成立时，类 \(\mathcal{G}\) 是GC类<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup> |
| 经典情形 | 格里文科-坎泰利定理（1933）：对任意分布函数 \(F\)，\(\sup_x \lvert F_n(x) - F(x)\rvert \to 0\) 几乎必然<sup>[2](https://assets.cambridge.org/97805217/38415/excerpt/9780521738415_excerpt.pdf)</sup> |
| VC准则 | 瓦普尼克（Vapnik）与切尔沃年基斯（Chervonenkis）（1971）：\(\frac{1}{n} \log \Delta_{\mathcal{D}}(X_1, \ldots, X_n) \to^{\mathbb{P}} 0\) 当且仅当 \(\sup_{D \in \mathcal{D}} \lvert P_n(D) - P(D)\rvert \to^{\mathbb{P}} 0\)；VC类是GC类<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup> |
| 有限类样本界 | 若有 \(m \ge (\ln\lvert H\rvert + \ln(2/\delta))/(2\varepsilon^2)\) 个样本，则以至少 \(1-\delta\) 的概率，对所有 \(h \in H\) 有 \(\lvert \mathrm{err}_S(h) - \mathrm{err}_D(h)\rvert \le \varepsilon\)<sup>[3](https://www.cs.cmu.edu/afs/cs/user/avrim/www/598/chap6only.pdf)</sup> |
| 在学习中的作用 | 对于监督分类与回归，可学习性等价于经验风险到总体风险的一致收敛，且可学习问题都可由经验风险最小化学习<sup>[4](https://jmlr2020.csail.mit.edu/papers/v11/shalev-shwartz10a.html)</sup> |
| 该范式的局限 | 在瓦普尼克的一般学习设定中，存在非平凡的可学习问题，使一致收敛不成立且ERM失效；相反，稳定性才是可学习性的充要条件<sup>[4](https://jmlr2020.csail.mit.edu/papers/v11/shalev-shwartz10a.html)</sup> |

## 从逐点大数律到一致大数律

普通大数律已经给出逐点收敛：对每个固定 \(t\)，经验分布函数 \(\hat{F}_n(t) = \frac{1}{n} \#\{X_i \le t\}\) 几乎必然收敛到 \(F(t)\)，因为 \(\hat{F}_n(t)\) 是指示变量的样本均值<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。格里文科-坎泰利定理将其加强为关于整个函数的一次性陈述：\(\sup_x |\hat{F}_n(x) - F(x)| \to 0\) 几乎必然<sup>[2](https://assets.cambridge.org/97805217/38415/excerpt/9780521738415_excerpt.pdf)</sup>。上确界范数距离 \(\sup_x |F_n(x) - F(x)|\) 即柯尔莫哥洛夫-斯米尔诺夫（Kolmogorov-Smirnov）统计量；正是该定理为柯尔莫哥洛夫拟合优度检验、自助法以及基于经验分布函数的非参数估计量提供了依据<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup><sup> • </sup><sup>[5](https://www.theorempath.com/topics/glivenko-cantelli-theorem)</sup>。

[逐点收敛](https://www.edgepedia.org/zh/pointwise-convergence)不会自动变成一致收敛。分布函数可以逐点收敛而不一致收敛；经典定理是一个真正更强的一致大数律<sup>[2](https://assets.cambridge.org/97805217/38415/excerpt/9780521738415_excerpt.pdf)</sup>。并非每个类都是GC类：对于[0,1]上的均匀分布，[0,1]的所有博雷尔（Borel）子集构成的类不是格里文科-坎泰利类，而半区间类 \(\{(-\infty, t] : t \in \mathbb{R}\}\) 是<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。

## 组合准则：VC类

哪些类是GC类？瓦普尼克与切尔沃年基斯给出的答案基于组合性质。对集合类 \(\mathcal{D}\)，令 \(\Delta_{\mathcal{D}}(X_1, \ldots, X_n)\) 统计该类在样本上产生的不同标记模式数。他们1971年的定理指出：\(\frac{1}{n} \log \Delta_{\mathcal{D}}(X_1, \ldots, X_n) \to^{\mathbb{P}} 0\) 当且仅当 \(\sup_{D} |P_n(D) - P(D)| \to^{\mathbb{P}} 0\)<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。若一个类的增长函数满足 \(m_{\mathcal{D}}(n) \le c\, n^{V}\)，其中 \(c\) 和 \(V\) 为常数，即标记数仅随 \(n\) 多项式增长，则该类是VC类；VC类蕴含GC类<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。例子包括 \(\mathbb{R}\) 中的半区间，其 \(m_{\mathcal{D}}(n) \le n+1\)；以及 \(\mathbb{R}^d\) 中的半空间，其 \(m_{\mathcal{D}}(n) \le 2^d \binom{n}{d}\)<sup>[1](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)</sup>。

这种联系在无分布意义上是紧的：在所有概率分布上一致地成立一致收敛，等价于VC维有限；并且当 \(d_{VC}(\mathcal{F}) \le d\) 且 \(n \ge d\) 时，\(\sup_P E \|P - P_n\|_{\mathcal{F}} = O(\sqrt{d \log(n/d)/n})\)，且有匹配的下界<sup>[6](https://www.stat.berkeley.edu/~bartlett/talks/201905Simons.pdf)</sup>。

## 样本复杂度

[一致收敛](https://www.edgepedia.org/zh/uniform-convergence)陈述带有定量的样本界。对于有限假设类 \(H\)，霍夫丁（Hoeffding）不等式将每个假设的偏差超过 \(\varepsilon\) 的概率上界限定为 \(2e^{-2m\varepsilon^2}\)，再对 \(H\) 中所有假设取联合界可得：若样本量满足 \(m \ge (\ln|H| + \ln(2/\delta))/(2\varepsilon^2)\)，则以至少 \(1-\delta\) 的概率，对所有 \(h \in H\) 同时有 \(|\mathrm{err}_S(h) - \mathrm{err}_D(h)| \le \varepsilon\)<sup>[3](https://www.cs.cmu.edu/afs/cs/user/avrim/www/598/chap6only.pdf)</sup>。样本量按 \(1/\varepsilon\) 二次增长，与可实现PAC情形中的线性依赖形成对比<sup>[3](https://www.cs.cmu.edu/afs/cs/user/avrim/www/598/chap6only.pdf)</sup>。

对于具有有限VC维 \(V_H\) 的无限类，一个标准界给出 \(m(\varepsilon, \delta, V_H) = \frac{64}{\varepsilon^2}(2 V_H \ln(12/\varepsilon) + \ln(4/\delta))\) 个样本，即可保证以至少 \(1-\delta\) 的概率对所有 \(h \in H\) 有 \(\mathrm{err}(h) - \hat{\mathrm{err}}(h) \le \varepsilon\)<sup>[7](https://www.cs.cmu.edu/~ninamf/papers/a2.pdf)</sup>。除VC维之外，覆盖数、拉德马赫（Rademacher）复杂度与 fat-shattering 维数也被用作控制一致收敛的容量度量；[拉德马赫复杂度](https://www.edgepedia.org/zh/rademacher-complexity)与高斯（Gaussian）复杂度则提供数据相关的风险界，并应用于决策树、神经网络与支持向量机<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/B9780123965028000140)</sup><sup> • </sup><sup>[9](https://www.jmlr.org/papers/v3/bartlett02a.html)</sup>。

## 在统计学习理论中的作用

这一性质之所以重要，是因为学习算法要利用数据选择假设。对于单个固定假设，大数律足以估计其风险；但若算法要选择 \(f_n \in \mathcal{F}\) 来最小化经验风险，就需要偏差 \(|\hat{R}(f) - R(f)|\) 同时对 \(\mathcal{F}\) 中所有 \(f\) 都小<sup>[10](https://www.stat.berkeley.edu/~bartlett/courses/2014spring-cs281bstat241b/lectures/03-notes.pdf)</sup>。若一个样本具有 \(\varepsilon\)-代表性，即对类中所有 \(h\) 同时有 \(|L_S(h) - L_{\mathcal{D}}(h)| < \varepsilon\)，那么经验风险最小化器的真实风险与类中最佳者的真实风险相差约 \(2\varepsilon\)<sup>[11](https://link.springer.com/article/10.1007/s11023-024-09703-y)</sup>。

**为什么一致性可能失效。** 一个反例展示了逐点行为与一致行为之间的差距。取 \(\mathcal{F} = \mathcal{F}_+ \cup \mathcal{F}_-\)，其中 \(\mathcal{F}_+\) 包含有限集的指示函数，\(\mathcal{F}_-\) 包含余有限集的指示函数。在 \(\mathcal{X}\) 上的连续分布下，若 \(P(Y=1|X) = 0.9\)，则每个 \(f \in \mathcal{F}_-\) 的真实风险为0.1，每个 \(f \in \mathcal{F}_+\) 的真实风险为0.9；然而对任何样本，\(\mathcal{F}_+\) 中都存在经验风险为0的经验风险最小化器，因此ERM会选出一个真实风险为0.9的假设<sup>[10](https://www.stat.berkeley.edu/~bartlett/courses/2014spring-cs281bstat241b/lectures/03-notes.pdf)</sup>。

**等价性的适用范围。** 对于监督分类与回归，经典刻画成立：可学习性等价于经验风险到总体风险的一致收敛，且可学习问题可通过ERM学习<sup>[4](https://jmlr2020.csail.mit.edu/papers/v11/shalev-shwartz10a.html)</sup>。沙莱夫-施瓦茨（Shalev-Shwartz）、沙米尔（Shamir）、斯雷布罗（Srebro）与斯里达兰（Sridharan）指出，在瓦普尼克的更一般学习设定中（该设定涵盖大多数统计学习问题），这种等价性会失效：存在非平凡的可学习问题，其中一致收敛不成立且ERM失效；此时稳定性而非一致收敛，才是可学习性的充要条件<sup>[4](https://jmlr2020.csail.mit.edu/papers/v11/shalev-shwartz10a.html)</sup>。

## 扩展

UCEM（经验均值一致收敛）性质已在独立同分布抽样之外得到研究：对于混合过程，当对每个 \(\varepsilon > 0\) 都有 \(\bar{q}(m, \varepsilon, P) \to 0\)（\(m \to \infty\)）时，函数族 \(F\) 具有UCEMUP性质；经过适当修改的瓦普尼克-切尔沃年基斯条件在该设定下给出充要条件<sup>[12](https://www.sciencedirect.com/science/article/pii/S0167715202001244)</sup>。一致收敛界也已推广到多校准等现代目标：对于有限预测器类，样本复杂度随类的大小呈对数增长；对于无限类，则依赖于图维数——VC维的一种多类扩展<sup>[13](https://papers.nips.cc/paper/2020/file/9a96876e2f8f3dc4f3cf45f02c61c0c1-Paper.pdf)</sup>。

## References

1. [Empirical Process Theory (lecture notes), Sara van de Geer, ETH Zürich](https://www.stat.math.ethz.ch/~geer/empirical-process2020.pdf)
2. [Excerpt, *Empirical Processes* in High-Dimensional Probability, Cambridge University Press](https://assets.cambridge.org/97805217/38415/excerpt/9780521738415_excerpt.pdf)
3. [Introduction to Machine Learning, Chapter 6 (lecture text), Avrim Blum, CMU](https://www.cs.cmu.edu/afs/cs/user/avrim/www/598/chap6only.pdf)
4. [Shalev-Shwartz, Shamir, Srebro, Sridharan (2010). Learnability, Stability and Uniform Convergence. JMLR 11:2635-2670](https://jmlr2020.csail.mit.edu/papers/v11/shalev-shwartz10a.html)
5. [Glivenko-Cantelli Theorem: Uniform Convergence of the Empirical CDF, TheoremPath](https://www.theorempath.com/topics/glivenko-cantelli-theorem)
6. [Generalization in Deep Learning (talk slides), Peter Bartlett, UC Berkeley](https://www.stat.berkeley.edu/~bartlett/talks/201905Simons.pdf)
7. [Sample complexity appendix citing Vapnik and Chervonenkis (1971), CMU](https://www.cs.cmu.edu/~ninamf/papers/a2.pdf)
8. [Learning Theory, Academic Press Library in Signal Processing, Volume 1 (2014), Chapter 14](https://www.sciencedirect.com/science/article/abs/pii/B9780123965028000140)
9. [Bartlett, Mendelson (2002). Rademacher and Gaussian Complexities: Risk Bounds and Structural Results. JMLR 3:463-482](https://www.jmlr.org/papers/v3/bartlett02a.html)
10. [CS281B/Stat241B Statistical Learning Theory, Lecture 3, Peter Bartlett, UC Berkeley](https://www.stat.berkeley.edu/~bartlett/courses/2014spring-cs281bstat241b/lectures/03-notes.pdf)
11. [Statistical Learning Theory and Occam's Razor: The Core Argument, Minds and Machines (2024)](https://link.springer.com/article/10.1007/s11023-024-09703-y)
12. [Rates of uniform convergence of empirical means with mixing processes, Statistics & Probability Letters](https://www.sciencedirect.com/science/article/pii/S0167715202001244)
13. [Sample Complexity of Uniform Convergence, NeurIPS 2020](https://papers.nips.cc/paper/2020/file/9a96876e2f8f3dc4f3cf45f02c61c0c1-Paper.pdf)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Learning theory and generalization › Generalization bounds

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/uniform-convergence-in-probability

English original: https://www.edgepedia.org/uniform-convergence-in-probability
