Moving-Average Models

Since AR models only look back over a finite number of samples, they need time to adjust to unexpected shocks in a time series. You must model past instances of the input noise to handle unforeseen shocks. Moving average (MA) models can be used for this purpose. Read this article to learn the general structure of the MA model.

In time series analysis, the moving-average model (MA model), also known as the moving-average process, is a common approach for modeling univariate time series. The moving-average model specifies that the output variable depends linearly on the current and various past values of a stochastic (imperfectly predictable) term.

Together with the autoregressive (AR) model, the moving-average model is a special case and key component of the more general ARMA and ARIMA models of time series, which have a more complicated stochastic structure.

The moving-average model should not be confused with the moving average, a distinct concept despite some similarities.

Contrary to the AR model, the finite MA model is always stationary.


Definition

The notation MA(q) refers to the moving average model of order q:

\displaystyle X_{t}=\mu +\varepsilon _{t}+\theta _{1}\varepsilon _{t-1}+\cdots +\theta _{q}\varepsilon _{t-q}=\mu +\sum _{i=1}^{q}\theta _{i}\varepsilon _{t-i}+\varepsilon _{t},

where  \displaystyle \mu is the mean of the series, the \displaystyle \theta _{1},...,\theta _{q} are the parameters of the model and the \displaystyle \varepsilon _{t},\varepsilon _{t-1},...,\varepsilon _{t-q} are white noise error terms. The value of q is called the order of the MA model. This can be equivalently written in terms of the backshift operator B as

\displaystyle X_{t}=\mu +(1+\theta _{1}B+\cdots +\theta _{q}B^{q})\varepsilon _{t}

Thus, a moving-average model is conceptually a linear regression of the current value of the series against current and previous (observed) white noise error terms or random shocks. The random shocks at each point are assumed to be mutually independent and to come from the same distribution, typically a normal distribution, with a location at zero and constant scale.


Interpretation

The moving-average model is essentially a finite impulse response filter applied to white noise, with some additional interpretation placed on it. The role of the random shocks in the MA model differs from their role in the autoregressive (AR) model in two ways. First, they are propagated to future values of the time series directly: for example, \displaystyle \varepsilon _{t-1} appears directly on the right side of the equation for \displaystyle X_{t}. In contrast, in an AR model \displaystyle \varepsilon _{t-1} does not appear on the right side of the \displaystyle X_{t} equation, but it does appear on the right side of the \displaystyle X_{t-1} equation, and \displaystyle X_{t-1} appears on the right side of the \displaystyle X_{t} equation, giving only an indirect effect of \displaystyle \varepsilon _{t-1} on \displaystyle X_{t}. Second, in the MA model a shock affects \displaystyle X values only for the current period and q periods into the future; in contrast, in the AR model a shock affects \displaystyle X values infinitely far into the future, because \displaystyle \varepsilon _{t} affects \displaystyle X_{t}, which affects \displaystyle X_{t+1}, which affects \displaystyle X_{t+2}, and so on forever.


Fitting the model

Fitting the MA estimates is more complicated than it is in autoregressive models (AR models) because the lagged error terms are not observable. This means that iterative non-linear fitting procedures need to be used in place of linear least squares.

The autocorrelation function (ACF) of an MA(q) process is zero at lag q + 1 and greater. Therefore, we determine the appropriate maximum lag for the estimation by examining the sample autocorrelation function to see where it becomes insignificantly different from zero for all lags beyond a certain lag, which is designated as the maximum lag q.

Sometimes the ACF and partial autocorrelation function (PACF) will suggest that an MA model would be a better model choice, and sometimes, both AR and MA terms should be used in the same model.


Source: Wikipedia, https://en.wikipedia.org/wiki/Moving-average_model
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.

Last modified: Wednesday, September 28, 2022, 3:20 PM