The Exercise
Two random variables and take values in finite sets and , with joint distribution . The conditional entropy , the joint entropy less the entropy of , is the uncertainty left in once is known. The exercise writes as a relative entropy between and a second function on the pairs , and asks for its sign: is never negative, and it vanishes exactly when is a function of .
Entropies of a Pair
The Shannon entropy of a distribution on a finite set is, with the natural logarithm and so in nats, (1)✦
The first marginal of a joint distribution of and on is the distribution of alone, obtained by summing out : (2)✦
Applied to , the entropy (1) is the joint entropy ; applied to , it is .
The reference function of a joint distribution of and is the function on that weights each joint probability by the conditional probability of given : (3)✦
The relative entropy of to is written .
Under a joint distribution of and , the variable is determined by when there is a function from to with (4)✦
The Claim
Theorem 1. Let and be finite sets and a function on with for every pair, with first marginal as in (2) and reference function as in (3). Then (5)✦ and (6)✦ If moreover is not empty, then (7)✦
For a joint distribution of and the left side of (5) is , and the theorem is the exercise.
What Is Checked
The theorem is stated for every nonnegative function on a product of two finite sets, normalized or not, through the Shannon entropy (1), the first marginal (2), the reference function (3) and the relative entropy, with determination (4) in its equality case. About these constructions the library proves the identity (5), the sign (6) and the equality case (7).