---
title: "Problem set 3: multirate systems and frequency response"
heading: "Problem set 3: decimation and interpolation, oversampled conversion, group delay, all-pass and minimum-phase systems"
eyebrow: S7 · Problem set 3
type: problems
---

::: hook
These problems cover lessons 7 to 13: downsampling, upsampling and their spectra, rational rate changes and polyphase cost, oversampling and noise shaping, group delay pole by pole, linear phase, all-pass sections, minimum-phase factorization and invertibility.
:::

::: pool
pick: 12

::: check
kind: parts
given: s = 96 | 192 | 384; M = 2 | 4 | 8; w = 0.04 | 0.09

## A signal at {s} kHz is decimated by {M}; it contains a tone at ω = {w}π.

::: part
answer: s/(2*M)
unit: kHz
tolerance: 0.5%

### Anti-aliasing cutoff?

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

::: part
answer: M*w
tolerance: 0.5%

### Tone's frequency after decimation, in units of π?

::: misses
- [any] $M\omega_0$.
:::
:::

::: part
answer: w*s/2
unit: kHz
tolerance: 0.5%

### Tone's frequency in kilohertz (unchanged by decimation)?

::: misses
- [any] $\omega_0f_s/2\pi$.
:::
:::
:::

::: check
kind: parts
given: f = 0.4 | 1.5 | 3; s = 8 | 11.025; L = 3 | 4

## A {f} kHz tone at {s} kHz is upsampled by {L}.

::: part
answer: s*L
unit: kHz
tolerance: 0.5%

### New sample rate?

::: misses
- [any] $Lf_s$.
:::
:::

::: part
answer: s - f
unit: kHz
tolerance: 0.5%

### Lowest image?

::: misses
- [any] $f_s - f_0$.
:::
:::

::: part
answer: 1/L
tolerance: 0.5%

### Interpolation filter cutoff, in units of π at the new rate?

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

::: check
kind: parts
given: N = 48 | 96 | 180; M = 3 | 4 | 6

## An N = {N}-tap FIR decimates by {M}.

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

### Multiplications per output, computed naively?

::: misses
- [any] N per input, M inputs per output.
:::
:::

::: part
answer: N
tolerance: 0.5%

### In polyphase form, per output?

::: misses
- [any] N per output.
:::
:::

::: part
answer: N/M
tolerance: 0.5%

### Taps in each polyphase branch?

::: misses
- [any] N/M.
:::
:::
:::

::: check
kind: parts
given: B = 1 | 2 | 4; M = 16 | 64 | 128

## A {B}-bit quantizer oversampled ×{M}.

::: part
answer: 6.02*B + 1.76 + 10*log(M)
unit: dB
tolerance: 0.05

### In-band SNR, unshaped?

::: misses
- [any] $+10\log M$.
:::
:::

::: part
answer: 6.02*B + 1.76 - 10*log(pi^2/3) + 30*log(M)
unit: dB
tolerance: 0.05

### With first-order shaping?

::: misses
- [any] $-5.17 + 30\log M$.
:::
:::

::: part
answer: 6.02*B + 1.76 - 10*log(pi^4/5) + 50*log(M)
unit: dB
tolerance: 0.05

### With second-order shaping?

::: misses
- [any] $-12.90 + 50\log M$.
:::
:::
:::

::: check
kind: parts
given: S = 72 | 90 | 104; p = 1 | 2

## A converter needs {S} dB SNR; noise shaping of order {p}.

::: part
answer: (S - 1.76)/6.02
tolerance: 0.5%

### Equivalent bits?

::: misses
- [any] (SNR − 1.76)/6.02.
:::
:::

::: part
answer: (2*p + 1)*10*log(2)
unit: dB
tolerance: 0.05

### SNR gained per doubling of the oversampling ratio?

::: misses
- [any] $(2p + 1) \times 3.01$.
:::
:::
:::

::: check
kind: parts
given: a = 0.6 | 0.85 | 0.92; w = 0.15 | 0.5 | 1.5

## A single real pole at {a}.

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

### Group delay at ω = 0?

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

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

### At ω = {w}?

::: misses
- [any] $\frac{a\cos\omega - a^2}{1 - 2a\cos\omega + a^2}$.
:::
:::

::: part
answer: acos(a)
tolerance: 0.5%

### Frequency (radians) where its group delay crosses zero?

::: misses
- [any] Where $a\cos\omega = a^2$.
:::
:::
:::

::: check
kind: parts
given: r = 0.85 | 0.93; c = 0.6 | 1.4; N = 41 | 128; s = 16 | 48

## A resonator with poles at {r}e^{±j{c}}; and an N = {N}-tap linear-phase FIR at {s} kHz.

::: part
answer: (r - r^2)/(1 - r)^2 + (r*cos(2*c) - r^2)/(1 - 2*r*cos(2*c) + r^2)
tolerance: 0.5%

