S812 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S8 · Lesson 12 · Detection and estimation theory

Deciding between hypotheses with the likelihood ratio, Bayes costs and the MAP rule, the Neyman–Pearson criterion and the ROC, sufficient statistics from many samples, photon-counting detection, and maximum-likelihood estimation against the Cramér–Rao bound

A radar must decide, from one noisy echo sample, whether a target is there. A digital receiver must decide whether a bit was 0 or 1. An optical receiver counts a handful of photons and must decide whether its laser was on. They're all the same problem, and Van Trees solves it once: compute how much more likely the observation is under one hypothesis than the other, and compare that ratio with a threshold that depends on what you know and what mistakes cost. The matched filter and every error-rate formula in the lessons that follow come out of it.

  • One observation r is noise alone (H₀, mean 0) or a signal plus noise (H₁, mean d), with unit-variance Gaussian noise, so d is the signal-to-noise distance.
  • The curves are the two probability densities. The receiver decides H₁ when r exceeds the threshold γ (the marker).
  • The readouts give the false-alarm probability (the H₀ density's area above γ), the detection probability (the H₁ density's area above γ), and the overall error probability when both hypotheses are equally likely, which is smallest at γ = d/2.

Predict

Ones are sent 90% of the time and zeros 10%, as 1 V and 0 V in Gaussian noise of σ = 1 V. Where should the minimum-error threshold sit?

Name it

The likelihood ratio test

Given an observation r with density p(r|H0) or p(r|H1), every optimal decision rule has the same form:

Λ(r)=p(r|H1)p(r|H0)≷H1H0η

Only the threshold η depends on the criterion:

  • Bayes (minimum average cost, with costs Cij for deciding Hi when Hj is true): η=P0(C10−C00)P1(C01−C11).
  • Minimum probability of error (MAP): equal costs for both errors, so η=P0/P1; with equal priors, η = 1, the maximum-likelihood rule.
  • Neyman–Pearson: when priors and costs are unknown, maximize PD subject to PF≤α; η is whatever makes PF=α.

The receiver operating characteristic plots PD against PF as η varies; every criterion picks a point on it.

Gaussian observations

For a mean of 0 or m in Gaussian noise of variance σ², the log likelihood ratio is linear in r, and the test becomes a threshold on r itself:

r≷H1H0γ=m2+σ2mln⁡η

Then PF=Q(γ/σ) and PD=Q(γ/σ−d), with d=m/σ. With equal priors the error probability is Q(d/2). For N independent samples, their sum is a sufficient statistic: it carries all the information, and d grows to mN/σ. For a waveform, the same reasoning gives the correlator and matched filter of lesson 13.

Photon counting

An optical receiver counts photons, which arrive as Poisson events: mean m0 (dark counts and background) or m1 (laser on). The likelihood ratio grows with the count, so the test is "decide H₁ if n≥k," with PF and PD given by Poisson tail sums. Because counts are integers, only certain (PF,PD) pairs are available without randomizing.

Estimation

To estimate a parameter θ from observations, the maximum-likelihood estimate maximizes p(r|θ). No unbiased estimator can beat the Cramér–Rao bound:

var⁡(θ^)≥1I(θ),I(θ)=E[(∂ln⁡p(r|θ)∂θ)2]

For a constant level in N independent Gaussian samples, I=N/σ2, and the sample mean, which is the ML estimate, has variance exactly σ2/N: it's efficient. Synchronizers (lesson 22) are estimators of phase and timing, judged against the same bound.

Worked example

A target's echo gives d = 4 (in units of σ). With the false-alarm probability held to 10⁻³, what's the detection probability, and how many independent looks would equal priors need for 1% error?

Show the solution
  1. Threshold. PF=Q(γ/σ) = 10⁻³ puts the threshold at γ=3.09σ
  2. Detection probability. PD=Q(3.09−4)=Q(−0.91)=0.82 A single look misses almost one target in five.
  3. Distance for 1% error. With equal priors the error probability is Q(dN/2), and 1% needs dN/2 = 2.33: dN=4.65
  4. Number of looks. Since dN=dN, a target with d = 2 per look needs N=(4.652)2=5.4 so 6 looks. Integration buys detection with time.

Answer PD = 0.82 at PF = 10⁻³, and a target with d = 2 per look needs 6 looks for 1% error.

Worked example

An optical receiver sees on average 1 count per bit time with the laser off and 10 with it on. Using "decide on if 5 or more counts," find PF and PD.

Show the solution
  1. False alarms. With the laser off the mean count is 1: PF=1−∑k=04e−11kk!=1−0.99634=0.0037
  2. Detections. With it on the mean is 10: PD=1−∑k=04e−1010kk!=1−0.0293=0.971
  3. Threshold at 4. Lowering the threshold to 4 raises both: PF = 0.019 and PD = 0.990.
  4. Large steps. The step from one integer threshold to the next is a large jump along the ROC, which is characteristic of counting receivers at low photon numbers.

Answer PF = 0.0037 and PD = 0.971.

Worked example

A receiver sees mean 0 or 2 V in Gaussian noise of σ = 1 V, and the 2 V symbol is sent only 20% of the time. Where should the minimum-error threshold be, and how much does it beat the midpoint threshold?

Show the solution
  1. Threshold. With η = P0/P1 = 4: γ=1+12ln⁡4=1.69V
  2. False alarms and detections. PF=Q(1.69)=0.045 PD=Q(1.69−2)=0.621
  3. Error probability. Pe=0.8×0.045+0.2×0.379=0.112
  4. Midpoint threshold. At 1 V it gives the same error whatever the priors: Q(1)=0.159
  5. Why it helps. Moving the threshold toward the rarer symbol trades a few more misses for many fewer false alarms.

Answer the threshold belongs at 1.69 V, for an error probability of 0.112 against the midpoint's 0.159.

Check

A receiver sees mean 0 or 2 V in Gaussian noise of σ = 0.5 V. The 2 V symbol is sent with probability 0.9. Where's the minimum-error threshold, in volts?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A Neyman–Pearson detector holds its threshold at 3.09σ for the false-alarm rate it's allowed. With d = 2, what's its detection probability?

Check

With equal priors and d = 2, what's the minimum error probability?

Check

A level of 0.3 V must be detected in noise of σ = 1 V using 400 independent samples. What's the detectability d of their sum?

Check

A constant is estimated from 10 independent samples with Gaussian noise of σ = 1. What's the smallest possible standard deviation of an unbiased estimate?

Check

A detector sees mean 0 (H₀, prior 0.5) or 2 (H₁) in unit-variance Gaussian noise. Missing H₁ costs 3 times as much as a false alarm; correct decisions cost nothing. Where's the Bayes threshold?

Check

A receiver sees mean 0 or 2 V in Gaussian noise of σ = 0.5 V; the 2 V symbol has prior 0.3.

(a)

Where is the minimum-error threshold?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

(b)

What error probability results?

Check

A receiver tests mean 0 against mean m in Gaussian noise σ = s with likelihood-ratio threshold e.

Step 1

What threshold on r does that become?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does every optimal detector compare a likelihood ratio with a threshold, whatever the criterion?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.