S8 · Lesson 31 · Mutual information and channel capacity
How much a channel's output says about its input, mutual information, the capacity of the binary symmetric and erasure channels, hard-decision demodulation, and the channel coding theorem
Lesson 21 gave the capacity of the continuous Gaussian channel. Many channels are better seen as discrete: a demodulator that outputs hard 0/1 decisions turns the analog channel into a binary one that occasionally flips bits; a packet network either delivers a symbol or loses it. Shannon's framework handles all of them the same way. The mutual information between input and output measures how much each channel use actually conveys, its maximum over input distributions is the capacity, and the channel coding theorem promises that any rate below it can be sent with as few errors as desired.
- The capacity of a binary symmetric channel that flips each bit with probability p, , and of a binary erasure channel that loses each bit with probability ε, , in bits per channel use.
- A BSC that flips 11% of its bits can still carry half a bit per use, error-free in principle, with a good enough code.
- An erasure is less harmful than a flip: the receiver knows which bits it lost. At p = ε = 0.11 the erasure channel carries 0.89 bits per use against the BSC's 0.5.
Predict
BPSK at Es/N0 = 0 dB is demodulated with hard decisions. How many bits can each symbol carry, at most?
Hard decisions turn the channel into a BSC with crossover = 0.079, whose capacity is = 0.60 bits per symbol. Keeping soft information, the demodulator's real-valued outputs, would allow about 0.72; throwing it away costs about 2 dB at low rates, which is why modern decoders use soft decisions.
Name it
Mutual information
For input X and output Y,
the reduction in uncertainty about one from observing the other. It depends on the channel and on the input distribution.
Capacity
times the symbol rate for bits per second.
- Binary symmetric channel (each bit flipped with probability p): with uniform input, . Zero at p = ½.
- Binary erasure channel (each bit lost, and known to be lost, with probability ε): .
- With a non-uniform input on a BSC, , less than capacity.
Hard decisions
A binary modulation with hard decisions becomes a BSC with p equal to the demodulator's bit error probability, for BPSK . Hard decisions lose about 2 dB against soft decisions at low SNR.
The channel coding theorem
For any rate R < C there are codes whose error probability goes to zero as the block length grows; for R > C the error probability can't. Coding theory (lessons 34 to 36) is the search for codes that get close to C with practical decoders.
Worked example
A BSC flips 11% of its bits. What's its capacity, and what rate could a code run at?
Show the solution
- Capacity.
- Code rate. A rate-1/2 code is right at the limit; a practical code at this crossover would run at about rate 0.4 to leave a margin.
Answer the capacity is 0.500 bits per use, and a practical code would run at about rate 0.4.
Worked example
On a BSC with p = 0.1, what mutual information does an input with P(1) = 0.3 achieve, compared with capacity?
Show the solution
- Output probability.
- Output entropy.
- Mutual information. With :
- Capacity. With a uniform input, The biased input wastes 0.075 bits per use.
Answer the input achieves 0.456 bits per use, against a capacity of 0.531.
Worked example
A rate-½ code runs over BPSK at Eb/N0 = 4 dB with hard decisions. Is reliable communication possible?
Show the solution
- Energy per coded bit. Each coded bit has :
- Crossover probability. Hard decisions flip a bit with probability
- Capacity of that BSC.
- Compare the rate. Rate ½ is below that, so yes, though a code working with hard decisions at 0.69 capacity is demanding; soft decisions would leave more room.
Answer yes: hard decisions leave a channel of capacity 0.69 bit per use, above the code's rate of ½.
Check
A binary symmetric channel flips bits with probability 0.05. What's its capacity, in bits per use?
Check
A binary erasure channel loses 0.2 of its bits (and flags them). What's its capacity?
Check
BPSK at Es/N0 = 0 dB is demodulated with hard decisions. What's the resulting channel's capacity, in bits per symbol?
Check
A BSC with p = 0.02 is used 1 million times a second. What's its capacity in bits per second?
Write units the way you normally would: 1.5 Mb/s, 1500 kb/s and 0.0015 Gb/s are the same answer.
Check
A BSC with p = 0.05 is driven with P(X = 1) = 0.3. What's the mutual information between input and output?
Check
What's the highest code rate that can work reliably on a BSC with p = 0.08?
Check
BPSK at Es/N0 = 1 dB is demodulated with hard decisions.
(a)
What crossover probability does the resulting BSC have?
(b)
What is its capacity per use?
Check
A BSC flips bits with probability p; a BEC erases them with probability e.
Step 1
What is the BSC's capacity?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the BEC's?
Explain why
Why does an erasure cost less capacity than a bit flip of the same probability?
When a bit is erased, the receiver knows exactly which position it lost and that the other bits are correct, so the only missing information is the erased bits themselves: the channel delivers a fraction 1 − ε of the input intact. When bits are flipped, the receiver doesn't know which ones are wrong. To correct them, a code must spend extra redundancy identifying the error positions as well as their values, and that identification costs H(p) bits per use, more than p for any p below one half. The uncertainty about where the errors are is the expensive part, which is why demodulators that can flag unreliable symbols as erasures, or better still pass soft values, help decoders so much.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.