### Resonator group delay at ω = {c}?

::: misses
- [any] Both poles' contributions.
:::
:::

::: part
answer: (N - 1)/2/s
unit: ms
tolerance: 0.5%

### FIR delay?

::: misses
- [any] (N − 1)/2 samples.
:::
:::
:::

::: check
kind: parts
given: a = 0.4 | 0.7 | 0.9; w = 0.3 | 1.2

## A first-order all-pass $\frac{z^{-1} - a}{1 - az^{-1}}$ with a = {a}.

::: part
answer: (1 + a)/(1 - a)
tolerance: 0.5%

### Group delay at ω = 0?

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

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

### At ω = {w}?

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

::: part
answer: (-w - 2*atan(a*sin(w)/(1 - a*cos(w))))*180/pi
unit: °
tolerance: 0.2

### Phase at ω = {w}?

::: misses
- [any] $-\omega - 2\arctan\frac{a\sin\omega}{1 - a\cos\omega}$.
:::
:::
:::

::: check
kind: parts
given: c = 1.6 | 2.5 | 5; w = 0.7 | 2.1

## A channel $1 - \given{c}z^{-1}$.

::: part
answer: c
tolerance: 0.5%

### First coefficient of its minimum-phase counterpart (written $b_0 - z^{-1}$)?

::: misses
- [any] Reflect the zero and scale by c.
:::
:::

::: part
answer: 1/(c^2 + 1)
tolerance: 0.5%

### Fraction of the original channel's energy in its first sample?

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

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

### |H| at ω = {w}?

::: misses
- [any] $|1 - ce^{-j\omega}|$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | -0.65; n = 3 | 6; r = 0.6 | 0.95

## The inverse of a minimum-phase $1 - \given{a}z^{-1}$; and an all-pass pole at radius {r}.

::: part
answer: a^n
tolerance: 0.5%

### The inverse's sample n = {n}?

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

::: part
answer: (1 + r)/(1 - r)
tolerance: 0.5%

### Peak group delay of the all-pass section?

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

::: check
kind: parts
given: L = 2 | 160 | 3; M = 3 | 147 | 5; s = 32 | 44.1

## A rational converter: up by {L}, down by {M}, from {s} kHz.

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

### Output rate?

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

::: part
answer: 1/((L + M + abs(L - M))/2)
tolerance: 0.5%

### Filter cutoff, in units of π at the upsampled rate?

::: misses
- [any] $\min(\pi/L, \pi/M)$.
:::
:::
:::

::: check
kind: parts
given: p = 1 | 2 | 3; w = 0.02 | 0.2; M = 32 | 128

## Order-{p} noise shaping, oversampling ratio {M}.

::: part
answer: 20*p*log(2*sin(w/2))
unit: dB
tolerance: 0.05

### Noise density change at ω = {w}?

::: misses
- [any] $|2\sin(\omega/2)|^{2p}$ in dB.
:::
:::

::: part
answer: 10*log(pi^(2*p)/((2*p + 1)*M^(2*p + 1)))
unit: dB
tolerance: 0.05

### In-band noise relative to unshaped, unoversampled?

::: misses
- [any] $\pi^{2p}/((2p + 1)M^{2p + 1})$.
:::
:::
:::

::: check
kind: parts
given: r = 0.85 | 0.95; t = 0.6 | 1.2

## A resonator has poles at {r}$e^{\pm j\given{t}}$ and no zeros.

::: part
answer: r/(1 - r) - (r^2 - r*cos(2*t))/(1 + r^2 - 2*r*cos(2*t))
unit: samples
tolerance: 0.5%

### What is its total group delay at ω = {t}?

::: misses
- [r/(1 - r)] The conjugate pole contributes too.
- [any] Sum both poles' contributions.
:::
:::
:::

::: check
kind: parts
given: a = 0.3 | 0.7; w = 0.8 | 2

## A first-order all-pass $\frac{z^{-1} - a}{1 - az^{-1}}$ with a = {a} is evaluated at ω = {w}.

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

### What is its group delay?

::: misses
- [any] $\frac{1 - a^2}{1 - 2a\cos\omega + a^2}$.
:::
:::

::: part
answer: 1
tolerance: 0

### What is its magnitude?

::: misses
- [any] An all-pass passes every frequency at unit gain.
:::
:::
:::

::: check
kind: parts
given: L = 3 | 4 | 8; P = 10 | 24; s = 8 | 44.1

## A {s} kHz signal is interpolated by {L} with a {P}L-tap polyphase filter.

::: part
answer: P
unit: multiplications
tolerance: 0

### How many multiplications per output?

::: misses
- [any] One subfilter of P taps.
:::
:::

::: part
answer: P*L*s*1000/1e6
unit: M/s
tolerance: 0.5%

### How many million per second?

::: misses
- [any] P times the output rate.
:::
:::
:::
:::
