Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › Econometrics › 16. ARMA, VAR and cointegration
Econometrics · Lesson 16 of 18

AR, MA, VAR, Granger causality and cointegration

The last lesson of the time-series part builds the models. A series can be explained by its own past (autoregressive), by past shocks (moving average), or by the past of other series (a vector autoregression), and unit-root series that share a trend can have a long-run relationship that corrects its own deviations (cointegration). We learn to read the ACF and PACF, to test whether one series helps predict another, and to tell a genuine long-run link from a spurious one.

← Econometrics moduleLesson 16 of 18 · about 55 minutes
1Multiple regression2Matrix form and Gauss-Markov3t and F tests4R² and adjusted R²5Dummies and interactions6Functional forms7Misspecification8Multicollinearity9Heteroscedasticity10Autocorrelation11Instrumental variables12Simultaneous equations13Panel data14Logit and probit15Unit roots16ARMA, VAR and cointegration17Test Atlas18Hard problems
A question to hold on to
For a VAR model estimated using two variables X and Y, lags of Y are jointly significant in the equation for X, but lags of X are jointly insignificant in the equation for Y. What can you conclude? (A) There is no Granger causality between X and Y. (B) There is bidirectional Granger causality between X and Y. (C) X Granger causes Y but Y does not Granger cause X. (D) Y Granger causes X but X does not Granger cause Y.
UGC NET December 2023Solved at the end ↓
New here?What is the Ashanagar survey?The invented household survey behind this page's examples: 600 households, generated from a model whose true coefficients we publish.

The Ashanagar survey is invented. The statistics modules used one district of 60 households. Econometrics needs more households and more variables, so this is a new, larger survey of 600 households in the same imaginary district: income, spending, household size, whether the household is in the town or a village, the head’s schooling and earnings.

Because we wrote the data-generating process, we know the true answers, and every lab can show whether a regression recovers them. Household spending, in thousands of rupees a month, was generated as 1 + 0.45 × income + 0.9 × household size + 1.5 × town + an error with standard deviation 2.5. A real survey never tells you its true coefficients. This one does, so you can see how close an estimate comes.

It also holds a variable, the head’s ability, that a real survey could not observe. It is kept so that the lessons on omitted variables can show what happens when it is left out. Every figure here is illustrative, not official statistics.

Households
600
Share in the town
41%
Mean monthly income
₹15.4 thousand
Mean monthly spending
₹12.6 thousand
Mean schooling of the head
8.2 years

How the module uses it →

In this guide
Lesson · about 55 minutes
  1. AR, MA and ARMA processes
  2. Reading the ACF and PACF
  3. VAR and Granger causality
  4. Cointegration and error correction
  5. The opening question, solved
  6. The lesson on one screen
  7. Check yourself
  8. Past papers, by level
01
The models

AR, MA and ARMA processes

Let et be a purely random (white-noise) process. Three families of stationary models:

  • Autoregressive, AR(p): the series depends on its own past, xt = α₁xt−1 + … + αpxt−p + et. The current value carries the whole past, through the lags.
  • Moving average, MA(q): the series is a weighted sum of the current and past shocks, xt = β₀et + β₁et−1 + … + βqet−q. A shock matters for q periods and then disappears. (Not to be confused with the moving average used to smooth data.)
  • ARMA(p, q): both. A low-order ARMA often describes a series with far fewer parameters than a long AR or MA.

An AR(p) is stationary when the roots of its characteristic equation lie outside the unit circle (for AR(1): |φ| < 1; for AR(2): φ₁ + φ₂ < 1, φ₂ − φ₁ < 1 and |φ₂| < 1). A finite MA is always stationary. An ARIMA(p, d, q) model fits an ARMA(p, q) to a series after differencing it d times, which is how a unit-root series is modelled. The mean of xt = c + φxt−1 + et is c ÷ (1 − φ).

Derive it

The autocorrelations of an AR(1) and an MA(1)

