# 统计距离

统计距离是一种度量两个概率分布之间、或一个分布与一个模型之间差异程度的量。有些统计距离是数学意义上的度量，满足对称性和三角不等式；另一些则不然，例如Kullback–Leibler散度是有方向的，不满足对称性和三角不等式。这些量为最小距离估计、假设检验、模型选择以及模型拟合评估提供了基础。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)</sup>

| 关键事实 | 详情 |
|---|---|
| 全变差距离 | \( d_{\mathrm{TV}}(P,Q) = \sup_{A} \lvert P(A) - Q(A) \rvert \)；当存在密度时，\( d_{\mathrm{TV}}(P,Q) = \tfrac{1}{2} \int \lvert p(x) - q(x) \rvert \, dx \)<sup>[2](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)</sup> |
| Hellinger距离 | \( d_{\mathrm{H}}(p,q) = \sqrt{\tfrac{1}{2} \int (\sqrt{p(x)} - \sqrt{q(x)})^2 \, dx} \)；在所选归一化下，\( d_{\mathrm{TV}} \) 和 \( d_{\mathrm{H}} \) 均落在 \([0,1]\) 内<sup>[3](https://ethz.ch/content/dam/ethz/special-interest/math/mathematical-research/fim-dam/Lectures/Minicourses/2012/Numerik%20-%20SAM/Stuart_1302.6989v2.pdf)</sup> |
| Wasserstein距离 | 对 \( p \ge 1 \)，在所有以 \( X \sim P \)、\( Y \sim Q \) 为边缘的联合分布上取 \( (E[d(X,Y)^p])^{1/p} \) 的下确界；它纳入了底层区域的几何结构<sup>[2](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)</sup><sup> • </sup><sup>[4](https://arxiv.org/abs/1806.05500)</sup> |
| Kullback–Leibler散度 | \( D_{\mathrm{KL}}(P \Vert Q) = \int p \log(p/q) \, d\lambda \)；不对称，不是度量，但通过 \( D_{\mathrm{KL}}(P \Vert Q) \ge 2 \, d_{\mathrm{H}}^2(P,Q) \) 控制Hellinger距离<sup>[5](https://drwong.cc/nlp-course/ch07.html)</sup> |
| 与弱收敛的关系 | 全变差距离、Wasserstein距离和Kolmogorov–Smirnov距离强于弱收敛；弱收敛本身可由Lévy–Prokhorov度量来度量<sup>[6](https://www.mdpi.com/2813-2203/2/1/12)</sup> |
| 主要用途 | 最小距离估计、假设检验、模型选择和模型评估，包括在超大样本上用二次距离进行拟合优度检验<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)</sup> |

## 主要距离

**全变差。** 概率 \( P \) 与 \( Q \) 之间的全变差距离，是两个分布赋予任一事件的概率之绝对差的最大值：\( d_{\mathrm{TV}}(P,Q) = \sup_{A \in \mathcal{B}} \lvert P(A) - Q(A) \rvert \)。当分布具有密度 \( p \) 和 \( q \) 时，该值等于密度之间 \( L^1 \) 距离的一半，即 \( \tfrac{1}{2} \int \lvert p(x) - q(x) \rvert \, dx \)。其解释很直接：该值界定了在任意感兴趣区域上概率之差的上界。<sup>[2](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)</sup><sup> • </sup><sup>[7](https://faculty.washington.edu/yenchic/short_note/Metrics.html)</sup>

**Hellinger。** 密度 \( p \) 与 \( q \) 之间的Hellinger距离为 \( d_{\mathrm{H}}(p,q) = \sqrt{\tfrac{1}{2} \int (\sqrt{p(x)} - \sqrt{q(x)})^2 \, dx} \)。此定义中以及全变差中的因子 \( 1/2 \) 的选取，是为了使这两个量对概率测度都落在0与1之间。这两种距离生成相同的拓扑，且各自为对方提供界。<sup>[3](https://ethz.ch/content/dam/ethz/special-interest/math/mathematical-research/fim-dam/Lectures/Minicourses/2012/Numerik%20-%20SAM/Stuart_1302.6989v2.pdf)</sup>

**Wasserstein。** 对 \( p \ge 1 \)，第 \( p \) 阶Wasserstein度量为 \( d_{W,p}(P,Q) = \inf (E[d(X,Y)^p])^{1/p} \)，其中下确界取遍所有以 \( P \) 和 \( Q \) 为边缘分布的随机变量 \( X \) 与 \( Y \) 的联合分布。<sup>[2](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)</sup> 该定义源自最优质量输运：距离度量的是将概率质量从一个分布搬运到另一个分布的成本。这赋予了Wasserstein距离作为统计工具的独特性质：它们可用于推导弱收敛和矩收敛，量化分布扰动的一种自然概念，并且纳入了分布所在区域的几何结构。<sup>[4](https://arxiv.org/abs/1806.05500)</sup> \( p = 1 \) 的情形常被称为Kantorovich距离或推土机距离。<sup>[8](https://tropp.caltech.edu/notes/Tro24-Probability-Theory-LN.pdf)</sup>

**散度。** Kullback–Leibler散度 \( D_{\mathrm{KL}}(P \Vert Q) = \int p \log(p/q) \, d\lambda \) 由Kullback和Leibler于1951年引入，它不是度量：它不对称且违反三角不等式。然而它通过 \( D_{\mathrm{KL}}(P \Vert Q) \ge 2 \, d_{\mathrm{H}}^2(P,Q) \) 控制Hellinger距离。<sup>[5](https://drwong.cc/nlp-course/ch07.html)</sup> 分布之间更广泛的度量目录包括Hellinger系数、Jeffreys距离、Chernoff系数、有向散度及其对称化形式J散度。<sup>[9](https://www.sciencedirect.com/science/article/pii/0022247X89903351)</sup>

**分布函数上的距离。** 两个累积分布函数 \( F \) 与 \( G \) 之间的Lévy距离为 \( d_{\mathrm{L}}(F,G) = \inf \{ \varepsilon > 0 : F(x - \varepsilon) - \varepsilon \le G(x) \le F(x + \varepsilon) + \varepsilon \text{ 对所有 } x \in \mathbb{R} \} \)。<sup>[2](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)</sup> 实轴上概率测度的弱收敛可由Lévy–Prokhorov度量来度量，这是将该收敛模式转化为定量距离的标准方式。<sup>[6](https://www.mdpi.com/2813-2203/2/1/12)</sup>

## 距离之间的比较

这些距离在强度和在“看到”什么上各不相同。全变差距离、Wasserstein距离和Kolmogorov–Smirnov距离强于弱收敛：若其中任何一个在 \( n \to \infty \) 时趋于零，则分布弱收敛，但反之不成立。<sup>[6](https://www.mdpi.com/2813-2203/2/1/12)</sup> Lévy–Prokhorov度量则度量弱收敛本身，属于较弱的距离之列。<sup>[6](https://www.mdpi.com/2813-2203/2/1/12)</sup>

支撑集行为将信息论散度与基于输运的度量区分开来。

不等式将这些距离联系在一起。Dobrushin界将Lévy–Prokhorov距离与一个Wasserstein距离联系起来，\( \rho^{\mathrm{L\text{-}P}}(P_1, P_2) \le [W_1^r(P_1, P_2)]^{1/2} \)，<sup>[6](https://www.mdpi.com/2813-2203/2/1/12)</sup> 而如前所述，Kullback–Leibler散度控制Hellinger距离的平方。<sup>[5](https://drwong.cc/nlp-course/ch07.html)</sup>

## 在统计推断中的用途

统计距离以三种主要方式进入推断。在估计中，人们常使用基于最小化模型与数据之间距离的估计量；最小Hellinger距离估计即为一例，例如应用于计数数据的分析。在假设检验和模型选择中，距离提供检验统计量和选择准则。在模型评估中，距离可解释为损失函数，这确定了拟合模型在何种意义上接近生成分布。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)</sup>

一个特殊的类别——二次距离——与经典拟合优度范式相关联，用于评估模型拟合；该类中的方法可应用于超大样本的分析。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)</sup> 基于距离的统计量与基于再生核希尔伯特空间（RKHS）的统计量在假设检验中是等价的，从而将两个框架联系起来。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)</sup>

**现代计算中距离的选择。** 距离的选择决定了可获得何种收敛结果。在马尔可夫链蒙特卡洛算法的分析中，越来越多的证据表明，与Wasserstein距离下的收敛相比，全变差收敛对许多高维目标分布而言是不够的；基于Wasserstein的论证还可以为弱收敛所需条件提供更简单的证明，如自适应Langevin扩散的例子所示。<sup>[10](https://doi.org/10.1017/jpr.2025.4)</sup> 马尔可夫链收敛的定量界同样将两者联系起来：基于耦合的准则以Wasserstein距离给出全变差距离的界。<sup>[11](https://arxiv.org/abs/1102.5245)</sup>

定义在不同维数空间上的分布之间的比较，例如 \([-1,1]\) 上的均匀分布与 \(\mathbb{R}^3\) 上的高斯分布，需要扩展标准概念；常见的度量和散度可以被推广，以给出不同维数空间上Borel概率测度之间的自然距离。<sup>[12](https://arxiv.org/abs/2011.00629)</sup>

## References

1. [Marianthi Markatou, Dimitrios Karlis, Yuxin Ding (2021). Distance-Based Statistical Inference. Annual Review of Statistics and Its Application 8:301–327.](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031219-041228)
2. [Luke, Tierney. Mathematical Methods for Statistics, notes on distances for probabilities (STAT:5120, University of Iowa).](https://homepage.cs.uiowa.edu/~luke/classes/STAT5120/notes.pdf)
3. [Andrew Stuart. Lecture notes: inverse problems, definitions of total variation and Hellinger distances (ETH Zürich / FIM).](https://ethz.ch/content/dam/ethz/special-interest/math/mathematical-research/fim-dam/Lectures/Minicourses/2012/Numerik%20-%20SAM/Stuart_1302.6989v2.pdf)
4. [Victor Panaretos, Yoav Zemel. Statistical Aspects of Wasserstein Distances. arXiv:1806.05500.](https://arxiv.org/abs/1806.05500)
5. [The Geometry of Text: Distance & Similarity, NLP course notes (Kullback–Leibler divergence and Gibbs & Su 2002 bound).](https://drwong.cc/nlp-course/ch07.html)
6. [Survey of Distances between the Most Popular Distributions. MDPI, Entropy/Journal (2022).](https://www.mdpi.com/2813-2203/2/1/12)
7. [Metrics: total variation and Hellinger distance, lecture notes (University of Washington).](https://faculty.washington.edu/yenchic/short_note/Metrics.html)
8. [Joel Tropp. Probability Theory & Stochastic Processes, Caltech CMS 117 lecture notes.](https://tropp.caltech.edu/notes/Tro24-Probability-Theory-LN.pdf)
9. [Measures of distance between probability distributions. Journal of Mathematical Analysis and Applications (1989).](https://www.sciencedirect.com/science/article/pii/0022247X89903351)
10. [Weak convergence of adaptive Markov chain Monte Carlo. Journal of Applied Probability (2025).](https://doi.org/10.1017/jpr.2025.4)
11. [Quantitative bounds for Markov chain convergence: Wasserstein and total variation distances. arXiv:1102.5245.](https://arxiv.org/abs/1102.5245)
12. [Distances between probability distributions of different dimensions. arXiv:2011.00629.](https://arxiv.org/abs/2011.00629)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Convergence of measures and limit theorems › Probability metrics and distances between measures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/statistical-distance

English original: https://www.edgepedia.org/statistical-distance
