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.

  1. . Given , is plus the noise, so for every and , whatever is. Here: .
  2. Maximize . Chain rule: . Only depends on , so the uniform input is best, and it is the only maximizer. Here: .
  3. Maximize . . Equality needs uniform, and a uniform gives a uniform . So . Here: bits.
  4. 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:

  1. The cascade is a DMC from to , so .
  2. is a Markov chain. By data processing, for every : and .
  3. The second bounds hold because and are maxima over all input distributions, and , are particular ones.
  4. 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

ProblemKey stepsAnswer
HW4 P4 Z-channel ( w.p. ). , , . Derivative: .,
HW4 P6(a) , Bern(). Derivative: .,
HW4 P6(b) receiver sees , uniform
HW4 P1(a) all rows equalOutput 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 memoryTake 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

ChannelCapacity (bits)Best input
Noiseless, symbolsuniform
BSC, flip probability uniform
BEC, erasure probability uniform
Weakly symmetricuniform
uniform
Sum of two channels (separate alphabets)channel 1 a fraction
Cascadeequality with a decoding relay
With feedback (DMC)
Noise with memoryat 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

NameStatement
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 AEPtrue pair typical w.p. ; at most typical pairs; independent pair typical w.p.
Source over a channelreliable 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

3512132636
1.5852.3223.5853.7004.7005.170
0.10.110.20.250.5
0.4690.5000.7220.8110.9181