---
title: "Problem set 8: statistical and adaptive signal processing"
heading: "Problem set 8: AR models and Levinson–Durbin, Wiener filters, LMS design, the Hilbert transform and filter banks"
eyebrow: S7 · Problem set 8
type: problems
---

::: hook
These problems cover lessons 34 to 44: autoregressive models, prediction gain and the Levinson–Durbin recursion, scalar, noncausal and FIR Wiener filters, LMS and NLMS step sizes, convergence and misadjustment, Hilbert transformers and envelopes, cepstra, compressed sensing, and uniform DFT filter banks.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 0.6 | 0.85 | -0.9; v = 0.5 | 2; w = 0.4 | 2.5

## An AR(1) process x[n] = {a}x[n − 1] + w[n], noise variance {v}.

::: part
answer: v/(1 - a^2)
tolerance: 0.5%

### Variance of x?

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

::: part
answer: v/(1 - a^2)*a^2
tolerance: 0.5%

### φ[2]?

::: misses
- [any] $\phi[0]a^{|m|}$.
:::
:::

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

### PSD at ω = {w}?

::: misses
- [any] $\sigma_w^2/|1 - ae^{-j\omega}|^2$.
:::
:::
:::

::: check
kind: parts
given: p = 0.5 | 0.65; q = 0.1 | 0.55

## A process with φ = [1, {p}, {q}].

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

### $k_2$?

::: misses
- [any] $(\phi[2] - k_1\phi[1])/E_1$.
:::
:::

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

### $a_1$ of the order-2 predictor?

::: misses
- [any] $k_1(1 - k_2)$.
:::
:::

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

### Order-2 prediction gain?

::: misses
- [any] $10\log(\phi[0]/E_2)$.
:::
:::
:::

::: check
kind: parts
given: s = 2 | 5; v = 0.5 | 3

## A signal of variance {s} in uncorrelated noise of variance {v}.

::: part
answer: s/(s + v)
tolerance: 0.5%

### Scalar Wiener gain?

::: misses
- [any] $\sigma_s^2/(\sigma_s^2 + \sigma_v^2)$.
:::
:::

::: part
answer: s*v/(s + v)
tolerance: 0.5%

### Minimum mean-square error?

::: misses
- [any] $\sigma_s^2\sigma_v^2/(\sigma_s^2 + \sigma_v^2)$.
:::
:::
:::

::: check
kind: parts
given: a = 0.7 | 0.9; n = 0.3 | 2; w = 0.2 | 2

## A unit-variance AR(1) signal (a = {a}) in white noise of density {n}.

::: part
answer: ((1 - a^2)/(1 - 2*a*cos(w) + a^2))/((1 - a^2)/(1 - 2*a*cos(w) + a^2) + n)
tolerance: 0.5%

### Noncausal Wiener gain at ω = {w}?

::: misses
- [any] $P_{ss}/(P_{ss} + P_{vv})$.
:::
:::

::: part
answer: ((1 + n) - a*a)/((1 + n)^2 - a*a)
tolerance: 0.5%

### $h_0$ of the two-tap FIR Wiener filter?

::: misses
- [any] Solve Wiener–Hopf.
:::
:::
:::

::: check
kind: parts
given: P = 64 | 256 | 1024; s = 0.05 | 0.5; M = 5 | 15

## An LMS filter with {P} taps, input power {s}, aiming for {M}% misadjustment.

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

### Trace bound on μ?

::: misses
- [any] $2/(P\sigma_x^2)$.
:::
:::

::: part
answer: 2*M/100/(P*s)
tolerance: 0.5%

### μ for the misadjustment?

::: misses
- [any] $2M/(P\sigma_x^2)$.
:::
:::

::: part
answer: 1/((2*M/100/(P*s))*s)
tolerance: 0.5%

### Weight time constant in samples (white input)?

::: misses
- [any] $1/(\mu\sigma_x^2)$.
:::
:::
:::

::: check
kind: parts
given: u = 0.3 | 1; P = 32 | 512; s = 0.01 | 0.4; m = 0.5 | 1.6; n = 5 | 9

## An NLMS filter with $\tilde{\mu}$ = {u}, {P} taps, input power {s}; and a one-tap LMS filter with μ = {m} on unit-power input.

::: part
answer: u/(P*s)
tolerance: 0.5%

### NLMS effective step?

::: misses
- [any] $\tilde{\mu}/(P\sigma_x^2)$.
:::
:::

::: part
answer: (1 - m)^n
tolerance: 0.5%

### One-tap mean weight error after {n} steps?

::: misses
- [any] $(1 - \mu)^n$.
:::
:::
:::

::: check
kind: parts
given: n = 1 | 5 | 11; w = 0.6 | 1.3

## The ideal Hilbert transformer, and its 4-tap truncation (taps at ±1 and ±3).

::: part
answer: 2/(pi*n)
tolerance: 0.5%

### h[{n}]?

::: misses
- [any] $2/(\pi n)$.
:::
:::

::: part
answer: 4/pi*(sin(w) + sin(3*w)/3)
tolerance: 0.5%

### Truncated amplitude at ω = {w}?

::: misses
- [any] $\frac{4}{\pi}(\sin\omega + \frac{1}{3}\sin3\omega)$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 2.5; B = 0.4 | 1.2; p = 40 | 135; c = 455 | 10700; f = 2 | 5

