---
title: "Problem set 6: equalization, OFDM, information and rate–distortion"
heading: "Problem set 6: zero-forcing, MMSE and decision-feedback equalizers, OFDM design, entropy and Huffman codes, channel capacity, and rate–distortion"
eyebrow: S8 · Problem set 6
type: problems
---

::: hook
These problems cover lessons 25 and 26 and 30 to 32: rate–distortion bounds and quantizer gaps, noise enhancement, equalizer taps and residual ISI, MMSE and DFE performance, OFDM spacing, prefixes, rates and frequency offsets, self-information, entropy and code efficiency, and the capacity of binary symmetric and erasure channels.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 0.5 | 0.75 | 0.9; s = 12 | 18 | 24

## A channel h = [1, {a}] at {s} dB input SNR.

::: part
answer: 10*log(1/(1 - a^2))
unit: dB
tolerance: 0.05

### ZF noise enhancement?

::: misses
- [any] $1/(1 - a^2)$.
:::
:::

::: part
answer: s + 10*log(1 - a^2)
unit: dB
tolerance: 0.05

### ZF output SNR?

::: misses
- [any] Input SNR minus the enhancement.
:::
:::

::: part
answer: 10*log(sqrt((1 + a^2 + 10^(-s/10))^2 - 4*a^2)/10^(-s/10) - 1)
unit: dB
tolerance: 0.05

### MMSE linear output SNR?

::: misses
- [any] $1/J - 1$.
:::
:::
:::

::: check
kind: parts
given: a = 0.3 | 0.6 | -0.5; n = 1 | 3; N = 4 | 7

## A zero-forcing equalizer for h = [1, {a}], truncated to {N} taps.

::: part
answer: (-a)^n
tolerance: 0.5%

### Tap {n}?

::: misses
- [any] $(-a)^n$.
:::
:::

::: part
answer: 20*log(abs(a)^N)
unit: dB
tolerance: 0.05

### Residual ISI?

::: misses
- [any] $|a|^N$.
:::
:::
:::

::: check
kind: parts
given: N = 16 | 40; P = 0.25 | 2; a = 0.6 | 0.95

## An adaptive DFE with {N} feedforward taps, received power {P}, for h = [1, {a}].

::: part
answer: 2/(N*P)
tolerance: 0.5%

### LMS step bound?

::: misses
- [any] $2/(NP_r)$.
:::
:::

::: part
answer: a
tolerance: 0.5%

### The feedback tap that cancels the echo?

::: misses
- [any] The echo coefficient.
:::
:::
:::

::: check
kind: parts
given: s = 20 | 40 | 122.88; N = 64 | 512 | 4096; c = 0.8 | 4.7

## An OFDM system at {s} MHz with {N}-point FFTs and a {c} µs prefix.

::: part
answer: s*1000/N
unit: kHz
tolerance: 0.5%

### Subcarrier spacing?

::: misses
- [any] $f_s/N$.
:::
:::

::: part
answer: N/s
unit: µs
tolerance: 0.5%

### Useful symbol time?

::: misses
- [any] $N/f_s$.
:::
:::

::: part
answer: 10*log(1 + c/(N/s))
unit: dB
tolerance: 0.05

### Prefix SNR cost?

::: misses
- [any] $10\log(1 + T_{cp}/T_u)$.
:::
:::
:::

::: check
kind: parts
given: D = 48 | 108 | 1200; b = 2 | 4 | 6; r = 0.5 | 0.75; T = 4 | 3.6 | 71.4

## An OFDM link with {D} data subcarriers, {b} coded bits each, code rate {r}, {T} µs symbols.

::: part
answer: D*b*r/T
unit: Mb/s
tolerance: 0.5%

### Data rate?

::: misses
- [any] $N_\text{data}br/T$.
:::
:::

::: part
answer: D*b/T
unit: Mb/s
tolerance: 0.5%

### Coded bit rate?

