Skip to main content

Information and average information (entropy)

Short answer

Information of event x_k is I(x_k) = -log2(p_k) bits. For a long independent sequence of N symbols, total information is N Σ p_k log2(1/p_k), so average entropy H = -Σ p_k log2(p_k) bits/symbol.

Define information. Derive the expression for evaluating the average amount of information contained in a statistically independent long sequence of symbols.

Information

The amount of information in an event measures the uncertainty it removes: the less likely the event, the more information its occurrence gives. For a symbol xkx_k with probability pkp_k, the self-information is

I(xk)=log⁡21pk=−log⁡2pk bitsI(x_k) = \log_2 \frac{1}{p_k} = -\log_2 p_k\ \text{bits}

Properties:

  • I=0I = 0 when pk=1p_k = 1 (a certain event gives no information).
  • I≥0I \ge 0, and I(xj)>I(xk)I(x_j) > I(x_k) if pj<pkp_j < p_k.
  • For independent events, information adds: I(xjxk)=I(xj)+I(xk)I(x_j x_k) = I(x_j) + I(x_k).

Units: bits (base 2), nats (base ee) or decits (base 10). Example: a fair coin toss gives log⁡22=1\log_2 2 = 1 bit.

Average information (entropy) of a long sequence

Consider a discrete memoryless source with alphabet {x1,x2,…,xM}\{x_1, x_2, \dots, x_M\} and probabilities {p1,p2,…,pM}\{p_1, p_2, \dots, p_M\}, where ∑pk=1\sum p_k = 1. The symbols are statistically independent.

Step 1. Take a long message of NN symbols (N→∞N \to \infty). By the law of large numbers, symbol xkx_k occurs about

nk=pkN timesn_k = p_k N \text{ times}

Step 2. Each occurrence of xkx_k carries log⁡2(1/pk)\log_2 (1/p_k) bits. So the information from all occurrences of xkx_k is

Ik=nklog⁡21pk=Npklog⁡21pkI_k = n_k \log_2 \frac{1}{p_k} = N p_k \log_2 \frac{1}{p_k}

Step 3. The symbols are independent, so the information adds. The total information in the message is

Itotal=∑k=1MIk=N∑k=1Mpklog⁡21pkI_{total} = \sum_{k=1}^{M} I_k = N \sum_{k=1}^{M} p_k \log_2 \frac{1}{p_k}

Step 4. The average information per symbol, called the entropy, is

H=ItotalN=∑k=1Mpklog⁡21pk=−∑k=1Mpklog⁡2pk bits/symbolH = \frac{I_{total}}{N} = \sum_{k=1}^{M} p_k \log_2 \frac{1}{p_k} = -\sum_{k=1}^{M} p_k \log_2 p_k\ \text{bits/symbol}

Information rate: if the source emits rr symbols/s, then R=rHR = rH bits/s.

Properties of entropy

  • 0≤H≤log⁡2M0 \le H \le \log_2 M.
  • H=0H = 0 when one symbol has p=1p = 1 (no uncertainty).
  • H=log⁡2MH = \log_2 M (the maximum) when all symbols are equally likely.
  • For a binary source with P(1)=pP(1) = p: H(p)=−plog⁡2p−(1−p)log⁡2(1−p)H(p) = -p\log_2 p - (1-p)\log_2(1-p), which peaks at 1 bit when p=0.5p = 0.5.

Example: a source with probabilities 12,14,18,18\tfrac12, \tfrac14, \tfrac18, \tfrac18 has

H=12(1)+14(2)+18(3)+18(3)=1.75 bits/symbolH = \tfrac12(1) + \tfrac14(2) + \tfrac18(3) + \tfrac18(3) = 1.75\ \text{bits/symbol}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 6 questions →