S736 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 H(ω)=Pss(ω)Pss(ω)+Pnn(ω) 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?

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 E{|s[n]−s^[n]|2}. The orthogonality principle: the error must be uncorrelated with every observation the filter uses.

Scalar and noncausal solutions

  • One observation, no correlation: h=σs2σs2+σv2, error σs2σv2σs2+σv2.
  • Using all past and future samples (noncausal, or offline):
H(ω)=Pss(ω)Pss(ω)+Pvv(ω)

a gain between 0 and 1 at each frequency, set by that frequency's signal-to-noise ratio S: H=S1+S.

FIR Wiener filters

A P-tap filter s^[n]=∑k=0P−1h[k]x[n−k] satisfies the Wiener–Hopf equations

∑k=0P−1h[k]ϕxx[i−k]=ϕsx[i],i=0,…,P−1

with ϕxx=ϕss+ϕvv and ϕsx=ϕss for uncorrelated noise. The minimum error is ϕss[0]−∑kh[k]ϕsx[k]. 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
  1. Correlations. With ϕss[m]=0.9|m|: ϕxx=[2,0.9],ϕsx=[1,0.9]
  2. Normal equations. 2h0+0.9h1=10.9h0+2h1=0.9
  3. Solve. h0 = 0.373 and h1 = 0.282.
  4. Error. E=1−(0.373+0.9×0.282)=0.373 against 0.5 for the best scalar estimate and 1 for the raw observation.

Answer h0 = 0.373 and h1 = 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
  1. Signal spectrum. Pss(ω)=0.191−1.8cos⁡ω+0.81 That's 19 at DC and 0.0526 at π.
  2. At DC. With unit noise density: H(0)=1920=0.95
  3. At π. H(π)=0.05261.0526=0.05
  4. 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
  1. Wiener gain. With S the band's SNR as a ratio: H=S1+S
  2. At 20 dB. H=100101=0.990 which is −0.09 dB.
  3. At 0 dB. H=12=0.5 which is −6.0 dB.
  4. At −10 dB. H=0.11.1=0.091 which is −20.8 dB.
  5. 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 h0 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°.

Explain why

Why does the Wiener filter never completely remove a frequency, even where the noise is much stronger than the signal?

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.