Part III · Chapter 8

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.

Interactive 8.1The Bit-Flipping Channel
Raise the flip probability
bits as sent bits the channel flipped
3.0%
 
At a few percent the picture survives as a speckled boat: your eye uses the picture's own redundancy to see past the noise. Text suffers more, because a single flipped bit can turn a letter into a different letter or a strange symbol. At p = 50% each received bit is a pure coin toss, unrelated to what was sent: nothing at all gets through.

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

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.

Interactive 8.2Fragile Compression
Choose where one bit flips (or click a bit)
the bit stream the flipped bit, and the characters it damaged
30%
 
In 8-bit text, one flipped bit always damages exactly one character. In the Huffman stream (about half as long), the same single flip often garbles a run of characters before the decoder falls back into step, and it can even change how many characters come out. Slide the flip point around: some spots do little harm, others do a lot.
The engineer's plan

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.

Interactive 8.3Errors per Block
Change the block length and the flip probability
no errors exactly one error two or more errors
7 bits
2.0%
 
With 7-bit blocks and a 2% flip rate, about 87% of blocks arrive clean, about 12% carry exactly one error, and fewer than 1 in 100 carry two or more. Lengthen the block and "two or more" becomes common. Yet look at the right panel: as blocks get longer, the fraction of flipped bits clusters ever more tightly around p. Noise becomes predictable in bulk.

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.

Intuition Check

Which channel is useless for sending information?

Intuition Check

Why can a single flipped bit damage several characters of Huffman-coded text but only one character of 8-bit text?

Connections

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.