Autoregressive–moving-average model


In the statistical analysis of time series, autoregressive–moving-average models provide a parsimonious description of a stationary stochastic process in terms of two polynomials, one for the autoregression and the second for the moving average. The general ARMA model was described in the 1951 thesis of Peter Whittle, Hypothesis testing in time series analysis, and it was popularized in the 1970 book by George E. P. Box and Gwilym Jenkins.
Given a time series of data Xt, the ARMA model is a tool for understanding and, perhaps, predicting future values in this series. The AR part involves regressing the variable on its own lagged values. The MA part involves modeling the error term as a linear combination of error terms occurring contemporaneously and at various times in the past. The model is usually referred to as the ARMA model where p is the order of the AR part and q is the order of the MA part.
ARMA models can be estimated by using the Box–Jenkins method.

Autoregressive model

The notation AR refers to the autoregressive model of order p. The AR model is written
where are parameters, is a constant, and the random variable is white noise.
Some constraints are necessary on the values of the parameters so that the model remains stationary. For example, processes in the AR model with are not stationary.

Moving-average model

The notation MA refers to the moving average model of order q:
where the θ1,..., θq are the parameters of the model, μ is the expectation of , and the,,... are again, white noise error terms.

ARMA model

The notation ARMA refers to the model with p autoregressive terms and q moving-average terms. This model contains the AR and MA models,
The general ARMA model was described in the 1951 thesis of Peter Whittle, who used mathematical analysis and statistical inference. ARMA models were popularized by a 1970 book by George E. P. Box and Jenkins, who expounded an iterative method for choosing and estimating them. This method was useful for low-order polynomials.
The ARMA model is essentially an infinite impulse response filter applied to white noise, with some additional interpretation placed on it.

Note about the error terms

The error terms are generally assumed to be independent identically distributed random variables sampled from a normal distribution with zero mean: ~ N where σ2 is
the variance. These assumptions may be weakened but doing so will change the properties of the model. In particular, a change to the i.i.d. assumption would make a rather fundamental difference.

Specification in terms of lag operator

In some texts the models will be specified in terms of the lag operator L.
In these terms then the AR model is given by
where represents the polynomial
The MA model is given by
where θ represents the polynomial
Finally, the combined ARMA model is given by
or more concisely,
or

Alternative notation

Some authors, including Box, Jenkins & Reinsel use a different convention for the autoregression coefficients. This allows all the polynomials involving the lag operator to appear in a similar form throughout. Thus the ARMA model would be written as
Moreover, if we set and, then we get an even more elegant formulation:

Fitting models

Choosing p and q

Finding appropriate values of p and q in the ARMA model can be facilitated by plotting the partial autocorrelation functions for an estimate of p, and likewise using the autocorrelation functions for an estimate of q. Further information can be gleaned by considering the same functions for the residuals of a model fitted with an initial selection of p and q.
Brockwell & Davis recommend using Akaike information criterion for finding p and q.

Estimating coefficients

ARMA models in general can be, after choosing p and q, fitted by least squares regression to find the values of the parameters which minimize the error term. It is generally considered good practice to find the smallest values of p and q which provide an acceptable fit to the data. For a pure AR model the Yule-Walker equations may be used to provide a fit.

Implementations in statistics packages

ARMA is appropriate when a system is a function of a series of unobserved shocks as well as its own behavior. For example, stock prices may be shocked by fundamental information as well as exhibiting technical trending and mean-reversion effects due to market participants.

Generalizations

The dependence of Xt on past values and the error terms εt is assumed to be linear unless specified otherwise. If the dependence is nonlinear, the model is specifically called a nonlinear moving average, nonlinear autoregressive, or nonlinear autoregressive–moving-average model.
Autoregressive–moving-average models can be generalized in other ways. See also autoregressive conditional heteroskedasticity models and autoregressive integrated moving average models. If multiple time series are to be fitted then a vector ARIMA model may be fitted. If the time-series in question exhibits long memory then fractional ARIMA modelling may be appropriate: see Autoregressive fractionally integrated moving average. If the data is thought to contain seasonal effects, it may be modeled by a SARIMA or a periodic ARMA model.
Another generalization is the multiscale autoregressive model. A MAR model is indexed by the nodes of a tree, whereas a standard autoregressive model is indexed by integers.
Note that the ARMA model is a univariate model. Extensions for the multivariate case are the vector autoregression and Vector Autoregression Moving-Average.

Autoregressive–moving-average model with exogenous inputs model (ARMAX model)

The notation ARMAX refers to the model with p autoregressive terms, q moving average terms and b exogenous inputs terms. This model contains the AR and MA models and a linear combination of the last b terms of a known and external time series. It is given by:
where are the parameters of the exogenous input.
Some nonlinear variants of models with exogenous variables have been defined: see for example Nonlinear autoregressive exogenous model.
Statistical packages implement the ARMAX model through the use of "exogenous" variables. Care must be taken when interpreting the output of those packages, because the estimated parameters usually refer to the regression:
where mt incorporates all exogenous variables: