Channel Capacity: Shannon’s Promise
Repetition suggested a grim law: more reliability always costs more rate, all the way down to zero. Shannon proved the opposite. Every noisy channel has a speed limit, its capacity, and below that limit errors can be made as rare as you like without slowing down further.
Look back at the chart in Chapter 9. Each repetition code bought fewer errors with a lower rate, and the points crawled toward the bottom-left corner: perfect reliability at zero speed. Hamming codes did better, but they too traded rate for reliability. It is natural to guess that this trade is unavoidable: that any code that pushes errors toward zero must push its rate toward zero as well.
The most surprising result in Shannon's 1948 paper says that guess is wrong. For the binary symmetric channel, and for a very wide class of channels, there is a number C, the capacity. At any rate below C you can make the error probability as small as you like, if you are willing to use long enough blocks. At any rate above C you cannot.
How much gets through?
Here is one way to think about it. Each use of the channel delivers one received bit. If there were no noise, that bit would carry a full bit of information about what was sent. Noise muddies it: knowing the received bit, there is still some uncertainty about the sent bit, and for the binary symmetric channel, when the sender uses 0s and 1s equally often (the best choice for this channel), that leftover uncertainty is exactly the entropy of the noise, H(p), the arch from Chapter 2. What remains is the capacity.
Information theorists give this "what remains" a name: the mutual information between what was sent and what was received, I = H(sent) − H(sent | received). It is the uncertainty about the input before you look at the output, minus the uncertainty still left afterwards: Chapter 1's "information is uncertainty that disappears", applied to a channel. The capacity is the largest mutual information any choice of input pattern can achieve. For this channel the best choice is to send 0s and 1s equally often, which gives 1 − H(p).
Below capacity, the error rate can be made as small as you like using long enough codes; above capacity, reliable communication is impossible.
Read the promise carefully, because every word matters. It does not say errors can be made zero; it says they can be made smaller than any target you name, one in a million, one in a trillion. It does not say a short code will do; the guarantee needs long blocks, which cost delay and computing effort. And it does not hand you the code: Shannon's proof showed that good codes exist, by showing that a randomly chosen long code is good on average, without saying how to build or decode one efficiently.
The map of what is possible
Put every code we have met on one chart: rate across, error rate down (on a logarithmic scale). Then add what Shannon's theory says about the whole plane. To the left of the capacity line, every point down to the bottom of the chart and beyond is reachable with long enough codes. To the right of it, there is a floor under the error rate that no code can break; the boundary curve shown is the exact limit for the bit error rate.
For half a century after 1948, that open territory was hard to reach in practice. The breakthroughs came as codes whose decoders pass "beliefs" about each bit back and forth until they agree: turbo codes, announced in 1993, and low-density parity-check (LDPC) codes, invented by Robert Gallager in the early 1960s, largely overlooked for decades, and rediscovered in the 1990s. Polar codes, introduced by Erdal Arıkan in 2009, came with a proof that they reach the capacity of channels like this one using efficient encoding and decoding. 5G mobile networks use LDPC codes for user data and polar codes for control messages (4G used turbo codes), operating close to the Shannon limit.
Why long blocks win
Why should long blocks be the key? Chapter 8 showed the reason in miniature: in a long block, the number of flipped bits is almost exactly p times the length. Noise becomes predictable in bulk. Shannon's insight was to count. In a block of n bits there are 2n possible received words, but noise produces only about 2n·H(p) likely patterns. Give each codeword its own private "cloud" of likely noisy versions, and you can fit about 2n / 2n·H(p) = 2n(1−H(p)) codewords without the clouds overlapping. That is a rate of 1 − H(p): the capacity.
Every channel has a capacity, not just the coin-flipping one. For a radio link limited by bandwidth and power, the same theory gives a famous formula in terms of the bandwidth and the signal-to-noise ratio, which is why engineers talk about getting "close to the Shannon limit".
A channel flips 11% of bits, so its capacity is about 0.5 bits per use. You need to deliver 1,000 data bits with errors extremely rare. Roughly how many channel bits must you send, at the very least?
Which statement matches Shannon's noisy-channel theorem?
Connections
- Probability, Chapter 8: Order from Chaos: the law of large numbers is what makes long blocks predictable.
- Cybernetics, Chapter 5: The Law of Requisite Variety: Ashby framed his law of regulation in the language of Shannon's information, a close cousin of this chapter.
- Chapter 2: the capacity curve is the entropy arch turned upside down.
What you now see
- Every noisy channel has a capacity; for the binary symmetric channel it is 1 − H(p) bits per use.
- Below capacity, error rates can be made as small as you like (not zero) with long enough codes; above capacity, reliable communication is impossible.
- Repetition reaches low error only by sending rate toward zero; Shannon's theorem shows that sacrifice is unnecessary.
- Long blocks win because noise becomes predictable in bulk: about 2nH(p) likely patterns out of 2n.
- Shannon proved good codes exist; turbo, LDPC and polar codes eventually came close to capacity in practice.