S7 · Lesson 36 · Wiener filters
Estimating a signal from noisy observations, the scalar estimator, the noncausal Wiener filter in frequency, FIR Wiener filters from the Wiener–Hopf equations, and the minimum mean-square error
A signal buried in noise can't be recovered exactly, but it can be estimated as well as any linear filter possibly allows, once the signal's and the noise's statistics are known. Norbert Wiener worked this out during the Second World War for predicting aircraft positions from noisy radar. The answer is intuitive in the frequency domain: pass each frequency in proportion to how much of it is signal rather than noise. It underlies noise reduction, channel equalization and deblurring, and its finite-length version is the target that the adaptive filters of the next lesson converge to.
- The noncausal Wiener filter for a lowpass AR(1) signal (pole a, unit variance) in white noise, against frequency, with the signal-to-noise ratio set by the noise variance.
- Where the signal is strong the filter passes almost everything; where noise dominates it attenuates, without ever cutting completely.
- With a = 0.9 and equal signal and noise power, the gain is 0.95 at DC and 0.05 at π.
Predict
A signal of variance 4 is observed in independent noise of variance 1, with no correlation between samples to exploit. What's the best linear estimate of the signal from one observation?
0.8 times it. Scaling by shrinks the estimate toward the mean in proportion to how much of the observation is likely to be noise. The mean-square error falls from 1 (using the raw observation) to 4 × 1/5 = 0.8. Shrinking a little more or less would make it worse.
Name it
The problem
Observe x[n] = s[n] + v[n], with s and v zero-mean, uncorrelated, of known autocorrelations, and find the linear filter h minimizing . The orthogonality principle: the error must be uncorrelated with every observation the filter uses.
Scalar and noncausal solutions
- One observation, no correlation: , error .
- Using all past and future samples (noncausal, or offline):
a gain between 0 and 1 at each frequency, set by that frequency's signal-to-noise ratio S: .
FIR Wiener filters
A P-tap filter satisfies the Wiener–Hopf equations
with and for uncorrelated noise. The minimum error is . The matrix is Toeplitz, so Levinson-type recursions solve it fast.
Worked example
A unit-variance AR(1) signal with a = 0.9 is observed in unit-variance white noise. Find the two-tap FIR Wiener filter and its error.
Show the solution
- Correlations. With :
- Normal equations.
- Solve. = 0.373 and = 0.282.
- Error. against 0.5 for the best scalar estimate and 1 for the raw observation.
Answer = 0.373 and = 0.282, with a mean squared error of 0.373.
Worked example
For the same signal and noise, what does the noncausal Wiener filter do at DC and at π?
Show the solution
- Signal spectrum. That's 19 at DC and 0.0526 at π.
- At DC. With unit noise density:
- At π.
- Shape. The filter is a lowpass that follows the signal's spectrum, keeping where the signal is and cutting where only noise is.
Answer it passes 0.95 at DC and 0.05 at π.
Worked example
A noise-reduction system applies the noncausal Wiener gain in each frequency band. What gain does it apply where the band's SNR is 20 dB, 0 dB and −10 dB?
Show the solution
- Wiener gain. With S the band's SNR as a ratio:
- At 20 dB. which is −0.09 dB.
- At 0 dB. which is −6.0 dB.
- At −10 dB. which is −20.8 dB.
- What it means. Clean bands pass almost untouched and noise-dominated ones are cut hard; the musical artifacts of such systems come from these gains fluctuating as the band SNR estimates wander.
Answer gains of 0.990 (−0.09 dB) at 20 dB SNR, 0.5 (−6.0 dB) at 0 dB and 0.091 (−20.8 dB) at −10 dB.
Check
A signal of variance 4 is observed in uncorrelated noise of variance 0.5. What scalar gain gives the best linear estimate?
Check
What mean-square error does that estimate achieve?
Check
At one frequency the signal-to-noise ratio is −3 dB. What gain does the noncausal Wiener filter apply there?
Check
A unit-variance AR(1) signal (a = 0.8) is in white noise of density 0.5. What's the noncausal Wiener gain at ω = 3.142?
Check
A unit-variance AR(1) signal (a = 0.6) is in white noise of variance 0.5. What's of the two-tap FIR Wiener filter?
Check
By how much does the scalar Wiener estimate lower the mean-square error compared with the raw observation, for signal variance 1 and noise variance 1?
Check
A frequency band has an SNR of −5 dB.
(a)
What gain does the noncausal Wiener filter apply?
(b)
What is that in decibels?
Check
A scalar signal of variance s is observed in uncorrelated noise of variance v.
Step 1
What is the Wiener gain?
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 mean-square error does it leave?
Step 3
What fraction of the raw observation's error (v) is that?
Explain why
Why does the Wiener filter never completely remove a frequency, even where the noise is much stronger than the signal?
At each frequency the filter chooses the gain that minimizes the expected squared error between its output and the true signal. Cutting a frequency entirely guarantees an error equal to all of the signal there, while passing it fully lets all the noise through. The best compromise is to pass the fraction : wherever there's any signal at all, passing a little of the observation reduces the error more than it adds noise. The gain only reaches zero where the signal truly has no power. The filter is cautious in proportion to the evidence, which is exactly what minimizing mean-square error demands.
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.