Lean, informalized

Nielsen & Chuang · Chapter 11, Entropy and information · p. 518

Exercise 11.21 - Concavity of the Shannon entropy for distributions on a finite set

The entropy of a mixture is at least the average entropy.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

An outcome xx in a finite set 𝒳\mathcal{X} is produced in two steps. First an index ii is drawn from a finite set II with probability pip_i; then xx is drawn from a probability distribution qiq_i on 𝒳\mathcal{X} that depends on the index. Someone who sees only the outcome finds xx with probability ∑ipiqi(x)\sum_i p_i q_i(x), so the outcome follows the mixture ∑ipiqi\sum_i p_i q_i of the distributions qiq_i with weights pip_i.

The exercise is to show that the Shannon entropy is concave: the entropy of the mixture is at least the average of the entropies of the qiq_i, taken with the weights pip_i.✦

The Shannon Entropy

The Shannon entropy H(r)H(r) of a probability distribution rr on a finite set 𝒳\mathcal{X} is the number H(r)=−∑x∈𝒳r(x)log⁡r(x),H(r) = -\sum_{x \in \mathcal{X}} r(x) \log r(x),(1)✦ with the natural logarithm, so that HH is measured in nats.

The Claim

Theorem 1. Let pp be a probability distribution on a finite set II, and for each i∈Ii \in I let qiq_i be a probability distribution on a finite set 𝒳\mathcal{X}. Then ∑i∈IpiH(qi)≤H(∑i∈Ipiqi).\sum_{i \in I} p_i \, H(q_i) \;\le\; H\Big(\sum_{i \in I} p_i q_i\Big).(2)✦

What Is Checked

The claim is stated over one construction, the Shannon entropy (1), taken of each qiq_i and of their mixture. About it the library has the inequality (2), for finite sets II and 𝒳\mathcal{X} of any size.