Mutual Information
Mutual information measures the amount of information (in bits or nats) that one random variable carries about another — equivalently, the reduction in uncertainty about from observing . Key result: , with equality iff . It applies wherever dependence must be quantified: communication channels, feature selection, neuroscience, statistical inference. Introduced by Claude Shannon (1948).
Independence means . Mutual information measures how far the true joint distribution is from this independence factorization, using relative entropy as the yardstick. Because relative entropy is nonnegative and vanishes only when its two arguments coincide, mutual information is a faithful "dependence detector": it is exactly zero precisely when independence holds, and it grows as the joint distribution concentrates away from the product structure.
Formal Statement
Let and be random variables on (possibly distinct) spaces with joint distribution and marginals , . The mutual information is the relative entropy between the joint and the product of marginals:
Derivation hint: This is the definition. The symbol denotes the product measure assigning mass to rectangles . In the discrete case with joint pmf and marginals , :
Derivation hint: Expand the KL definition with and . In the continuous case with joint density and marginals (assuming ):
Derivation hint: Replace the joint pmf by the joint density and sums by integrals; the Radon–Nikodym derivative of w.r.t. is . Here base 2 gives bits, base gives nats, base 256 gives bytes. Symbols: are the alphabets; below denotes Shannon entropy.
For discrete random variables, mutual information admits the entropy decompositions
where , , and . Derivation hint: Substitute into [2] and split the logarithm; for [5] use twice.
1. Nonnegativity: , with equality iff . 2. Symmetry: . 3. Bounds: (discrete case). 4. Self-information: . 5. Data Processing Inequality: if is a Markov chain, then . 6. Chain rule: . 7. Invariance: for invertible smooth maps , .
Why It Holds / Derivation
We prove and the equality condition.
Step 1. Write, using [2],
Derivation hint: Negate [2] and flip the fraction inside the log.
Step 2. The function is concave, so by Jensen's inequality applied to the expectation under ,
Derivation hint: For concave , with .
Step 3. Evaluate the inner expectation over the support of :
Derivation hint: The cancels; the remaining sum over the support of the joint is .
Step 4. Thus , i.e. .
Step 5 (equality). Jensen is tight iff is constant a.s., i.e. on the support, forcing everywhere — exactly independence.
∎Assume the Markov chain , i.e. .
Step 1. By the chain rule [property 6] applied two ways,
Derivation hint: Expand by conditioning first on , then on .
Step 2. The Markov property gives , since and are conditionally independent given . Derivation hint: Conditional MI is zero exactly under conditional independence, by the equality case of nonnegativity applied to the conditional distributions.
Step 3. Substituting, . Since conditional mutual information ,
Derivation hint: Drop the nonnegative term .
∎Shannon, an American mathematician and electrical engineer at Bell Labs, founded information theory in his 1948 monograph A Mathematical Theory of Communication. He introduced entropy as a measure of uncertainty and what he called the rate of transmission — now mutual information — as the quantity governing reliable communication over noisy channels. Shannon's genius was to recognize that "information" could be made precise as a measure of reducible uncertainty, divorced from semantic meaning, and that this measure governs hard operational limits. His noisy channel coding theorem established channel capacity as the supremum of achievable error-free rates, making mutual information not a mere mathematical convenience but a physical constant of a communication system.
Building Intuition
Think of as "how many yes/no questions about you save by first looking at ." Before seeing , your uncertainty about is bits. After seeing , it drops to . The mutual information is the average savings, . A second picture is the Venn diagram of entropies: draw two overlapping circles of areas and . The total covered area is , the overlap is , and the crescents are the conditional entropies and . Equation [5] is just "overlap = sum of circles minus union." (This picture is exactly correct for two variables; for three or more it can produce negative "interaction information" and must be used with care.) A third picture is statistical surprise: each observed pair carries pointwise information — positive when and co-occur more than chance, negative when less. Mutual information is the average of this pointwise log-likelihood ratio, and the average is always nonnegative even though individual terms can be negative.
Worked Examples
Given: A binary input with passes through a channel that flips the bit with probability , producing output . Compute in bits.
Step 1 — Output marginal. By symmetry, , so bit.
Step 2 — Conditional entropy. Given , the output is wrong with probability :
Derivation hint: Given , is Bernoulli away from ; its entropy is the binary entropy function .
Step 3 — Evaluate. With :
Step 4 — Combine. .
This is exactly the channel capacity for a uniform input; over a noisy channel each transmitted bit conveys only about half a bit of information.
Given: jointly Gaussian with correlation coefficient . Compute in nats and bits.
Step 1 — Formula. For a zero-mean bivariate normal,
Derivation hint: Use with differential entropy for marginals and for the joint, with ; the and terms cancel.
Step 2 — Evaluate. , so
Step 3 — Convert to bits. Divide by :
Note that as , : perfect deterministic dependence between continuous variables carries unbounded information, reflecting that differential entropy is unbounded below.
Common Misconceptions
Differential mutual information is finite and nonnegative, but the differential entropy terms can be negative. Do not conclude that inherits the pathologies of differential entropy. Although can be negative and is not invariant under change of variables, the combination in [3] is a genuine relative entropy: it is nonnegative, invariant under invertible reparametrizations, and equals when determines . Treat , not , as the fundamental object in the continuous setting.
Zero correlation does not imply zero mutual information. Correlation captures only linear dependence; mutual information captures all dependence. The converse (independence) is the only condition that forces .
Let and . Then
Derivation hint: is symmetric about , so all odd moments vanish. so the correlation is exactly zero. Yet is a deterministic function of , so observing removes all uncertainty about : and . A dependence-detector based on correlation reports "independent"; mutual information correctly reports strong dependence. This is precisely why MI is preferred for nonlinear feature screening.
Connections
Mutual information sits at the hub of several quantitative theories.
- <span class="wiki-link-missing">Kullback–Leibler Divergence</span>: MI is a KL divergence ([1]); all its properties descend from those of relative entropy.
- <span class="wiki-link-missing">Shannon Entropy</span> and <span class="wiki-link-missing">Conditional Entropy</span>: the decompositions [4]–[5] express MI through these, giving the Venn-diagram picture.
- <span class="wiki-link-missing">Channel Capacity</span>: is the operational meaning of MI in communication, via Shannon's noisy channel coding theorem.
- <span class="wiki-link-missing">Fisher Information</span>: for a parametric family near independence, MI is approximated by a quadratic form in the Fisher information metric; locally MI behaves like a squared statistical distance.
- <span class="wiki-link-missing">Total Correlation</span> and <span class="wiki-link-missing">Interaction Information</span>: these multivariate generalizations extend MI beyond two variables, where the naive Venn picture breaks down.
- <span class="wiki-link-missing">Maximal Information Coefficient</span> and distance correlation: practical estimators built to inherit MI's "zero iff independent" property.
Real-World Applications
Historical Development
Subtleties & Limits
Estimating mutual information from finite samples is fundamentally hard. For continuous variables, no estimator can be uniformly consistent at a guaranteed rate over all distributions; the convergence rate depends on unknown smoothness, and high-dimensional MI estimation suffers a curse of dimensionality. Popular neural estimators (MINE, InfoNCE) produce lower bounds that are provably loose: McAllester and Stratos (2020) showed any distribution-free lower bound from samples cannot exceed , so estimated MI of "tens of bits" from modest data is statistically meaningless. Open and active questions include: (i) the optimal minimax sample complexity for MI estimation under structural assumptions; (ii) trustworthy upper bounds usable as regularizers; (iii) the right multivariate generalization — interaction information can be negative and the Venn picture fails for variables, leaving "synergy versus redundancy" decompositions (the partial information decomposition of Williams & Beer, 2010) without a fully agreed-upon definition; (iv) MI as a representation-learning objective is invariant to any invertible map, so maximizing it alone cannot prefer "useful" representations — a tension that current theory only partially resolves.
See Also
Shannon Entropy · Kullback–Leibler Divergence · Conditional Entropy · Channel Capacity · Rate–Distortion Theory · Information Bottleneck Method · Fisher Information · Data Processing Inequality · Total Correlation · Differential Entropy