Levinson recursion
From Wikipedia, the free encyclopedia
Levinson 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 Θ(n2) time, which is a strong improvement over Gauss-Jordan elimination, which runs in Θ(n3).
Newer algorithms, called asymptotically fast or sometimes superfast Toeplitz algorithms, can solve in Θ(n logpn) for various p (e.g. p = 2, p = 3). 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 [1]).
The Levinson-Durbin algorithm was proposed first by Norman Levinson in 1947, improved by J. Durbin in 1960, and subsequently improved to 4n2 and then 3n2 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.
Contents |
[edit] Derivation
[edit] Background
Matrix equations follow the form:
The Levinson-Durbin algorithm may be used for any such equation, so long as M is a known Toeplitz matrix with a nonzero main diagonal. Here is a known vector (in the list-of-numbers linear algebra sense), and is an unknown vector of numbers xi yet to be determined.
For the sake of this article, êi is a vector made up entirely of zeroes, except for its i'th 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 which 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:
[edit] Introductory steps
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 , as the vector of length n which satisfies:
The nth "backward vector" is defined similarly; it is the vector of length n which satisfies:
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.
[edit] Obtaining the backward vectors
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:
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:
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,
Like 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:
These two error terms can be used to eliminate each other. Using the linearity of matrices,
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 -- specifically, αf, βf, αb, and βb, notice that all the zeroes in the middle of the two vectors above may be disregarded and collapsed, leaving only the equation:
With these solved for (by using the 2x2 matrix inverse formula), the new forward and backward vectors are:
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:
[edit] Using the backward vectors
The above steps give the N backward vectors for M. From there, a more arbitrary equation is:
The solution can be built in the same recursive way that the backwards vectors were built. Accordingly, must be generalized to a sequence , from which .
The solution is then built recursively by noticing that if:
Then, extending with a zero again, and defining an error constant where necessary:
We can then use the nth backward vector to eliminate the error term and replace it with the desired formula as follows:
Extending this method until n = N yields the solution .
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.
[edit] References
Defining sources
- Levinson, N. (1947). "The Wiener RMS error criterion in filter design and prediction," J. Math. Phys., v. 25, pp. 261-278.
- Durbin, J. (1960). "The fitting of time series models." Rev. Inst. Int. Stat., v. 28, pp. 233-243.
- Trench, W. F. (1964). "An algorithm for the inversion of finite Toeplitz matrices." J. Soc. Indust. Appl. Math., v. 12, pp. 515-522.
- Delsarte, P. and Genin, Y. V. (1986). "The split Levinson algorithm." IEEE Transactions on Acoustics, Speech, and Signal Processing, v. ASSP-34(3), pp. 470–478.
Further work
- Bunch, J. R. (1985). "Stability of methods for solving Toeplitz systems of equations." SIAM J. Sci. Stat. Comput., v. 6, pp. 349-364. [2]
Summaries
- Bäckström, T. (2004). "2.2. Levinson-Durbin Recursion." Linear Predictive Modelling of Speech -- Constraints and Line Spectrum Pair Decomposition. Doctoral thesis. Report no. 71 / Helsinki University of Technology, Laboratory of Acoustics and Audio Signal Processing. Espoo, Finland. [3]
- Claerbout, Jon F. (1976). "Chapter 7 - Waveform Applications of Least-Squares." Fundamentals of Geophysical Data Processing. Palo Alto: Blackwell Scientific Publications. [4]
[edit] See also
- Split Levinson recursion
- Linear prediction