Problem Set1
Problem Set1
Problem Set 1
1. Coin flips. A fair coin is flipped until the first head occurs. Let X denote the number of
flips required.
(a) Find the entropy H(X) in bits. The following expressions may be useful:
∞ ∞
X r X r
rn = , nrn = .
(1 − r) (1 − r)2
n=1 n=1
(a)
H(X, g(X)) = H(X) + H(g(X)|X)
(b)
= H(X);
(c)
H(X, g(X)) = H(g(X)) + H(X|g(X))
(d )
≥ H(g(X).
3. Zero conditional entropy. Show that if H(Y |X) = 0, then Y is a function of X, i.e., for
all x with p(x) > 0, there is only one possible value of y with p(x, y) > 0
4. World Series. The World Series is a seven-game series that terminates as soon as either
team wins four games. Let X be the random variable that represents the outcome of a
World Series between teams A and B; possible values of X are AAAA, BABABAB, and
BBBAAAA. Let Y be the number of games played, which ranges from 4 to 7. Assuming
that A and B are equally matched and that the games are independent, calculate H(X),
H(Y ), H(Y |X), and H(X|Y ).
H(X2 |X1 )
ρ=1− .
H(X1 )
I(X1 ;X2 )
(a) Show ρ = H(X1 ) .
(b) Show 0 ≤ ρ ≤ 1.
(c) When is ρ = 0?
(d) When is ρ = 1?