We want to show
An AR(1) xt = φxt−1 + et has autocorrelations φh that decay geometrically. An MA(1) xt = et + θet−1 has a first autocorrelation θ ÷ (1 + θ²) and zero autocorrelations beyond lag 1.
  1. 1
    AR(1): variance, then covariances.

    Taking the variance of both sides of xt = φxt−1 + et, with xt−1 unrelated to et and a stable process (|φ| < 1):

    γ0​=φ2γ0​+σ2 ⇒ γ0​=1−φ2σ2​

    Multiplying the equation by xt−h and taking expectations, the covariance at lag h is φ times the covariance at lag h − 1, so γh = φhγ₀ and

    ρh​=φh
  2. 2
    MA(1): only one shock overlaps.

    xt = et + θet−1 has variance (1 + θ²)σ². xt and xt−1 share one shock, et−1, so their covariance is θσ². xt and xt−2 share no shock, so their covariance is zero:

    ρ1​=1+θ2θ​,ρh​=0  (h≥2)

    The first autocorrelation of an MA(1) cannot exceed ½ in absolute value, whatever θ.

  3. 3
    Check on 20,000 simulated observations.

    For φ = 0.7 the theory gives 0.700, 0.490 and 0.343; the sample autocorrelations of a simulated AR(1) are 0.699, 0.481, 0.328. For θ = 0.7 the theory gives ρ₁ = 0.7 ÷ 1.49 = 0.47 and zero after; the simulated MA(1) gives 0.469, −0.005, −0.004.

Step 1 of 3
So
This is the identification rule behind the Box-Jenkins method: an ACF that cuts off after lag q points to an MA(q); a PACF that cuts off after lag p points to an AR(p); both tailing off points to a mixed ARMA.
02
Interactive

Reading the ACF and PACF

Which model fits a series? The autocorrelation function (ACF) plots the correlation of the series with itself at each lag. The partial autocorrelation function (PACF) plots the correlation at lag k after removing the effect of the shorter lags. Their shapes are the fingerprints:

ProcessACFPACF
AR(p)Tails off (decays gradually, possibly with oscillation)Cuts off after lag p
MA(q)Cuts off after lag qTails off
ARMA(p, q)Tails offTails off
White noiseNo significant lagsNo significant lags

Try each of the five in the lab and compare the bars with the table, then lengthen the series to sharpen the pattern. The dashed lines are approximate 95% bands (±1.96 ÷ √n): a bar outside is significantly different from zero, and one in twenty bars will be outside by chance.

20406080100120140160180−3−2−1123tx
2468101214−1−0.50.51lag

The ACF: the correlation of the series with itself k periods back. Dark bars lie outside the 95% band.

2468101214−1−0.50.51lag

The PACF: the correlation at lag k after the shorter lags have been taken out.

ACF: lags outside the band at the start6
PACF: lags outside the band at the start1
First autocorrelation, ρ₁0.704
Theory: ρ₁ = φ, ρ₂ = φ²0.7, 0.49
What it shows

An autoregressive process has a PACF that cuts off after lag 1 (here 1 lag outside the band at the start) while its ACF decays gradually towards zero (6 lags outside the band). Each value depends on a few past values, and through them on all of history, so the correlations fade smoothly.

The practical method, due to Box and Jenkins, has four steps: identify a tentative model from the ACF and PACF (after differencing if there is a unit root); estimate its parameters; diagnose by checking that the residuals are white noise, for example with the Ljung-Box statistic Q = n(n + 2) Σ rk² ÷ (n − k), chi-square under the null of no autocorrelation up to the chosen lag; and forecast. When several models fit, an information criterion (AIC or BIC, lesson 4) chooses between them.

Pause and predict
A series has a PACF that is significant at lags 1 and 2 only, and an ACF that decays gradually. Which model is suggested?
03
More than one series

VAR and Granger causality

A vector autoregression (VAR) treats several series symmetrically: each variable is regressed on lags of itself and of all the others, with no variable assumed exogenous in advance. For two variables x and y, a VAR(1) is

A two-variable VAR(1)
yt​=a1​+b11​yt−1​+b12​xt−1​+u1t​,xt​=a2​+b21​yt−1​+b22​xt−1​+u2t​
Every right-hand variable is a lag, so every equation can be estimated by OLS. The number of lags is chosen by an information criterion or by testing.

Granger causality. x Granger-causes y if past values of x help predict y beyond what past values of y already give. In the VAR it is an F test that all the lags of x are jointly zero in the equation for y: if rejected, x Granger-causes y. Testing both ways: lags of Y significant in X’s equation, and lags of X insignificant in Y’s, means Y Granger-causes X and X does not Granger-cause Y (the opening question). Two-way significance is bidirectional causality (feedback), and none is no Granger causality.

The name is misleading. Granger causality is about predictive content and timing, not about causes. A variable that moves first because people anticipate something (stock prices before earnings, Christmas cards before Christmas) predicts without causing. It also depends on the lag length and on which other variables are in the model.

Real data. For India’s annual growth rates of private consumption and GDP (65 observations, 1961 to 2025), a one-lag Granger test of whether GDP growth helps predict consumption growth gives F = 0.05 (p = 0.82), and whether consumption growth helps predict GDP growth F = 0.6 (p = 0.44). Neither is significant: in annual data the two move together within the same year, and the previous year’s growth adds nothing. That is no statement about whether consumption drives output or the other way round.

