Information TheoryDeeper

Kayavak / Information Theory / IT·09 Channel Capacity and the Noisy-Channel Coding Theorem / Deeper

Deeper · Information Theory

Channel Capacity and the Noisy-Channel Coding Theorem

The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.

Why does this exist?

By the 1940s, communication engineering had many tricks and no limits. Harry Nyquist (1924, 1928) and Ralph Hartley (1928) had shown that a line's bandwidth limits how many distinct pulses it can carry per second, and Hartley had measured information as the logarithm of the number of possible messages. But nobody could say how much a noisy line could carry, or whether noise forced every message to slow down. Shannon's 1948 paper answered both: it defined capacity, proved that reliable communication is possible at any rate below it and impossible above it, and gave the capacity of the band-limited Gaussian channel, now the Shannon–Hartley formula.

The theorem changed what engineers aimed for. Instead of asking "how do we make this link a bit better?", they could ask "how far are we from the limit?", and the answer, for decades, was "a long way": practical codes stayed several decibels short until turbo codes (1993) and rediscovered LDPC codes (1996) closed most of the gap. Today, the codes in phones, Wi-Fi, satellites and SSDs operate within a fraction of a decibel of Shannon's limits, and the theorem is the yardstick every new system is measured against.

The mental model

Try it yourself first: write your own model in the Mental Model Explorer, then compare.

A channel's capacity is the most mutual information its input can share with its output. Below capacity, long codes make errors vanish without slowing down; above it, nothing can. The reason is counting: the noise in a long block is predictable in bulk, so codewords can be packed just far enough apart.

Question Answer
What is it? The highest rate at which a channel can carry information reliably, and the theorem that says so
Problem it solves How fast you can send through noise, and whether reliability costs speed
Parts Capacity maxI(X;Y); the coding theorem; its converse; separation; the Gaussian channel
How it works Typical noise patterns; random codes; Fano's inequality for the converse
Assumptions A known, memoryless channel; arbitrarily long blocks; no delay limit
When they change Fading channels, short blocks, feedback, many users
Where it fails It says what's possible, not how to build or decode the code
Related ideas Typical sets (ch06), mutual information and Fano (ch07), channels and codes (ch08), KL divergence (ch11)

What if?

What if you could send faster than capacity?

Reason it through, then open

Then a channel that flips one bit in ten could carry more than 0.531 bits of message per bit sent, and the counting argument would break: there would have to be more codewords than non-overlapping clouds of typical noise, so some received blocks would be equally consistent with two or more messages, and the receiver would have to guess. Fano's inequality turns that into a lower bound on errors, and the strong converse shows the error probability actually tends to 1 for long blocks. Every "faster than Shannon" claim so far has turned out to measure something else: more bandwidth or antennas than stated, raw rates that include redundancy, or a channel better than assumed.

What if the receiver could talk back?

Reason it through, then open

For a memoryless channel, feedback doesn't increase capacity (Shannon proved it in 1956), but it changes how easily capacity is reached. On an erasure channel, simply resending whatever was lost achieves capacity with no code at all, as the companion measures. On other channels, feedback makes errors fall much faster with block length and allows simpler codes. That's why networks, where every link can acknowledge, rely on retransmission, while broadcasting, storage and deep space, where there's no useful return path, depend on strong codes.

What if the noise weren't Gaussian?

Reason it through, then open

Among all noises of a given power, Gaussian noise has the most differential entropy, and it turns out to be the worst for communication: any other noise of the same power leaves at least 12log2(1+P/N) bits per use available. So the Gaussian formula is a safe lower bound for systems facing unknown noise of known power. Real noise can still be harder in other ways: impulsive noise (sudden spikes), interference from other transmitters that has structure, or fading, which changes the channel itself; each needs its own model and its own codes.

Where the boundary is

