← Back to AI Math Mind Map
中文·English
📐 AI MathID: mutual-information

Mutual Information

互信息
🎯Core Definition
Mutual information quantifies how much one random variable tells us about another: I(X;Y)=H(X)−H(X∣Y)=H(Y)−H(Y∣X)=∑x∑yp(x,y)log⁡p(x,y)p(x)p(y)≥0I(X;Y) = H(X) - H(X|Y) = H(Y) - H(Y|X) = \sum_x \sum_y p(x,y)\log\frac{p(x,y)}{p(x)p(y)} \ge 0. It is the KL divergence between the joint and the product of marginals, I(X;Y)=DKL(p(x,y)∥p(x)p(y))I(X;Y) = D_{KL}(p(x,y) \Vert p(x)p(y)), and I(X;Y)=0  ⟺  X⊥YI(X;Y) = 0 \iff X \perp Y. Intuitively H(X∣Y)=H(X)−I(X;Y)H(X|Y) = H(X) - I(X;Y): MI is exactly the reduction in uncertainty about XX after observing YY.
💡Use Cases
feature selection (pick features with highest MI to the label), information-gain splitting in decision trees, cluster/dimensionality-reduction quality evaluation, information-bottleneck analysis of generative models; interviews often start from "does zero correlation imply independence?"
⚡Key Problems Solved
correlation only captures linear dependence — e.g. for Y=X2Y = X^2 the correlation is 0 while MI is large; MI captures arbitrary (including nonlinear) dependence and is invariant to monotone transformations, making it a strictly more complete dependence measure. The cost: estimation for continuous variables is hard (binning/kernel density or variational bounds), with notable upward bias at small sample sizes.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Mutual Information.
Use Cases
In production engineering, what are the primary use cases for Mutual Information and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Define mutual information and give its three equivalent forms. Why is I(X;Y)≥0I(X;Y) \ge 0?
2
How does MI differ from the correlation coefficient? Why does zero correlation not imply independence?
3
What is the necessary and sufficient condition for I(X;Y)=0I(X;Y) = 0? Relation with conditional entropy H(X∣Y)H(X|Y)?
4
Meaning of the chain rule I(X,Y;Z)=I(X;Z)+I(Y;Z∣X)I(X,Y;Z) = I(X;Z) + I(Y;Z|X)? How is it used in feature selection?
5
Given a joint table p(x,y)p(x,y), compute MI by hand? How to estimate MI for continuous variables?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Mutual Information"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice ➔
← Previous CardEntropy, KL & Cross-EntropyNext Card →Bayesian Inference

🔗 More AI Math Knowledge Cards

Adam/AdamW MathBias-Variance DecompositionBootstrapCausal Inference (Rubin)