---
title: "Problem set 3: detection and error rates"
heading: "Problem set 3: likelihood-ratio and Neyman–Pearson detection, matched filters, binary error probability, signal space, PAM and QAM"
eyebrow: S8 · Problem set 3
type: problems
---

::: hook
These problems cover lessons 12 to 16: likelihood-ratio thresholds, Neyman–Pearson detection, matched-filter SNR and correlator noise, RC filter losses, antipodal and orthogonal error rates, thresholds with unequal priors, signal-space distances and union bounds, Gray coding, and PAM and QAM error rates, energies and throughput.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 1 | 3; T = 5 | 40; N = 1e-6 | 1e-4

## A rectangular pulse of {A} V lasting {T} µs in noise of density $N_0$ = {N} W/Hz (1 Ω).

::: part
answer: A^2*T*1e-6
unit: J
tolerance: 0.5%

### Energy, in joules?

::: misses
- [any] $A^2T$.
:::
:::

::: part
answer: 10*log(2*A^2*T*1e-6/N)
unit: dB
tolerance: 0.05

### Matched-filter output SNR?

::: misses
- [any] $2E/N_0$.
:::
:::

::: part
answer: 10*log(2*A^2*T*1e-6/N) + 10*log(2*0.796*(1 - exp(-1/0.796))^2)
unit: dB
tolerance: 0.05

### With the best RC filter instead?

::: misses
- [any] 0.89 dB less.
:::
:::
:::

::: check
kind: parts
given: E = 1 | 9 | 25; N = 0.02 | 0.2; r = 0.3 | 1.5

## A correlator with signal output E = {E} and noise density {N}; an RC filter with τ = {r}T.

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

### Output noise rms?

::: misses
- [any] $\sqrt{N_0E/2}$.
:::
:::

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

### RC loss relative to the matched filter?

::: misses
- [any] $\frac{2\tau}{T}(1 - e^{-T/\tau})^2$.
:::
:::
:::

::: check
kind: parts
given: E = 5 | 8 | 11; R = 2 | 50

## A link at Eb/N0 = {E} dB carrying {R} Mb/s.

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

### BPSK bit error probability?

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

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

### Coherent FSK?

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

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

### BPSK errors per second?

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

::: check
kind: parts
given: A = 0.8 | 1.5; s = 0.25 | 0.5; p = 0.65 | 0.85

## Antipodal ±{A} V, noise σ = {s} V, the positive level sent with probability {p}.

::: part
answer: Q(A/s)
tolerance: 1%

### Error probability with a zero threshold?

::: misses
- [any] Q(A/σ).
:::
:::

::: part
answer: s^2/(2*A)*ln((1 - p)/p)
unit: V
tolerance: 0.5%

### Optimal threshold?

::: misses
- [any] $\frac{\sigma^2}{2A}\ln\frac{p_0}{p_1}$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 6; b = 1 | 4; r = 0.2 | -0.5; N = 0.1 | 0.4

## Two signals of energies {a} and {b} with correlation {r}, in noise of density {N}.

::: part
answer: sqrt(a + b - 2*r*sqrt(a*b))
tolerance: 0.5%

### Distance?

::: misses
- [any] $\sqrt{E_1 + E_2 - 2\rho\sqrt{E_1E_2}}$.
:::
:::

::: part
answer: Q(sqrt(a + b - 2*r*sqrt(a*b))/sqrt(2*N))
tolerance: 1%

### Pairwise error probability?

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

::: check
kind: parts
given: M = 8 | 16 | 32; E = 7 | 11

## M = {M} orthogonal signals at Eb/N0 = {E} dB.

::: part
answer: E + 10*log(log(M)/log(2))
unit: dB
tolerance: 0.05

### Es/N0?

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

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

### Union bound on symbol errors?

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

::: check
kind: parts
given: K = 2 | 4; d = 12 | 16; M = 16 | 64

## A Gray-coded {M}-point constellation, {K} nearest neighbors, $d_\text{min}^2/N_0$ = {d} dB.

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

### Symbol error probability?

::: misses
- [any] $KQ(d_\text{min}/\sqrt{2N_0})$.
:::
:::

::: part
answer: K*Q(sqrt(10^(d/10)/2))/(log(M)/log(2))
tolerance: 1%

### Bit error probability?

::: misses
- [any] Divide by log₂M.
:::
:::
:::

::: check
kind: parts
given: M = 16 | 64 | 256; E = 12 | 16 | 20

## Gray-coded {M}-QAM at Eb/N0 = {E} dB.

::: part
answer: 4*(1 - 1/sqrt(M))*Q(sqrt(3*log(M)/log(2)/(M - 1)*10^(E/10)))
tolerance: 1%

### Symbol error probability?

::: misses
- [any] The nearest-neighbor approximation.
:::
:::

