Information Beyond Noise: Hamming Code and Shannon Capacity

2D Canvas real equations

Information can survive a noisy channel when redundancy is added intelligently. Watch error correction work bit by bit.

Controls

Readout

What you are seeing

Each row is one message. 4 data bits are expanded to a 7-bit Hamming codeword (3 parity bits), sent through a noisy channel that flips every bit independently with probability p, then decoded. Red bits were flipped; the decoder uses a 3-bit syndrome to locate and repair any single flip. The plot compares how often a whole word is wrong with and without coding. Dots are live measurements, curves are exact formulas.

Lesson: redundancy lets information survive noise, but only while noise is low enough - at large p coding makes things worse.

Self-checks

The science

Binary symmetric channel: capacity C = 1 - H(p), H(p) = -p log2 p - (1-p) log2(1-p). Shannon's noisy-channel theorem says reliable communication is possible at any rate R below C with long enough codes. Hamming(7,4) has R = 4/7 and corrects exactly one error per block, so its word-error probability is 1-(1-p)^7-7p(1-p)^6. The uncoded 4-bit word fails with 1-(1-p)^4.

Landauer's bound (k T ln 2 per erased bit) is shown for scale only. Simplifications: independent flips, no burst errors, hard-decision decoding. The 'transcendence' in the title is read as: how far can information processing go beyond raw noise - a physical limit, not mysticism.