Watch out for

The mistakes examiners are fishing for

  • Reading Granger causality as causation. It is a statement about forecasting, within a particular model.
  • Running a Granger test on unit-root series in levels. The F statistic has the spurious-regression problem. Difference the series (or use an error-correction form if they are cointegrated).
04
Interactive

Cointegration and error correction

Lesson 15 warned that regressing one I(1) series on another is spurious. There is one exception, and it is the most important idea in applied macroeconometrics. Two I(1) series are cointegrated if some linear combination of them is stationary: each wanders, but they wander together, and the gap between them keeps returning to a fixed level. Consumption and income, prices at home and abroad adjusted for the exchange rate, short and long interest rates: theory says such pairs are tied together in the long run. The test is a two-step recipe, due to Engle and Granger:

  1. Check that both series are I(1) (the Dickey-Fuller test of lesson 15).
  2. Regress one on the other in levels, yt = a + βxt + ut, and test the residuals for a unit root. If they are stationary, the series are cointegrated, and β is the long-run relationship (the estimator is, remarkably, superconsistent).

The residual test uses its own critical values, more negative than Dickey-Fuller’s, because the regression has already chosen the line that makes the residuals look as stationary as it can. The lab computes them by simulation. Try the two settings: with a cointegrated pair the residual hugs zero and the statistic is far below the cutoff; with two unrelated random walks it wanders and the test rightly fails to reject.

x is a random walk and y = 1 + 2x + u. In the first case u is stationary with the persistence set below; in the second it is another random walk. The true long-run slope is 2.

102030405060708090100−551015tvalue

y (blue) and x (gold). Both wander; whether they wander together is the question.

102030405060708090100−2−112tresidual

The residual of y regressed on x: the gap. If it returns to zero, the series are cointegrated.

Estimated long-run slope (truth 2)1.99
Engle-Granger statistic of the residual−6.05
5% critical value (simulated for independent walks)−3.37
Error-correction coefficient (speed of adjustment)−0.544
Samples where cointegration is detected (800)100%
What it shows

The residual has an Engle-Granger statistic of −6.05 against the 5% cutoff −3.37: reject no cointegration, the gap looks stationary. The series really are cointegrated, and the test finds it in 100% of samples at this length and persistence. The error-correction coefficient −0.54 is the share of last period's gap that is closed this period: a negative number, because the gap pulls y back.

Cointegration implies an error-correction model (ECM): the short-run changes of y respond to the last period’s deviation from the long-run relationship, which pulls y back towards it:

The error-correction model
Δyt​=γΔxt​+α(yt−1​−βxt−1​)+et​
The term in brackets is the gap from the long-run relationship. α is the speed of adjustment: negative, between −1 and 0, the share of the gap closed each period. Every term is stationary, so the regression is not spurious.

Real data. India’s log consumption on log GDP, 1960 to 2025 (World Bank, read 2026-10-24): the long-run slope is 0.88 and the Engle-Granger statistic of the residual is −1.21, against a simulated 5% critical value of −3.43 for independent walks of this length. We cannot reject no cointegration. The error-correction coefficient is −0.072 (t = −1.4), a small and insignificant speed of adjustment. This is a sober result: theory says consumption and income are tied together, but 65 annual observations are few for a test that has low power against a gap as persistent as this one (the residual’s autocorrelation is about 0.94, lesson 10), and nothing here shows the pair is cointegrated. The honest summary is “no evidence of cointegration in these data”, not “proof that they are unrelated”.

In economics

Where ADF and cointegration tests disagree with theory, resist the urge to pick the outcome you expect. The tests have low power in the sample sizes macroeconomists have, and different specifications (adding a trend, a structural break, more lags) can change the verdict. What survives is a clear statement of what was tested and what was found.

What to say in an exam

An AR(p) has a PACF that cuts off after p and an ACF that tails off; an MA(q) the reverse. A VAR regresses each variable on lags of all. x Granger-causes y if lags of x improve the prediction of y; it is about prediction, not causation. Two I(1) series are cointegrated if a combination is stationary; test by running the levels regression and testing its residuals for a unit root (Engle-Granger), and model them with an error-correction mechanism.

05
Solving the opening question

The opening question, solved

UGC NET December 2023 · hard
In a two-variable VAR, lags of Y are jointly significant in the equation for X, but lags of X are jointly insignificant in the equation for Y. What follows?
  1. 1
    Define the direction of the test.
    Y Granger-causes X if past Y helps predict X: that is a test that the lags of Y are zero in the equation for X.
  2. 2
    Apply it both ways.
    The lags of Y are significant in X’s equation: Y Granger-causes X. The lags of X are insignificant in Y’s equation: X does not Granger-cause Y.
  3. 3
    Pick the option.
    One direction only, from Y to X. Option C reverses it; B needs both; A needs neither.
