Linear prediction

Short description: Mathematical operation that predicts future values of a discrete-time signal

Linear prediction is a mathematical operation where future values of a discrete-time signal are estimated as a linear function of previous samples.

In digital signal processing, linear prediction is often called linear predictive coding (LPC) and can thus be viewed as a subset of filter theory. In system analysis, a subfield of mathematics, linear prediction can be viewed as a part of mathematical modelling or optimization.

## Contents

* 1 The prediction model
* 1.1 Estimating the parameters
* 2 See also
* 3 References
* 4 Further reading
* 5 External links

## The prediction model

The most common representation is

x^(n)=∑i=1paix(n−i)

where x^(n) is the predicted signal value, x(n−i) the previous observed values, with p≤n, and ai the predictor coefficients. The error generated by this estimate is

e(n)=x(n)−x^(n)

where x(n) is the true signal value.

These equations are valid for all types of (one-dimensional) linear prediction. The differences are found in the way the predictor coefficients ai are chosen.

For multi-dimensional signals the error metric is often defined as

e(n)=‖x(n)−x^(n)‖

where ‖⋅‖ is a suitable chosen vector norm. Predictions such as x^(n) are routinely used within Kalman filters and smoothers to estimate current and past signal values, respectively, from noisy measurements.[1]

### Estimating the parameters

The most common choice in optimization of parameters ai is the root mean square criterion which is also called the autocorrelation criterion. In this method we minimize the expected value of the squared error E[e2(n)], which yields the equation

∑i=1paiR(j−i)=R(j),

for 1 ≤ j ≤ p, where R is the autocorrelation of signal xn, defined as

R(i)=E{x(n)x(n−i)},

and E is the expected value. In the multi-dimensional case this corresponds to minimizing the L2 norm.

The above equations are called the normal equations or Yule-Walker equations. In matrix form the equations can be equivalently written as

𝐑𝐀=𝐫

where the autocorrelation matrix 𝐑 is a symmetric, p×p Toeplitz matrix with elements rij=R(i−j),0≤i,j<p, the vector 𝐫 is the autocorrelation vector rj=R(j),0<j≤p, and 𝐀=[a1,a2,⋯,ap−1,ap], the parameter vector.

Another, more general, approach is to minimize the sum of squares of the errors defined in the form

e(n)=x(n)−x^(n)=x(n)−∑i=1paix(n−i)=−∑i=0paix(n−i)

where the optimisation problem searching over all ai must now be constrained with a0=−1.

On the other hand, if the mean square prediction error is constrained to be unity and the prediction error equation is included on top of the normal equations, the augmented set of equations is obtained as

𝐑𝐀=[1,0,...,0]T

where the index i ranges from 0 to p, and 𝐑 is a (p+1)×(p+1) matrix.

Specification of the parameters of the linear predictor is a wide topic and a large number of other approaches have been proposed. In fact, the autocorrelation method is the most common[2] and it is used, for example, for speech coding in the GSM standard.

Solution of the matrix equation 𝐑𝐀=𝐫 is computationally a relatively expensive process. The Gaussian elimination for matrix inversion is probably the oldest solution but this approach does not efficiently use the symmetry of 𝐑. A faster algorithm is the Levinson recursion proposed by Norman Levinson in 1947, which recursively calculates the solution, running in O(n2) time (vs O(n3) for Gaussian elimination).[3] In particular, the autocorrelation equations above may be more efficiently solved by the Durbin algorithm.[4]

In 1986, Philippe Delsarte and Y.V. Genin proposed an improvement to this algorithm called the split Levinson recursion, which requires about half the number of multiplications and divisions.[5] It uses a special symmetrical property of parameter vectors on subsequent recursion levels. That is, calculations for the optimal predictor containing p terms make use of similar calculations for the optimal predictor containing p−1 terms.

Another way of identifying model parameters is to iteratively calculate state estimates using Kalman filters and obtaining maximum likelihood estimates within expectation–maximization algorithms.

For equally-spaced values, a polynomial interpolation is a linear combination of the known values. If the discrete time signal is estimated to obey a polynomial of degree p−1, then the predictor coefficients ai are given by the corresponding row of the triangle of binomial transform coefficients. This estimate might be suitable for a slowly varying signal with low noise. The predictions for the first few values of p are

p=1:x^(n)=1x(n−1)p=2:x^(n)=2x(n−1)−1x(n−2)p=3:x^(n)=3x(n−1)−3x(n−2)+1x(n−3)p=4:x^(n)=4x(n−1)−6x(n−2)+4x(n−3)−1x(n−4)

## See also

* Autoregressive model
* Linear predictive analysis
* Minimum mean square error
* Prediction interval
* Rasta filtering

## References

1. ↑ "Kalman Filter - an overview | ScienceDirect Topics". https://www.sciencedirect.com/topics/earth-and-planetary-sciences/kalman-filter.
2. ↑ "Linear Prediction - an overview | ScienceDirect Topics". https://www.sciencedirect.com/topics/mathematics/linear-prediction.
3. ↑ Uncini, Aurelio (2015). Fundamentals of adaptive signal processing. Cham, Switzerland New York: Springer. p. 447. ISBN 9783319028071.
4. ↑ Ramirez, M. A. (2008). "A Levinson Algorithm Based on an Isometric Transformation of Durbin's". IEEE Signal Processing Letters 15: 99–102. doi:10.1109/LSP.2007.910319. Bibcode: 2008ISPL...15...99R. http://www.producao.usp.br/bitstream/handle/BDPI/18665/lts2r1f.pdf.
5. ↑ 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

This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. Please help to improve this article by introducing more precise citations. (November 2010) (Learn how and when to remove this template message)

|

## Further reading

* Hayes, M. H. (1996). Statistical Digital Signal Processing and Modeling. New York: J. Wiley & Sons. ISBN 978-0471594314.
* Levinson, N. (1947). "The Wiener RMS (root mean square) error criterion in filter design and prediction". Journal of Mathematics and Physics 25 (4): 261–278. doi:10.1002/sapm1946251261.
* Makhoul, J. (1975). "Linear prediction: A tutorial review". Proceedings of the IEEE 63 (5): 561–580. doi:10.1109/PROC.1975.9792.
* Yule, G. U. (1927). "On a Method of Investigating Periodicities in Disturbed Series, with Special Reference to Wolfer's Sunspot Numbers". Phil. Trans. Roy. Soc. A 226 (636–646): 267–298. doi:10.1098/rsta.1927.0007. Bibcode: 1927RSPTA.226..267Y.

## External links

* PLP and RASTA (and MFCC, and inversion) in Matlab

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Linear prediction. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Linear_prediction&oldid=4227656"