::: misses
- [any] Without the code rate.
:::
:::
:::

::: check
kind: parts
given: e = 0.03 | 0.08 | 0.15; c = 1.6 | 16.7

## An OFDM receiver {e} of the spacing off frequency, with a {c} µs prefix.

::: part
answer: 20*log(abs(sin(pi*e)/(pi*e)))
unit: dB
tolerance: 0.02

### Signal loss?

::: misses
- [any] $20\log|\text{sinc}\,\epsilon|$.
:::
:::

::: part
answer: 20*log(abs(sin(pi*(1 - e))/(pi*(1 - e))))
unit: dB
tolerance: 0.05

### Leakage from each neighbor?

::: misses
- [any] $20\log|\text{sinc}(1 - \epsilon)|$.
:::
:::

::: part
answer: 299.792458*c
unit: m
tolerance: 0.5%

### Longest echo path difference absorbed?

::: misses
- [any] $cT_{cp}$.
:::
:::
:::

::: check
kind: parts
given: p = 0.2 | 0.002; a = 0.45 | 0.55; b = 0.15 | 0.3

## An event of probability {p}; and a three-symbol source with probabilities {a}, {b} and the remainder.

::: part
answer: -log(p)/log(2)
tolerance: 0.5%

### Self-information?

::: misses
- [any] $-\log_2p$.
:::
:::

::: part
answer: -(a*log(a) + b*log(b) + (1 - a - b)*log(1 - a - b))/log(2)
tolerance: 0.5%

### Entropy?

::: misses
- [any] $-\sum p\log_2p$.
:::
:::

::: part
answer: log(3)/log(2)
tolerance: 0.5%

### The most it could be?

::: misses
- [any] $\log_23$.
:::
:::
:::

::: check
kind: parts
given: H = 1.2 | 2.6; d = 0.08 | 0.3; N = 10000 | 1000000

## A source of entropy {H} bits, coded at {H} + {d} bits per symbol, for {N} symbols.

::: part
answer: 100*H/(H + d)
unit: %
tolerance: 0.5%

### Code efficiency?

::: misses
- [any] H/L.
:::
:::

::: part
answer: N*H
tolerance: 0.5%

### Least possible total bits?

::: misses
- [any] NH.
:::
:::
:::

::: check
kind: parts
given: p = 0.04 | 0.11 | 0.25; R = 2 | 20

## A binary source with P(1) = {p}; and a BSC with crossover {p} used {R} million times a second.

::: part
answer: -(p*log(p) + (1 - p)*log(1 - p))/log(2)
tolerance: 0.5%

### Source entropy?

::: misses
- [any] H(p).
:::
:::

::: part
answer: R*(1 + (p*log(p) + (1 - p)*log(1 - p))/log(2))
unit: Mb/s
tolerance: 0.5%

### Channel capacity?

::: misses
- [any] $R(1 - H(p))$.
:::
:::
:::

::: check
kind: parts
given: e = 0.08 | 0.3; E = -2 | 2 | 5

## A binary erasure channel with ε = {e}; and hard-decision BPSK at Es/N0 = {E} dB.

::: part
answer: 1 - e
tolerance: 0.5%

### BEC capacity?

::: misses
- [any] $1 - \varepsilon$.
:::
:::

::: part
answer: Q(sqrt(2*10^(E/10)))
tolerance: 1%

### BPSK crossover probability?

::: misses
- [any] $Q(\sqrt{2E_s/N_0})$.
:::
:::

::: part
answer: 1 + (Q(sqrt(2*10^(E/10)))*log(Q(sqrt(2*10^(E/10)))) + (1 - Q(sqrt(2*10^(E/10))))*log(1 - Q(sqrt(2*10^(E/10)))))/log(2)
tolerance: 0.5%

### Hard-decision capacity?

::: misses
- [any] $1 - H(p)$.
:::
:::
:::

::: check
kind: parts
given: q = 0.15 | 0.35; p = 0.05 | 0.12

