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?
The MAP rule compares the likelihood ratio with = 1/9. For Gaussian noise that puts the threshold at = 0.5 − 2.2 = −1.7 V: with ones so common and noise this large, the receiver should call almost everything a one. Prior probabilities move the threshold toward the less likely signal.
Name it
The likelihood ratio test
Given an observation r with density or , every optimal decision rule has the same form:
Only the threshold η depends on the criterion:
- Bayes (minimum average cost, with costs for deciding when is true): .
- Minimum probability of error (MAP): equal costs for both errors, so ; with equal priors, η = 1, the maximum-likelihood rule.
- Neyman–Pearson: when priors and costs are unknown, maximize subject to ; η is whatever makes .
The receiver operating characteristic plots against 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:
Then and , with . With equal priors the error probability is . For N independent samples, their sum is a sufficient statistic: it carries all the information, and d grows to . 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 (dark counts and background) or (laser on). The likelihood ratio grows with the count, so the test is "decide H₁ if ," with and given by Poisson tail sums. Because counts are integers, only certain pairs are available without randomizing.
Estimation
To estimate a parameter θ from observations, the maximum-likelihood estimate maximizes . No unbiased estimator can beat the Cramér–Rao bound:
For a constant level in N independent Gaussian samples, , and the sample mean, which is the ML estimate, has variance exactly : 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
- Threshold. = 10⁻³ puts the threshold at
- Detection probability. A single look misses almost one target in five.
- Distance for 1% error. With equal priors the error probability is , and 1% needs = 2.33:
- Number of looks. Since , a target with d = 2 per look needs so 6 looks. Integration buys detection with time.
Answer = 0.82 at = 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 and .
Show the solution
- False alarms. With the laser off the mean count is 1:
- Detections. With it on the mean is 10:
- Threshold at 4. Lowering the threshold to 4 raises both: = 0.019 and = 0.990.
- 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 = 0.0037 and = 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
- Threshold. With η = = 4:
- False alarms and detections.
- Error probability.
- Midpoint threshold. At 1 V it gives the same error whatever the priors:
- 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°.
Step 2
What is the false-alarm probability?
Step 3
What is the detection probability?
Explain why
Why does every optimal detector compare a likelihood ratio with a threshold, whatever the criterion?
Any decision rule divides the space of possible observations into two regions, and its performance depends only on two numbers: the probability of falsely deciding H₁ and the probability of correctly deciding it. To get the most detection for a given amount of false alarm, each observation should be assigned to H₁ in order of how much detection probability it adds per unit of false-alarm probability it costs, which is exactly the ratio . So the best region is always the set of observations whose likelihood ratio exceeds some threshold. The criteria differ only in how they price the two kinds of error: Bayes uses priors and costs, MAP uses priors alone, and Neyman–Pearson fixes the false-alarm rate. Each picks a different threshold on the same ratio, and so a different point on the same ROC.
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.