There are many ways to estimate the coefficients, such as the
ordinary least squares procedure or
method of moments (through Yule–Walker equations). The AR(
p) model is given by the equation : X_t = \sum_{i=1}^p \varphi_i X_{t-i}+ \varepsilon_t.\, It is based on parameters \varphi_i where
i = 1, ...,
p. There is a direct correspondence between these parameters and the covariance function of the process, and this correspondence can be inverted to determine the parameters from the autocorrelation function (which is itself obtained from the covariances). This is done using the Yule–Walker equations.
Yule–Walker equations The Yule–Walker equations, named for
Udny Yule and
Gilbert Walker, are the following set of equations. :\gamma_m = \sum_{k=1}^p \varphi_k \gamma_{m-k} + \sigma_\varepsilon^2\delta_{m,0}, where , yielding equations. Here \gamma_m is the autocovariance function of Xt, \sigma_\varepsilon is the standard deviation of the input noise process, and \delta_{m,0} is the
Kronecker delta function. Because the last part of an individual equation is non-zero only if , the set of equations can be solved by representing the equations for in matrix form, thus getting the equation :\begin{bmatrix} \gamma_1 \\ \gamma_2 \\ \gamma_3 \\ \vdots \\ \gamma_p \\ \end{bmatrix} = \begin{bmatrix} \gamma_0 & \gamma_{-1} & \gamma_{-2} & \cdots \\ \gamma_1 & \gamma_0 & \gamma_{-1} & \cdots \\ \gamma_2 & \gamma_1 & \gamma_0 & \cdots \\ \vdots & \vdots & \vdots & \ddots \\ \gamma_{p-1} & \gamma_{p-2} & \gamma_{p-3} & \cdots \\ \end{bmatrix} \begin{bmatrix} \varphi_1 \\ \varphi_2 \\ \varphi_3 \\ \vdots \\ \varphi_p \\ \end{bmatrix} which can be solved for all \{\varphi_m; m=1,2, \dots ,p\}. The remaining equation for
m = 0 is :\gamma_0 = \sum_{k=1}^p \varphi_k \gamma_{-k} + \sigma_\varepsilon^2 , which, once \{\varphi_m ; m=1,2, \dots ,p \} are known, can be solved for \sigma_\varepsilon^2 . An alternative formulation is in terms of the
autocorrelation function. The AR parameters are determined by the first
p+1 elements \rho(\tau) of the autocorrelation function. The full autocorrelation function can then be derived by recursively calculating : \rho(\tau) = \sum_{k=1}^p \varphi_k \rho(k-\tau) Examples for some Low-order AR(
p) processes •
p=1 • \gamma_1 = \varphi_1 \gamma_0 • Hence \rho_1 = \gamma_1 / \gamma_0 = \varphi_1 •
p=2 • The Yule–Walker equations for an AR(2) process are • : \gamma_1 = \varphi_1 \gamma_0 + \varphi_2 \gamma_{-1} • : \gamma_2 = \varphi_1 \gamma_1 + \varphi_2 \gamma_0 • Remember that \gamma_{-k} = \gamma_k • Using the first equation yields \rho_1 = \gamma_1 / \gamma_0 = \frac{\varphi_1}{1-\varphi_2} • Using the recursion formula yields \rho_2 = \gamma_2 / \gamma_0 = \frac{\varphi_1^2 - \varphi_2^2 + \varphi_2}{1 - \varphi_2}
Estimation of AR parameters The above equations (the Yule–Walker equations) provide several routes to estimating the parameters of an AR(
p) model, by replacing the theoretical covariances with estimated values. Some of these variants can be described as follows: • Estimation of autocovariances or autocorrelations. Here each of these terms is estimated separately, using conventional estimates. There are different ways of doing this and the choice between these affects the properties of the estimation scheme. For example, negative estimates of the variance can be produced by some choices. • Formulation as a
least squares regression problem in which an ordinary least squares prediction problem is constructed, basing prediction of values of
Xt on the
p previous values of the same series. This can be thought of as a forward-prediction scheme. The
normal equations for this problem can be seen to correspond to an approximation of the matrix form of the Yule–Walker equations in which each appearance of an autocovariance of the same lag is replaced by a slightly different estimate. • Formulation as an extended form of ordinary least squares prediction problem. Here two sets of prediction equations are combined into a single estimation scheme and a single set of normal equations. One set is the set of forward-prediction equations and the other is a corresponding set of backward prediction equations, relating to the backward representation of the AR model: :: X_t = \sum_{i=1}^p \varphi_i X_{t+i}+ \varepsilon^*_t \,. :Here predicted values of
Xt would be based on the
p future values of the same series. This way of estimating the AR parameters is due to John Parker Burg, and is called the Burg method: Burg and later authors called these particular estimates "maximum entropy estimates", but the reasoning behind this applies to the use of any set of estimated AR parameters. Compared to the estimation scheme using only the forward prediction equations, different estimates of the autocovariances are produced, and the estimates have different stability properties. Burg estimates are particularly associated with
maximum entropy spectral estimation. Other possible approaches to estimation include
maximum likelihood estimation. Two distinct variants of maximum likelihood are available: in one (broadly equivalent to the forward prediction least squares scheme) the likelihood function considered is that corresponding to the conditional distribution of later values in the series given the initial
p values in the series; in the second, the likelihood function considered is that corresponding to the unconditional joint distribution of all the values in the observed series. Substantial differences in the results of these approaches can occur if the observed series is short, or if the process is close to non-stationarity. ==Spectrum==