The Matched Filter

The Detection Problem

Suppose a known signal s(t)s(t) 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

Consider the observation Y(t)=s(t)+N(t),Y(t) = s(t) + N(t), where s(t)s(t) is a known, deterministic, finite-energy signal with energy Es=βˆ«βˆ’βˆžβˆžβˆ£s(t)∣2 dtE_s = \int_{-\infty}^{\infty} |s(t)|^2\, dt, and N(t)N(t) is white Gaussian noise with PSD PN(f)=N0/2P_N(f) = N_0/2. We pass Y(t)Y(t) through an LTI filter with impulse response h(t)h(t) and sample the output at time t=t0t = t_0. The output signal-to-noise ratio (SNR) at t0t_0 is SNR(t0)=∣g(t0)∣2E[∣No(t0)∣2],\text{SNR}(t_0) = \frac{|g(t_0)|^2}{\mathbb{E}[|N_o(t_0)|^2]}, where g(t0)=∫h(Ο„)s(t0βˆ’Ο„) dΟ„g(t_0) = \int h(\tau) s(t_0 - \tau)\, d\tau is the signal component and No(t)N_o(t) is the filtered noise.

,

Definition:

Matched Filter

The matched filter for a signal s(t)s(t) sampled at time t0t_0 is the LTI filter with impulse response hmf(t)=sβˆ—(t0βˆ’t).h_{\text{mf}}(t) = s^*(t_0 - t). Equivalently, in the frequency domain: hΛ‡mf(f)=sΛ‡βˆ—(f) eβˆ’j2Ο€ft0,\check{h}_{\text{mf}}(f) = \check{s}^*(f)\, e^{-j2\pi f t_0}, where sΛ‡(f)\check{s}(f) is the Fourier transform of s(t)s(t).

The matched filter is the time-reversed, conjugated, and delayed version of the signal. For real-valued signals, it is simply h(t)=s(t0βˆ’t)h(t) = s(t_0 - t): a mirror image of s(t)s(t) shifted to peak at t0t_0.

,

Theorem: Matched Filter Theorem

Among all LTI filters, the matched filter hmf(t)=sβˆ—(t0βˆ’t)h_{\text{mf}}(t) = s^*(t_0 - t) maximizes the output SNR at time t0t_0. The maximum SNR is SNRmax⁑=2EsN0,\text{SNR}_{\max} = \frac{2 E_s}{N_0}, where Es=∫∣s(t)∣2 dtE_s = \int |s(t)|^2\, dt is the signal energy and N0/2N_0/2 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.

, ,

Example: Matched Filter for a Rectangular Pulse

A rectangular pulse s(t)=As(t) = A for 0≀t≀T0 \leq t \leq T and s(t)=0s(t) = 0 otherwise is transmitted through AWGN with PSD N0/2N_0/2. Find the matched filter, the output waveform (signal component), and the maximum SNR. Sample at t0=Tt_0 = T.

Example: Matched Filter for a Bandlimited Pulse

A sinc pulse s(t)=sinc(Wt)s(t) = \text{sinc}(Wt) with bandwidth WW Hz is transmitted in AWGN. Show that the matched filter output at t0=0t_0 = 0 yields SNRmax⁑=2Es/N0\text{SNR}_{\max} = 2E_s/N_0 and describe the output waveform.

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 2Es/N02E_s/N_0; all others fall short.

Parameters
2
1

Quick Check

Two signals have the same energy EsE_s but different shapes: one is a rectangular pulse of duration TT, the other is a Gaussian pulse of the same energy. In AWGN with PSD N0/2N_0/2, how do their matched filter SNRs compare?

They are equal: both achieve 2Es/N02E_s/N_0

The rectangular pulse achieves higher SNR because it has more bandwidth

The Gaussian pulse achieves higher SNR because it is smoother

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 PN(f)P_N(f), the optimal "generalized matched filter" is hΛ‡opt(f)=sΛ‡βˆ—(f)eβˆ’j2Ο€ft0PN(f)\check{h}_{\text{opt}}(f) = \frac{\check{s}^*(f) e^{-j2\pi f t_0}}{P_N(f)}, which pre-whitens the noise before correlating. The resulting SNR is SNRmax⁑=2∫∣sΛ‡(f)∣2PN(f) df\text{SNR}_{\max} = 2\int \frac{|\check{s}(f)|^2}{P_N(f)}\, df.

Common Mistake: Correlator vs. Matched Filter

Mistake:

Treating the correlator receiver and the matched filter as fundamentally different structures.

Correction:

The correlator (multiply by s(t)s(t) and integrate from 00 to TT) and the matched filter (convolve with s(Tβˆ’t)s(T - t) and sample at TT) produce identical output at t=Tt = T. 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: SNRmax⁑\text{SNR}_{\max} Depends on Energy, Not Power

Mistake:

Computing matched filter SNR using signal power PsP_s instead of signal energy EsE_s.

Correction:

The matched filter SNR is 2Es/N02E_s/N_0, where EsE_s is the total energy ∫∣s(t)∣2 dt\int |s(t)|^2\, dt, 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 t0t_0 is g(t0)=∫h(Ο„)y(t0βˆ’Ο„) dΟ„=∫sβˆ—(t0βˆ’t0+Ο„)y(t0βˆ’Ο„) dΟ„=∫sβˆ—(Ο„)y(t0βˆ’Ο„) dΟ„g(t_0) = \int h(\tau) y(t_0 - \tau)\, d\tau = \int s^*(t_0 - t_0 + \tau) y(t_0 - \tau)\, d\tau = \int s^*(\tau) y(t_0 - \tau)\, d\tau. This is exactly the cross-correlation of yy with ss evaluated at lag t0t_0. The matched filter is measuring how much the received waveform "looks like" the expected signal.

πŸ”§Engineering Note

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 BTBT of the chirp. Modern radar systems achieve processing gains of 10310^3 to 10610^6, enabling detection of targets at extreme ranges without requiring dangerously high peak transmit power.

Practical Constraints
  • β€’

    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

Animation showing a known signal buried in noise, the matched filter impulse response, and the output building up to a peak at the sampling instant.
The matched filter output peaks at t=t0t = t_0 with SNRmax⁑=2Es/N0\text{SNR}_{\max} = 2E_s/N_0.

Matched Filter

The LTI filter h(t)=sβˆ—(t0βˆ’t)h(t) = s^*(t_0 - t) that maximizes the output SNR at time t0t_0 when a known signal s(t)s(t) is observed in white noise. The maximum SNR is 2Es/N02E_s/N_0.

Related: Correlator Receiver, Matched Filter

Correlator Receiver

A receiver that computes ∫0Ty(t)sβˆ—(t) dt\int_0^T y(t) s^*(t)\, dt to detect a known signal s(t)s(t). Produces the same output as the matched filter sampled at t0=Tt_0 = T.

Related: Matched Filter

Key Takeaway

The matched filter h(t)=sβˆ—(t0βˆ’t)h(t) = s^*(t_0 - t) maximizes the output SNR for detecting a known signal in white noise. The maximum SNR is SNRmax⁑=2Es/N0\text{SNR}_{\max} = 2E_s/N_0, 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.