Back

Binary Symmetric Channel: capacity and the repetition code

What you are seeing: the Binary Symmetric Channel (BSC) is the simplest noisy channel: a transmitted bit flips with probability pp, stays with probability 1p1 - p. Shannon's noisy-channel theorem gives capacity C(p)=1H(p)C(p) = 1 - H(p) where H(p)=plog2p(1p)log2(1p)H(p) = -p \log_2 p - (1-p) \log_2 (1-p) is the binary entropy. C=0C = 0 at p=0.5p = 0.5 and C=1C = 1 at p=0p = 0 or 11.

The top panel plots C(p)C(p) and H(p)H(p). The bottom panel plots the bit-error-rate of an nn-repetition code (transmit each bit nn times, decode by majority vote) for n=1,3,5,7,11n = 1, 3, 5, 7, 11. Repetition trades rate for reliability: the error drops fast with nn at fixed p<0.5p \lt 0.5, at the cost of nn channel uses per source bit.

Figure 1. BSC capacity and repetition reliability. Method: closed-form entropy and binomial-sum formulas.
p0.100
speed2

WHAT TO TRY

  • Vary each control and watch the rail readouts respond.
  • Compare the diagnostic plot against the live scene.