Skip to content
← All questions

How is mutual information related to joint entropy and marginal entropies?

Mutual information I(X;Y)I(X;Y) is related to marginal entropies H(X)H(X) and H(Y)H(Y), and joint entropy H(X,Y)H(X,Y) by the identity I(X;Y)=H(X)+H(Y)−H(X,Y)I(X;Y) = H(X) + H(Y) - H(X,Y). This is derived from the Venn diagram where the union of the two entropy circles is the joint entropy, and their intersection is the mutual information. Adding the two full circles counts the overlap twice, so subtracting the union leaves exactly the intersection.

Conditions

  • XX and YY are random variables with finite entropies.
  • The diagram treats H(X,Y)H(X,Y) as the union of the two entropy circles and I(X;Y)I(X;Y) as their intersection.

Reasoning, step by step

  1. Read the left circle as H(X)H(X) and the right circle as H(Y)H(Y).
  2. Read the union of the two circles as the joint entropy H(X,Y)H(X,Y).
  3. Read the intersection as mutual information I(X;Y)I(X;Y).
  4. Apply the inclusion-exclusion principle: adding the two full circles counts the overlap twice.
  5. Subtract the union from the sum of the two circles to isolate the intersection.
  6. Conclude that I(X;Y)=H(X)+H(Y)−H(X,Y)I(X;Y) = H(X) + H(Y) - H(X,Y).

Example

The video displays the identity I(X;Y)=H(X)+H(Y)−H(X,Y)I(X;Y)=H(X)+H(Y)-H(X,Y) directly beneath the Venn diagram, with the narrator stating, 'So we get this elegant identity.'

Common misconceptions

  • Assuming H(X,Y)H(X,Y) is the sum of H(X)H(X) and H(Y)H(Y); it is only their sum minus the mutual information.
  • Confusing the intersection (mutual information) with the union (joint entropy).

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.