Lably
Skip to content

Recursive least squares filter

  • 5 min read
  • 6 chapters

Related on Lably

Through Loss function, Transpose and Matrix multiplication

Motivation

RLS was discovered by Gauss but lay unused or ignored until 1950 when Plackett rediscovered the original work of Gauss from 1821. In general, the RLS can be used to solve any problem that can be solved by adaptive filters. For example, suppose that a signal d(n) is transmitted over an echoey, noisy channel that causes it to be received as

x(n)=∑k=0qbn(k)d(n−k)+v(n)

where v(n) represents additive noise. The intent of the RLS filter is to recover the desired signal d(n) by use of a p+1-tap FIR filter, w:

d(n)≈∑k=0pw(k)x(n−k)=wTxn

where xn=[x(n)x(n−1)…x(n−p)]T is the column vector containing the p+1 most recent samples of x(n). The estimate of the recovered desired signal is

d^(n)=∑k=0pwn(k)x(n−k)=wnTxn

The goal is to estimate the parameters of the filter w, and at each time n we refer to the current estimate as wn and the adapted least-squares estimate by wn+1. wn is also a column vector, as shown below, and the transpose, wnT, is a row vector. The matrix product wnTxn (which is the dot product of wn and xn) is d^(n), a scalar. The estimate is "good" if d^(n)−d(n) is small in magnitude in some least squares sense.

As time evolves, it is desired to avoid completely redoing the least squares algorithm to find the new estimate for wn+1, in terms of wn.

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

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Mathematicians