Skip to content
← All questions

Why is mutual information equal to H(X)H(X) minus H(X|Y)?

Mutual information I(X;Y)I(X;Y) represents the reduction in uncertainty about XX after observing YY. H(X)H(X) is the initial uncertainty about XX, and H(X∣Y)H(X|Y) is the remaining uncertainty after YY is known. Therefore, the difference between the initial entropy and the conditional entropy, H(X)−H(X∣Y)H(X) - H(X|Y), quantifies exactly how much information about XX is gained by observing YY.

Conditions

  • XX and YY are random variables.
  • H(X)H(X) and H(X∣Y)H(X|Y) use the same unit system.

Reasoning, step by step

  1. Start with the initial uncertainty about XX, denoted as H(X)H(X).
  2. Observe another variable YY.
  3. Determine the remaining uncertainty about XX after observing YY, denoted as H(X∣Y)H(X|Y).
  4. Calculate the gap between the initial and remaining uncertainty.
  5. Conclude that this gap is the mutual information I(X;Y)=H(X)−H(X∣Y)I(X;Y) = H(X) - H(X|Y).

Example

Visually, a tall rectangle labeled H(X)H(X) transforms via observing YY into a shorter rectangle labeled H(X∣Y)H(X|Y). The green region representing the height difference is labeled I(X;Y)I(X;Y).

Common misconceptions

  • Treating H(X)H(X) itself as mutual information; mutual information is strictly the difference or gap between H(X)H(X) and H(X∣Y)H(X|Y).
  • Assuming observing YY always reduces uncertainty; if XX and YY are independent, H(X∣Y)=H(X)H(X|Y) = H(X) and mutual information is zero.

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.