Aspect Below capacity (R<C) Above capacity (R>C)
Best block error, long blocks Tends to 0 Tends to 1 (strong converse)
Effect of longer blocks Fewer errors (lab: 3.7 % to 0.24 % at rate 0.25) More errors (lab: 49 % to 61 % at rate 0.75)
What limits it Delay, decoding effort Information: too little gets through
Fano's bound No constraint At least 1−C/R for long blocks
Engineering response Longer, better codes Lower the rate, raise the SNR, add bandwidth

Derive it

Why the Gaussian channel's capacity is 12log2(1+P/N).

  1. The output is Y=X+Z, with noise Z normal, variance N, independent of X, and E[X2]≤P.
  2. I(X;Y)=h(Y)−h(Y∣X). Given X, Y is X plus noise, a shifted copy of Z, and shifting doesn't change differential entropy: h(Y∣X) =h(Z) =12log2(2πeN).
  3. Y's variance is at most P+N, since X and Z are independent.
  4. Among all distributions with a given variance, the normal has the largest differential entropy, so h(Y)≤12log2(2πe(P+N)), with equality when Y is normal, which happens when X is normal with variance P.
  5. Subtracting: I(X;Y)≤12log2P+NN =12log2(1+P/N), achieved by normal inputs, so that's the capacity. With bandwidth B, the channel allows 2B independent uses per second (the sampling theorem), giving Blog2(1+SNR) bits per second.

How sure are we?

Claim How it's known Where from
Reliable communication is possible at any rate below capacity Theorem Shannon (1948); rigorous proofs by Feinstein (1954) and others
Above capacity, error probability tends to 1 Theorem Wolfowitz's strong converse (1957)
C=1−h(p) for the binary symmetric channel Theorem Symmetry; the chapter's lab computes it numerically too
C=12log2(1+P/N) for the Gaussian channel Theorem The derivation above
LDPC codes come within 0.0045 dB of the limit Measured, by simulation Chung, Forney, Richardson and Urbanke (2001), for very long blocks
Polar codes achieve capacity Theorem Arıkan (2009), for symmetric binary-input channels
Random codes improve with length below capacity Measured The chapter's lab, at lengths 16 to 56

Still open

The capacity of many networks is unknown: the broadcast channel in general, the relay channel, and interference between pairs of users, where the best known answers are within a fixed number of bits of the truth but not exact. The zero-error capacity of most channels is unknown, connected to hard problems in graph theory. For short blocks, the exact best performance at each length is known only approximately (normal approximations and bounds since 2010). And designing codes and decoders that work near capacity with very low latency and power, for applications like industrial control and the links inside chips, is an active engineering field.

What would change your mind? The chapter claims that no code can communicate reliably above capacity. A demonstration of reliable communication at a rate above the capacity of the channel as actually measured (with its real bandwidth, power, noise and antennas accounted for) would refute it. Every such claim so far has been resolved by finding that the channel was better than described.

Recall

What is channel capacity?

The largest mutual information between input and output over input distributions, C = max I(X; Y), in bits per use.

What's the capacity of a binary symmetric channel with p = 0.1?

1 − h(0.1) ≈ 0.531 bits per use.

What does the noisy-channel coding theorem say?

Below capacity, codes with long blocks make errors arbitrarily rare at a fixed rate; above it, errors can't be made small.

Why is capacity 1 − h(p), in one sentence?

The noise in a long block is one of about 2^(n h(p)) patterns, so about 2^(n(1 − h(p))) codewords fit without their noise clouds overlapping.

How did Shannon prove good codes exist?

By choosing codewords at random and showing the average error is small, so some code (in fact most) must be good.

What does the separation theorem say?

Compressing to the entropy and then coding for the channel, designed independently, is optimal in the limit of long blocks.

What's the capacity of the Gaussian channel?

½ log₂(1 + P/N) bits per use; B log₂(1 + SNR) bits per second with bandwidth B.

What's the Shannon limit on energy per bit?

Eb/N0 = ln 2, about −1.59 dB.

Reflect

Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.