Wiener Filter

Research
Introduced by
Norbert Wiener
Year
1949
Type
Linear mean-square optimal filter
Family
Optimal filtering

What does it do?

The Wiener filter is a linear filter that minimizes the mean-square error between its output and a desired signal, given knowledge of the signal and noise statistics.

It was set out by Norbert Wiener, whose 1949 book on stationary time series is cited on this page. It is the standard reference point against which linear filtering methods are judged.

The intuition behind the method

The filter's coefficients depend only on second-order statistics: the power spectral densities of the signal and noise, and the cross-correlation between the input and the desired output. Minimizing the mean-square error over all linear filters yields a set of linear equations, the Wiener-Hopf equations, whose solution gives the coefficients. Among linear filters, this solution has the lowest achievable mean-square error, but only when those statistics are correct and describe the data well. The derivation does not require Gaussian distributions; the Gaussian assumption matters only when comparing the filter with nonlinear estimators. Because the design is fixed once the statistics are chosen, the filter's output is only as good as those statistics. For a model in which the observed input is the desired signal plus uncorrelated additive noise, and both are stationary, the non-causal optimal filter has frequency response H(f) = S_s(f) / (S_s(f) + S_n(f)), where S_s and S_n are the power spectral densities of the signal and the noise. The gain is close to one at frequencies where the signal dominates and close to zero where the noise dominates. The solution described above is the unconstrained (non-causal) Wiener filter, which may use future samples of the input and so cannot run in real time. A realizable filter must be causal, with an impulse response equal to zero for negative time. The causal optimum requires a causality constraint, obtained in continuous time through Wiener-Hopf factorization of the spectra and in discrete time through a causal finite-impulse-response design. The causal optimum has a mean-square error at least as large as that of the non-causal filter.

History

The theory of optimal linear filtering and prediction was developed by Norbert Wiener before its publication in his 1949 book on stationary time series, which is the foundational reference on this page. Kolmogorov developed the discrete-time form of the theory independently, and the alias Kolmogorov-Wiener filter reflects both contributions. Later developments include adaptive filters that approximate the Wiener solution and Kalman filtering.

When to use it

Choose the Wiener filter when the signal and noise are approximately stationary, their spectra or correlations can be estimated reliably from a record, and the goal is linear smoothing, interpolation or prediction under a mean-square criterion. It suits offline problems where a long recording is available for estimation. Do not use it when the statistics change over time, because the batch design assumes one fixed set of statistics; adaptive filters such as LMS, or recursive estimators such as the Kalman filter, are better suited to that case. It is also a poor choice when the statistics cannot be estimated at all, since the filter would then rest on assumptions rather than data.

Limitations and considerations

  • Requires the power spectral densities and cross-correlations of the signal and noise; any error in these estimates passes directly into the filter.
  • Assumes stationarity. If the statistics drift over the record, the fixed coefficients are wrong for much of the data.
  • For long filters, solving the system means working with a large matrix, which is costly unless structured algorithms are used.
  • The design is computed from ensemble-type statistics in batch and cannot track changes in the signal as they occur.
  • Optimality holds only among linear filters and only in the mean-square sense. For non-Gaussian signals, a nonlinear estimator may achieve a lower error than the best linear filter.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • For known, stationary signal and noise statistics, it gives the lowest mean-square error achievable by any linear filter, which makes it a clear benchmark for linear methods.
  • The coefficients come from a single linear system built from the statistics, so no iterative training or step-size tuning is required.
  • Its frequency response is shaped by how the signal and noise spectra compare at each frequency, which links the design directly to the spectral content of the data.
  • Adaptive linear filters such as LMS are designed to approximate its solution, so it provides the reference against which their behaviour can be checked.

