The simplest case — a possibly biased coin — shows how entropy is a function of the probability pp, with a well-defined maximum.

Example — Tossing a coin

X{T,C}X\in\{T,C\} with P(T)=pP(T)=p, P(C)=1pP(C)=1-p. Then H(X)=plog2p(1p)log2(1p).H(X) = -p\log_2 p - (1-p)\log_2(1-p). Function study: maximum at p=1/2p=1/2 with H=1H=1 bit (total uncertainty); minimum at p=0p=0 or p=1p=1 with H=0H=0 (no surprise).

Entropy of the coin H(p)=plog2p(1p)log2(1p)H(p)=-p\log_2 p-(1-p)\log_2(1-p): maximum Hmax=1H_{\max}=1 bit at p=1/2p=1/2, zero at the extremes p=0p=0 and p=1p=1.

Topics: Distribuzioni probabilita
Concepts: Entropia
Skills: Interpretare grafico · Studiare funzione