# Linear prediction

Linear prediction tries to estimate what the value a sample will have, based on previous samples. The general equation is:

The trick with linear prediction is to choose the coefficients in such a way that the difference between the estimated value and the real value is as small as possible. There are several ways of doing this, but one simple, commonly used (because of its simplicity, not its performance) method is to assume that the signal more or less follows an n-th order polynomial and simply use fixed coefficients (for example or , where the first assumes a function of the form and the second assumes a function of the form ).