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 take values with probabilities . Numerical spacing between its possible values does not affect entropy. All logarithms here are base 2; the convention 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 . 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 be its transition matrix. Each row sums to 1; the input distribution 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 is invertible and has capacity 1; its worst case is .
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 means spectral support ; for a real passband link, 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.
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.