Mutual Information of a Bivariate Gaussian
What you are seeing: the joint probability density of two correlated Gaussian random variables and . The heatmap is . The curves on the top and right are the marginals and . The number in the corner measures how much knowing reduces your uncertainty about . It is zero when and are independent and grows without bound as they become perfectly correlated.
For a 2D Gaussian with correlation there is a clean closed form: Slide to see how the heatmap stretches along the diagonal and how rises. We compute the same quantity numerically by trapezoidal integration on the same grid and report both numbers; they agree to a few percent at the default resolution.
rho0.600
sigma_x1.00
sigma_y1.00
WHAT TO TRY
- Slide rho toward 1: the joint density collapses onto a line and the mutual information I(X;Y) grows without bound. Knowing X then pins down Y.
- Set rho to 0: the heatmap becomes an axis-aligned blob, the joint factorizes into its marginals, and I(X;Y) drops to zero. Independence means no shared information.
- Change sigma_x or sigma_y: the marginals widen but I(X;Y) depends only on the correlation, not the individual spreads. Mutual information is scale-free.