How Far Is a Coin-Flip Count from Uniform?

Mixed: Distributions & Information TheoryHard+30 XP+30

How Far Is a Coin-Flip Count from Uniform?

A fair coin is flipped twice and XXX counts the heads, so X∼Binomial(2, 0.5)X \sim \text{Binomial}(2,\ 0.5)X∼Binomial(2, 0.5) over the outcomes {0,1,2}\{0, 1, 2\}{0,1,2}. Call this true distribution PPP.

A model QQQ wrongly assumes the three outcomes are equally likely, i.e. Q(0)=Q(1)=Q(2)=1/3Q(0) = Q(1) = Q(2) = 1/3Q(0)=Q(1)=Q(2)=1/3.

Compute the Kullback–Leibler divergence in bits:

DKL(P∥Q)=∑kP(k)log⁡2P(k)Q(k)D_{KL}(P \parallel Q) = \sum_{k} P(k)\log_2\frac{P(k)}{Q(k)}DKL​(P∥Q)=∑k​P(k)log2​Q(k)P(k)​

Useful values: log⁡23≈1.5850\log_2 3 \approx 1.5850log2​3≈1.5850, log⁡20.75≈−0.4150\quad \log_2 0.75 \approx -0.4150log2​0.75≈−0.4150, log⁡21.5≈0.5850\quad \log_2 1.5 \approx 0.5850log2​1.5≈0.5850.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.