In the statistical analysis of time series, autoregressive–moving-average (ARMA) models provide a parsimonious description of a (weakly) stationary stochastic process in terms of two polynomials, one for the autoregression (AR) and the second for the moving average (MA). 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
ARMA models can be estimated by using the Box–Jenkins method.
See main article: Autoregressive model. The notation AR(p) refers to the autoregressive model of order p. The AR(p) model is written as
Xt=
p | |
\sum | |
i=1 |
\varphiiXt-i+\varepsilont
where
\varphi1,\ldots,\varphip
\varepsilont
In order for the model to remain stationary, the roots of its characteristic polynomial must lie outside of the unit circle. For example, processes in the AR(1) model with
|\varphi1|\ge1
1-\varphi1B=0
ADF assesses the stability of IMF and trend components. For stationary time series, the Autoregressive Moving Average (ARMA) model is used, while for non-stationary series, LSTM models are employed to derive abstract features. The final value is obtained by reconstructing the predicted outcomes of each time series.
See main article: Moving-average model. The notation MA(q) refers to the moving average model of order q:
Xt=\mu+\varepsilont+
q | |
\sum | |
i=1 |
\thetai\varepsilont-i
where the
\theta1,...,\thetaq
\mu
Xt
\varepsilont
\varepsilont-1
The notation ARMA(p, q) refers to the model with p autoregressive terms and q moving-average terms. This model contains the AR(p) and MA(q) models,[5]
Xt=\varepsilont+
p | |
\sum | |
i=1 |
\varphiiXt-i+
q | |
\sum | |
i=1 |
\thetai\varepsilont-i.
The general ARMA model was described in the 1951 thesis of Peter Whittle, who used mathematical analysis (Laurent series and Fourier analysis) and statistical inference.[6] [7] ARMA models were popularized by a 1970 book by George E. P. Box and Jenkins, who expounded an iterative (Box–Jenkins) method for choosing and estimating them. This method was useful for low-order polynomials (of degree three or less).[8]
The ARMA model is essentially an infinite impulse response filter applied to white noise, with some additional interpretation placed on it.
In some texts the models will be specified in terms of the lag operator L.In these terms then the AR(p) model is given by
\varepsilont=\left(1-
p | |
\sum | |
i=1 |
\varphiiLi\right)Xt=\varphi(L)Xt
where
\varphi
\varphi(L)=1-
p | |
\sum | |
i=1 |
\varphiiLi.
The MA(q) model is given by
Xt-\mu=\left(1+
q | |
\sum | |
i=1 |
\thetaiLi\right)\varepsilont=\theta(L)\varepsilont,
where
\theta
\theta(L)=1+
q | |
\sum | |
i=1 |
\thetaiLi.
Finally, the combined ARMA(p, q) model is given by
\left(1-
p | |
\sum | |
i=1 |
\varphiiLi\right)Xt=\left(1+
q | |
\sum | |
i=1 |
\thetaiLi\right)\varepsilont,
or more concisely,
\varphi(L)Xt=\theta(L)\varepsilont
or
\varphi(L) | |
\theta(L) |
Xt=\varepsilont.
Some authors, including Box, Jenkins & Reinsel use a different convention for the autoregression coefficients.[9] This allows all the polynomials involving the lag operator to appear in a similar form throughout. Thus the ARMA model would be written as
\left(1-
p | |
\sum | |
i=1 |
\phiiLi\right)Xt=\left(1+
q | |
\sum | |
i=1 |
\thetaiLi\right)\varepsilont.
i=0
\phi0=-1
\theta0=1
p | |
-\sum | |
i=0 |
\phiiLi Xt=
q | |
\sum | |
i=0 |
\thetaiLi \varepsilont.
In digital signal processing, the ARMA model is represented as a digital filter with white noise at the input and the ARMA process at the output.
Finding appropriate values of p and q in the ARMA(p,q) 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. Extended autocorrelation functions (EACF) can be used to simultaneously determine p and q.[10] 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 (AIC) for finding p and q.[11] Another possible choice for order determining is the BIC criterion.
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.
Unlike other methods of regression (i.e. OLS, 2SLS, etc.) often employed in econometric analysis, ARMA model outputs are used primarily for the cases of forecasting time-series data. Their coefficients are then as such only utilized for prediction. Other areas of econometrics look at the causal inference, time-series forecasting using ARMA is not. The coefficients should then only be seen as useful for predictive modelling.
The spectral density of an ARMA process iswhere
\sigma2
\theta
\phi
ARMA is appropriate when a system is a function of a series of unobserved shocks (the MA or moving average part) 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.
The dependence of
Xt
Autoregressive–moving-average models can be generalized in other ways. See also autoregressive conditional heteroskedasticity (ARCH) models and autoregressive integrated moving average (ARIMA) models. If multiple time series are to be fitted then a vector ARIMA (or VARIMA) model may be fitted. If the time-series in question exhibits long memory then fractional ARIMA (FARIMA, sometimes called ARFIMA) 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 (seasonal ARIMA) or a periodic ARMA model.
Another generalization is the multiscale autoregressive (MAR) model. A MAR model is indexed by the nodes of a tree, whereas a standard (discrete time) autoregressive model is indexed by integers.
Note that the ARMA model is a univariate model. Extensions for the multivariate case are the vector autoregression (VAR) and Vector Autoregression Moving-Average (VARMA).
The notation ARMAX(p, q, b) refers to the model with p autoregressive terms, q moving average terms and b exogenous inputs terms. This model contains the AR(p) and MA(q) models and a linear combination of the last b terms of a known and external time series
dt
Xt=\varepsilont+
p | |
\sum | |
i=1 |
\varphiiXt-i+
q | |
\sum | |
i=1 |
\thetai\varepsilont-i+
b | |
\sum | |
i=1 |
ηidt-i.
η1,\ldots,ηb
dt
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" (that is, independent,) variables. Care must be taken when interpreting the output of those packages, because the estimated parameters usually (for example, in R[15] and gretl) refer to the regression:
Xt-mt=\varepsilont+
p | |
\sum | |
i=1 |
\varphii(Xt-i-mt-i)+
q | |
\sum | |
i=1 |
\thetai\varepsilont-i.
mt
mt=c+
b | |
\sum | |
i=0 |
ηidt-i.
Book: Prediction and Regulation. Whittle, P.. English Universities Press. 1963. 0-8166-1147-5.
Republished as: Book: Prediction and Regulation by Linear Least-Square Methods. Whittle, P.. University of Minnesota Press. 1983. 0-8166-1148-3.
Book: Hannan. E. J.. Edward James Hannan. Deistler. Manfred. Statistical theory of linear systems. Wiley series in probability and mathematical statistics. 1988. New York. John Wiley and Sons.