Optimal Digital Detection: Matched Filters, Correlators & BER
Digital detection reduces a noisy waveform to sufficient statistics and chooses among hypotheses. This entry derives the AWGN matched filter, turns Euclidean distance into BER, works a BPSK decision numerically, and shows how priors, soft metrics, synchronization, and model mismatch change a real detector.
A digital receiver does not need to preserve the whole sampled waveform forever. It needs statistics that retain every distinction among the allowed transmitted signals and discard dimensions containing only noise. In additive white Gaussian noise (AWGN), projection onto the signal space does exactly that; the matched filter and correlator are two implementations of the same projection.
“Optimal” is conditional. Maximum-likelihood (ML) detection minimizes symbol error for equally likely hypotheses under the assumed observation model. Maximum a posteriori (MAP) detection includes prior probabilities, and Bayes detection can include unequal decision costs. A circuit can implement the equations perfectly and still be wrong because its noise is colored, timing is offset, or its channel estimate is stale.
From a waveform to hypotheses #
During one symbol interval , suppose the receiver observes
where is zero-mean AWGN with two-sided power spectral density . Expand the candidate signals in an orthonormal basis spanning their signal space:
The vector is sufficient: components orthogonal to every possible contain noise but no information about which hypothesis was sent. Under equal priors, ML chooses the nearest signal vector,
Expanding the square and dropping , which is common to every candidate, gives the practical score
The energy term matters when candidate signals have unequal energy. “Choose the largest correlation” is correct without qualification only when the energies are equal.
Why the matched filter maximizes sampled SNR #
Let an LTI filter with impulse response be sampled at . Its signal output is
while the output-noise variance in AWGN is
Cauchy–Schwarz bounds by the product of signal energy and filter energy. Equality holds when the filter is proportional to the time-reversed conjugate signal:
At the sample instant, convolution with this filter becomes correlation with . Thus a correlator multiplying by and integrating over and a matched filter followed by a sample produce the same statistic. The filter does not “remove all noise”; it concentrates signal energy at one instant while admitting exactly the noise bandwidth required by that signal.
flowchart LR R["received r(t)"] --> F0[matched to s0] R --> F1[matched to s1] R --> FM[matched to sM−1] F0 --> S[sample at T] F1 --> S FM --> S S --> C[add −Ei/2 and log prior] C --> D[arg max]
Binary geometry and the likelihood ratio #
For two candidates, subtracting their scores reduces the decision to one axis:
With equal priors and costs,
If the signals have equal energy, the threshold is zero. The distance determines the Gaussian tail crossing the boundary:
This picture explains why antipodal signalling is power-efficient. For BPSK, and , so
Orthogonal equal-energy binary signals have and therefore a 3 dB smaller squared distance at the same bit energy.
Worked BPSK decision and BER #
Take coherent BPSK with dB. Convert the ratio before using the formula:
That is about 2390 erroneous bits per million before coding, assuming independent AWGN, correct coherent phase, correct symbol timing, and no implementation loss. If a simulation at this point measures , merely increasing the trial count cannot explain the gap; the model, normalization, or receiver is different.
For one received bit, normalize the matched-filter output so the hypotheses have means . A sample is a hard one, but it is weak evidence; is the same hard bit with much greater confidence. A hard slicer discards this distinction.
Priors and costs move the boundary #
The log-likelihood ratio (LLR) is
MAP detection decides when
If false positives and false negatives have unequal costs, the right side also contains the appropriate cost ratio. A rare alarm event should therefore not use the same threshold as an equiprobable data bit unless the costs happen to compensate for the prior.
For BPSK with observation , , and , the channel LLR is
This value is the right interface to a soft-input channel decoder. Its sign is the hard decision; its magnitude is reliability. Getting , , or the sign convention wrong does not merely rescale an internal number: it miscalibrates the decoder's evidence.
Colored noise changes the metric #
If sampled noise has covariance rather than , Euclidean distance is no longer ML. The correct quadratic metric is
Equivalently, whiten the observation and candidate signals, then apply ordinary matched filtering in the whitened space. Narrowband interference, analogue filtering, oversampled front ends, and equalizers commonly color the noise. Treating their output samples as independent can make a detector confidently wrong.
Unknown amplitude, phase, frequency, or timing introduces nuisance parameters. A coherent receiver estimates them and plugs estimates into the likelihood. A noncoherent receiver marginalizes or maximizes over them and pays a performance or complexity price. The comparison is only fair when both receivers use the same available information.
BER measurements need statistical evidence #
For tested bits and errors, the estimate is . The count, not only the ratio, determines confidence. One error in bits and one thousand errors in bits have the same estimate but very different sensitivity to a single burst.
When no errors occur, the result is not “BER = 0”. For independent trials, the 95% upper bound is approximately (the rule of three). Demonstrating BER below with zero observed errors therefore requires roughly three million independent bits under the stated condition—and burst correlation can invalidate the independence assumption.
Failure signatures #
| Observation | Likely cause | Check |
|---|---|---|
| simulated BPSK curve is shifted by about 3 dB | confusing one- and two-sided , symbol and bit energy, or real and complex noise variance | derive the exact sample variance at the matched-filter output |
| hard BER is plausible but coded result is poor | LLR sign or scale wrong; decoder expects another convention | histogram LLR by transmitted bit and verify mean signs/variance |
| errors cluster at packet start | timing/carrier acquisition transient | plot estimator states and discard only a protocol-defined preamble, not arbitrary samples |
| theory matches at low SNR but floors at high SNR | residual ISI, phase error, clipping, quantization, or deterministic interferer | remove impairments one at a time and inspect error events |
| one constellation region fails more often | unequal gain/offset, I/Q imbalance, wrong priors, or asymmetric thresholds | conditional confusion matrix and per-symbol statistic distributions |
A trustworthy detector test therefore has three layers: verify the sufficient statistics against a direct inner product, verify decisions against the stated ML/MAP metric, and only then compare BER with theory. “Optimal” is not a label attached to a matched-filter block; it is a reproducible claim about the complete observation model and decision rule.
Sources
- bookSystems for Transmission of Digital Informationpdfnotes
- docsMIT 16.36 Lectures 9–10: Signal Detection in Noise and the Matched Filter