::: part
answer: 4*(1 - 1/sqrt(M))*Q(sqrt(3*log(M)/log(2)/(M - 1)*10^(E/10)))/(log(M)/log(2))
tolerance: 1%

### Bit error probability?

::: misses
- [any] Divide by log₂M.
:::
:::
:::

::: check
kind: parts
given: M = 4 | 8; E = 10 | 14

## {M}-PAM at Eb/N0 = {E} dB.

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

### Symbol error probability?

::: misses
- [any] The PAM formula.
:::
:::

::: part
answer: (M^2 - 1)/3
tolerance: 0.5%

### Average energy in units of d²?

::: misses
- [any] $(M^2 - 1)d^2/3$.
:::
:::
:::

::: check
kind: parts
given: B = 6 | 18; b = 0.1 | 0.25; M = 64 | 256 | 1024

## A {B} MHz passband channel with {M}-QAM, rolloff {b}.

::: part
answer: B/(1 + b)
tolerance: 0.5%

### Symbol rate, Mbaud?

::: misses
- [any] $B/(1 + \beta)$.
:::
:::

::: part
answer: B/(1 + b)*log(M)/log(2)
unit: Mb/s
tolerance: 0.5%

### Bit rate?

::: misses
- [any] Times log₂M.
:::
:::

::: part
answer: 2*(M - 1)/3
tolerance: 0.5%

### Average symbol energy in units of d²?

::: misses
- [any] $2(M - 1)d^2/3$.
:::
:::
:::

::: check
kind: parts
given: a = 4 | 16; c = 64 | 256

## Comparing {a}-QAM with {c}-QAM.

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

### Extra Eb/N0 needed by the larger constellation?

::: misses
- [any] Ratio of the $\frac{\log_2M}{M - 1}$ terms.
:::
:::

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

### Extra bits per symbol?

::: misses
- [any] $\log_2(c/a)$.
:::
:::
:::

::: check
kind: parts
given: E = 4 | 9 | 16; T = 2 | 10; t = 0.3 | 0.6

## QPSK with $E_b$ = {E}; and integrate-and-dump of a unit-height pulse of duration {T}.

::: part
answer: 2*sqrt(E)
tolerance: 0.5%

### Adjacent-point distance?

::: misses
- [any] $2\sqrt{E_b}$.
:::
:::

::: part
answer: T*t
tolerance: 0.5%

### Integrator output a fraction {t} through the pulse?

::: misses
- [any] $A^2Tt$ with A = 1.
:::
:::
:::

::: check
kind: parts
given: m = 1 | 2; s = 0.5 | 1; a = 0.6 | 0.8; g = 2.33 | 3.09

## A receiver sees mean 0 or {m} V in Gaussian noise of σ = {s} V, with the {m} V hypothesis having prior probability {a}.

::: part
answer: m/2 + s^2/m*ln((1 - a)/a)
unit: V
tolerance: 0.5%

### Minimum-error threshold, in volts?

::: misses
- [any] $m/2 + (\sigma^2/m)\ln(P_0/P_1)$.
:::
:::

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

### Error probability with equal priors and the halfway threshold?

::: misses
- [any] $Q(d/2)$ with $d = m/\sigma$.
:::
:::

::: part
answer: Q(g - m/s)
tolerance: 0.5%

### A Neyman–Pearson detector instead holds its threshold at {g}σ. Its detection probability?

::: misses
- [any] $Q(\gamma - d)$.
:::
:::
:::

::: check
kind: parts
given: E = 4 | 7 | 10

## Gray-coded QPSK runs at Eb/N0 = {E} dB.

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

### What is its bit error probability?

::: misses
- [Q(sqrt(10^(E/10)))] Each quadrature branch is BPSK with the full Eb.
- [any] $Q(\sqrt{2E_b/N_0})$, the same as BPSK.
:::
:::

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

### What is its exact symbol error probability?

::: misses
- [any] A symbol is right only if both branches are: $1 - (1 - q)^2$.
:::
:::
:::

::: check
kind: parts
given: s = 0.1 | 0.5 | 2; N = 10 | 100 | 1000; d = 0.01 | 0.05

## A DC level is estimated from {N} independent samples in Gaussian noise of σ = {s} V.

::: part
answer: s/sqrt(N)
unit: V
tolerance: 0.5%

### What is the standard deviation of the sample-mean estimate?

::: misses
- [s/N] The variance falls as 1/N, the deviation as $1/\sqrt N$.
- [any] $\sigma/\sqrt N$.
:::
:::

::: part
answer: (1.96*s/d)^2
unit: samples
tolerance: 0.5%

### How many samples would put the 95% confidence interval within ±{d} V?

::: misses
- [any] Solve $1.96\sigma/\sqrt N = \delta$.
:::
:::
:::
:::
