The Exercise
A coin shows heads with probability and tails with probability . Its entropy, measured in bits, is called the binary entropy. The exercise is to show that the binary entropy, written , is a concave function of . Take a coin of bias and a coin of bias , pick the first with probability and the second otherwise, and toss the one picked without recording which it was. Heads comes up with probability , and concavity says that the entropy of this toss is at least the average of the two coins’ entropies, with weights and .✦
The Binary Entropy
The binary entropy of a real number is the real number (1)✦ with the logarithm to base 2 and the convention .
The Claim
The library states concavity on the closed interval together with its strict form.
Theorem 1. Let and be numbers in and let . Then the binary entropy is concave on : (2)✦ If moreover and , it is strictly concave there: (3)✦
What Is Checked
The claim is stated over the binary entropy (1) on the closed interval of coin biases. About that function on that interval the library proves both inequalities of the theorem, (2) and (3).