Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Information Theory / Coding

Noisy Channels and Error Correction

Mutual information, channel capacity, and the Hamming code that fixes single-bit errors.

3 min read · 2 sections · 2 checks

Contents 3 sections
  1. §1How much gets through
  2. §2The Hamming code
  3. ?Check yourself

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 I(X;Y)=H(X)−H(X∣Y)I(X;Y) = H(X) - H(X \mid Y) measures how much observing the output YY reduces uncertainty about the input XX. A channel’s capacity is the largest mutual information any input distribution can achieve.

CBSC=1−H2(p)C_{\text{BSC}} = 1 - H_2(p)

A binary symmetric channel that flips each bit with probability pp has the capacity above, where H2H_2 is the entropy of a coin with bias pp. At p=0.11p = 0.11, 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

  1. Q1
    A channel flips bits with probability 0.50.5. Its capacity is…
  2. Q2
    How many errors per block can Hamming(7,4) correct?