The Noisy Channel
Part II squeezed messages down to their bare information. Now send them somewhere. Every wire, radio link and storage chip occasionally turns a 0 into a 1 or a 1 into a 0. What does that do to a picture, to a sentence, and to a carefully compressed file?
Nothing physical is perfectly reliable. A radio signal fades behind a hill, a scratch crosses a disc, a stray particle of radiation nudges a memory cell, a long cable picks up a hum. Engineers call everything between the sender and the receiver the channel, and everything that corrupts the message along the way noise. The cybernetics book's chapter Signals, Noise & Surprise showed noise as static on a line. Here we strip it down to its simplest digital form so we can measure exactly what it destroys.
The simplest noisy channel
Imagine a channel that carries one bit at a time. Each bit arrives correctly with probability 1 − p and arrives flipped with probability p, independently of every other bit and the same way for 0s and 1s. This is the binary symmetric channel, the fruit fly of information theory: simple enough to reason about completely, rich enough to show nearly every idea that matters.
Two details in that figure matter later. First, p = 50% is the worst case, not p = 100%: a channel that flips every bit is perfectly useful, since the receiver simply flips everything back. Second, the number of flipped bits wobbles from one batch of noise to the next, but it stays close to p times the number of bits sent. Keep that in mind; it is the seed of Chapter 11.
Noise destroys information by making the received bit an imperfect clue to the sent bit; at a 50% flip rate the clue is worthless.
Squeezed data is fragile data
Here is the uncomfortable twist. In Part II we worked hard to remove redundancy. But redundancy is exactly what let you read the speckled sailboat. A compressed file has had its redundancy wrung out, so it has nothing left to cushion a hit.
Worse, variable-length codes have a weakness all their own. In plain 8-bit text every character occupies its own fixed slot, so a flipped bit damages one character. In a Huffman-coded stream the decoder finds codeword boundaries by reading; flip one bit and it may misjudge where a codeword ends, after which it is reading the stream out of step. See for yourself.
First compress, to remove the redundancy you did not choose. Then add redundancy back, of a kind you did choose, designed so the receiver can detect and repair the noise.
How many errors land in a block?
Codes that repair errors usually work on blocks: a few data bits plus a few check bits, sent together. A natural question is how many flips a block of n bits is likely to suffer. With independent flips this is a classic probability calculation (the binomial distribution, which the probability book builds from coin tosses). Explore it below; the number that will matter most in the next two chapters is the chance of two or more errors in one block.
Those two facts pull in opposite directions, and the tension between them shapes the rest of Part III. Short blocks rarely suffer more than one error, so a code that fixes one error per short block is a sensible first defence (Chapters 9 and 10). Long blocks almost always suffer many errors, but in a predictable proportion, and Shannon realised that predictability can be exploited (Chapter 11).
Real channels are messier than our symmetric coin-flipper: errors often come in bursts, from a scratch or a moment of interference. A standard trick is to shuffle (interleave) bits before sending and unshuffle them after, so a burst lands as scattered single errors that block codes can handle.
Which channel is useless for sending information?
Why can a single flipped bit damage several characters of Huffman-coded text but only one character of 8-bit text?
Connections
- Cybernetics, Chapter 4: Signals, Noise & Surprise shows noise on a steering signal and a first taste of repetition.
- Statistics, Signal vs. Noise tackles the same tension from the data side: telling real patterns from chance.
- Probability, Chapter 8: Order from Chaos explains why the fraction of flipped bits settles around p in long blocks.
- Computer Science, Chapter 11: Passing Notes Across Earth follows messages across real networks, where these errors happen.
What you now see
- The binary symmetric channel flips each bit independently with probability p: the simplest model of noise.
- p = 50% destroys all information; p = 100% destroys none, since the receiver can undo it.
- Redundancy helps receivers see past noise, which is why compressed data, with its redundancy removed, is fragile, and variable-length codes can lose step after one flip.
- The plan: compress first, then add designed redundancy back.
- Short blocks rarely see two errors; long blocks see many, but in a predictable proportion close to p.