Moving-average model explained

Moving-average model should not be confused with Moving average.

In time series analysis, the moving-average model (MA model), also known as moving-average process, is a common approach for modeling univariate time series.[1] [2] The moving-average model specifies that the output variable is cross-correlated with a non-identical to itself random-variable.

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. Contrary to the AR model, the finite MA model is always stationary.

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

Definition

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

Xt=\mu+\varepsilont+\theta1\varepsilont-1++\thetaq\varepsilont-q=\mu+

q
\sum
i=1

\thetai\varepsilont-i+\varepsilont,

where

\mu

is the mean of the series, the

\theta1,...,\thetaq

are the coefficients of the model and

\varepsilont,\varepsilont-1,...,\varepsilont-q

are the 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[3]

Xt=\mu+(1+\theta1B++\thetaq

q)\varepsilon
B
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 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,

\varepsilont-1

appears directly on the right side of the equation for

Xt

. In contrast, in an AR model

\varepsilont-1

does not appear on the right side of the

Xt

equation, but it does appear on the right side of the

Xt-1

equation, and

Xt-1

appears on the right side of the

Xt

equation, giving only an indirect effect of

\varepsilont-1

on

Xt

. Second, in the MA model a shock affects

X

values only for the current period and q periods into the future; in contrast, in the AR model a shock affects

X

values infinitely far into the future, because

\varepsilont

affects

Xt

, which affects

Xt+1

, which affects

Xt+2

, and so on forever (see Impulse response).

Fitting the model

Fitting a moving-average model is generally more complicated than fitting an autoregressive model.[4] This is 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. Moving average models are linear combinations of past white noise terms, while autoregressive models are linear combinations of past time series values.[5] ARMA models are more complicated than pure AR and MA models, as they combine both autoregressive and moving average components.

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 (see Box–Jenkins method).

Autoregressive Integrated Moving Average (ARIMA) models are an alternative to segmented regression that can also be used for fitting a moving-average model.[6]

See also

References

  1. Book: Shumway, Robert H. . Time series analysis and its applications : with R examples . Stoffer . David S. . 19 April 2017 . Springer . 978-3-319-52451-1 . 966563984 . David S. Stoffer.
  2. Web site: 2.1 Moving Average Models (MA models) STAT 510 . 2023-02-27 . PennState: Statistics Online Courses . en.
  3. Book: Box . George E. P. . Time series analysis : forecasting and control . Jenkins . Gwilym M. . Reinsel . Gregory C. . Ljung . Greta M. . 2016 . John Wiley & Sons, Incorporated . 978-1-118-67492-5 . 5th . Hoboken, New Jersey . 53 . en . 908107438.
  4. Web site: Autoregressive Moving Average ARMA(p, q) Models for Time Series Analysis - Part 1 QuantStart . 2023-02-27 . www.quantstart.com.
  5. Web site: Autoregressive Moving Average ARMA(p, q) Models for Time Series Analysis - Part 2 QuantStart . 2023-02-27 . www.quantstart.com.
  6. Schaffer . Andrea L. . Dobbins . Timothy A. . Pearson . Sallie-Anne . 2021-03-22 . Interrupted time series analysis using autoregressive integrated moving average (ARIMA) models: a guide for evaluating large-scale health interventions . BMC Medical Research Methodology . 21 . 1 . 58 . 10.1186/s12874-021-01235-8 . 1471-2288 . 7986567 . 33752604 . free.

Further reading

External links