Why You Cannot Beat Capacity
The achievability half of the coding theorem says that rates below capacity work. The converse says rates above capacity do not: however clever the code and however long the block, the error probability stays bounded away from zero. The proof chains together three earlier results: the data-processing inequality, the additivity of capacity, and Fano's inequality.
The chain of inequalities
Let be a uniformly random message among , the codeword, the received word and the decoded message. This is a Markov chain .
Rearranging:
For , the right side tends to as grows. Long codes do not help.
import numpy as np
H2 = lambda f: -f * np.log2(f) - (1 - f) * np.log2(1 - f)
C = 1 - H2(0.1)
print(f"BSC f = 0.1, C = {C:.4f}")
for R in [0.6, 0.75, 0.9]:
bounds = [max(0.0, 1 - C / R - 1 / (n * R)) for n in (10, 100, 1000, 10000)]
print(f"R = {R}: lower bound on block error for n = 10, 100, 1000, 10000:", [round(float(b), 4) for b in bounds])BSC f = 0.1, C = 0.5310
R = 0.6: lower bound on block error for n = 10, 100, 1000, 10000: [0.0, 0.0983, 0.1133, 0.1148]
R = 0.75: lower bound on block error for n = 10, 100, 1000, 10000: [0.1587, 0.2787, 0.2907, 0.2919]
R = 0.9: lower bound on block error for n = 10, 100, 1000, 10000: [0.2989, 0.3989, 0.4089, 0.4099]
The step
For a memoryless channel, , while . Subtracting gives . Even with a cleverly correlated choice of codeword symbols, the information per use cannot exceed .
import numpy as np
from itertools import product
def H(p):
p = np.asarray(p, float).ravel(); p = p[p > 0]
return float(-np.sum(p * np.log2(p))) + 0.0
Q = np.array([[0.9, 0.1], [0.1, 0.9]])
Q3 = np.kron(np.kron(Q, Q), Q) # three uses of a BSC
rng = np.random.default_rng(0)
best = 0.0
for _ in range(3000):
px = rng.dirichlet(np.ones(8) * 0.3) # arbitrary (correlated) distributions over 3-bit inputs
joint = px[:, None] * Q3
best = max(best, H(px) + H(px @ Q3) - H(joint))
print(f"largest I(X^3; Y^3) found: {best:.4f} 3C = {3 * (1 - H([0.1, 0.9])):.4f}")largest I(X^3; Y^3) found: 1.5020 3C = 1.5930
Bit errors instead of block errors
If we only care about the fraction of wrong bits , a stronger statement holds: rate with bit error rate is possible if and only if
The idea: first compress the message lossily to bits per use with distortion (Rate-Distortion Theory), then send it reliably below capacity. This trade-off curve is the boundary of the achievable region in The Noisy-Channel Coding Theorem.
import numpy as np
from scipy.optimize import brentq
H2 = lambda p: -p * np.log2(p) - (1 - p) * np.log2(1 - p)
C = 1 - H2(0.1)
for R in [0.6, 0.75, 1.0]:
pb = brentq(lambda p: R * (1 - H2(p)) - C, 1e-12, 0.5 - 1e-12)
print(f"R = {R}: smallest possible bit error rate {pb:.4f}")R = 0.6: smallest possible bit error rate 0.0154
R = 0.75: smallest possible bit error rate 0.0513
R = 1.0: smallest possible bit error rate 0.1000
At (no redundancy) the best possible bit error rate is itself: uncoded transmission is already optimal for that rate.
Strong converse
For memoryless channels an even stronger result holds: above capacity, the block error probability tends to one exponentially fast. The simulation in Random Codes and Typical-Set Decoding showed the block error rate rising with above capacity.
In software
- Before designing a code, compute the capacity and the rate you need. If the rate is above capacity, no code will help: change the channel (more power, less noise, more bandwidth) or the rate.
Exercises
Exercise 1: The bound
On a channel with , what lower bound on block error does the converse give for as ?
Answer
0.375.
Solution
.
Exercise 2: Why Fano?
Which step of the converse turns "too little information" into "many errors"?
Answer
Fano's inequality.
Solution
It bounds , so a large remaining uncertainty forces a large error probability (Fano's Inequality).
Exercise 3: Tolerated errors (code)
On a BSC with , what bit error rate must you accept to send at rate 0.5?
Answer
At least about 0.092.
Solution
import numpy as np
from scipy.optimize import brentq
H2 = lambda p: -p * np.log2(p) - (1 - p) * np.log2(1 - p)
C = 1 - H2(0.2)
print(round(brentq(lambda p: 0.5 * (1 - H2(p)) - C, 1e-12, 0.5 - 1e-12), 4))0.0922
Test yourself
For rates above capacity, the block error probability…
- stays bounded away from zero for every code
- goes to zero with long codes
- is always exactly 1/2
- depends only on the decoder speed
Which three results combine in the converse proof?
- data processing, , and Fano
- Kraft, Huffman, and arithmetic coding
- Jensen, Bayes, and Markov
- typicality, Hamming bound, and CRC
At rate R = 1 on a BSC with flip probability f, the best possible bit error rate is…
- f
- 0
- f/2
- 1/2