Answer
(D) Y Granger-causes X, but X does not Granger-cause Y. (As always, “causes” means “helps predict”.)
06
Revise

The lesson on one screen

The lesson on one screen
AR(p)
xₜ = α₁xₜ₋₁ + … + αₚxₜ₋ₚ + eₜ. Stationary if the roots are outside the unit circle (AR(1): |φ| < 1). Mean c ÷ (1 − φ).
MA(q)
xₜ = β₀eₜ + … + β_q eₜ₋q. Always stationary. A shock lasts q periods.
ARMA, ARIMA
Both. ARIMA(p, d, q): ARMA after d differences.
Fingerprints
AR(p): PACF cuts off after p, ACF tails off. MA(q): ACF cuts off after q, PACF tails off. ARMA: both tail off.
Box-Jenkins
Identify, estimate, diagnose (Ljung-Box on residuals), forecast. AIC or BIC to choose between models.
VAR
Each variable on lags of all. OLS equation by equation.
Granger causality
Lags of x jointly significant in y's equation (F test). About prediction, not causation. Use stationary series.
Cointegration
I(1) series with a stationary combination. Engle-Granger: levels regression, then a unit-root test on the residuals with its own critical values. ECM: Δy on Δx and the lagged gap; the gap's coefficient is negative.
07
Practice

Check yourself

0 of 13 correct so far

Compute

An AR(1) autocorrelation
An AR(1) has φ = 0.8. Find the autocorrelation at lag 2.
An MA(1) autocorrelation
An MA(1) xt = et + 0.5et−1. Find the first autocorrelation.
The variance of an MA(1)
xt = et + 0.5et−1 with Var(e) = 4. Find Var(x).
The mean of an AR(1)
xt = 2 + 0.6xt−1 + et. Find the long-run mean of x.
A Granger-causality F
y is regressed on 2 lags of itself (restricted: residual sum of squares 90), then on 2 lags of itself and 2 lags of x (unrestricted: 80), using 64 observations. The unrestricted model has 5 coefficients. Find the F statistic for Granger non-causality.
An error-correction step
Δyt = 0.5Δxt − 0.3(yt−1 − 2xt−1). Last period y = 10 and x = 4, and x rises by 1. Find Δy.
The Ljung-Box statistic
A residual series of n = 100 has autocorrelations r₁ = 0.2 and r₂ = 0.1. Find the Ljung-Box Q for 2 lags. (The 5% chi-square critical value for 2 df is 5.99.)
How much of the gap remains
An error-correction model has a speed of adjustment of −0.3. After a one-off deviation from the long-run relationship, what share of the gap remains after three periods (if nothing else changes)?

Quick questions

1For an MA(2) process, the ACF
2x Granger-causes y if
3Two I(1) series are cointegrated if
4Cointegration is tested by
5In an AR(p) process the PACF
08
Real questions

Past papers, by level

Standard

Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.

3 questionsPractise →
All 3 past-paper questions for this lesson, easiest first: practise the full set →

✦These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.

The questions matching tests with their purposes (Ljung-Box, Engle-Granger, Granger) are collected in the test atlas at the end of the module. For the unit-root tests that come before cointegration, see lesson 15.

← Lesson 15Stationarity, unit roots and spurious regressionLesson 17 →Which test? The Test Atlas

Read next

All resources →
EconometricsEconometrics 17: which test? Durbin-Watson, White, Hausman, Chow, Jarque-Bera and every other test, on one pageThe Test Atlas: for each econometric test the problem it looks for, its null hypothesis, its distribution, how to decide and what to do next, with a filter, match-the-list and symptom drills, the Chow test and Jarque-Bera in a lab, and the steps of econometric methodology.Complete guide · 40 minEconometricsEconometrics 15: stationarity, unit roots, Dickey-Fuller and spurious regressionWeak stationarity and white noise, the random walk with and without drift, I(0) and I(1), the Dickey-Fuller and augmented Dickey-Fuller tests (null: unit root) against KPSS (null: stationary), spurious regression and the Granger-Newbold rule, with labs and real Indian GDP data.Complete guide · 55 minEconometricsEconometrics 10: autocorrelation, Durbin-Watson, Breusch-Godfrey and remediesAR(1) errors, what serial correlation breaks, the Durbin-Watson statistic as about 2(1 minus rho) with its decision zones, Breusch-Godfrey, Cochrane-Orcutt and Prais-Winsten, the lagged dependent variable problem, and a real consumption function for India.Complete guide · 50 min