# 互信息

**互信息**是信息论中的一个量，衡量的是已知一个随机变量能在多大程度上减少关于另一个随机变量的不确定性。记作 \( I(X;Y) \)，当且仅当两个变量统计独立时它恰好为零，并随着二者依赖关系的增强而增大；当 \( Y \) 完全决定 \( X \) 时，它达到 \( X \) 的熵。<sup>[1](https://www.sciencedirect.com/topics/computer-science/mutual-information)</sup><sup> • </sup><sup>[2](https://www.stat.cmu.edu/~cshalizi/dm/20/lectures/09/lecture-09.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( I(X;Y) = H(X) + H(Y) - H(X,Y) \)，其中 \( H \) 为香农熵，\( H(X,Y) \) 为该变量对的联合熵<sup>[3](https://technav.ieee.org/topic/mutual-information/)</sup> |
| 等价形式 | \( I(X;Y) = H(Y) - H(Y\mid X) \)，即 \( Y \) 的熵减去给定 \( X \) 时 \( Y \) 的条件熵<sup>[4](https://www.stat.yale.edu/~yw562/teaching/598/lec11.pdf)</sup> |
| 散度形式 | \( (X,Y) \) 的联合分布与边缘分布之积之间的相对熵（KL散度）<sup>[5](https://www.sciencedirect.com/topics/engineering/mutual-information)</sup> |
| 基本性质 | 对称（\( I(X;Y) = I(Y;X) \)）、非负，且当且仅当 \( X \) 与 \( Y \) 独立时为零<sup>[2](https://www.stat.cmu.edu/~cshalizi/dm/20/lectures/09/lecture-09.html)</sup> |
| 高斯情形 | 对于联合高斯的 \( X, Y \)，\( I(X,Y) = -\tfrac{1}{2}\ln\left(1 - \mathrm{Corr}(X,Y)^2\right) \)，即相关系数的一个单调变换<sup>[6](https://lips.cs.princeton.edu/correlation-and-mutual-information/)</sup> |
| 标准估计量 | 克拉斯科夫、施特格鲍尔与格拉斯伯格（2004）提出的 k 近邻估计量，偏差极小，且在独立分布下取值为零<sup>[7](https://doi.org/10.1103/PHYSREVE.69.066138)</sup> |
| 根本极限 | 任何从 \( N \) 个样本估计互信息的、无分布假设的高置信度下界，都不可能超过 \( O(\ln N) \)<sup>[8](https://proceedings.mlr.press/v108/mcallester20a)</sup> |

## 定义与等价形式

对于具有联合概率分布 \( P_{XY} \) 的两个随机变量，互信息通过熵来定义。IEEE 的表述给出 \( I(X;Y) = H(X) + H(Y) - H(X,Y) \)，其中 \( H \) 表示香农熵，\( H(X,Y) \) 为该变量对的联合熵。<sup>[3](https://technav.ieee.org/topic/mutual-information/)</sup> 同一量也可以写成不确定性的减少：\( I(X;Y) = H(Y) - H(Y\mid X) \)，即 \( Y \) 的熵减去给定 \( X \) 时 \( Y \) 的熵。<sup>[4](https://www.stat.yale.edu/~yw562/teaching/598/lec11.pdf)</sup> 用文字来说，它表示观测 \( X \) 所揭示的关于 \( Y \) 的比特数（若使用自然对数，则为奈特数）。<sup>[9](https://arxiv.org/abs/2202.00956)</sup>

第三种形式将互信息与散度度量联系起来。它等于变量对 \( (X,Y) \) 的联合概率分布 \( r_{ij} \) 与将两个变量视为独立时得到的分布 \( p_i q_j \) 之间的相对熵。<sup>[5](https://www.sciencedirect.com/topics/engineering/mutual-information)</sup> 这一形式使零点变得精确：当且仅当联合分布恰好与边缘分布之积重合时，散度消失，而这正是独立的定义。<sup>[2](https://www.stat.cmu.edu/~cshalizi/dm/20/lectures/09/lecture-09.html)</sup>

## 作为依赖性度量的性质

互信息满足三条性质，三者合起来使它成为一个具有数学上精确零点的依赖性度量：它是对称的，\( I[X;Y] = I[Y;X] \)；它是非负的；且 \( I[X;Y] = 0 \) 当且仅当 \( X \) 与 \( Y \) 独立。<sup>[2](https://www.stat.cmu.edu/~cshalizi/dm/20/lectures/09/lecture-09.html)</sup> 与只捕捉线性关联的皮尔逊相关系数不同，互信息能检测任何统计依赖，因为它使用的是完整的联合分布，而不仅仅是二阶矩。<sup>[10](https://d2l.smola.org/chapter_mdl-information-theory/mdl-mutual-information.html)</sup>

联合高斯情形给出了一个可供参照的闭式表达式。对于二元正态变量对，\( I(X,Y) = -\tfrac{1}{2}\ln\left(1 - \mathrm{Corr}(X,Y)^2\right) \)，即相关系数的一个单调变换。由此可得两个推论：在二元正态模型内，零相关确实意味着独立；而如果只假定边缘分布为正态而不假定联合正态，同一公式则给出真实互信息的一个下界。<sup>[6](https://lips.cs.princeton.edu/correlation-and-mutual-information/)</sup>

## 起源

这一量源自克劳德·香农（Claude Shannon）1948 年发表在《贝尔系统技术杂志》上的论文《通信的数学理论》，该文确立了熵以及建立在其上的各种信息度量。<sup>[11](https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1948.tb00917.x)</sup> 名称本身则出现得更晚。香农在麻省理工学院的同事罗伯特·M·法诺（Robert M. Fano）在 2001 年的一次访谈中回忆说，是他创造了“互信息”一词，以纠正人们对信息论所描述内容的误解：“信息总是关于某事物的。它是由某事物提供的、关于某事物的信息。”<sup>[12](https://ivg.au.tsinghua.edu.cn/~jfeng_old/IT/Shannon2.pdf)</sup>

## 从数据中估计

在实践中，联合分布是未知的，因此互信息必须从样本中估计。传统估计量将数据分箱为直方图，但分箱对于高维数据变得不切实际。<sup>[3](https://technav.ieee.org/topic/mutual-information/)</sup> 最广泛使用的替代方法，是德国于利希的约翰·冯·诺依曼计算研究所的研究人员亚历山大·克拉斯科夫（Alexander Kraskov）、哈拉尔德·施特格鲍尔（Harald Stögbauer）和彼得·格拉斯伯格（Peter Grassberger）提出的非参数估计量，2004 年发表于《物理评论E》。他们的两个估计量族基于由 \( k \) 近邻距离而非分箱得到的熵估计，这使它们具有很高的数据利用效率（当 \( k = 1 \) 时，它们能分辨小至最小可能尺度的结构）、自适应（数据越密集处分辨率越高），且偏差极小，对于 \( N \) 个点，系统误差按 \( k/N \) 的函数缩放。在数值上，两个族对于独立分布都变得精确：只要联合密度可分解，估计值就在统计涨落范围内消失。<sup>[7](https://doi.org/10.1103/PHYSREVE.69.066138)</sup> 这一估计量通常称为 KSG，至今仍是从未知联合密度的独立同分布样本估计互信息的最流行选择。<sup>[13](https://arxiv.org/abs/1604.03006)</sup>

软件实现沿此路线展开。scikit-learn 的 `mutual_info_classif` 使用基于 Kraskov 和 Ross 方法的 k 近邻熵估计来估计特征与离散目标之间的互信息，其基础是 Kozachenko–Leonenko 熵思想；它返回以奈特为单位的值，并且由于真实互信息不可能为负，任何负估计都会被替换为零。<sup>[14](https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.mutual_info_classif.html)</sup>

估计存在硬性限制。在 2020 年国际人工智能与统计会议上发表的一篇论文中，大卫·麦卡莱斯特（David McAllester）和卡尔·斯特拉托斯（Karl Stratos）证明，从大小为 N 的样本计算出的任何互信息下界，都不可能同时做到无分布假设、以高置信度成立并超过 O(ln N)；优化神经网络所给出的界的变分方法与传统方法一样受此限制。<sup>[8](https://proceedings.mlr.press/v108/mcallester20a)</sup> 维度是困难的另一维度：现有技术能够可靠地估计高达数十维的互信息，但超出此范围便告失败，因为所需的样本量不可行；近期的方法学习低维表示，并在那里应用非参数估计量。<sup>[15](https://arxiv.org/abs/2409.02732)</sup> 在脆弱的高斯假设与需要大量样本的非参数假设之间，沙尚克·辛格（Shashank Singh）和鲍尔纳巴什·波佐什（Barnabás Póczos）提出了针对非正态（高斯Copula）模型的估计量，这是一种半参数的折中，平衡了稳健性与可扩展性。<sup>[16](https://proceedings.mlr.press/v70/singh17a.html)</sup>

## 应用

**特征选择。** 在机器学习中，互信息评分衡量每个候选特征揭示了关于目标的多少信息，一大类过滤式方法据此对特征进行排序或选择；2013 年《神经计算与应用》上的一篇综述将这些方法组织在一个统一框架下，并指出了该领域的开放问题。<sup>[17](https://arxiv.org/abs/1509.07577)</sup> 由于经验条件互信息在高维问题中表现不佳，相关文献的很大一部分涉及构造其莫比乌斯展开的截断或加权对应物。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC9407310/)</sup>

**神经科学。** 信息论量是分析神经数据的标准工具，用于量化在噪声存在下刺激与响应之间的信息传递。<sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC2891486/)</sup> 刺激与神经响应之间的互信息使用了完整的刺激—响应概率，因此对任何解码算法能从神经活动中提取的关于刺激的信息设定了一个上界。<sup>[20](https://spj.science.org/doi/10.1016/j.csbj.2023.01.009)</sup>

**独立成分分析。** 由于互信息以其信息论背景在独立性度量中格外突出，它在独立成分分析中扮演着核心的概念角色；克拉斯科夫估计量已被证明可用于评估 ICA 成分的实际独立性、改进 ICA，以及估计盲源分离的可靠性。<sup>[7](https://doi.org/10.1103/PHYSREVE.69.066138)</sup>

## References

1. [Mutual Information, ScienceDirect Topics (Computer Science)](https://www.sciencedirect.com/topics/computer-science/mutual-information)
2. [Cosma Shalizi, Lecture 9: Information Theory I — Scene Setting and Statistical Applications, Carnegie Mellon University](https://www.stat.cmu.edu/~cshalizi/dm/20/lectures/09/lecture-09.html)
3. [Mutual Information, IEEE Technology Navigator](https://technav.ieee.org/topic/mutual-information/)
4. [Yihong Wu, Lecture 11: Mutual Information, Yale Statistics 598 lecture notes](https://www.stat.yale.edu/~yw562/teaching/598/lec11.pdf)
5. [Mutual Information, ScienceDirect Topics (Engineering)](https://www.sciencedirect.com/topics/engineering/mutual-information)
6. [Peter Krafft, Correlation and Mutual Information, Laboratory for Intelligent Probabilistic Systems, Princeton University](https://lips.cs.princeton.edu/correlation-and-mutual-information/)
7. [Alexander Kraskov, Harald Stögbauer, Peter Grassberger (2004). Estimating mutual information. Physical Review E 69, 066138.](https://doi.org/10.1103/PHYSREVE.69.066138)
8. [David McAllester, Karl Stratos (2020). Formal Limitations on the Measurement of Mutual Information. AISTATS, PMLR 108:875-884.](https://proceedings.mlr.press/v108/mcallester20a)
9. [Investigation of Alternative Measures for Mutual Information, arXiv:2202.00956](https://arxiv.org/abs/2202.00956)
10. [Mutual Information and Representation Learning, Dive into Deep Learning](https://d2l.smola.org/chapter_mdl-information-theory/mdl-mutual-information.html)
11. [C. E. Shannon (1948). A Mathematical Theory of Communication. Bell System Technical Journal 27: 623-656.](https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1948.tb00917.x)
12. [Aftab, Cheung, Kim, Thakkar, Yeddanapudi, Information Theory & the Digital Revolution, MIT 6.933 Project History (Fano interview)](https://ivg.au.tsinghua.edu.cn/~jfeng_old/IT/Shannon2.pdf)
13. [Demystifying Fixed k-Nearest Neighbor Information Estimators, arXiv:1604.03006](https://arxiv.org/abs/1604.03006)
14. [sklearn.feature_selection.mutual_info_classif, scikit-learn documentation](https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.mutual_info_classif.html)
15. [Approximating mutual information of high-dimensional variables using learned representations, arXiv:2409.02732](https://arxiv.org/abs/2409.02732)
16. [Shashank Singh, Barnabás Póczos (2017). Nonparanormal Information Estimation. ICML, PMLR 70:3210-3219.](https://proceedings.mlr.press/v70/singh17a.html)
17. [Jorge Vergara, Pablo Estévez (2013). A Review of Feature Selection Methods Based on Mutual Information, arXiv:1509.07577](https://arxiv.org/abs/1509.07577)
18. [Jan Mielniczuk (2022). Information Theoretic Methods for Variable Selection — A Review. Entropy/PMC9407310](https://pmc.ncbi.nlm.nih.gov/articles/PMC9407310/)
19. [Open Source Tools for the Information Theoretic Analysis of Neural Data, PMC2891486](https://pmc.ncbi.nlm.nih.gov/articles/PMC2891486/)
20. [Computational methods to study information processing in neural circuits, Computational and Structural Biotechnology Journal](https://spj.science.org/doi/10.1016/j.csbj.2023.01.009)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Random variables › Exchangeability, independence, and Gaussian structure › Independence of random variables and events

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/mutual-information

English original: https://www.edgepedia.org/mutual-information
