S831 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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, C=1−H(p), and of a binary erasure channel that loses each bit with probability ε, C=1−ε, 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?

Name it

Mutual information

For input X and output Y,

I(X;Y)=H(Y)−H(Y|X)=H(X)−H(X|Y)

the reduction in uncertainty about one from observing the other. It depends on the channel and on the input distribution.

Capacity

C=maxp(x)⁡I(X;Y) bits per channel use

times the symbol rate for bits per second.

  • Binary symmetric channel (each bit flipped with probability p): with uniform input, C=1−H(p). Zero at p = ½.
  • Binary erasure channel (each bit lost, and known to be lost, with probability ε): C=1−ε.
  • With a non-uniform input P(X=1)=q on a BSC, I=H(q(1−p)+(1−q)p)−H(p), 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 Q(2Es/N0). 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
  1. Capacity. C=1−H(0.11)=1−0.4999=0.500bits per use
  2. 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
  1. Output probability. P(Y=1)=0.3(0.9)+0.7(0.1)=0.34
  2. Output entropy. H(Y)=H(0.34)=0.925
  3. Mutual information. With H(Y|X)=H(0.1)=0.469: I=0.925−0.469=0.456bits
  4. Capacity. With a uniform input, C=1−0.469=0.531bits 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
  1. Energy per coded bit. Each coded bit has Es=Eb/2: Es/N0=1dB=1.26
  2. Crossover probability. Hard decisions flip a bit with probability p=Q(2×1.26)=0.056
  3. Capacity of that BSC. C=1−H(0.056)=0.69bit per use
  4. 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°.

Explain why

Why does an erasure cost less capacity than a bit flip of the same probability?

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.