Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.How much does one thing tell you about another?
If I tell you it’s raining, you learn something about whether people carry umbrellas. Mutual information counts how many bits of uncertainty about one thing disappear when you learn the other. If they’re unrelated, it’s zero. If one completely determines the other, it’s all the uncertainty there was.
Mutual information decides which sensor to point where (active perception), which features to keep, how much a channel can carry, and how to align images from different instruments. It’s also the training signal behind contrastive representation learning.
- 1. If X and Y are independent, I(X;Y) is…
- 2. Is I(X;Y) the same as I(Y;X)?
- 3. Can MI detect a U-shaped relationship that has zero correlation?
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
It’s the KL divergence from the joint to the product of marginals: how far the variables are from independence.
In terms of entropy
Hence and .
Pointwise MI
can be negative for an individual pair. MI is its average, which is never negative.
- 1. H(X) = 1.5, H(Y) = 1.2, H(X, Y) = 2.2 bits. I(X;Y) =
- 2. I(X;Y) = KL between…
- 3. The MI of a perfectly copied fair bit with itself is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Gaussian MI
For jointly Gaussian variables with correlation :
In dimensions, . For Gaussians, MI and correlation tell the same story. Outside the Gaussian world they don’t.
Conditional MI and the chain rule
Conditioning can raise or lower MI. In the XOR example, : but bit.
Estimating MI from samples
- Plug-in (histogram): simple, but biased upward by roughly nats.
- KSG k-nearest-neighbour estimator (Kraskov, Stögbauer and Grassberger, 2004): better for continuous data.
- Variational bounds (MINE, InfoNCE): for high-dimensional data. InfoNCE is capped at (batch size).
- 1. Gaussian MI with ρ = 0.9 (bits) ≈
- 2. Histogram MI estimates are biased…
- 3. With Z = X XOR Y for independent fair bits, I(X;Y | Z) =
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proofs
- Non-negativity: by Gibbs, with equality iff .
- “Conditioning reduces entropy”: follows at once, on average. For a specific , can exceed .
- Entropy form: . Take the expectation: . ∎
Gaussian derivation
with . The factors cancel, leaving . ∎
Binary symmetric channel
Input , flip probability : . It’s maximized at , giving , the capacity (A7-8).
Exercise 3.1: BSC with ε = 0.11, fair input
, so bits per use.
- 1. I(X;Y) ≥ 0 follows from…
- 2. H(X | Y = y) can exceed H(X) for a particular y?
- 3. The BSC's MI is maximized by input probability…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Active perception: look where you’ll learn the most
A rover hunts for a buried ice target among 16 candidate cells. Orbital data gives a prior. Each look at one cell detects the target with probability 0.8 and false-alarms with probability 0.1. The expected information gain of looking at a cell is
Greedily picking the most informative cell (Bayesian search theory; Krause and Guestrin, 2005) shrinks the remaining entropy far faster than a fixed sweep. Under a monotone submodular objective, greedy selection is within of optimal (Nemhauser, Wolsey and Fisher, 1978).
Mutual information in AI, robotics and aerospace
- Active perception and exploration: information-gain next-best-view planning and MI-based exploration mapping (Julian et al., 2014; Charrow et al., 2015).
- Sensor placement: near-optimal greedy MI placement with Gaussian processes (Krause, Singh and Guestrin, 2008).
- Image registration: aligning multi-modal medical and planetary images by maximizing MI (Viola and Wells, 1997).
- Representation learning: InfoNCE and contrastive learning maximize a lower bound on MI (van den Oord et al., 2018).
- Feature selection: mRMR (Peng et al., 2005).
References
- T. Cover, J. Thomas (2006). Elements of Information Theory, 2nd ed. Wiley. Ch. 2, 8.
- A. Kraskov, H. Stögbauer, P. Grassberger (2004). “Estimating mutual information.” Physical Review E, 69, 066138.
- A. Krause, A. Singh, C. Guestrin (2008). “Near-optimal sensor placements in Gaussian processes.” JMLR, 9.
- G. Nemhauser, L. Wolsey, M. Fisher (1978). “An analysis of approximations for maximizing submodular set functions.” Mathematical Programming, 14.
- B. Julian, S. Karaman, D. Rus (2014). “On mutual information-based control of range sensing robots for mapping applications.” IJRR, 33(10).
- B. Charrow et al. (2015). “Information-theoretic planning with trajectory optimization for dense 3D mapping.” RSS.
- P. Viola, W. Wells (1997). “Alignment by maximization of mutual information.” IJCV, 24(2).
- A. van den Oord, Y. Li, O. Vinyals (2018). “Representation learning with contrastive predictive coding.” arXiv:1807.03748.
- M. Belghazi et al. (2018). “Mutual information neural estimation.” ICML.
- H. Peng, F. Long, C. Ding (2005). “Feature selection based on mutual information.” IEEE TPAMI, 27(8).