Chapter 4

Information and coding limits

Entropy measures uncertainty before observation; mutual information measures the reduction caused by an observation. Source coding removes statistical redundancy, while channel coding adds structured redundancy to combat transmission errors.

4.1 Self-information and entropy

Past papers · EC 2020–2026 (7 papers): 5 questions, 7 marks

Let a discrete source XX take values xix_i with probabilities pip_i. Numerical spacing between its possible values does not affect entropy. All logarithms here are base 2; the convention 0log⁡20=00\log_2 0=0 applies by continuity.

4.2 Lossless source coding

Past papers · EC 2020–2026 (7 papers): 1 question, 2 marks

A nonsingular code gives distinct words to distinct symbols. A uniquely decodable code permits only one parsing of every encoded sequence. A prefix code makes no word a prefix of another, so decoding can finish as soon as a leaf is reached. Prefix-free implies uniquely decodable, but the converse need not hold.

Huffman procedure: combine the two smallest probabilities; replace them by their sum; repeat to one root; assign 0 and 1 to each split and read root-to-leaf labels. Ties may change words but not optimal average length. The sum of all merge weights equals ℓˉ\bar\ell. The same tree minimises the expected number of truthful yes/no questions. Shannon–Fano instead recursively splits a sorted probability list into two nearly equal groups; it need not attain Huffman's optimum.

4.3 Mutual information

Past papers · EC 2020–2026 (7 papers): 1 question, 2 marks

For a discrete memoryless channel, let Wij=P(Y=yj∣X=xi)W_{ij}=P(Y=y_j|X=x_i) be its transition matrix. Each row sums to 1; the input distribution pip_i is separate from the channel matrix.

4.4 Discrete channel capacity

Past papers · EC 2020–2026 (7 papers): 1 question, 2 marks

Capacity is a maximum over input probabilities; do not optimise the physical channel parameter unless the question asks you to design the channel. A capacity in bits/use becomes bits/s only after multiplication by channel uses per second.

For a memoryless channel, rates strictly below capacity admit codes with arbitrarily small error probability as block length grows; rates above capacity cannot have vanishing error. This theorem does not assert zero error for a particular finite code. A BSC with p=1p=1 is invertible and has capacity 1; its worst case is p=1/2p=1/2.

4.5 AWGN channel capacity

Past papers · EC 2020–2026 (7 papers): 3 questions, 4 marks

Use actual noise power in the stated bandwidth. A real low-pass bandwidth BB means spectral support [−B,B][-B,B]; for a real passband link, BB denotes its positive-frequency occupied width. Both give the standard real-channel capacity below.

Capacity rises toward a finite limit at fixed received power and noise density.Capacity rises toward a finite limit at fixed received power and noise density.

Last-minute recall

  • Self-information concerns one outcome; entropy is its average.
  • One-to-one relabelling preserves discrete entropy.
  • Huffman merges the two least likely entries at every step.
  • Kraft tests possible lengths, not the prefix property of given strings.
  • Compute output probabilities before mutual information.
  • Capacity maximises mutual information over inputs.
  • Convert dB to a linear ratio before applying Shannon's formula.
  • At fixed power and noise density, unlimited bandwidth does not give unlimited capacity.

Revise offline: the whole Communications handbook as one PDF

48 pages · 2.1 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections