Skip to content
← All questions

How is conditional entropy H(X|Y) related to joint entropy H(X,Y)H(X,Y) and marginal entropy H(Y)H(Y)?

Conditional entropy is the difference between the joint entropy of X and Y and the marginal entropy of Y. This relationship is expressed by the entropy chain rule: H(X|Y) = H(X,Y)−H(Y)H(X,Y) - H(Y).

Conditions

  • X and Y are discrete random variables with well-defined joint and marginal entropies.

Reasoning, step by step

  1. Start with the pointwise identity for self-information: h(x|y) = h(x,y)−h(y)h(x,y) - h(y).
  2. Take the expected value of both sides over the joint distribution of X and Y.
  3. By linearity of expectation, E[h(X|Y)] = E[h(X,Y)]−E[h(Y)]E[h(X,Y)] - E[h(Y)].
  4. Substitute the definitions of conditional, joint, and marginal entropy to get H(X|Y) = H(X,Y)−H(Y)H(X,Y) - H(Y).

Example

The slide explicitly states H(X|Y) = H(X,Y)−H(Y)H(X,Y) - H(Y), and the Venn diagram visually represents H(X|Y) as the non-overlapping part of the red circle (H(X)H(X)) after removing the intersection (which relates to the shared information with H(Y)H(Y)).

Common misconceptions

  • Thinking that H(X|Y) = H(X)−H(Y)H(X) - H(Y), which is generally false unless X and Y are independent or have specific structural relationships.
  • Misinterpreting the Venn diagram as literal set membership rather than a mnemonic for additive relationships among entropy quantities.

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.