Levinson recursion or Levinson–Durbin recursion is a procedure in linear algebra to recursively calculate the solution to an equation involving a Toeplitz matrix. The algorithm runs in time, which is a strong improvement over Gauss–Jordan elimination, which runs in Θ(n3).
The Levinson–Durbin algorithm was proposed first by Norman Levinson in 1947, improved by James Durbin in 1960, and subsequently improved to and then multiplications by W. F. Trench and S. Zohar, respectively.
Other methods to process data include Schur decomposition and Cholesky decomposition. In comparison to these, Levinson recursion (particularly split Levinson recursion) tends to be faster computationally, but more sensitive to computational inaccuracies like round-off errors.
The Bareiss algorithm for Toeplitz matrices (not to be confused with the general Bareiss algorithm) runs about as fast as Levinson recursion, but it uses space, whereas Levinson recursion uses only O(n) space. The Bareiss algorithm, though, is numerically stable,[1] [2] whereas Levinson recursion is at best only weakly stable (i.e. it exhibits numerical stability for well-conditioned linear systems).[3]
Newer algorithms, called asymptotically fast or sometimes superfast Toeplitz algorithms, can solve in for various p (e.g. p = 2,[4] [5] p = 3 [6]). Levinson recursion remains popular for several reasons; for one, it is relatively easy to understand in comparison; for another, it can be faster than a superfast algorithm for small n (usually n < 256).[7]
Matrix equations follow the form
M\vecx=\vecy.
The Levinson–Durbin algorithm may be used for any such equation, as long as M is a known Toeplitz matrix with a nonzero main diagonal. Here
\vecy
\vecx
For the sake of this article, êi is a vector made up entirely of zeroes, except for its ith place, which holds the value one. Its length will be implicitly determined by the surrounding context. The term N refers to the width of the matrix above – M is an N×N matrix. Finally, in this article, superscripts refer to an inductive index, whereas subscripts denote indices. For example (and definition), in this article, the matrix Tn is an n×n matrix that copies the upper left n×n block from M – that is, Tnij = Mij.
Tn is also a Toeplitz matrix, meaning that it can be written as
Tn=\begin{bmatrix} t0&t-1&t-2&...&t-n+1\\ t1&t0&t-1&...&t-n+2\\ t2&t1&t0&...&t-n+3\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ tn-1&tn-2&tn-3&...&t0 \end{bmatrix}.
The algorithm proceeds in two steps. In the first step, two sets of vectors, called the forward and backward vectors, are established. The forward vectors are used to help get the set of backward vectors; then they can be immediately discarded. The backwards vectors are necessary for the second step, where they are used to build the solution desired.
Levinson–Durbin recursion defines the nth "forward vector", denoted
\vecfn
Tn\vecfn=\hate1.
The nth "backward vector"
\vecbn
Tn\vecbn=\haten.
An important simplification can occur when M is a symmetric matrix; then the two vectors are related by bni = fnn+1−i—that is, they are row-reversals of each other. This can save some extra computation in that special case.
Even if the matrix is not symmetric, then the nth forward and backward vector may be found from the vectors of length n − 1 as follows. First, the forward vector may be extended with a zero to obtain:
Tn\begin{bmatrix}\vecfn-1\ 0\ \end{bmatrix}= \begin{bmatrix} & & &t-n+1\\ &Tn-1& &t-n+2\\ & & &\vdots\\ tn-1&tn-2&...&t0\\ \end{bmatrix} \begin{bmatrix} \\ \vecfn-1\\ \\ 0\\ \\ \end{bmatrix}=\begin{bmatrix}1\\ 0\\ \vdots\\ 0\\
n | |
\varepsilon | |
f |
\end{bmatrix}.
In going from Tn−1 to Tn, the extra column added to the matrix does not perturb the solution when a zero is used to extend the forward vector. However, the extra row added to the matrix has perturbed the solution; and it has created an unwanted error term εf which occurs in the last place. The above equation gives it the value of:
n | |
\varepsilon | |
f |
=
n-1 | |
\sum | |
i=1 |
Mni
n-1 | |
f | |
i |
=
n-1 | |
\sum | |
i=1 |
tn-i
n-1 | |
f | |
i |
.
This error will be returned to shortly and eliminated from the new forward vector; but first, the backwards vector must be extended in a similar (albeit reversed) fashion. For the backwards vector,
Tn\begin{bmatrix}0\ \vecbn-1\ \end{bmatrix}= \begin{bmatrix} t0&...&t-n+2&t-n+1\\ \vdots& & & \\ tn-2& &Tn-1& \\ tn-1& & & \end{bmatrix} \begin{bmatrix} \\ 0\\ \\ \vecbn-1\\ \\ \end{bmatrix}=\begin{bmatrix}
n | |
\varepsilon | |
b |
\\ 0\\ \vdots\\ 0\\ 1 \end{bmatrix}.
As before, the extra column added to the matrix does not perturb this new backwards vector; but the extra row does. Here we have another unwanted error εb with value:
n | |
\varepsilon | |
b |
=
n | |
\sum | |
i=2 |
M1i
n-1 | |
b | |
i-1 |
=
n-1 | |
\sum | |
i=1 |
t-i
n-1 | |
b | |
i |
.
These two error terms can be used to form higher-order forward and backward vectors described as follows. Using the linearity of matrices, the following identity holds for all
(\alpha,\beta)
T\left(\alpha \begin{bmatrix} \vecf\\ \\ 0\\ \end{bmatrix}+\beta \begin{bmatrix} 0\\ \\ \vecb \end{bmatrix}\right)=\alpha \begin{bmatrix}1\\ 0\\ \vdots\\ 0\\ \varepsilonf\\ \end{bmatrix}+\beta \begin{bmatrix}\varepsilonb\\ 0\\ \vdots\\ 0\\ 1 \end{bmatrix}.
If α and β are chosen so that the right hand side yields ê1 or ên, then the quantity in the parentheses will fulfill the definition of the nth forward or backward vector, respectively. With those alpha and beta chosen, the vector sum in the parentheses is simple and yields the desired result.
To find these coefficients,
n | |
\alpha | |
f |
n | |
\beta | |
f |
\vecfn=
n | |
\alpha | |
f |
\begin{bmatrix}\vecfn-1
n | |
\\ 0 \end{bmatrix} +\beta | |
f |
\begin{bmatrix}0\\ \vecbn-1\end{bmatrix}
n | |
\alpha | |
b |
n | |
\beta | |
b |
\vecbn=
n | |
\alpha | |
b |
\begin{bmatrix} \vecfn-1
n | |
\\ 0 \end{bmatrix} +\beta | |
b |
\begin{bmatrix} 0\\ \vecbn-1\end{bmatrix}.
{T}n
\begin{bmatrix}1&
n | |
\varepsilon | |
b |
\\ 0&0\\ \vdots&\vdots\\ 0&0
n | |
\\ \varepsilon | |
f |
&1 \end{bmatrix}\begin{bmatrix}
n | |
\alpha | |
f |
&
n | |
\alpha | |
b |
n | |
\ \beta | |
f |
&
n | |
\beta | |
b |
\end{bmatrix} =\begin{bmatrix} 1&0\\ 0&0\\ \vdots&\vdots\\ 0&0\\ 0&1 \end{bmatrix}.
Now, all the zeroes in the middle of the two vectors above being disregarded and collapsed, only the following equation is left:
\begin{bmatrix}1&
n | |
\varepsilon | |
b |
n | |
\ \varepsilon | |
f |
&1\end{bmatrix}\begin{bmatrix}
n | |
\alpha | |
f |
&
n | |
\alpha | |
b |
n | |
\ \beta | |
f |
&
n | |
\beta | |
b |
\end{bmatrix}=\begin{bmatrix}1&0\ 0&1\end{bmatrix}.
With these solved for (by using the Cramer 2×2 matrix inverse formula), the new forward and backward vectors are:
\vecfn={1\over{1-
n | |
\varepsilon | |
b |
n | |
\varepsilon | |
f |
}}\begin{bmatrix}\vecfn-1\ 0\end{bmatrix} -{
n | |
\varepsilon | |
f |
\over{1-
n | |
\varepsilon | |
b |
n | |
\varepsilon | |
f |
}}\begin{bmatrix}0\ \vecbn-1\end{bmatrix}
\vecbn={1\over{1-
n | |
\varepsilon | |
b |
n | |
\varepsilon | |
f |
}}\begin{bmatrix}0\ \vecbn-1\end{bmatrix} -{
n | |
\varepsilon | |
b |
\over{1-
n | |
\varepsilon | |
b |
n | |
\varepsilon | |
f |
}}\begin{bmatrix}\vecfn-1\ 0\end{bmatrix}.
Performing these vector summations, then, gives the nth forward and backward vectors from the prior ones. All that remains is to find the first of these vectors, and then some quick sums and multiplications give the remaining ones. The first forward and backward vectors are simply:
\vecf1=\vecb1=\left[{1\overM11
The above steps give the N backward vectors for M. From there, a more arbitrary equation is:
\vecy=M \vecx.
The solution can be built in the same recursive way that the backwards vectors were built. Accordingly,
\vecx
\vecxn
\vecxN=\vecx
The solution is then built recursively by noticing that if
Tn-1\begin{bmatrix}
n-1 | |
x | |
1 |
\\
n-1 | |
x | |
2 |
\\ \vdots\\
n-1 | |
x | |
n-1 |
\\ \end{bmatrix}=\begin{bmatrix}y1\\ y2\\ \vdots\\ yn-1\end{bmatrix}.
Then, extending with a zero again, and defining an error constant where necessary:
Tn\begin{bmatrix}
n-1 | |
x | |
1 |
\\
n-1 | |
x | |
2 |
\\ \vdots\\
n-1 | |
x | |
n-1 |
\\ 0 \end{bmatrix}=\begin{bmatrix}y1\\ y2\\ \vdots\\ yn-1\\
n-1 | |
\varepsilon | |
x |
\end{bmatrix}.
We can then use the nth backward vector to eliminate the error term and replace it with the desired formula as follows:
Tn\left(\begin{bmatrix}
n-1 | |
x | |
1 |
\\
n-1 | |
x | |
2 |
\\ \vdots\\
n-1 | |
x | |
n-1 |
\\ 0\\ \end{bmatrix}+(yn-
n-1 | |
\varepsilon | |
x |
) \vecbn\right)=\begin{bmatrix}y1\\ y2\\ \vdots\\ yn-1\\ yn \end{bmatrix}.
Extending this method until n = N yields the solution
\vecx
In practice, these steps are often done concurrently with the rest of the procedure, but they form a coherent unit and deserve to be treated as their own step.
If M is not strictly Toeplitz, but block Toeplitz, the Levinson recursion can be derived in much the same way by regarding the block Toeplitz matrix as a Toeplitz matrix with matrix elements (Musicus 1988). Block Toeplitz matrices arise naturally in signal processing algorithms when dealing with multiple signal streams (e.g., in MIMO systems) or cyclo-stationary signals.
Defining sources
Further work
Summaries