Information Theory ExercisesInformation Theory · Exercises
0 / 0

Workbench / Information Theory Exercises

B1·09

Channel Capacity and the Noisy-Channel Coding Theorem

Exercises for chapter 9: capacity as a maximum, the theorem's surprise, the counting argument, random codes, the converse and separation, in your own words; capacity by hand, the Z channel and channels in series computed with Blahut–Arimoto, what deciding each bit too early costs (about 1.6 to 1.8 dB), how far short of capacity a block of a given length must fall, how many channel uses Shakespeare needs per character after each compressor, what reading a sensor twice is worth, and senior exercises on a vendor's impossible claim, choosing a rate for a changing link, and a protocol that protects before it compresses.

20 topics · ~5 min read
Updated Suggest a correction

Start here: how these exercises work

Write your answer in the box first; hints open one at a time as you write, and the solution a couple of minutes after the last hint. Theory is in your own words, practice and programs come with real output (Python 3.13 with NumPy), cumulative projects use chapters 1 to 9 together, what the chapter leaves out explains what it skips, and senior exercises put the ideas into designs and reviews. The programs import the chapter's cap.py.

Theory

T1. Why a maximum?

Explain why capacity is defined as the largest mutual information over input distributions, and not the mutual information with equally likely inputs.

T2. The surprise

Explain to an engineer who knows only repetition codes what the noisy-channel coding theorem claims, and why it seemed impossible.

T3. Counting the noise

Explain the counting argument behind C=1−h(p) with a picture, and say what the h(p) represents.

T4. Random codes

Explain why choosing codewords at random is a good way to prove that good codes exist, and why it's a bad way to build them.

T5. The converse

Explain in words why no code can work reliably above capacity, using the data processing inequality and Fano's inequality.

T6. Separation

Explain why the separation theorem lets compression and error correction be designed by different teams, and give one situation where joint design does better.

Practice and programs

P1. By hand

(a) A channel flips 3 % of bits. What's its capacity? (b) A channel erases 25 % of bits and flips none. Which carries more: it, or the channel in (a)? (c) A link with bandwidth 1 MHz and SNR 20 dB: capacity? (d) A code of rate 0.9 is used on the channel in (a). Is reliable communication possible?

P2. Capacities that need computing

Use the Blahut–Arimoto function to find the capacity of the Z channel for damage probabilities q from 0 to 0.9, and of two binary symmetric channels in a row.

P3. What deciding too early costs

Send +1 or −1 through Gaussian noise. Either the receiver decides each bit by its sign at once (turning the channel into a binary symmetric one, a "hard decision"), or it keeps the measured value (a "soft decision"). Compare the capacities, and find how much more signal power the hard decision needs for the same rate.

P4. How far short must a finite block fall?

The theorem is about the limit of long blocks. For the channel with p=0.1 and a target block error of 10−3, estimate the best possible rate at each block length using the normal approximation of Yury Polyanskiy, H. Vincent Poor and Sergio Verdú (2010): R≈C−V/nQ−1(ε)+log2n2n, where V =p(1−p)log221−pp.

Cumulative projects (chapters so far: 01–09)

C1. What Shakespeare costs to send

A channel flips 10 % of bits. How many channel uses per character, at least, does the text of the plays need, sent as plain bytes and after each compressor of chapters 1, 6 and 7? What if English could be compressed to Shannon's estimate of about 1 bit per letter?

C2. What reading a sensor twice is worth

Chapter 7's sensor reports one of 8 states, right 90 % of the time. Treat k independent readings of the same state as one channel and compute its capacity for k=1 to 4. Then compute what's left if the receiver keeps only the most common reading. Compare with k times the capacity of one reading.

What the chapter leaves out

Error exponents

Below capacity, the best block error probability falls exponentially with block length, Pe≈2−nE(R), where the error exponent E(R) is positive for R<C and falls to zero at capacity. Gallager's 1965 bound gives a simple expression for a lower bound on E(R). It explains the lab's random codes: at rate 0.25 the exponent is comfortable and errors fall visibly; at 0.5 it's tiny, so improvement needs far longer blocks.

Feedback

If the receiver can tell the sender what it received, does capacity rise? For memoryless channels, Shannon proved (1956) that it doesn't. But feedback makes reaching capacity much simpler (send again what was lost, as networks do) and makes errors fall much faster with block length. For channels with memory, feedback can increase capacity.

Networks of channels

With many senders and receivers, capacity becomes a region of rates. The multiple-access channel (several senders, one receiver, as in mobile uplinks) is fully understood; the broadcast channel (one sender, many receivers) and the relay channel only partly. Network coding (Ahlswede, Cai, Li and Yeung, 2000) showed that letting intermediate nodes combine packets, rather than just forward them, can increase the throughput of a network.

Channels with states and with multiple antennas

When the channel changes (fading in mobile radio), capacity depends on whether sender and receiver know its state; adapting rate and power to the state ("water-filling" over time or frequency) is the optimal strategy. With multiple antennas at each end (MIMO), the channel offers several parallel paths, and capacity grows roughly in proportion to the number of antennas, which is how Wi-Fi and 4G and 5G multiplied their speeds.

Senior exercises

S1. A vendor's claim

A vendor claims their new error-correcting radio delivers 50 Mbit/s of reliable data over a 5 MHz channel at a signal-to-noise ratio of 10 dB, with "under one error in a billion". Evaluate the claim.

A drone sends telemetry over a radio link whose SNR varies between 0 and 20 dB as it flies. Design how the system should choose its code rate, and what it should do about short messages.

S3. A protocol that protects before it compresses

A team's proprietary file-transfer protocol adds a Reed–Solomon code to each file and then compresses the result before sending it over a lossy link. Throughput is poor and corrupted files are common. Review the design.