The Matched Filter
The Detection Problem
Suppose a known signal is buried in additive white Gaussian noise (AWGN). We want to design a linear filter that, when we sample its output at the right moment, gives us the best possible chance of detecting the signal. "Best" here means maximizing the signal-to-noise ratio at the sampling instant. The answer β the matched filter β is one of the most important results in all of signal processing and communications. Its optimality proof is a beautiful application of the Cauchy-Schwarz inequality, and the result has a clean physical interpretation: the optimal filter is the time-reversed, delayed replica of the signal itself.
Definition: Signal Detection in AWGN
Signal Detection in AWGN
Consider the observation where is a known, deterministic, finite-energy signal with energy , and is white Gaussian noise with PSD . We pass through an LTI filter with impulse response and sample the output at time . The output signal-to-noise ratio (SNR) at is where is the signal component and is the filtered noise.
Definition: Matched Filter
Matched Filter
The matched filter for a signal sampled at time is the LTI filter with impulse response Equivalently, in the frequency domain: where is the Fourier transform of .
The matched filter is the time-reversed, conjugated, and delayed version of the signal. For real-valued signals, it is simply : a mirror image of shifted to peak at .
Theorem: Matched Filter Theorem
Among all LTI filters, the matched filter maximizes the output SNR at time . The maximum SNR is where is the signal energy and is the two-sided noise PSD.
The matched filter correlates the received signal with a stored copy of the expected waveform. At the sampling instant, the signal contributions from all time instants add coherently (in phase), while the noise contributions add incoherently (random phases). The maximum SNR depends only on the signal energy and the noise spectral density β not on the signal's shape. A long, weak signal achieves the same SNR as a short, strong pulse of equal energy.
Signal component at $t_0$
The output signal at is In the frequency domain, , so by Parseval:
Noise power at output
The output noise has PSD , so the output noise power is
Form the SNR
$
Apply Cauchy-Schwarz
By the Cauchy-Schwarz inequality for integrals, The second integral is by Parseval's theorem. Therefore
Equality condition
Cauchy-Schwarz holds with equality iff for some constant . Choosing gives the matched filter . Therefore the matched filter achieves .
Example: Matched Filter for a Rectangular Pulse
A rectangular pulse for and otherwise is transmitted through AWGN with PSD . Find the matched filter, the output waveform (signal component), and the maximum SNR. Sample at .
Matched filter
for , zero otherwise. This is just a rectangular window of the same duration β an integrate-and-dump filter.
Signal output
0 \leq t \leq Tt_0 = Tg(T) = A^2 T$.
Signal energy
.
Maximum SNR
$ The matched filter for a rectangular pulse is the simplest possible receiver: just integrate for the pulse duration and sample.
Example: Matched Filter for a Bandlimited Pulse
A sinc pulse with bandwidth Hz is transmitted in AWGN. Show that the matched filter output at yields and describe the output waveform.
Spectrum of sinc
, so .
Matched filter
. The matched filter for a sinc is an ideal lowpass filter of bandwidth β a satisfying result.
Output at $t_0 = 0$
. The noise power is . So .
Matched Filter vs. Mismatched Filter: Output SNR Comparison
Compare the output SNR of the matched filter to that of suboptimal filters (e.g., integrator of wrong duration, Gaussian pulse filter). The matched filter always achieves ; all others fall short.
Parameters
Quick Check
Two signals have the same energy but different shapes: one is a rectangular pulse of duration , the other is a Gaussian pulse of the same energy. In AWGN with PSD , how do their matched filter SNRs compare?
They are equal: both achieve
The rectangular pulse achieves higher SNR because it has more bandwidth
The Gaussian pulse achieves higher SNR because it is smoother
The matched filter SNR depends only on energy and noise PSD, not on signal shape.
Common Mistake: The Matched Filter Is Not Always the Best Detector
Mistake:
Assuming the matched filter is optimal for all detection problems, including those with colored (non-white) noise.
Correction:
The matched filter maximizes SNR only when the noise is white. For colored noise with PSD , the optimal "generalized matched filter" is , which pre-whitens the noise before correlating. The resulting SNR is .
Common Mistake: Correlator vs. Matched Filter
Mistake:
Treating the correlator receiver and the matched filter as fundamentally different structures.
Correction:
The correlator (multiply by and integrate from to ) and the matched filter (convolve with and sample at ) produce identical output at . They are two implementations of the same mathematical operation. The correlator is often preferred in digital implementations; the matched filter viewpoint is more natural for analog or spectral analysis.
Common Mistake: Depends on Energy, Not Power
Mistake:
Computing matched filter SNR using signal power instead of signal energy .
Correction:
The matched filter SNR is , where is the total energy , not the average power. A longer signal with the same amplitude has more energy and thus higher matched filter SNR. This is the fundamental principle behind pulse compression in radar: spread the energy over a long, coded waveform and collect it coherently with the matched filter.
The Matched Filter as a Correlation Detector
The matched filter output at is . This is exactly the cross-correlation of with evaluated at lag . The matched filter is measuring how much the received waveform "looks like" the expected signal.
Pulse Compression in Radar
Radar systems exploit the matched filter principle through pulse compression. A long, chirp-modulated pulse is transmitted (high energy, low peak power), and the receiver applies the matched filter, which compresses the energy into a short, high-amplitude peak. The processing gain is the time-bandwidth product of the chirp. Modern radar systems achieve processing gains of to , enabling detection of targets at extreme ranges without requiring dangerously high peak transmit power.
- β’
Range sidelobes require additional windowing (Hamming, Taylor)
- β’
Doppler shift of moving targets causes SNR loss if not compensated
Matched Filter: From Noisy Input to SNR Peak
Matched Filter
The LTI filter that maximizes the output SNR at time when a known signal is observed in white noise. The maximum SNR is .
Related: Correlator Receiver, Matched Filter
Correlator Receiver
A receiver that computes to detect a known signal . Produces the same output as the matched filter sampled at .
Related: Matched Filter
Key Takeaway
The matched filter maximizes the output SNR for detecting a known signal in white noise. The maximum SNR is , depending only on the signal energy and the noise spectral density β not on the signal shape. This is the theoretical foundation of coherent detection in communications and radar.