## A BSC with p = {p} driven with P(X = 1) = {q}.

::: part
answer: q*(1 - p) + (1 - q)*p
tolerance: 0.5%

### P(Y = 1)?

::: misses
- [any] $q(1 - p) + (1 - q)p$.
:::
:::

::: part
answer: -((q*(1 - p) + (1 - q)*p)*log(q*(1 - p) + (1 - q)*p) + (1 - (q*(1 - p) + (1 - q)*p))*log(1 - (q*(1 - p) + (1 - q)*p)))/log(2) + (p*log(p) + (1 - p)*log(1 - p))/log(2)
tolerance: 0.5%

### Mutual information?

::: misses
- [any] $H(Y) - H(p)$.
:::
:::
:::

::: check
kind: parts
given: s = 15 | 60 | 240

## An OFDM system with {s} kHz subcarriers.

::: part
answer: 1000/s
unit: µs
tolerance: 0.5%

### Useful symbol time?

::: misses
- [any] $1/\Delta f$.
:::
:::

::: part
answer: 1000/s*0.07
unit: µs
tolerance: 0.5%

### A prefix of 7% of that?

::: misses
- [any] $0.07T_u$.
:::
:::
:::

::: check
kind: parts
given: S = 24 | 36 | 48; f = 8000 | 44100

## A Gaussian-like audio signal sampled at {f} samples/s must be stored with {S} dB signal-to-distortion ratio.

::: part
answer: S/6.0206
tolerance: 0.5%

### Bits per sample at the rate–distortion bound?

::: misses
- [any] 6.02 dB per bit.
:::
:::

::: part
answer: (S + 1.5329)/6.0206
tolerance: 0.5%

### With a uniform quantizer and ideal entropy coding?

::: misses
- [any] Add the 1.53 dB gap first.
:::
:::

::: part
answer: f*S/6.0206/1000
unit: kbit/s
tolerance: 0.5%

### Bit rate at the bound?

::: misses
- [any] Bits per sample times samples per second.
:::
:::
:::

::: check
kind: parts
given: S = 15 | 20 | 25; a = 0.3 | 0.6 | 0.9; t = 0.5 | 2; B = 10 | 20

## An OFDM link's direct path alone would give {S} dB SNR; an echo of relative amplitude {a} arrives {t} µs later, and the signal spans {B} MHz.

::: part
answer: S + 20*log(1 + a)
unit: dB
tolerance: 0.5%

### What SNR does the best subcarrier see?

::: misses
- [any] Where the echo adds in phase: $(1 + a)^2$.
:::
:::

::: part
answer: S + 20*log(1 - a)
unit: dB
tolerance: 0.5%

### And the worst?

::: misses
- [any] Where it cancels: $(1 - a)^2$.
:::
:::

::: part
answer: B*t
unit: notches
tolerance: 0.5%

### How many notches fall across the band?

::: misses
- [any] The response repeats every $1/\tau$: $B\tau$ notches.
:::
:::
:::

::: check
kind: parts
given: p = 0.05 | 0.1 | 0.2 | 0.3

## A binary source emits 1 with probability {p}. Its symbols are Huffman-coded in pairs, which gives codeword lengths 1, 2, 3 and 3 for the pairs 00, 01, 10 and 11.

::: part
answer: (1 + 3*p - p^2)/2
unit: bits
tolerance: 0.5%

### How many bits per source symbol does the pair code average?

::: misses
- [1 + 3*p - p^2] That's per pair; divide by two.
- [any] Average the lengths over the pair probabilities, then halve.
:::
:::

::: part
answer: (-p*log(p) - (1 - p)*log(1 - p))/log(2)/((1 + 3*p - p^2)/2)*100
unit: %
tolerance: 0.5%

### What is its efficiency against the entropy?

::: misses
- [any] $H(p)$ over the average length per symbol.
:::
:::
:::
:::
