Recursive least squares filter

Recursive least squares filter

Recursive least squares (RLS) algorithm is used in adaptive filters to find the filter coefficients that relate to recursively producing the least squares (minimum of the sum of the absolute squared) of the error signal (difference between the desired and the actual signal). This is contrast to other algorithms that aim to reduce the mean square error. The difference is that RLS filters are dependent on the signals themselves, whereas MSE filters are dependent on their statistics (specifically, the autocorrelation of the input and the cross-correlation of the input and desired signals). If these statistics are known, an MSE filter with fixed co-efficients (i.e., independent of the incoming data) can be built.

Motivation

Suppose that a signal mathbf{d} is transmitted over an echoey, noisy channel that causes it to be received as

:x(n)=sum_{k=0}^q b_n(k) d(n-k)+v(n)

where v(n) represents white noise. We will attempt to recover the desired signal mathbf{d} by use of an FIR filter, mathbf{w}:

:hat{d}(n) = y(n) = mathbf{w}_n^mathit{T} mathbf{x}(n)

Our goal is to estimate the parameters of the filter mathbf{w}, and at each time "n" we refer to the new least squares estimate by mathbf{w_n}. As time evolves, we would like to avoid completely redoing the least squares algorithm to find the new estimate for mathbf{w}_{n+1}, in terms of mathbf{w}_n.

The benefit of the RLS algorithm is that there is no need to invert matrices, thereby saving computational power. Another advantage is that it provides intuition behind such results as the Kalman filter.

Discussion

The idea behind RLS filters is to minimize a cost function C by appropriately selecting the filter coefficients mathbf{w}_n, updating the filter as new data arrives. The error signal e(n) and desired signal d(n) are defined in the negative feedback diagram below:

The error implicitly depends on the filter coefficients through the estimate hat{d}(n):

:e(n)=d(n)-hat{d}(n)

The weighted least squares error function C—the cost function we desire to minimize—being a function of e(n) is therefore also dependent on the filter coefficients::C(mathbf{mathbf{w}_n})=sum_{i=0}^{n}lambda^{n-i}|e(i)|^{2}=sum_{i=0}^{n}lambda^{n-i}e(i),e^{*}(i)where 0 is an exponential weighting factor which effectively limits the number of input samples based on which the cost function is minimized.

The cost function is minimized by taking the partial derivatives for all entries k of the coefficient vector mathbf{w}_{n} and setting the results to zero:frac{partial C(mathbf{w}_{n})}{partial w^{*}_{n}(k)}=sum_{i=0}^{n}lambda^{n-i}e(i),frac{partial e^{*}(i)}{partial w^{*}_{n}(k)}=sum_{i=0}^{n}lambda^{n-i}e(i),x^{*}(i-k)=0 Next, replace e(n) with the definition of the error signal:sum_{i=0}^{n}lambda^{n-i}left [d(i)-sum_{l=0}^{p}w_{n}(l)x(i-l) ight] x^{*}(i-k)= 0 Rearranging the equation yields:sum_{l=0}^{p}w_{n}(l)left [sum_{i=0}^{n}lambda^{n-i},x(i-l)x^{*}(i-k) ight] = sum_{i=0}^{n}lambda^{n-i}d(i)x^{*}(i-k)This form can be expressed in terms of matrices :mathbf{R}_{x}(n),mathbf{w}_{n}=mathbf{r}_{dx}(n)where mathbf{R}_{x}(n) is the weighted autocorrelation matrix for x(n) and mathbf{r}_{dx}(n) is the cross-correlation between d(n) and x(n). Based on this expression we find the coefficients which minimize the cost function as :mathbf{w}_{n}=mathbf{R}_{x}^{-1}(n),mathbf{r}_{dx}(n)This is the main result of the discussion.

Choosing lambda

The smaller lambda is, the smaller contribution of previous samples. This makes the filter "more" sensitive to recent samples, which means more fluctuations in the filter co-efficients. The lambda=1 case is referred to as the "growing window RLS algorithm".

Recursive algorithm

The discussion resulted in a single equation to determine a coefficient vector which minimizes the cost function. In this section we want to derive a recursive solution of the form :mathbf{w}_{n}=mathbf{w}_{n-1}+Deltamathbf{w}_{n-1}where Deltamathbf{w}_{n-1} is a correction factor at time "n-1". We start the derivation of the recursive algorithm by expressing the cross correlation mathbf{r}_{dx}(n) in terms of mathbf{r}_{dx}(n-1) :The Woodbury matrix identity follows:Before we move on, it is necessary to bring mathbf{g}(n) into another form :The second step follows from the recursive definition of mathbf{r}_{dx}(n ). Next we incorporate the recursive definition of mathbf{P}(n) together with the alternate form of mathbf{g}(n) and get:

Note that the recursion for P follows a Riccati equation and thus draws parallels to the Kalman filter.

ee also

*Adaptive filter
*Least mean squares filter

References

*
* Simon Haykin, "Adaptive Filter Theory", Prentice Hall, 2002, ISBN 0-13-048434-2
* M.H.A Davis, R.B. Vinter, "Stochastic Modelling and Control", Springer, 1985, ISBN 0-412-16200-8


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Least mean squares filter — Least mean squares (LMS) algorithms are a class of adaptive filter used to mimic a desired filter by finding the filter coefficients that relate to producing the least mean squares of the error signal (difference between the desired and the… …   Wikipedia

  • Adaptive filter — An adaptive filter is a filter that self adjusts its transfer function according to an optimizing algorithm. Because of the complexity of the optimizing algorithms, most adaptive filters are digital filters that perform digital signal processing… …   Wikipedia

  • Filter design — is the process of designing a filter (in the sense in which the term is used in signal processing, statistics, and applied mathematics), often a linear shift invariant filter, which satisfies a set of requirements, some of which are contradictory …   Wikipedia

  • Kalman filter — Roles of the variables in the Kalman filter. (Larger image here) In statistics, the Kalman filter is a mathematical method named after Rudolf E. Kálmán. Its purpose is to use measurements observed over time, containing noise (random variations)… …   Wikipedia

  • Multidelay block frequency domain adaptive filter — The Multidelay block frequency domain adaptive filter (MDF) algorithm is a block based frequency domain implementation of the (normalised) Least mean squares filter (LMS) algorithm. Contents 1 Introduction 2 Variable definitions 3 Algorithm… …   Wikipedia

  • Ensemble Kalman filter — The ensemble Kalman filter (EnKF) is a recursive filter suitable for problems with a large number of variables, such as discretizations of partial differential equations in geophysical models. The EnKF originated as a version of the Kalman filter …   Wikipedia

  • RLS — may stand for:*Robert Louis Stevenson (1850 1894), Scottish author *Remote Laptop Security, an encryption solution to protect data on stolen laptops *Restless legs syndrome, a medical disorder *Reversing language shift, a model for revitalizing… …   Wikipedia

  • List of statistics topics — Please add any Wikipedia articles related to statistics that are not already on this list.The Related changes link in the margin of this page (below search) leads to a list of the most recent changes to the articles listed below. To see the most… …   Wikipedia

  • Algorithme des moindres carrés récursifs — L algorithmique des moindres carrés récursifs (en anglais, RLS ou Recursive least squares) est un algorithme de filtre adaptatif utilisé en traitement numérique du signal. Il fournit une manière récursive pour calculer le filtre qui minimise une… …   Wikipédia en Français

  • Woodbury matrix identity — In mathematics (specifically linear algebra), the Woodbury matrix identity, named after Max A. Woodbury[1][2] says that the inverse of a rank k correction of some matrix can be computed by doing a rank k correction to the inverse of the original… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”