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 0≤t<T0\le t<T, suppose the receiver observes

r(t)=si(t)+n(t),i∈{0,…,M−1},r(t)=s_i(t)+n(t), \qquad i\in\{0,\ldots,M-1\},

where n(t)n(t) is zero-mean AWGN with two-sided power spectral density N0/2N_0/2. Expand the MM candidate signals in an orthonormal basis {ϕk(t)}k=1N\{\phi_k(t)\}_{k=1}^{N} spanning their signal space:

si(t)=∑k=1Nsikϕk(t),rk=∫0Tr(t)ϕk(t) dt.s_i(t)=\sum_{k=1}^{N}s_{ik}\phi_k(t),\qquad r_k=\int_0^T r(t)\phi_k(t)\,dt.

The vector r=(r1,…,rN)\mathbf r=(r_1,\ldots,r_N) is sufficient: components orthogonal to every possible sis_i contain noise but no information about which hypothesis was sent. Under equal priors, ML chooses the nearest signal vector,

i^=arg⁡min⁡i∥r−si∥2.\hat i=\arg\min_i\|\mathbf r-\mathbf s_i\|^2.

Expanding the square and dropping ∥r∥2\|\mathbf r\|^2, which is common to every candidate, gives the practical score

Λi=⟨r,si⟩−Ei2,Ei=⟨si,si⟩.\Lambda_i=\langle r,s_i\rangle-\frac{E_i}{2},\qquad E_i=\langle s_i,s_i\rangle.

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 h(t)h(t) be sampled at TT. Its signal output is

ys(T)=∫0Th(T−τ)s(τ) dτ,y_s(T)=\int_0^T h(T-\tau)s(\tau)\,d\tau,

while the output-noise variance in AWGN is

σn2=N02∫−∞∞∣h(t)∣2dt.\sigma_n^2=\frac{N_0}{2}\int_{-\infty}^{\infty}|h(t)|^2dt.

Cauchy–Schwarz bounds ∣ys(T)∣2|y_s(T)|^2 by the product of signal energy and filter energy. Equality holds when the filter is proportional to the time-reversed conjugate signal:

h(t)=Ks∗(T−t).h(t)=K s^*(T-t).

At the sample instant, convolution with this filter becomes correlation with s(t)s(t). Thus a correlator multiplying by s∗(t)s^*(t) and integrating over [0,T][0,T] 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.

Binary geometry and the likelihood ratio #

For two candidates, subtracting their scores reduces the decision to one axis:

z=⟨r,s1−s0⟩≷H1H0γ.z=\langle r,s_1-s_0\rangle \underset{H_0}{\overset{H_1}{\gtrless}} \gamma.

With equal priors and costs,

γ=E1−E02.\gamma=\frac{E_1-E_0}{2}.

If the signals have equal energy, the threshold is zero. The distance d=∥s1−s0∥d=\|s_1-s_0\| determines the Gaussian tail crossing the boundary:

Pe=Q ⁣(d2N0).P_e=Q\!\left(\frac{d}{\sqrt{2N_0}}\right).

Binary detection in one-dimensional signal space Two antipodal signal points sit on either side of a threshold. Noise projects the received waveform onto the decision axis, producing overlapping Gaussian densities and decision errors in the tails. All waveform detail collapses to one sufficient statistic z = ⟨r, s₁ − s₀⟩; compare z with threshold γ p(z | H₀) p(z | H₁) −√Eb +√Eb γ = 0 for equal priors and costs decide H₀ decide H₁ error tailerror tail
For antipodal equal-energy signals the sufficient statistic lies on one axis and the threshold is zero. Errors are the probability mass of each conditional density on the wrong side; increasing Euclidean distance separates the means without changing the noise projection variance.

This picture explains why antipodal signalling is power-efficient. For BPSK, s1=−s0s_1=-s_0 and d=2Ebd=2\sqrt{E_b}, so

Pb=Q ⁣(2EbN0).P_b=Q\!\left(\sqrt{\frac{2E_b}{N_0}}\right).

Orthogonal equal-energy binary signals have d=2Ebd=\sqrt{2E_b} and therefore a 3 dB smaller squared distance at the same bit energy.

Worked BPSK decision and BER #

Take coherent BPSK with Eb/N0=6E_b/N_0=6 dB. Convert the ratio before using the formula:

EbN0=106/10=3.981,qquadPb=Q(2⋅3.981)=Q(2.822)≈2.39×10−3.\frac{E_b}{N_0}=10^{6/10}=3.981,qquad P_b=Q(\sqrt{2\cdot3.981})=Q(2.822)\approx2.39\times10^{-3}.

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 10−210^{-2}, 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 ±1\pm1. A sample z=+0.18z=+0.18 is a hard one, but it is weak evidence; z=+2.1z=+2.1 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

L(r)=log⁡p(r∣H1)p(r∣H0).L(r)=\log\frac{p(r\mid H_1)}{p(r\mid H_0)}.

MAP detection decides H1H_1 when

L(r)>log⁡P(H0)P(H1).L(r)>\log\frac{P(H_0)}{P(H_1)}.

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 y=x+ny=x+n, x∈{−A,+A}x\in\{-A,+A\}, and n∼N(0,σ2)n\sim\mathcal N(0,\sigma^2), the channel LLR is

L(y)=2Ayσ2.L(y)=\frac{2Ay}{\sigma^2}.

This value is the right interface to a soft-input channel decoder. Its sign is the hard decision; its magnitude is reliability. Getting AA, σ2\sigma^2, 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 Cn\mathbf C_n rather than σ2I\sigma^2\mathbf I, Euclidean distance is no longer ML. The correct quadratic metric is

di2=(r−si)TCn−1(r−si).d_i^2=(\mathbf r-\mathbf s_i)^T\mathbf C_n^{-1}(\mathbf r-\mathbf s_i).

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 NN tested bits and KK errors, the estimate is p^=K/N\hat p=K/N. The count, not only the ratio, determines confidence. One error in 10610^6 bits and one thousand errors in 10910^9 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 3/N3/N (the rule of three). Demonstrating BER below 10−610^{-6} 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 N0N_0, 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

  1. bookSystems for Transmission of Digital Informationpdfnotes
  2. docsMIT 16.36 Lectures 9–10: Signal Detection in Noise and the Matched Filter

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close