Skip to content
← All questions

What does the formula I(X;Y)=D_KL(p(x,y)p(x,y)||p(x)p(y)p(x)p(y)) mean conceptually?

Conceptually, this formula identifies mutual information as the Kullback-Leibler (KL) divergence between the actual joint distribution p(x,y)p(x,y) and the independent reference distribution p(x)p(y)p(x)p(y). It measures how far the actual joint distribution is from pure independence. The expanded sum makes this explicit as an expectation under the joint of the log-ratio of the joint to the independent product.

Conditions

  • The displayed derivation is for discrete distributions using probability mass functions.
  • The ratio form requires p(x,y)>0p(x,y)>0 and p(x)p(y)>0p(x)p(y)>0 on the summed support.

Reasoning, step by step

  1. Identify the actual joint distribution p(x,y)p(x,y).
  2. Identify the independent reference distribution p(x)p(y)p(x)p(y).
  3. Recognize that the KL divergence measures the distance between these two distributions.
  4. Conclude that mutual information quantifies how far the joint distribution deviates from independence.

Example

The narrator describes it as 'the KL divergence between the joint distribution and what the joint would look like if the variables were independent.' The screen displays I(X;Y)=DKL(p(x,y)∣∣p(x)p(y))=∑x,yp(x,y)log⁡p(x,y)p(x)p(y)I(X;Y)=D_{KL}(p(x,y) || p(x)p(y)) = \sum_{x,y} p(x,y)\log \frac{p(x,y)}{p(x)p(y)}.

Common misconceptions

  • Assuming the KL divergence is symmetric; the video does not state that DKL(P∣∣Q)=DKL(Q∣∣P)D_{KL}(P||Q) = D_{KL}(Q||P), though it later states mutual information itself is symmetric.
  • Thinking the formula applies to continuous distributions without modification; the clip explicitly uses discrete probability mass functions.

Watch the explanation

Connected concepts

Explore next

Related questions

Meet the concept

↗
Understand why

↗
Meet the concept

↗
Understand why

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.