From Surf Wiki (app.surf) — the open knowledge base
Moving-average model
Time series model
Time series model
In time series analysis, the moving-average model (MA model), also called the moving-average process, is a standard approach for modeling univariate time series.
An MA model expresses the current value of a time series as a linear function of current and past random shocks (error terms) with finite lag length. In contrast to an autoregressive model, which regresses the variable on its past values, the moving-average model relies solely on the dependency structure of the error terms.
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:
: 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 \mu is the mean of the series, the \theta_1,...,\theta_q are the coefficients of the model and \varepsilon_t, \varepsilon_{t-1},..., \varepsilon_{t-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
: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 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, \varepsilon {t-1} appears directly on the right side of the equation for X_t. In contrast, in an AR model \varepsilon {t-1} does not appear on the right side of the X_t equation, but it does appear on the right side of the X{t-1} equation, and X{t-1} appears on the right side of the X_t equation, giving only an indirect effect of \varepsilon_{t-1} on X_t. 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 \varepsilon t affects X_t, which affects X{t+1}, which affects X_{t+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. 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. 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.
References
References
- (2017). "Time Series Analysis and Its Applications: With R Examples". Springer.
- "2.1 Moving Average Models (MA models)".
- (2019-05-17). "ARIMA Models". Chapman and Hall/CRC.
- Shumway, Robert H.. (19 April 2017). "Time series analysis and its applications : with R examples". Springer.
- (2016). "Time series analysis : forecasting and control". John Wiley & Sons, Incorporated.
- "Autoregressive Moving Average ARMA(p, q) Models for Time Series Analysis - Part 1 {{!}} QuantStart".
- "Autoregressive Moving Average ARMA(p, q) Models for Time Series Analysis - Part 2 {{!}} QuantStart".
- (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.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Moving-average model — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report