Built for solving problems: the Practice Midterm 2 pattern first, then Problem Set 6. Explanations are in note 8, Rate Distortion Theory. Logs are base 2. is the binary entropy (the sheets write ), and is differential entropy.

1. Exam pattern: for a distortion matrix

Running example (Practice Midterm 2, Problem 4): uniform on , rows , columns ,

First, read each column. For each , list the at distortion and the at distortion . Call the counts and (the template below is for a matrix with the same counts in every column; otherwise bound each column separately). Example: the cost is exactly when , so ( and ) and .

(a) with ties. Only zero-cost pairs may occur. Given , the source is one of symbols, so and

Meet it: uniform, and given let be uniform over its free symbols. Check that gets the source distribution. Example: bits, less than .

(b) Lower bound. Let and . is a function of , so

Line 1: chain rule. Line 2: drop the conditioning on in the first term. Line 3: is or , and given and the source is one of symbols. Example: .

To replace by , show the bound is increasing: exactly when . Example: when . So for ,

(c) A joint distribution that meets the bound. Make each inequality an equality: independent of , exactly, and uniform over its candidates. So take uniform (by symmetry) and the backward channel : probability for each zero-cost , and for each cost-one . Example:

Three checks to write down:

  1. Marginal of . Each gets .
  2. Distortion. .
  3. Entropy. : first “error or not”, then a fair coin between the two free symbols.

So for . If the source is not uniform, solve for from .

(d) for .

Output that always. A constant carries no information, so , and is never negative and never increases with . Example: every column has one , so every column sum is . is wrong only when . Check: the formula of (c) is at , because .

2. Homework patterns

HW6 P1, infinite distortion. Fair coin, , .

  • forces . One free number: . Distortion .
  • . Convex in and at , so nonincreasing: take .
  • Answer: for , and beyond. At it is bits.

HW6 P2, uniform on symbols, Hamming. This is Section 1 with , .

  • Fano: . Derivative when .
  • Test channel: uniform, with probability , each other with probability .
  • Answer: for , and beyond. With : .

HW6 P3, erasure distortion. Fair coin, , wrong bit costs , erasure costs .

  • Each bit is kept or erased, so the distortion is .
  • , so . Met by erasing each bit with probability , independently of its value.
  • Answer: for . Simple scheme: store the first bits exactly, erase the rest.

HW6 P4, squared-error bounds. Mean , variance , any density.

  • Lower: .
  • Upper: is a minimum, so any allowed test channel bounds it. With , , : and .
  • Answer: . The Gaussian is the hardest source to describe.

HW6 P5, separation with distortion.

  • (a) Pick . Source code: indices, distortion at most . Channel code: error at most for every index (maximal error). Total distortion at most .
  • (b) is a Markov chain, so

Reasons in order: the converse inequality (i.i.d. source, distortion ), data processing, uses of a memoryless channel. So .

3. Formulas to know

Source and distortionZero for
Bernoulli(), Hamming
Uniform on symbols, Hamming
, squared error
  • Coin test channel: BSC from to with flip probability and .
  • Gaussian test channel: with and independent . Turned around, .
  • Reverse water-filling (independent Gaussians, total squared error ): with and . Variances and : gives , bits. gives , , bits.
  • Shape: is nonincreasing and convex in .
  • Converse: any within distortion of an i.i.d. source has , from
  • Source over a channel: distortion is possible if and impossible if . Best distortion: solve . Fair coin over BSC(0.11): , so .
0.10.110.20.250.5
0.4690.5000.7220.8110.9181

, , .

4. Checks and common mistakes

  • is not always . With ties (a row with several zeros) it is smaller. only when is the only free choice.
  • State the range of . Every formula holds up to , and beyond it.
  • Do not replace by without the derivative. The bound must be increasing in on the range.
  • Check both ends. The formula should give at and at .
  • Check the test channel. It must give the source distribution, have distortion , and give the claimed .
  • An entry means probability zero for that pair, not a large cost.
  • Lower bound versus upper bound. A lower bound must hold for every allowed . One test channel only gives an upper bound.
  • Which . The sheets’ is the binary entropy here. here is differential entropy.
  • Units. gives bits. is at most bit, reached at .