Information Theory and Coding Basics
Two random variables X (value 0 or 1) and Y (value a, b or c) have the joint probabilities P(0, a) = P(0, b) = P(1, b) = P(1, c) = 1/4, and every other combination has probability 0. Which of the following is the mutual information I(X;Y)?
- A0.5 bits
- B1 bit
- C1.5 bits
Show answer and explanation
Answer: A. 0.5 bits
X is 0 or 1 with probability 1/2 each, so H(X) = 1 bit; Y is a with 1/4, b with 1/2 and c with 1/4, so H(Y) = 1.5 bits. The four pairs each have probability 1/4, so H(X, Y) = 2 bits, and I(X;Y) = H(X) + H(Y) − H(X, Y) = 1 + 1.5 − 2 = 0.5 bits. If Y is a or c the value of X is known, and if it is b it is not, so Y gives part of the information about X.
- A. Correct. 1 + 1.5 − 2 = 0.5 bits.
- B. 1 bit is H(Y|X) = H(X, Y) − H(X) = 2 − 1, the uncertainty about Y that remains once X is known.
- C. 1.5 bits is H(Y), the entropy of Y itself. It is not the part shared between X and Y.
Continue: 9 more Information Theory and Coding Basics questions