Information Theory / Coding
Noisy Channels and Error Correction
Mutual information, channel capacity, and the Hamming code that fixes single-bit errors.
Contents 3 sections
By the end you can
- Define mutual information
- State Shannon’s channel coding theorem
- Encode and correct with the Hamming(7,4) code
Helps to know: Compression and Huffman Codes
§1How much gets through
Mutual information measures how much observing the output reduces uncertainty about the input . A channel’s capacity is the largest mutual information any input distribution can achieve.
A binary symmetric channel that flips each bit with probability has the capacity above, where is the entropy of a coin with bias . At , half of every transmitted bit is lost to noise.
§2The Hamming code
Hamming(7,4) sends 4 data bits with 3 parity bits. Each parity bit checks a different overlapping subset of positions. When one bit flips, the pattern of failed checks, read as a binary number, is the position of the error.
Check yourself
- Q1A channel flips bits with probability . Its capacity is…
- Q2How many errors per block can Hamming(7,4) correct?