Exercises
ex-ch04-01
EasyDesign an SPRT with target error probabilities and . Give the Wald thresholds and on the log-likelihood ratio.
Recall , .
Upper threshold
.
Lower threshold
.
ex-ch04-02
EasyFor an SPRT on i.i.d. observations under , , derive the per-sample log-likelihood ratio in closed form.
Write the two Gaussian densities and take their log-ratio.
Log-ratio
.
Interpretation
It is affine in : the SPRT accumulates a shifted, scaled version of the observations and compares the sum with the Wald thresholds.
ex-ch04-03
MediumUsing Wald's identity, show that for the Gaussian SPRT of Exercise 2 under the average sample number is approximately when the excess-over-boundary overshoot is neglected.
Under , with probability of hitting .
Use .
Wald's identity
.
Approximate $\mathbb{E}_1[S_N]$
With probability the test accepts and ; with probability it rejects and . So .
Solve for ASN
.
ex-ch04-04
MediumCompute the ASN for both hypotheses when testing vs in noise with . Compare with the fixed-sample size required to achieve the same error probabilities.
for this problem.
Fixed-sample size: .
Thresholds
, .
ASN
. By symmetry .
Fixed sample
, so , round to . The SPRT needs less than half as many samples on average.
ex-ch04-05
MediumShow that the SPRT is closed under sign changes: if the roles of and are swapped, the SPRT with error probabilities makes exactly the same decisions and uses the same sample paths.
Swapping hypotheses negates every and swaps the thresholds.
Swap
Under the swap, and the thresholds . The stopping region is identical.
Conclusion
Sample paths and decisions are unchanged β the SPRT is symmetric under the hypothesis relabeling with swapped error probabilities.
ex-ch04-06
HardProve that the SPRT terminates almost surely under either hypothesis, provided the log-likelihood increment has nonzero variance under both hypotheses.
Apply the strong law of large numbers to under each hypothesis.
since both KL divergences are strictly positive.
Drift under $\mathcal{H}_1$
a.s., so .
Drift under $\mathcal{H}_0$
a.s., so .
Exit time finite
In either case leaves the bounded strip in finite time with probability one, so a.s.
ex-ch04-07
MediumFor Page's CUSUM test with recursion and threshold , show that , where .
Prove by induction on .
Base case
.
Induction
Assume where . Then .
ex-ch04-08
MediumShow that CUSUM with threshold is equivalent to running infinitely many parallel SPRTs, each started at a different time, and declaring a change whenever any of them exits the upper boundary.
Fix a potential change point and consider the SPRT started at .
is the cumulative LLR since .
Parallel SPRTs
Started at , the SPRT statistic is and it crosses upward when .
Maximum over start times
. So CUSUM declares a change at the first with , which is the first where at least one parallel SPRT crosses upward.
ex-ch04-09
MediumEstimate and the worst-case mean detection delay for a CUSUM test with threshold , pre-change , post-change .
Use the Wald-type approximations and .
in this problem.
ARL0
samples.
Detection delay
samples.
ex-ch04-10
EasyFor cell-averaging CFAR with reference cells and target , compute the threshold multiplier .
for exponential reference cells.
Evaluate
. .
Interpretation
The threshold is about 13.4 dB above the estimated noise power.
ex-ch04-11
MediumDerive the exact of CA-CFAR with exponential reference cells and threshold multiplier . Confirm the formula .
Test statistic has an F-like distribution when and are independent exponentials/gammas.
Use the moment-generating function of the exponential.
Distributions
under (square-law detector output). .
Compute
. The MGF of the gives .
ex-ch04-12
MediumExplain why OS-CFAR with the th-order statistic is more robust to interfering targets than CA-CFAR, and name the cost in homogeneous clutter.
Order statistics are robust to upper outliers when .
Robustness
One or two interfering targets inflate but leave the th-smallest reference unchanged if . OS-CFAR is therefore immune to a small number of target-like spikes.
CFAR loss
The th-order statistic is less efficient than the sample mean: OS-CFAR has - dB additional SNR loss in homogeneous noise, and needs a larger threshold for the same .
ex-ch04-13
HardShow that for a fixed false-alarm probability and Gaussian hypotheses, the sample-size saving of the SPRT over the fixed-sample LRT approaches a factor of as .
Compare ASN to the NP sample size for symmetric Gaussian hypotheses.
SPRT ASN
For small : .
NP fixed sample size
For the LRT with : where . Using gives .
Ratio
.
ex-ch04-14
MediumA radar system needs in a homogeneous clutter background. Using a square-law detector followed by CA-CFAR with reference cells (12 on each side), compute and the required single-pulse SNR to achieve for a Swerling 0 (nonfluctuating) target. Use the approximation .
First solve .
Then invert for SNR.
Multiplier
. .
SNR for $\ntn{pd}$
Solve . Take the power: . So , giving , SNR , i.e., about 24.2 dB. (The CFAR loss of dB has been absorbed in the Monte-Carlo-like multiplier .)
ex-ch04-15
HardA cognitive-radio user performs sequential energy detection on i.i.d. samples drawn from under (idle channel) and under (occupied). Derive the per-sample log-likelihood ratio and express the SPRT.
Variances differ but means are both zero. Write the log ratio of two Gaussians with the same mean.
Per-sample LLR
. Simplify: .
SPRT
Accumulate and stop at the first with (declare occupied) or (idle).
ex-ch04-16
MediumExplain why greatest-of CFAR (GO-CFAR) outperforms CA-CFAR at a clutter edge but degrades multi-target performance. Give the intuition and identify the scenario where GO-CFAR should be preferred.
Consider a clutter edge transitioning from low to high power in the middle of the CFAR window.
Clutter edge
CA-CFAR averages over both sides and lifts the threshold modestly, causing false alarms at the high side. GO-CFAR picks the maximum of the two half-window means, so at the high-side edge its threshold tracks the high side β false alarms are suppressed.
Multi-target
When a target straddles one half of the reference window, GO-CFAR picks the elevated half as its threshold, masking the CUT target. CA-CFAR is more tolerant here since it averages.
Verdict
Use GO-CFAR in nonhomogeneous clutter with sharp power transitions and few targets per beam. Prefer OS-CFAR when multiple targets share the window.