# 海林格距离

海林格距离是概率分布上的一种度量，它通过比较两个分布密度的平方根来衡量二者的距离；它等于相对于任意共同支配测度所取的平方根密度之间的L2距离的一半。<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> 该距离以德国数学家恩斯特·海林格（Ernst Hellinger）命名，相关的判别测度出现在他1909年关于积分方程的工作中。<sup>[2](https://www.cse.yorku.ca/~kosta/CompVis_Notes/bhattacharyya.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对于相对于任意共同支配测度μ的密度p、q，\( H^{2}(P,Q) = \tfrac{1}{2}\int (\sqrt{p} - \sqrt{q})^{2}\,d\mu = 1 - \int \sqrt{pq}\,d\mu \)<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> |
| 取值范围与度量性质 | 0 ≤ H(P,Q) ≤ 1；H = 0当且仅当P = Q；该距离对称且满足三角不等式<sup>[3](https://sylvaincom.github.io/files/comparison_distributions_slides.pdf)</sup> |
| 良定义性 | 取值不依赖于支配测度的选择；μ = P + Q总是可行<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> |
| 与全变差的关系 | \( H^{2}(P,Q) \le d_{TV}(P,Q) \le H^{2}(P,Q)\{1+\rho(P,Q)\}^{1/2} \le \sqrt{2}\,H(P,Q) \)，因此海林格距离与全变差距离诱导相同的拓扑<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> |
| 乘积（张量化）公式 | 对于n个独立同分布观测，\( d^{2}_{H}(P^{n},Q^{n}) = 1 - (1 - d^{2}_{H}(P,Q)/2)^{n} \)<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup> |
| 统计学用途 | 勒卡姆极小极大下界方法、二次均值可微性以及最小海林格距离估计的基础<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup><sup> • </sup><sup>[5](https://www.jstor.org/pss/2958896)</sup> |
| 机器学习用途 | 用于不平衡分类问题中决策树和随机森林的偏斜不敏感分裂准则<sup>[6](https://www3.nd.edu/~nchawla/papers/DMKD11.pdf)</sup> |

## 定义

设P和Q为概率测度，其相对于共同支配测度μ的密度分别为p和q。平方海林格距离为<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup>

\[ H^{2}(P,Q) = \frac{1}{2}\int \left(\sqrt{p} - \sqrt{q}\right)^{2}\,d\mu = 1 - \int \sqrt{p\,q}\,d\mu. \]

积分\( \rho(P,Q) = \int \sqrt{pq}\,d\mu \)称为海林格亲和度，也称巴塔查里亚系数；它满足ρ ≤ 1，等号成立当且仅当P = Q，因此\( H^{2}(P,Q) = 1 - \rho(P,Q) \)。<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> 对于具有概率质量函数的离散分布，积分变为求和，\( H^{2}(P,Q) = 1 - \sum_{i} \sqrt{p(i)\,q(i)} \)。<sup>[2](https://www.cse.yorku.ca/~kosta/CompVis_Notes/bhattacharyya.pdf)</sup>

平方根变换正是使定义独立于支配测度的原因：无论μ是勒贝格测度、计数测度还是P + Q，取值都相同，这一点可用拉东-尼科迪姆导数的链式法则验证。<sup>[7](https://fredcheng02.github.io/docs/260320-from-measure-to-prob.pdf)</sup> 从几何上看，密度的平方根可视为无穷维球面上的点，海林格距离就是它们在该球面上的欧几里得（弦）距离。<sup>[8](https://faculty.washington.edu/yenchic/26A_stat581/Lec2_large.html)</sup>

## 性质

**度量行为。** 海林格距离非负，当且仅当两个分布重合时等于零，且是对称的；连同三角不等式，它是一个真正的度量，不像库尔贝克-莱布勒散度那样不是度量。<sup>[3](https://sylvaincom.github.io/files/comparison_distributions_slides.pdf)</sup><sup> • </sup><sup>[9](https://londmathsoc.onlinelibrary.wiley.com/doi/full/10.1112/tlm3.70005)</sup> 它取值介于0和1之间，并与全变差距离\( d_{TV}(P,Q) = \sup_{A} \lvert P(A) - Q(A) \rvert \)通过如下双边不等式相联系<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup>

\[ H^{2}(P,Q) \;\le\; d_{TV}(P,Q) \;\le\; H^{2}(P,Q)\{1+\rho(P,Q)\}^{1/2} \;\le\; \sqrt{2}\,H(P,Q). \]

由于二者相互界定，海林格收敛与全变差收敛是等价的，这两种度量在概率分布空间上诱导相同的拓扑。<sup>[1](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)</sup> 海林格距离在底层空间被重新构建时不具有不变性，这一性质在某些处理中将其与库尔贝克-莱布勒散度区分开来。<sup>[10](https://www.sciencedirect.com/topics/mathematics/hellinger-distance)</sup>

**张量化。** 对于独立同分布抽样，海林格距离在乘积分布上的表现比全变差距离更为便利。若\( P^{n} \)和\( Q^{n} \)分别为P和Q的n重乘积，则<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup>

\[ d^{2}_{H}(P^{n},Q^{n}) = 1 - \left(1 - \frac{d^{2}_{H}(P,Q)}{2}\right)^{n} = 1 - \rho(P,Q)^{n}. \]

因此，已知单样本距离即可精确确定n样本距离，这一性质与库尔贝克-莱布勒距离共享，并通过勒卡姆方法构成极小极大下界的基础。<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup><sup> • </sup><sup>[11](https://stat.cmu.edu/~larry/%3Dstat705/Lecture27.pdf)</sup> 对于两个正态分布\( \mu \sim N(m_{1},\sigma_{1}^{2}) \)和\( \nu \sim N(m_{2},\sigma_{2}^{2}) \)，平方距离具有闭式表达\( H^{2}(\mu,\nu) = 2\left(1 - \frac{2\sigma_{1}\sigma_{2}}{\sigma_{1}^{2}+\sigma_{2}^{2}}\exp\left(-\frac{(m_{1}-m_{2})^{2}}{4(\sigma_{1}^{2}+\sigma_{2}^{2})}\right)\right) \)。<sup>[12](https://www.researchgate.net/publication/302958294_Le_cam_theory_on_the_comparison_of_statistical_models)</sup>

## 在渐近统计中的作用

**勒卡姆方法。** 上述乘积公式直接用于勒卡姆关于检验的误差概率之和的引理：\( P_{0}(\psi \neq 0) + P_{1}(\psi \neq 1) \ge 1 - \lVert P_{0} - P_{1} \rVert_{TV} \)。二者结合可给出检验误差的下界，并通过勒卡姆方法给出估计量收敛速率的极小极大下界。<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup><sup> • </sup><sup>[13](https://www.stat.yale.edu/~pollard/Courses/607.spring05/)</sup> 通过海林格距离推导出的乘积测度之间全变差距离的界，是获得此类下界的标准途径。<sup>[14](https://www.stat.yale.edu/~pollard/Courses/607.spring05/handouts/Totalvar.pdf)</sup>

**二次均值可微性。** 对于二次均值可微的参数族\( \{P_{\theta}\} \)，对\( \sqrt{p_{\theta}} \)进行泰勒展开可得\( d^{2}_{hel}(P_{\theta}, P_{\theta+h}) = \tfrac{1}{8}\,h^{\intercal} I_{\theta} h + o(\lVert h \rVert^{2}) \)，其中\( I_{\theta} \)为费舍尔信息。因此，海林格度量是费舍尔信息和局部渐近正态性背后的自然几何。<sup>[4](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)</sup>

**界定其他差异。** 库尔贝克-莱布勒散度、库尔贝克-莱布勒变差以及伯恩斯坦“范数”被用于量化非参数最大似然和非参数贝叶斯等似然模型中的差异，它们都与海林格距离密切相关，而后者通常更易于处理。加地彻也（Tetsuya Kaji）刻画了海林格距离作为上述每种度量的上界的充要条件，涵盖了无界似然比并推广了此前已知的结果。<sup>[15](https://arxiv.org/abs/2601.17860)</sup>

## 最小海林格距离估计

加州大学伯克利分校的统计学家鲁道夫·贝兰（Rudolf Beran）于1977年引入了最小海林格距离估计量（MHDE）：参数估计是参数密度族中在平方海林格距离上最接近样本非参数密度估计的成员。<sup>[5](https://www.jstor.org/pss/2958896)</sup> 当指定的参数族成立时，该过程是渐近有效的，并且在该族的一个小的海林格度量邻域内具有极小极大稳健性，同时还附带一个拟合优度统计量。<sup>[5](https://www.jstor.org/pss/2958896)</sup> 相比之下，M估计量作为最流行的稳健方法之一，以牺牲一阶或二阶效率为代价获得稳健性。<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC9038051/)</sup>

该方法已被广泛推广。最小海林格距离估计量已被构造用于非参数混合模型中的混合比例、<sup>[17](https://doi.org/10.1016%2Fj.jspi.2008.07.004)</sup> 具有非正则谱的谱密度，<sup>[18](https://epubs.siam.org/doi/10.1137/S0040585X97T991805)</sup> 以及在2026年由大卫·凯普林格（David Kepplinger）和阿南德·N·维迪亚尚卡尔（Anand N. Vidyashankar）发表的工作中，用于复杂抽样设计下的参数超总体模型——当模型正确时该估计量保持完全有效，而在污染或误设定下比最大似然估计量稳定得多。<sup>[19](https://link.springer.com/article/10.1007/s40065-026-00618-3)</sup> 基于最小海林格距离导出的伪后验的贝叶斯版本已被应用于纵向线性混合模型，在存在离群值或缺失值时表现出比限制最大似然方法更小的偏差、均方误差和标准误。<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC9038051/)</sup>

## 在机器学习中的应用

**不平衡分类。** 海林格距离是偏斜不敏感的，这意味着随着类别不平衡加剧，它不会失去对少数类的敏感性，这促成了以它代替增益比作为分裂准则的海林格距离决策树（HDDT）。<sup>[6](https://www3.nd.edu/~nchawla/papers/DMKD11.pdf)</sup> 以海林格距离作为单棵树的分裂准则，可改善随机森林和旋转森林在高度不平衡分类上的性能，实验通过非参数统计检验进行了对比。<sup>[20](https://journals.sagepub.com/doi/10.3233/IDA-150789)</sup> 2020年由里卡多·阿勒（Ricardo Aler）、何塞·M·瓦尔斯（José M. Valls）和亨里克·博斯特伦（Henrik Boström）进行的一项研究发现，海林格距离是随机森林的一种稳健分裂度量，在AUC方面对不平衡二类数据集具有统计优势，在布里尔分数方面对二类数据集具有统计优势，但对平衡多类数据集存在一些弱点，尤其是在概率估计方面；将海林格距离与基尼结合可提高稳健性，而基尼更适合文本数据集。<sup>[21](https://www.sciencedirect.com/science/article/pii/S0957417420300890)</sup> 海林格距离还被提出作为不平衡数据流上决策树的一种极快的分裂准则。<sup>[22](https://arxiv.org/abs/1405.2278)</sup>

**其他用途。** 该距离已被用于比较物种分布模型生成的地图，与库尔贝克-莱布勒散度、察利斯散度和欧几里得距离并列，先对地图强度进行归一化使其表现为概率分布。<sup>[23](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/j.2041-210X.2011.00115.x)</sup> 在量子信息科学中，巴塔查里亚系数的平方称为经典保真度，与海林格距离密切相关。<sup>[24](https://journals.aps.org/prxquantum/abstract/10.1103/PRXQuantum.6.030202)</sup>

## 相关度量

海林格距离属于分布间差异度量族。由同一亲和度导出的巴塔查里亚距离，因托马斯·凯拉思（Thomas Kailath）1967年在信号选择中的教程式比较而得到推广，该比较发现它通常比散度更易于评估，而结果至少同样好。全变差距离可直接解释为任意感兴趣区域上的最大概率差，而海林格距离则以这一解释换取了张量化性质及其在效率理论中的作用。<sup>[8](https://faculty.washington.edu/yenchic/26A_stat581/Lec2_large.html)</sup> 相比之下，瓦瑟斯坦距离纳入了底层区域的几何结构，当样本空间的空间或度量结构很重要时更为可取。<sup>[25](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-030718-104938)</sup> 一种推广——S-海林格距离——通过调节参数α将海林格距离与L2散度平滑地联系起来。<sup>[26](https://arxiv.org/abs/1403.6304)</sup>

## References

1. [Moulibakhirov, ch. 2, Some Basic Large Sample Theory, University of Michigan lecture notes](https://dept.stat.lsa.umich.edu/~moulib/ch2.pdf)
2. [Derpanis, K. G., The Bhattacharyya Measure, York University notes](https://www.cse.yorku.ca/~kosta/CompVis_Notes/bhattacharyya.pdf)
3. [Com, S., Comparison of Empirical Probability Distributions, lecture slides](https://sylvaincom.github.io/files/comparison_distributions_slides.pdf)
4. [Wainwright, M., Contiguity and Asymptotics, Stanford Statistics 300B notes](https://web.stanford.edu/class/stats300b/Notes/contiguity-and-asymptotics.pdf)
5. [Beran, R. (1977). Minimum Hellinger Distance Estimates for Parametric Models. The Annals of Statistics 5(3), 445–463.](https://www.jstor.org/pss/2958896)
6. [Cieslak, D. A. and Chawla, N. V. (2008). Hellinger distance decision trees are robust and skew-insensitive. Data Mining and Knowledge Discovery 24, 136–158.](https://www3.nd.edu/~nchawla/papers/DMKD11.pdf)
7. [Cheng, F., From Measure to Probability, lecture notes](https://fredcheng02.github.io/docs/260320-from-measure-to-prob.pdf)
8. [Chi, Y., UW STAT 581, Chapter 2: Introduction of Large Sample Theory](https://faculty.washington.edu/yenchic/26A_stat581/Lec2_large.html)
9. [Li et al. (2025). On the deep-water and shallow-water limits of the intermediate long wave equation from a statistical viewpoint. Transactions of the London Mathematical Society.](https://londmathsoc.onlinelibrary.wiley.com/doi/full/10.1112/tlm3.70005)
10. [Hellinger Distance, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/hellinger-distance)
11. [Wasserman, L., Lecture Notes 27, CMU 36-705](https://stat.cmu.edu/~larry/%3Dstat705/Lecture27.pdf)
12. [Le Cam Theory on the Comparison of Statistical Models, ResearchGate](https://www.researchgate.net/publication/302958294_Le_cam_theory_on_the_comparison_of_statistical_models)
13. [Pollard, D., Stat 607 spring 2005: Inequalities, Yale University](https://www.stat.yale.edu/~pollard/Courses/607.spring05/)
14. [Pollard, D., Total Variation notes, Yale University](https://www.stat.yale.edu/~pollard/Courses/607.spring05/handouts/Totalvar.pdf)
15. [Kaji, T. (2026). The Hellinger Bounds on the Kullback-Leibler Divergence and the Bernstein Norm. arXiv.](https://arxiv.org/abs/2601.17860)
16. [Robust estimation for longitudinal data based upon minimum Hellinger distance, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC9038051/)
17. [Minimum Hellinger distance estimation in a nonparametric mixture model, Journal of Statistical Planning and Inference](https://doi.org/10.1016%2Fj.jspi.2008.07.004)
18. [Hellinger Distance Estimation for Nonregular Spectra, Theory of Probability & Its Applications](https://epubs.siam.org/doi/10.1137/S0040585X97T991805)
19. [Kepplinger, D. and Vidyashankar, A. N. (2026). Minimum Hellinger distance estimators for complex survey designs. Arabian Journal of Mathematics 15, 1233–1259.](https://link.springer.com/article/10.1007/s40065-026-00618-3)
20. [Su, C., Ju, S., Liu, Y., Yu, Z. (2015). Improving Random Forest and Rotation Forest for highly imbalanced datasets. Intelligent Data Analysis 19(6), 1409–1432.](https://journals.sagepub.com/doi/10.3233/IDA-150789)
21. [Aler, R., Valls, J. M., Boström, H. (2020). Study of Hellinger Distance as a splitting metric for Random Forests in balanced and imbalanced classification datasets. Expert Systems with Applications, article 113264.](https://www.sciencedirect.com/science/article/pii/S0957417420300890)
22. [Hellinger Distance Trees for Imbalanced Streams, arXiv](https://arxiv.org/abs/1405.2278)
23. [Wilson (2011). Distance-based methods for the analysis of maps produced by species distribution models. Methods in Ecology and Evolution.](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/j.2041-210X.2011.00115.x)
24. [Practical Introduction to Benchmarking and Characterization of Quantum Computers, PRX Quantum](https://journals.aps.org/prxquantum/abstract/10.1103/PRXQuantum.6.030202)
25. [Panaretos, V. M. and Zemel, Y. (2019). Statistical Aspects of Wasserstein Distances. Annual Review of Statistics and Its Application 6, 405–431.](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-030718-104938)
26. [Estimation of Multivariate Location and Covariance using the S-Hellinger Distance, arXiv](https://arxiv.org/abs/1403.6304)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; 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/hellinger-distance

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