Applications

  • Image denoising, where linear smoothing reduces noise under a mean-square criterion. Wiener-type filtering variants, applied in a neutrosophic domain, have been used on MRI corrupted by Rician noise, where they suppress the noise while preserving edges.
  • Speech and audio noise suppression, where speech statistics vary over time and shorter-segment or adaptive variants are often needed.
  • Biomedical signals such as ECG and EEG, where linear filtering aims to reduce noise while limiting distortion of the waveform.
  • Economic and financial time-series smoothing and prediction. Such series are usually non-stationary, so the stationary design applies only after detrending or on short, approximately stationary segments, and adaptive or recursive methods are usually preferable.
  • Radar and sonar processing, where the goal is to estimate signals in clutter whose statistics are assumed known.

How it works

How it works

1

Record the observed input, which mixes the desired signal with noise, and define the desired reference output. Where no reference exists, state the signal model explicitly.

2

Estimate the power spectral density of the signal and of the noise, and the cross-correlation between the input and the desired output, from data assumed to be stationary. The accuracy of these estimates sets the accuracy of the filter.

3

Form the autocorrelation matrix R of the input and the cross-correlation vector p between the input and the desired output. For a finite-impulse-response filter, both are built from the estimated statistics. The Wiener-Hopf equations were originally formulated as a continuous-time integral equation; R·w = p is their discrete-time counterpart for a finite-length filter.

4

Solve R·w = p for the coefficient vector w. Direct inversion is costly for long filters, so structured solvers that exploit the Toeplitz form of R are normally used. At this solution the minimum mean-square error is σ_d² − p^T w, where σ_d² is the variance of the desired output; this expression holds for real-valued stationary data.

5

Apply w as the filter and measure the mean-square error on the data. Compare it with the minimum error predicted from the statistics; a large gap suggests that the statistics are wrong or that the signal is not stationary.

Common pitfalls

  • Estimating the noise spectrum from segments that also contain signal, or using biased spectral estimates, shifts the filter away from the intended optimum.
  • Applying a stationary design to data whose statistics change over the record, so the actual output error exceeds the predicted minimum.
  • Solving long filters with a general dense solver instead of a structured method, which is slow and may be ill-conditioned.
  • Assuming the filter outperforms simpler methods without checking its output error on data not used for estimating the statistics, since errors in the estimated statistics are not included in the theoretical minimum error.

Frequently asked questions

How do I estimate the signal and noise statistics needed for Wiener filtering?

Power spectral density can be estimated using methods such as Welch's method or multitaper methods from long observations. If signal and noise are separable, estimate the noise PSD from noise-only segments. For joint estimation, adaptive approaches or maximum likelihood estimation can be used. Poor statistical estimates directly compromise Wiener filter performance, so careful estimation is essential.

What is the Wiener-Hopf equation and why is it important?

The equation R·w = p is the discrete-time linear system whose solution gives the optimal filter coefficients, where R is the input autocorrelation matrix, w is the coefficient vector, and p is the input-output cross-correlation vector. Solving it gives the optimal mean-square error filter under the stated statistics. It connects signal statistics directly to filter design.

How does the Wiener filter compare to the Kalman filter?

Both are optimal linear filters that minimize mean-square error, but they apply to different scenarios. Wiener filters assume stationary signals with known statistics and provide a batch solution. Kalman filters handle time-varying signals by recursively updating estimates as new measurements arrive, which makes them suitable for real-time tracking and adaptive systems.

Can the Wiener filter be implemented adaptively?

Yes. Adaptive algorithms such as LMS or RLS adjust the coefficients from data and, under stationary conditions, approach the Wiener solution. They do not need explicit knowledge of the statistics. They generally converge more slowly than a direct solution, and their behaviour on non-stationary signals differs from the batch design.

Related methods

Sources

  1. Wiener, N. (1949). Extrapolation, Interpolation, and Smoothing of Stationary Time Series. John Wiley & Sons.

    Open publication reference
  2. Haykin, S. (2002). Adaptive Filter Theory (4th ed.). Prentice Hall.

    Open publication reference
  3. 1611.08555v1, p. 261