S8 · Lesson 13 · The matched filter
Detecting a known pulse in white noise, the filter that maximizes the output SNR, its value 2E/N0, the correlator, and what a simple RC filter gives up
A digital receiver has one job at each symbol instant: decide which of a few known pulses was sent, despite the noise riding on it. Before deciding, it should filter, and there's a best possible filter: the one that makes the pulse stand highest above the noise at the sampling instant. It turns out to be the pulse itself, reversed in time, and the signal-to-noise ratio it achieves depends only on the pulse's energy, not its shape. Every modem, radar and GPS receiver is built around this matched filter or its equivalent, the correlator.
- The output SNR of a simple RC lowpass filter, sampled at the end of a rectangular pulse of duration T, relative to the matched filter's 2E/N0, against the filter's time constant τ (in units of T).
- Too short a τ lets in too much noise; too long a τ never lets the pulse build up. The best choice, τ ≈ 0.80T, still loses 0.89 dB.
- The matched filter for a rectangular pulse is an integrator over one symbol, integrate-and-dump, which reaches 0 dB on this scale exactly.
Predict
Two pulses have the same energy, one a short tall rectangle and the other a long chirp. Which gives the higher SNR after its own matched filter in white noise?
Equal. The matched filter's peak output SNR is for any pulse shape: only the energy matters. That's why radar can send a long, low-power chirp with the same detection performance as a short high-power pulse of equal energy, then compress it in the matched filter for fine range resolution.
Name it
The matched filter
For a known pulse s(t), 0 ≤ t ≤ T, in white noise of two-sided density , the filter maximizing the output SNR at t = T is
(by the Cauchy–Schwarz inequality). Its output at t = T is E, plus noise of variance . In frequency, : it passes each frequency in proportion to how much of the pulse is there and lines up all the phases to peak at T.
The correlator
Sampling the matched filter at T is the same as computing : multiply the received signal by a copy of the pulse and integrate. For a rectangular pulse this is integrate-and-dump.
Practical filters
A filter that isn't matched loses SNR. For a rectangular pulse and an RC lowpass of time constant τ, sampled at T, the ratio to the matched filter is
at best 0.815 (−0.89 dB) with τ = 0.796T.
Worked example
A rectangular pulse of 2 V lasting 10 µs arrives in noise with = 10⁻⁹ W/Hz (across 1 Ω). What SNR does a matched filter give, and what does an RC filter with τ = T give?
Show the solution
- Pulse energy. In V²·s across 1 Ω:
- Matched filter.
- RC filter with τ = T. It gets a fraction of that: so 48.1 dB.
- RC filter with τ = 0.1T. It would lose 7.0 dB.
Answer the matched filter gives 49.0 dB and the RC filter with τ = T gives 48.1 dB.
Worked example
What's the matched filter for on 0 ≤ t ≤ T, and what's its peak output?
Show the solution
- Reverse the pulse. That's the pulse reversed, which for this odd-symmetric pulse is its negative.
- Peak output. The output at T is the energy:
Answer on 0 ≤ t ≤ T, and its peak output, at t = T, is T/2.
Worked example
A half-sine pulse is received by an integrate-and-dump (rectangular template) instead of its matched filter. How much SNR is lost?
Show the solution
- Efficiency of a template. For a template w against a pulse s it's
- Half-sine against a rectangle. For and w = 1 on [0, T]:
- In decibels. That's a loss of 0.91 dB, almost exactly the best RC filter's 0.89 dB.
- Why match. A correlator with the right shape costs nothing extra in hardware, which is why it's worth matching.
Answer the integrate-and-dump loses 0.91 dB (an efficiency of 0.811).
Check
A pulse has E/N₀ = 10 dB. What's the matched filter's output SNR?
Check
A rectangular pulse of 2 V lasts 1 µs (across 1 Ω). What's its energy?
Write units the way you normally would: 1.5 µJ, 1500 nJ and 0.0015 mJ are the same answer.
Check
An RC filter with τ = 0.5T is used in place of a matched filter for a rectangular pulse. How much SNR does it lose?
Check
What RC time constant gives the best SNR for an 8 µs rectangular pulse?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A correlator's signal output is E = 4 (in its units). With noise density = 0.01, what's the rms noise at its output?
Check
A rectangular pulse of amplitude 1 and duration 2 passes through its matched filter (integrate-and-dump, unit gain). What's the output a fraction 0.75 of the way through the pulse?
Check
A rectangular pulse of 0.5 V lasting 1 µs arrives (across 1 Ω) with = 1 × 10⁻⁸ W/Hz.
(a)
What SNR does its matched filter give?
(b)
What does an RC filter with τ = 2T give?
Check
A rectangular pulse of amplitude A and duration T arrives with noise density N (one-sided), across 1 Ω.
Step 1
What is its energy?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What SNR does the matched filter give?
Step 3
What is the noise variance at the sampled output?
Explain why
Why does the matched filter's best SNR depend only on the pulse's energy, not its shape?
White noise has the same power in every frequency and is uncorrelated from instant to instant, so it has no preferred shape. The matched filter adds up the received signal weighted by the pulse itself, so each part of the pulse contributes in proportion to its own strength, and the total signal at the output is the pulse's energy. The noise passing through the same weights adds up incoherently, giving a variance that also grows with the energy, but only its square root. The ratio of the signal squared to the noise variance is therefore proportional to the energy alone. How that energy is spread in time or frequency changes what the output looks like, not how far it stands above the noise.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.