Least Square and Its Iterative Approach (RLS)
Introduction
As is well-known, least square (LS) is the optimal linear unbiased estimator, which plays an extremely important role in the classic estimation theory. This document motivates to illustrate the fundamental of LS algorithm. However, LS algorithm suffers rather high complexity, especially for the operation of matrix inversion, which greatly limits its application in practice. In order to reduce the computational complexity, an iterative approach, a.k.a. recursive LS (RLS), has been proposed.
The remainder part of the document is structured as follows. In Section 1, the principle of LS algorithm is derived in detail. Then its iterative solution, i.e., RLS algorithm, follows in Section 2.
Least Square (LS)
A series of signal passes through a linear dynamic channel, characterized by channel impulse response (CIR) , where is the memory length of the channel. Then the output signal can be expressed by
where is additive Gaussian noise, .
In order to recover the desired signal , a dynamic finite impulse response (FIR) filter takes as input and outputs .
Given , the sample-wise error1 can be denoted as
Taking as cost function2, the filter can be obtained by making
Clearly, the impulse response of the filter can be written as
For simple description, define weighted auto-correlation matrix as
and weighted cross-correlation vector as
Then, by substituting (2) and (3) into (1), the impulse response can be rewritten as
Recursive Least Square (RLS)
In this section, RLS algorithm is derived in detail.
Iteration of auto/cross-correlation
According to (2), we have
Applying matrix inversion lemma to (5) can yield the iteration between and , i.e.,
For the sake of compact expression, denote and define Kalman gain vector
Then, the iteration above becomes
By reducing the entry of in (6) and (7), we can get
Simlarly, according to (3), the iteration of the weighted cross-correlation is available, i.e.,
Iteration of LS filter
Substituting (7), (8) and (9) into (4) produces the iteration between and , i.e.,
where
is termed a priori estimation error.
Procedure
By collecting the operations scattered above, the detailed procedure of RLS algorithm can be summarized as follows, where the values of the two parameters should be offered in advance. is the forgetting factor, while is a small positive number used for initialization.
| Initialization | , , . |
| for | do |
| end | for |