Q. 9.13

Question

Prove that if X can take on any of n possible values with respective probabilities P1, ... ,Pn, then H(X) is maximized when Pi = 1/n, i = 1, ... , n. What is H(X) equal to in this case? 

Step-by-Step Solution

Verified
Answer

The required statement is proved in below step.

1Step 1: Given Information

We have to find H(X) and prove the given statement.

2Step 2: Simplify

Considering the problem of maximization

H(p1,...,pn)=-i=1npilog2pi

with condition i=1npi=1.


Considering the Langrangian function

L(p1,...pn,λ)=-i=1npilog2pi-λPii=1n-1

With differentiation, we will get the system of equations

pi=-log2Pi+1log2-λ=0,i=1,...,n                       λ=pii=1n-1=0


If we look at the first equality a little bit better, we have that

log2p1+1log2=-λ=log2pj+1log2

for every i,j. it implies that pi=pj for every iand j. Hence, putting these information in the last equality, we have

np1-1=0p1=1n

which implies pi=1n.

Hence, we have proved the statement.