ArticleslgStudy

science

Autoregressive moving-average model

Autoregressive moving-average model is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Autoregressive moving-average model rather than just read about it. In short: In the statistical analysis of time series, an autoregressive–moving-average (ARMA) model is used to represent a (weakly) stationary stochastic process by combining two components: autoregression (AR) and moving average (MA). These models are widely used for analyzing the structure of a series and for forecasting future values.

Key takeaways

  • Autoregressive moving-average model belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Autoregressive moving-average model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Autoregressive moving-average model from memory before moving on to harder problems.

Reference excerpt

In the statistical analysis of time series, an autoregressive–moving-average (ARMA) model is used to represent a (weakly) stationary stochastic process by combining two components: autoregression (AR) and moving average (MA). These models are widely used for analyzing the structure of a series and for forecasting future values. The AR component specifies that the current value of the series depends linearly on its own past values (lags), while the MA component specifies that the current value depends on a linear combination of past error terms. An ARMA model is typically denoted as ARMA(p, q), where p is the order of the autoregressive part and q is the order of the moving-average part. 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. ARMA models can be estimated by using the Box–Jenkins method.

Mathematical formulation

Autoregressive model

The notation AR(p) refers to the autoregressive model of order p. The AR(p) model is written as

Xt=∑i=1pφiXt−i+εt where φ1,…,φp are parameters and the random variable εt is white noise, usually independent and identically distributed (i.i.d.) normal random variables. In order for the model to remain stationary, the roots of its characteristic polynomial must lie outside the unit circle. For example, processes in the AR(1) model with |φ1|≥1 are not stationary because the root of 1−φ1B=0 lies within the unit circle. The augmented Dickey–Fuller test can assesses the stability of an intrinsic mode function and trend components. For stationary time series, the ARMA models can be used, while for non-stationary series, Long short-term memory models can be used to derive abstract features. The final value is obtained by reconstructing the predicted outcomes of each time series.

Moving average model

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

Xt=μ+εt+∑i=1qθiεt−i where the θ1,...,θq are the parameters of the model, μ is the expectation of Xt (often assumed to equal 0), and ε1, ..., εt are i.i.d. white noise error terms that are commonly normal random variables.

ARMA model 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,

Xt=εt+∑i=1pφiXt−i+∑i=1qθiεt−i.

In terms of lag operator In some texts, the models is specified using the lag operator L. In these terms, the AR(p) model is given by

εt=(1−∑i=1pφiLi)Xt=φ(L)Xt where φ represents the polynomial

φ(L)=1−∑i=1pφiLi. The MA(q) model is given by

Xt−μ=(1+∑i=1qθiLi)εt=θ(L)εt, where θ represents the polynomial

θ(L)=1+∑i=1qθiLi. Finally, the combined ARMA(p, q) model is given by

(1−∑i=1pφiLi)Xt=(1+∑i=1qθiLi)εt, or more concisely,

φ(L)Xt=θ(L)εt or

φ(L)θ(L)Xt=εt. This is the form used in Box, Jenkins & Reinsel. Moreover, starting summations from i=0 and setting ϕ0=−1 and θ0=1, then we get an even more elegant formulation: −∑i=0pϕiLiXt=∑i=0qθiLiεt.

Spectrum The spectral density of an ARMA process isS(f)=σ22π|θ(e−if)ϕ(e−if)|2where σ2 is the variance of the white noise, θ is the characteristic polynomial of the moving average part of the ARMA model, and ϕ is the characteristic polynomial of the autoregressive part of the ARMA model.

Fitting models

Choosing p and q An appropriate value of p in the ARMA(p, q) model can be found by plotting the partial autocorrelation functions. Similarly, q can be estimated by using the autocorrelation functions. Both p and q can be determined simultaneously using extended autocorrelation functions (EACF). 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. Another option is the Bayesian information criterion (BIC).

Estimating coefficients After choosing p and q, ARMA models can be fitted by least squares regression to find the values of the parameters which minimize the error term. It is 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. ARMA outputs are used primarily to forecast (predict), and not to infer causation as in other areas of econometrics and regression methods such as OLS and 2SLS.

Software implementations In R, standard package stats has function arima, documented in ARIMA Modelling of Time Series. Package astsa has an improved script called sarima for fitting ARMA models (seasonal and nonseasonal) and sarima.sim to simulate data from these models. Extension packages contain related and extended functionality: package tseries includes the function arma(), documented in "Fit ARMA Models to Time Series"; packagefracdiff contains fracdiff() for fractionally integrated ARMA processes; and package forecast includes auto.arima for selecting a parsimonious set of p, q. The CRAN task view on Time Series contains links to most of these. Mathematica has a complete library of time series functions including ARMA. MATLAB includes functions such as arma, ar and arx to estimate autoregressive, exogenous autoregressive and ARMAX models. See System Identification Toolbox and Econometrics Toolbox for details. Julia has community-driven packages that implement fitting with an ARMA model such as arma.jl. Python has the statsmodelsS package which includes many models and functions for time series analysis, including ARMA. Formerly part of the scikit-learn library, it is now stand-alone and integrates well with Pandas. PyFlux has a Python-based implementation of ARIMAX models, including Bayesian ARIMAX models. IMSL Numerical Libraries are libraries of numerical analysis functionality including ARMA and ARIMA procedures implemented in standard programming languages like C, Java, C# .NET, and Fortran. gretl can estimate ARMA models, as mentioned here GNU Octave extra package octave-forge supports AR models. Stata includes the function arima. for ARMA and ARIMA models. SuanShu is a Java library of numerical methods that implements univariate/multivariate ARMA, ARIMA, ARMAX, etc models, documented in "SuanShu, a Java numerical and statistical library". SAS has an econometric package, ETS, that estimates ARIMA models. See details.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Autoregressive moving-average model

Start with the simplest possible case. Write down what Autoregressive moving-average model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Autoregressive moving-average model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Autoregressive moving-average model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Autoregressive moving-average model

In research
Autoregressive moving-average model appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Autoregressive moving-average model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Autoregressive moving-average model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Autocorrelation, Time series models, so understanding it makes those chapters shorter.
In everyday life
Look for Autoregressive moving-average model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Autoregressive moving-average model” →

How to study Autoregressive moving-average model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Autoregressive moving-average model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Autoregressive moving-average model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Autoregressive moving-average model in simple terms?

In the statistical analysis of time series, an autoregressive–moving-average (ARMA) model is used to represent a (weakly) stationary stochastic process by combining two components: autoregression (AR) and moving average (MA). These models are widely used for analyzing the structure of a series and…

Why does Autoregressive moving-average model matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Autoregressive moving-average model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Autoregressive moving-average model.

Tags

  • Autocorrelation
  • Time series models

Keep exploring