Why Correlation Misses Nonlinear Dependence
Motivation: Zero Correlation, High Information
Linear correlation \rho(X, Y) = \frac{\textrm{Cov}(X, Y)}{\sigma_X \sigma_Y} detects only straight-line relationships. Consider X \sim \mathcal{N}(0, 1) and the noisy parabola Y = X^2 + 0.3\epsilon with \epsilon \sim \mathcal{N}(0, 1):
![]()
- Because X^3 is symmetric around zero, \textrm{Cov}(X, Y) = \mathbb{E}[X^3] = 0 \implies \rho(X, Y) = 0, yet knowing X pins down Y to within standard deviation 0.3 and shares 1.14\text{ nats}—more than the bivariate Gaussian at \rho = 0.9 (0.83\text{ nats}).
Joint and Conditional Entropy on the Flipped Bit
Running Benchmark: Binary Symmetric Channel
Let X \in \{0, 1\} be a fair bit (H(X) = \ln 2 \approx 0.693\text{ nats}) flipped with probability \delta = 0.1 to produce Y:
p_{X,Y} = \begin{pmatrix} 0.45 & 0.05 \\ 0.05 & 0.45 \end{pmatrix}, \qquad H(X, Y) = H(X) + H(Y \mid X)
- Conditional & joint entropy: Each row has H(Y \mid X = x) = H_b(0.1) = 0.325\text{ nats}, so H(X, Y) = 0.693 + 0.325 = 1.018\text{ nats} and I(X; Y) = 0.693 - 0.325 = 0.368\text{ nats}.
Symmetry, Non-Negativity, and Entropy Overlap
Fundamental Identities
How does mutual information connect to individual, joint, and conditional entropies?
- Non-negativity & independence: By Gibbs’ inequality, I(X; Y) = I(Y; X) \ge 0, and I(X; Y) = 0 \iff P_{X,Y} = P_X \otimes P_Y (X and Y are independent).
- Three equivalent entropy decompositions: Expanding \log\frac{p(x,y)}{p(x)p(y)} yields: I(X; Y) = H(X) + H(Y) - H(X, Y) I(X; Y) = H(X) - H(X \mid Y) = H(Y) - H(Y \mid X)
- Uncertainty reduction: On the flipped bit, observing X cuts the uncertainty of Y by 0.693 - 0.325 = 0.368\text{ nats}.
Evaluating Nonlinear MI on the Noisy Parabola
1D Quadrature vs. Gaussian Upper Bound
For X \sim \mathcal{N}(0, 1) and Y = X^2 + 0.3\epsilon (\rho = 0), conditioning on X = x leaves only the additive Gaussian noise 0.3\epsilon, so h(Y \mid X) = \tfrac12\ln(2\pi e \cdot 0.09) = 0.215\text{ nats}, while 1D numerical quadrature of p_Y(y) gives h(Y) = 1.356\text{ nats} and I(X; Y) = 1.141\text{ nats}:
h(Y) = 1.356, h(Y|X) = 0.215, I(X;Y) = h(Y) - h(Y|X) = 1.141 nats
Reparameterization Invariance Under Bijections
Coordinate Independence
Unlike differential entropy h(X) (which shifts with units) or linear correlation \rho(X, Y) (which changes under nonlinear stretches), mutual information is invariant under any invertible transformation of the variables:
I\big(\phi(X); \psi(Y)\big) = I(X; Y) \quad \text{for all bijections } \phi, \psi
- Why Jacobians cancel: For smooth bijections \tilde{x} = \phi(x) and \tilde{y} = \psi(y), the joint density transforms as p_{\tilde{X},\tilde{Y}}(\tilde{x}, \tilde{y}) = p_{X,Y}(x, y)|\det D\phi(x)|^{-1}|\det D\psi(y)|^{-1}, and the product of marginals p_{\tilde{X}}(\tilde{x})p_{\tilde{Y}}(\tilde{y}) picks up the exact same two Jacobian factors, which cancel in the ratio \frac{p_{\tilde{X},\tilde{Y}}}{p_{\tilde{X}}p_{\tilde{Y}}}.
- Concrete demonstration on the \rho = 0.9 Gaussian pair: Applying the cubic bijection X \mapsto X^3 leaves I(X^3; Y) = I(X; Y) = 0.830\text{ nats} completely unchanged, whereas the linear correlation drops from \rho = 0.900 to \frac{\mathbb{E}[X^3 Y]}{\sqrt{\textrm{Var}(X^3)\textrm{Var}(Y)}} = \frac{3\rho}{\sqrt{15}} = 0.697.
The Data-Processing Inequality (DPI)
Sequential Processing Cannot Create Information
Three variables form a Markov chain X \to Y \to Z if Z depends on (X, Y) solely through Y (p(z \mid x, y) = p(z \mid y), or equivalently I(X; Z \mid Y) = 0).
Theorem (Data-Processing Inequality): If X \to Y \to Z is a Markov chain, then I(X; Z) \le I(X; Y) with equality if and only if I(X; Y \mid Z) = 0 (meaning X \to Z \to Y is also a Markov chain).
- Two-line proof from the chain rule: Expand I(X; Y, Z) in both orders: \begin{aligned} I(X; Z) + I(X; Y \mid Z) &= I(X; Y, Z) = I(X; Y) + \underbrace{I(X; Z \mid Y)}_{= 0 \text{ (Markov)}} \\ \implies I(X; Z) &= I(X; Y) - \underbrace{I(X; Y \mid Z)}_{\ge 0} \le I(X; Y) \quad \blacksquare \end{aligned}
- Sufficient statistics: Equality I(X; T(Y)) = I(X; Y) holds if and only if T(Y) retains everything Y reveals about X (p(x \mid y) = p(x \mid T(y)), e.g., the total head count for a coin’s bias).
Conditioning Is Not Processing: The XOR Synergy
When Conditioning Increases MI
The inequality I(X; Y \mid Z) \le I(X; Y) holds inside a Markov chain X \to Y \to Z, but not in general. If X, Y are independent fair bits and Z = X \oplus Y, observing Z jumps their shared information from 0 to \ln 2 = 0.693\text{ nats}:
I(X;Y) = 0.3681, I(X;Z) = 0.1201, I(X;Z|Y) = 0.0000, I(X;Y|Z) = 0.2480
I(X;Y,Z) by the chain rule: 0.3681 = 0.3681
XOR: I(X;Y) = 0.0000, I(X;Y|Z) = 0.6931 nats
Three-Step Proof of Fano’s Inequality
Error Indicator & Chain Rule
Let W = \mathbf{1}\{\hat{Y} \neq Y\} \in \{0, 1\} be the binary error indicator (P(W = 1) = P_e). Expand the conditional entropy H(W, Y \mid \hat{Y}) in two orders:
- Step 1 (W is a deterministic function of Y and \hat{Y}): H(W, Y \mid \hat{Y}) = H(Y \mid \hat{Y}) + \underbrace{H(W \mid Y, \hat{Y})}_{= 0} = H(Y \mid \hat{Y})
- Step 2 (Expand with W first and bound both terms): H(W, Y \mid \hat{Y}) = \underbrace{H(W \mid \hat{Y})}_{\le H(W) = H_b(P_e)} + \underbrace{H(Y \mid W, \hat{Y})}_{= (1-P_e)\cdot 0 + P_e H(Y \mid W=1, \hat{Y}) \le P_e \log(k-1)}
- Step 3 (Apply data processing to Y \to X \to \hat{Y}): Because I(Y; \hat{Y}) \le I(Y; X), we have H(Y \mid X) \le H(Y \mid \hat{Y}) \le H_b(P_e) + P_e \log(k - 1). \blacksquare
The Test-Loss Certificate: I(X; Y) ≥ H(Y) − L
Barber–Agakov Variational Certificate
While Fano’s inequality uses hard error rate P_e, any probabilistic predictor q(y \mid x) with held-out cross-entropy loss L = \mathbb{E}_{(x,y) \sim P_{X,Y}}[-\log q(y \mid x)] directly certifies a lower bound on I(X; Y):
I(X; Y) = H(Y) - H(Y \mid X) \ge H(Y) - L \quad \Big(\text{with gap } \mathbb{E}_x\big[D_{\textrm{KL}}(p(\cdot \mid x) \,\|\, q(\cdot \mid x))\big] \ge 0\Big)
confidence 0.60: loss 0.5514, certifies I(X;Y) >= 0.1418 nats
confidence 0.80: loss 0.3618, certifies I(X;Y) >= 0.3314 nats
confidence 0.90: loss 0.3251, certifies I(X;Y) >= 0.3681 nats
confidence 0.99: loss 0.4696, certifies I(X;Y) >= 0.2236 nats
Shannon’s Two Curves: Capacity & Rate–Distortion
Extremizing Mutual Information
Shannon’s two fundamental operational limits of communication and lossy compression are dual extremum problems over mutual information:
![]()
- Channel Capacity (Left): Fix the noisy channel p(y \mid x) and maximize over the sender’s input distribution: C = \max_{p(x)} I(X; Y).
- Rate–Distortion (Right): Fix the source p(x) and minimize over the lossy encoder p(\hat{x} \mid x) subject to distortion budget D: R(D) = \inf_{p(\hat{x} \mid x): \mathbb{E}[d(X, \hat{X})] \le D} I(X; \hat{X}).
Capacity of the Binary Symmetric Channel
Maximizing Over Input Distributions
For a binary symmetric channel that flips each transmitted bit independently with probability \delta \in [0, 1], every row of p(y \mid x) has entropy H_b(\delta), so I(X; Y) = H(Y) - H_b(\delta) is maximized when Y (and therefore X) is uniform (\tfrac12, \tfrac12):
C(\delta) = \max_{p(x)} I(X; Y) = \ln 2 - H_b(\delta)\text{ nats per channel use}
P(X=1): 0.10 0.30 0.50 0.70 0.90
I(X;Y): 0.1463 0.3160 0.3681 0.3160 0.1463
delta: 0.00 0.10 0.26 0.50 1.00
C: 0.6931 0.3681 0.1201 0.0000 0.6931
Gaussian Rate–Distortion: 1 Bit Halves RMS Error
Minimizing Over Lossy Encoders
For a Gaussian source X \sim \mathcal{N}(0, \sigma_X^2) under squared-error distortion \mathbb{E}[(X - \hat{X})^2] \le D < \sigma_X^2, the rate–distortion function is:
R(D) = \frac{1}{2}\log\frac{\sigma_X^2}{D} \iff D(R) = \sigma_X^2 e^{-2R} \quad \text{(each extra bit } \ln 2\text{ nats cuts MSE by } 4\times\text{)}
- Lower bound proof: \begin{aligned} I(X; \hat{X}) &= h(X) - h(X - \hat{X} \mid \hat{X}) \ge h(X) - h(X - \hat{X}) \\ &\ge \tfrac12\log(2\pi e\sigma_X^2) - \tfrac12\log(2\pi e D) = \tfrac12\log(\sigma_X^2/D). \end{aligned}
- Attaining the bound via the additive Gaussian channel: Encode Z = X + \sigma\epsilon and reconstruct the posterior mean \hat{X} = \mathbb{E}[X \mid Z] = \frac{\sigma_X^2}{\sigma_X^2 + \sigma^2}Z:
sigma^2 = 0.111: D = 0.100, MSE 0.100, I(X;Z) = R(D) = 1.151 nats
sigma^2 = 1.000: D = 0.500, MSE 0.500, I(X;Z) = R(D) = 0.347 nats
sigma^2 = 3.000: D = 0.750, MSE 0.750, I(X;Z) = R(D) = 0.144 nats
Verifying the Bottleneck Phase Transition & VIB
Grid Search & Variational Autoencoders
Grid search over 4{,}001 noise scales \sigma confirms collapse at \beta = 1.20 and turn-on at \beta = 1.25:
beta = 1.20: I(X;Z) grid 0.000, closed form 0.000; I(Y;Z) = 0.000
beta = 1.25: I(X;Z) grid 0.032, closed form 0.032; I(Y;Z) = 0.026
beta = 1.50: I(X;Z) grid 0.379, closed form 0.378; I(Y;Z) = 0.281
beta = 2.00: I(X;Z) grid 0.725, closed form 0.725; I(Y;Z) = 0.484
beta = 4.00: I(X;Z) grid 1.275, closed form 1.274; I(Y;Z) = 0.687
beta = 16.00: I(X;Z) grid 2.078, closed form 2.079; I(Y;Z) = 0.798
- Variational Information Bottleneck (VIB) and VAEs: When p(z) is unknown, replacing it with a prior r(z) = \mathcal{N}(0, I) upper-bounds the rate via \mathbb{E}_x[D_{\textrm{KL}}(p(z \mid x) \| r(z))] = I(X; Z) + D_{\textrm{KL}}(p(z) \| r(z)) \ge I(X; Z)—the exact KL regularizer of a Variational Autoencoder.
Concept Check: Cascaded Channels, Capacity, IB
Check Your Understanding
Work through these three problems:
- Two noisy lines in series: A fair bit X passes through a flip channel with \delta_1 = 0.1 to produce Y, and Y passes through an independent flip channel with \delta_2 = 0.2 to produce Z. What are I(X; Y), I(X; Z), I(X; Z \mid Y), and I(X; Y \mid Z)?
- Binary symmetric channel capacity: Why does a BSC with flip probability \delta = 1.0 have the same capacity (\ln 2\text{ nats}) as a noiseless channel (\delta = 0), whereas \delta = 0.5 has capacity 0?
- Gaussian bottleneck operating point: For the Gaussian pair at \rho = 0.9 (\rho^2 = 0.81), compute the optimal rate u^* = I(X; Z)^* and preserved label information I(Y; Z)^* at trade-off multiplier \beta = 2.
Concept Check: Cascaded Channels, Capacity, IB (cont.)
Check Your Understanding
Answers:
- Cascaded flips: I(X; Y) = \ln 2 - H_b(0.1) = 0.368\text{ nats}. The composite flip probability is 0.1(0.8) + 0.9(0.2) = 0.26, so I(X; Z) = \ln 2 - H_b(0.26) = 0.120\text{ nats}. By the Markov chain X \to Y \to Z, I(X; Z \mid Y) = 0, and the chain rule gives I(X; Y \mid Z) = 0.368 - 0.120 = 0.248\text{ nats}.
- BSC capacity: C(\delta) = \ln 2 - H_b(\delta). At \delta = 1, every bit is deterministically inverted (H_b(1) = 0) and the receiver simply flips it back; at \delta = 0.5, the output is a fair coin independent of the input (H_b(0.5) = \ln 2 \implies C = 0).
- Gaussian IB at \beta = 2: Since \beta = 2 > 1/0.81 = 1.235, u^* = \tfrac12\ln\frac{0.81(1)}{0.19} = 0.725\text{ nats}, and I(Y; Z)^* = \tfrac12\ln\frac{1}{2(0.19)} = 0.484\text{ nats}.