# 巴塔查里亚距离

**巴塔查里亚距离**是衡量两个概率分布之间散度的一种度量，定义为巴塔查里亚系数的负自然对数，而该系数是两个分布密度的几何平均值的积分。它由印度统计学家A. 巴塔查里亚（A. Bhattacharyya）于1943年提出，用于统计学、模式识别、信号处理和计算机视觉中，以量化两个分布的可分离程度。

| 关键事实 | 详情 |
|---|---|
| 定义 | 对于关于支配测度 \( \nu \) 的密度 \( p_1 \) 和 \( p_2 \)，系数为 \( \rho = \int_{\Omega} (p_1 p_2)^{1/2} \, d\nu \)，距离为 \( B(1,2) = -\ln \rho \)<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup> |
| 取值范围 | \( 0 \le B(1,2) \le \infty \)；系数满足 \( 0 \le \rho \le 1 \)，当且仅当两分布相等时 \( \rho = 1 \)，当且仅当两分布正交时 \( \rho = 0 \)<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup> |
| 度量性质 | 对称且非负，但不满足三角不等式，因此是半度量而非度量<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/BhattacharyyaDistance.html)</sup> |
| 与切尔诺夫距离的关系 | 它是切尔诺夫距离在 \( t = 1/2 \) 处的特例<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup> |
| 贝叶斯误差界 | 在误分类代价相等时，总误分类概率被 \( \exp\{-B(1,2)\} \) 所控制；对于等先验，界为 \( 0.5 \, e^{-d_B} \)<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup><sup> • </sup><sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup> |
| 高斯闭式 | 对于两个多元正态分布，它简化为一个均值分离项加一个协方差项，二者均为闭式<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup> |
| 起源 | A. 巴塔查里亚，《论由概率分布定义的两个统计总体之间的散度度量》，《加尔各答数学学会通报》第35卷，第99–109页（1943年）<sup>[4](https://eurekamag.com/research/097/505/097505175.php)</sup> |

## 定义与基本性质

设 \( (\Omega, B, \nu) \) 为测度空间，\( \mathsf{P}_1 \) 和 \( \mathsf{P}_2 \) 为关于 \( \nu \) 绝对连续的两个概率测度，密度分别为 \( p_1 = d\mathsf{P}_1/d\nu \) 和 \( p_2 = d\mathsf{P}_2/d\nu \)（拉东-尼科迪姆导数）。巴塔查里亚系数为

\[ \rho(\mathsf{P}_1, \mathsf{P}_2) = \int_{\Omega} \left( \frac{d\mathsf{P}_1}{d\nu} \cdot \frac{d\mathsf{P}_2}{d\nu} \right)^{1/2} d\nu, \]

巴塔查里亚距离为

\[ B(1,2) = -\ln \rho(\mathsf{P}_1, \mathsf{P}_2). \]

对于同一结果集上的离散分布 \( P = (p_i) \) 和 \( Q = (q_i) \)，系数为 \( \mathrm{BC}(P,Q) = \sum_i \sqrt{p_i q_i} \)；对于密度 \( p(x) \) 和 \( q(x) \)，系数为 \( \int \sqrt{p(x) q(x)} \, dx \)<sup>[2](https://mathworld.wolfram.com/BhattacharyyaDistance.html)</sup>。\( \rho \) 的值不依赖于所选的支配测度 \( \nu \)<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>。

由此直接可得三条性质<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>：

1. \( 0 \le \rho \le 1 \)，故 \( B \) 取值于 \( [0, \infty) \)。
2. \( \rho = 1 \) 当且仅当 \( \mathsf{P}_1 = \mathsf{P}_2 \)，此时 \( B = 0 \)。
3. \( \rho = 0 \) 当且仅当 \( \mathsf{P}_1 \) 与 \( \mathsf{P}_2 \) 正交，此时 \( B = \infty \)。

**不是度量。** 尽管该距离对称且仅对相同分布为零，但它不满足三角不等式<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/BhattacharyyaDistance.html)</sup>。因此，更恰当地将其归类为半度量<sup>[5](https://doi.org/10.1016/C2021-0-01394-8)</sup>。相比之下，海林格距离（Hellinger distance）则满足三角不等式<sup>[6](https://www.inf.u-szeged.hu/~berendg/docs/dm/EFOP343_AP2TTIK2_jegyzet_Berend_Gabor_Data_mining_20200330.pdf)</sup>。

## 与其他散度度量的关系

巴塔查里亚距离是切尔诺夫距离的特例，在 \( -\ln \inf_{0 \le t \le 1} \left( \int p_1^{t} p_2^{1-t} \, d\nu \right) \) 中取 \( t = 1/2 \) 即得<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>。在切尔诺夫 \( \alpha \)-散度类中，已证明当两类差异较小时，\( \alpha = 1/2 \) 给出错误概率的最紧上界<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC4717492/)</sup>。

该系数与海林格距离相关。《数学百科全书》将关系表述为 \( H(1,2) = 2[1 - \rho(\mathsf{P}_1, \mathsf{P}_2)] \)<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>，而一份通信工程参考文献给出 \( d_H(f,g) = \sqrt{1 - \rho_B(f,g)} \)<sup>[5](https://doi.org/10.1016/C2021-0-01394-8)</sup>；这两个表达式反映了文献中海林格距离的不同归一化方式。从几何角度看，映射 \( p(x) \mapsto 2\sqrt{p(x)} \) 将概率单纯形映到球面上，系数 \( B \) 是两个像点之间测地弧的余弦<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC2387279/)</sup>。

该系数还有若干旧称：它被称为卡库塔尼系数、松田系数<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>、亲和度、海林格积分<sup>[9](https://www.researchgate.net/publication/3081632_Distance_Measures_and_Asymptotic_Relative_Efficiency)</sup>，在量子信息中称为保真度<sup>[10](https://www.scitepress.org/PublishedPapers/2016/56952/pdf/index.html)</sup>。一个有用的计算性质是张量化：对于乘积分布，\( \mathrm{BC}(p \otimes p', q \otimes q') = \mathrm{BC}(p,q) \cdot \mathrm{BC}(p',q') \)<sup>[11](https://www.cs.cmu.edu/~odonnell/papers/quantum-state-certification.pdf)</sup>。

## 高斯分布的闭式

对于均值向量为 \( M_1, M_2 \)、协方差矩阵为 \( \Sigma_1, \Sigma_2 \) 的两类，距离为

\[ d_B = \frac{1}{8} (M_2 - M_1)^{T} \left[ \frac{\Sigma_1 + \Sigma_2}{2} \right]^{-1} (M_2 - M_1) + \frac{1}{2} \ln \frac{\left| (\Sigma_1 + \Sigma_2)/2 \right|}{\left| \Sigma_1 \right|^{1/2} \left| \Sigma_2 \right|^{1/2}}. \]

第一项衡量由类均值差异带来的类可分离性，第二项衡量由协方差矩阵差异带来的可分离性<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup>。当两个协方差相等时，第二项消失，距离与均值间的马氏距离成正比；此时最大化 \( B \) 即得到费希尔线性判别函数<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup><sup> • </sup><sup>[12](https://www.sciencedirect.com/topics/computer-science/bhattacharyya-distance)</sup>。

## 贝叶斯误差界

该距离的实用价值很大程度上源于其与分类误差的联系。在各类误分类代价相等的贝叶斯准则下，总误分类概率被 \( \exp\{-B(1,2)\} \) 所控制<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>。更一般地，对于先验概率为 \( P_1 \) 和 \( P_2 \) 的两类，贝叶斯误差满足

\[ \epsilon_B \le \sqrt{P_1 P_2} \, e^{-d_B}, \]

对于等先验 \( P_1 = P_2 = 0.5 \)，得到实用界 \( \epsilon_B^{*} = 0.5 \, e^{-d_B} \)<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup>。对于许多常用分布，此类界存在闭式，这是巴塔查里亚界在机器学习中广泛使用的主要原因<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC4717492/)</sup>。这些界并非在所有情形下都紧，更紧的替代界已被提出<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup><sup> • </sup><sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC4717492/)</sup>。

## 应用

**信号选择与控制。** 在控制理论和信号选择问题中，托马斯·凯拉思（Thomas Kailath）1967年发表于《IEEE通信技术汇刊》的研究发现，在许多实际重要情形下 \( B(1,2) \) 优于库尔巴克-莱布勒距离，且巴塔查里亚距离具有解析形式特别简单的技术优势<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup><sup> • </sup><sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC3652018/)</sup>。对于高斯过程（离散时间和连续时间），该度量也已用物理可实现的线性滤波器加以计算<sup>[14](https://www.sciencedirect.com/science/article/pii/S0019995867906109)</sup>。

**特征选择与模式识别。** 由于该距离量化类可分离性，它被用于两类模式识别问题中评估和选择特征<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>。第13届国际模式识别会议（维也纳，1996年）上提出了一种针对正态多分布下多类问题的递归巴塔查里亚距离特征选择算法<sup>[15](https://ieeexplore.ieee.org/document/546751/)</sup>，基于该距离的误差估计方程也已用于构建特征提取方法<sup>[16](https://www.sciencedirect.com/science/article/abs/pii/S0031320303000359)</sup>。在生物信息学中，该距离被用于估计贝叶斯误差上界，作为微阵列分类中过滤冗余基因的准则<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)</sup>。

**计算机视觉。** 在分割与跟踪中，目标由光度变量上的模型分布来表征，被跟踪的目标被识别为内部样本分布与模型最匹配的图像区域，巴塔查里亚系数作为匹配度量<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC3652018/)</sup>。基于巴塔查里亚梯度流的分割方法将目标识别为内部分布与外部分布距离最大的区域<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC3652018/)</sup>。该距离还用于图像配准和分割中比较强度分布<sup>[17](https://www.sciencedirect.com/science/article/pii/S0031320316302588)</sup>。

## 起源与命名

阿尼尔·库马尔·巴塔查里亚（Anil Kumar Bhattacharyya）在1943年发表于《加尔各答数学学会通报》（第35卷，第99–109页）的论文中定义了两个多项总体之间的散度，并指出结果早在1941年初即已获得；通过取极限，他得到了以任何方式定义、变量间存在一一对应关系的总体之间的散度度量<sup>[4](https://eurekamag.com/research/097/505/097505175.php)</sup>。一篇相关论文《论两个多项总体之间的散度度量》发表于《桑克亚》（Sankhyā）第7卷第4期（1946年7月），第401–406页<sup>[18](https://www.jstor.org/stable/i25047879)</sup>。距离 \( B(1,2) \) 以他命名，因为它通过巴塔查里亚系数定义；《数学百科全书》指出，A. 巴塔查里亚本人在统计背景下定义的距离与 \( B(1,2) \) 不同<sup>[1](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)</sup>。

## References

1. [Bhattacharyya distance, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Bhattacharyya_distance)
2. [Bhattacharyya Distance, Wolfram MathWorld](https://mathworld.wolfram.com/BhattacharyyaDistance.html)
3. [Gene selection for classification of microarray data based on the Bayes error, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2089123/)
4. [Bhattacharyya, A. (1943). On a measure of divergence between two statistical populations defined by their probability distributions, EurekaMag](https://eurekamag.com/research/097/505/097505175.php)
5. [Dimensions of Uncertainty in Communication Engineering, ScienceDirect](https://doi.org/10.1016/C2021-0-01394-8)
6. [Berend, G. Data Mining lecture notes, University of Szeged](https://www.inf.u-szeged.hu/~berendg/docs/dm/EFOP343_AP2TTIK2_jegyzet_Berend_Gabor_Data_mining_20200330.pdf)
7. [Empirically Estimable Classification Bounds Based on a Nonparametric Divergence Measure, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC4717492/)
8. [Distribution Metrics and Image Segmentation, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2387279/)
9. [Distance measures and asymptotic relative efficiency, ResearchGate](https://www.researchgate.net/publication/3081632_Distance_Measures_and_Asymptotic_Relative_Efficiency)
10. [SCITEPRESS paper 56952 (2016)](https://www.scitepress.org/PublishedPapers/2016/56952/pdf/index.html)
11. [Quantum state certification, CMU](https://www.cs.cmu.edu/~odonnell/papers/quantum-state-certification.pdf)
12. [Bhattacharyya Distance - an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/bhattacharyya-distance)
13. [Image Segmentation Using Active Contours Driven by the Bhattacharyya Gradient Flow, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3652018/)
14. [On the Bhattacharyya distance and the divergence between Gaussian processes, Information and Control 11(4): 373–395 (1967)](https://www.sciencedirect.com/science/article/pii/S0019995867906109)
15. [Bhattacharyya distance feature selection, ICPR 1996, IEEE Xplore](https://ieeexplore.ieee.org/document/546751/)
16. [Feature extraction based on the Bhattacharyya distance, Pattern Recognition, ScienceDirect](https://www.sciencedirect.com/science/article/abs/pii/S0031320303000359)
17. [A novel learning-based dissimilarity metric for rigid and non-rigid medical image registration by using Bhattacharyya Distances, Pattern Recognition, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0031320316302588)
18. [Sankhyā Vol. 7, No. 4 (July 1946), table of contents, JSTOR](https://www.jstor.org/stable/i25047879)

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

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