Built for Practice Midterm 2 (Problems 1 and 3) and Problem Set 4. Explanations are in note 5, Channel Capacity, and section numbers point there. Logs are base 2. is the binary entropy.
1. Exam pattern: capacity of a structured channel
Practice Problem 1 (12 points): , uniform on , independent of . The same steps work for any and for any channel whose rows are permutations of each other.
- . Given , is plus the noise, so for every and , whatever is. Here: .
- Maximize . Chain rule: . Only depends on , so the uniform input is best, and it is the only maximizer. Here: .
- Maximize . . Equality needs uniform, and a uniform gives a uniform . So . Here: bits.
- If asked whether the maximizer is unique. For it need not be: inputs with probability each also give a uniform , and no errors at all (noisy typewriter idea).
If the question asks for another quantity, expand it with the chain rule and keep only the terms that depend on : (uniform ), , is fixed.
If the channel is not symmetric (Z-channel type), use Section 3 below: write with and differentiate.
2. Exam pattern: cascade and data processing proofs
Practice Problem 3 (10 points): DMC 1 DMC 2 , capacities , .
(a) Show . Write these lines:
- The cascade is a DMC from to , so .
- is a Markov chain. By data processing, for every : and .
- The second bounds hold because and are maxima over all input distributions, and , are particular ones.
- Maximize the left side over : .
(b) Decode and re-encode: .
- Achievable. Take . The coding theorem gives each channel a code with codewords and error at most . The relay decodes the block to and sends it with the second code. Union bound: .
- Converse. is a Markov chain, so and . With Fano, , so .
- Plain cascade can be strictly worse. Two BSC() in a row make a BSC().
Same argument, other questions: processing the output gives , so and the capacity cannot go up (HW4 P2). No loss exactly when also holds, for example one-to-one.
3. Homework patterns
| Problem | Key steps | Answer |
|---|---|---|
| HW4 P4 Z-channel ( w.p. ) | . , , . Derivative: . | , |
| HW4 P6(a) , Bern() | . Derivative: . | , |
| HW4 P6(b) receiver sees | , uniform | |
| HW4 P1(a) all rows equal | Output does not depend on input | |
| HW4 P1(b) row | Symmetric: | |
| HW4 P1(c) two BSC blocks | , = share of block 1, | |
| HW4 P3 typewriter | , uniform input gives uniform output | (a) (b) (c) every other letter, 13 codewords, zero error |
| HW4 P5 noise with memory | Take i.i.d. uniform: , | |
| HW4 P7 feedback | . , . only sets . | (a) (b) when (c) |
| HW4 P8 three independent typical sequences | = (count ) (each ) | , |
4. Capacities to know
| Channel | Capacity (bits) | Best input |
|---|---|---|
| Noiseless, symbols | uniform | |
| BSC, flip probability | uniform | |
| BEC, erasure probability | uniform | |
| Weakly symmetric | uniform | |
| uniform | ||
| Sum of two channels (separate alphabets) | channel 1 a fraction | |
| Cascade | equality with a decoding relay | |
| With feedback (DMC) | ||
| Noise with memory | at least the memoryless |
Symmetric: rows are permutations of each other, and so are columns. Weakly symmetric: rows are permutations of each other and all column sums are equal.
Optimality check (Section 4.2). achieves capacity exactly when for every used and for every unused .
5. Theorems and inequalities for proofs
| Name | Statement |
|---|---|
| Code and rate | code, , |
| Coding theorem | : error possible. Error forces . |
| Converse chain | |
| Error above capacity | |
| Data processing | : and |
| Fano | |
| uses, memoryless, no feedback | |
| Independence bound | |
| Chain rules | , |
| Joint AEP | true pair typical w.p. ; at most typical pairs; independent pair typical w.p. |
| Source over a channel | reliable if , impossible if |
6. Checks and common mistakes
- Always . An answer outside this range is wrong.
- The uniform input is optimal only when the channel is (weakly) symmetric. For the Z-channel it is not (, not ).
- BEC: cannot reach , because the erasure symbol appears with probability whatever is sent.
- State the Markov chain before using data processing. State “for every ” before taking the maximum.
- fails with feedback. Bound instead.
- Useful: , , .
7. Numbers
| 3 | 5 | 12 | 13 | 26 | 36 | |
|---|---|---|---|---|---|---|
| 1.585 | 2.322 | 3.585 | 3.700 | 4.700 | 5.170 |
| 0.1 | 0.11 | 0.2 | 0.25 | 0.5 | ||
|---|---|---|---|---|---|---|
| 0.469 | 0.500 | 0.722 | 0.811 | 0.918 | 1 |