TExcelTAD
Home › Information Theory › Why You Cannot Beat Capacity

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 WW be a uniformly random message among M=2nRM = 2^{nR}, XnX^n the codeword, YnY^n the received word and W^\hat W the decoded message. This is a Markov chain W→Xn→Yn→W^W \to X^n \to Y^n \to \hat W.

nR=H(W)=H(W∣W^)+I(W;W^)≤H(W∣W^)+I(Xn;Yn)data processing≤1+pB nR+nCFano and I(Xn;Yn)≤nC\begin{aligned} nR = H(W) &= H(W \mid \hat W) + I(W; \hat W) \\ &\le H(W \mid \hat W) + I(X^n; Y^n) && \text{data processing} \\ &\le 1 + p_B\,nR + nC && \text{Fano and } I(X^n; Y^n) \le nC \end{aligned}

Rearranging:

pB≥1−CR−1nRp_B \ge 1 - \frac{C}{R} - \frac{1}{nR}

For R>CR > C, the right side tends to 1−CR>01 - \frac{C}{R} > 0 as nn grows. Long codes do not help.

python · try it yourself
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 I(Xn;Yn)≤nCI(X^n; Y^n) \le nC

For a memoryless channel, H(Yn∣Xn)=∑iH(Yi∣Xi)H(Y^n \mid X^n) = \sum_i H(Y_i \mid X_i), while H(Yn)≤∑iH(Yi)H(Y^n) \le \sum_i H(Y_i). Subtracting gives I(Xn;Yn)≤∑iI(Xi;Yi)≤nCI(X^n; Y^n) \le \sum_i I(X_i; Y_i) \le nC. Even with a cleverly correlated choice of codeword symbols, the information per use cannot exceed CC.

python · try it yourself
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 pbp_b, a stronger statement holds: rate RR with bit error rate pbp_b is possible if and only if

R≤C1−H2(pb)R \le \frac{C}{1 - H_2(p_b)}

The idea: first compress the message lossily to R(1−H2(pb))R(1 - H_2(p_b)) bits per use with distortion pbp_b (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.

python · try it yourself
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 R=1R = 1 (no redundancy) the best possible bit error rate is f=0.1f = 0.1 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 nn 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 C=0.5C = 0.5, what lower bound on block error does the converse give for R=0.8R = 0.8 as n→∞n \to \infty?

Answer

0.375.

Solution

1−CR=1−0.50.8=0.3751 - \frac{C}{R} = 1 - \frac{0.5}{0.8} = 0.375.

Exercise 2: Why Fano?

Which step of the converse turns "too little information" into "many errors"?

Answer

Fano's inequality.

Solution

It bounds H(W∣W^)≤1+pBlog⁡2MH(W \mid \hat W) \le 1 + p_B \log_2 M, so a large remaining uncertainty forces a large error probability (Fano's Inequality).

Exercise 3: Tolerated errors (code)

On a BSC with f=0.2f = 0.2, what bit error rate must you accept to send at rate 0.5?

Answer

At least about 0.092.

Solution
python · try it yourself
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…

  1. stays bounded away from zero for every code
  2. goes to zero with long codes
  3. is always exactly 1/2
  4. depends only on the decoder speed

Which three results combine in the converse proof?

  1. data processing, I(Xn;Yn)≤nCI(X^n; Y^n) \le nC, and Fano
  2. Kraft, Huffman, and arithmetic coding
  3. Jensen, Bayes, and Markov
  4. typicality, Hamming bound, and CRC

At rate R = 1 on a BSC with flip probability f, the best possible bit error rate is…

  1. f
  2. 0
  3. f/2
  4. 1/2