## Two tones of amplitudes {A} and {B}, {p}° apart; and a {f} kHz tone sent single-sideband on a {c} kHz carrier.

::: part
answer: sqrt(A^2 + B^2 + 2*A*B*cos(p*pi/180))
tolerance: 0.5%

### Envelope?

::: misses
- [any] $\sqrt{A^2 + B^2 + 2AB\cos\phi}$.
:::
:::

::: part
answer: c - f
unit: kHz
tolerance: 0.001%

### Lower-sideband output frequency?

::: misses
- [any] $f_c - f_m$.
:::
:::
:::

::: check
kind: parts
given: s = 48 | 384; M = 16 | 64; k = 5 | 12; N = 256 | 1024

## A {M}-channel DFT bank at {s} kHz with an N = {N}-tap prototype.

::: part
answer: s/M
unit: kHz
tolerance: 0.5%

### Channel spacing?

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

::: part
answer: k*s/M
unit: kHz
tolerance: 0.5%

### Center of channel {k}?

::: misses
- [any] $kf_s/M$.
:::
:::

::: part
answer: N/M + log(M)/log(2)/2
tolerance: 0.5%

### Polyphase-FFT cost per input sample?

::: misses
- [any] $N/M + \frac{1}{2}\log_2M$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 0.5; b = 1.5 | 0.7; c = 0.4 | 1; w = 0.8 | 2.2

## A QMF analysis pair from $H_0 = [\given{a}, \given{b}, \given{c}]$.

::: part
answer: sqrt((a + b*cos(w) + c*cos(2*w))^2 + (b*sin(w) + c*sin(2*w))^2)
tolerance: 0.5%

### $|H_0|$ at ω = {w}?

::: misses
- [any] Evaluate the DTFT.
:::
:::

::: part
answer: sqrt((a - b*cos(w) + c*cos(2*w))^2 + (b*sin(w) - c*sin(2*w))^2)
tolerance: 0.5%

### $|H_1|$ at ω = {w}?

::: misses
- [any] Taps [a, −b, c].
:::
:::
:::

::: check
kind: parts
given: a = 0.8 | 0.95; v = 1 | 4; S = -6 | 10

## An AR(1) process with a = {a}, noise variance {v}; and a band where the SNR is {S} dB.

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

### Prediction gain?

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

::: part
answer: 10^(S/10)/(1 + 10^(S/10))
tolerance: 0.5%

### Wiener gain in that band?

::: misses
- [any] S/(1 + S).
:::
:::
:::

::: check
kind: parts
given: m = 0.002 | 0.02; P = 32 | 128; s = 0.2 | 1; l = 0.1 | 2; f = 8 | 16

## An LMS filter: μ = {m}, {P} taps, input power {s}; a weight mode with eigenvalue {l}, at {f} kHz.

::: part
answer: 100*m*P*s/2
unit: %
tolerance: 0.5%

### Misadjustment?

::: misses
- [any] $\mu P\sigma_x^2/2$.
:::
:::

::: part
answer: 1/(m*l)/(f*1000)*1000
unit: ms
tolerance: 0.5%

### Mode time constant?

::: misses
- [any] $1/(\mu\lambda)$ samples.
:::
:::
:::

::: check
kind: parts
given: p = 0.5 | 0.75; q = 0.2 | 0.45

## A process has φ = [1, {p}, {q}].

::: part
answer: 10*log(1/((1 - p^2)*(1 - ((q - p^2)/(1 - p^2))^2)))
unit: dB
tolerance: 0.5%

### What prediction gain does order 2 give?

::: misses
- [any] $10\log_{10}(1/E_2)$.
:::
:::
:::

::: check
kind: parts
given: P = 64 | 512; M = 2 | 10

## An LMS filter with {P} taps and white input runs at {M}% misadjustment.

::: part
answer: P/(2*M/100)
unit: samples
tolerance: 0.5%

### What time constant does that force?

::: misses
- [any] $\tau = P/2M$.
:::
:::
:::

::: check
kind: parts
given: M = 16 | 256; T = 8 | 16; s = 10 | 200

## A critically sampled channelizer has {M} channels, a {T}M-tap prototype and a {s} MS/s input.

::: part
answer: (T + 0.5*log(M)/log(2))*s
unit: M/s
tolerance: 0.5%

### About how many million multiplications a second?

::: misses
- [any] (T + ½ log₂ M) per input sample.
:::
:::
:::

::: check
kind: parts
given: t = 10 | 25 | 40; fs = 8 | 16; N = 512 | 4096; K = 8 | 20

## An echo arrives {t} ms late in a {fs} kHz recording; separately, a {K}-sparse signal of length {N} is to be sensed.

::: part
answer: t*1e-3*fs*1e3
tolerance: 0.5%

### At what quefrency index is the echo's cepstral peak?

::: misses
- [t] Convert to samples.
- [any] Not yet. $t \cdot f_s$.
:::
:::

::: part
answer: 4*K*ln(N/K)
tolerance: 1%

### About how many random measurements does the rule of thumb need for the sparse signal?

::: misses
- [4*K*log(N/K)] Natural logarithm.
- [any] Not yet. $4K\ln(N/K)$.
:::
:::

::: right
Right. Both exploit structure: convolution made additive, and sparsity made measurable.
:::
:::
:::
