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 › 15. Stationarity and unit roots
Econometrics · Lesson 15 of 18

Stationarity, unit roots and spurious regression

Most macroeconomic series trend: GDP, prices, the money stock. Regress one trending series on another and the usual statistics become meaningless, often impressively so. This lesson separates series that return to a fixed level (stationary) from those that wander (unit roots), builds the Dickey-Fuller test, and shows the two ways a regression can mislead: the standard errors and the t table no longer apply to unit-root series, and two unrelated random walks will look strongly related.

← Econometrics moduleLesson 15 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
Given that Zt is a zero-mean white noise process with variance σ², which of the following are I(0) processes? (A) Xt = Xt−1 + Zt; (B) Xt = aXt−1 + Zt where 0 < a < 1; (C) Xt = 2 + Zt; (D) Xt = 8 + Xt−1 + Zt. Options: (1) (C) only; (2) (B) only; (3) (B) and (C) only; (4) (B), (C) and (D) only.
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. Stationarity
  2. The random walk and the unit root
  3. Testing for a unit root
  4. Spurious regression
  5. The opening question, solved
  6. The lesson on one screen
  7. Check yourself
  8. Past papers, by level
01
The idea

Stationarity

A series is weakly (covariance) stationary if three things do not change over time: its mean is constant, its variance is constant, and the covariance between two values depends only on how far apart they are, not on when. It then looks the same wherever you sample it, which is what lets averages over time estimate anything. (Strict stationarity requires the whole distribution to be time-invariant; weak is the usual working definition, and the two coincide for normal series.)

The building block is white noise: uncorrelated draws with zero mean and constant variance σ². An AR(1) series xt = φxt−1 + et with |φ| < 1 is stationary: shocks die out geometrically, the series returns to its mean (zero), and its variance is σ² ÷ (1 − φ²). A constant plus white noise (Xt = 2 + Zt) is stationary around the level 2. A series with a time-varying mean or variance is not.

Stationarity matters because the whole apparatus of regression assumes that sample averages settle down as the sample grows. For a series that does not settle (a trend, a wandering level), they do not, and the t, F and R² statistics of the earlier lessons lose their meaning.

02
Interactive

The random walk and the unit root

Set φ = 1 in the AR(1) and the series stops returning:

The random walk (without and with drift)
yt​=yt−1​+et​=y0​+s=1∑t​es​,Var(yt​)=tσ2;yt​=δ+yt−1​+et​ (with drift)
y₀ is the starting value, δ the drift per period. Each shock is permanent: it enters the level and stays. The variance grows without bound, so the series is not stationary.

A series with a unit root is one whose characteristic root is 1: the random walk, with or without drift. It is integrated of order one, I(1), because differencing it once gives a stationary series: Δyt = et (or δ + et with drift). A stationary series is I(0). Three things to remember:

  • Shocks persist. In a random walk the effect of a shock never fades. In a stationary AR(1) it fades by φ each period.
  • Drift adds a trend. A random walk with drift δ rises by about δ per period on average, plus the wandering.
  • Two kinds of trend. A trend-stationary series is a deterministic trend plus stationary noise: remove the trend and what is left is stationary. A difference-stationary series (a random walk with drift) is stationary only after differencing. Removing a time trend from a difference-stationary series leaves it still wandering. The distinction decides how to detrend, and the tests below tell them apart.

In the lab, put φ at 1 and press “draw a new series” a few times: a random walk has no home, and its Dickey-Fuller statistic falls to the left of the cutoff only about one time in twenty. Pull φ down to 0.7 and the series keeps returning to zero. In between (φ = 0.95) the series is stationary, but the test can rarely tell.

Derive it

Why the Dickey-Fuller statistic does not have a t distribution

We want to show
If yt = yt−1 + et is a random walk, the t statistic for ρ = 1 in yt = ρyt−1 + et converges to a non-normal distribution, shifted to the left of zero, so the usual t table gives the wrong critical values.
  1. 1
    Write the estimation error.

    Least squares on yt = ρyt−1 + et gives

    ρ^​−1=∑yt−12​∑yt−1​et​​

    In a stationary series both sums settle down and the error is a normal ratio of order 1 ÷ √T. That is what the t table assumes.

  2. 2
    Look at what the sums are under a unit root.

    If ρ = 1, yt−1 = e₁ + … + et−1 is a running total of shocks, so it is large and wandering, not stationary. The denominator Σy²t−1 grows like T², and the numerator Σyt−1et equals ½(yT² − Σet2), which grows like T. So the error is of order 1 ÷ T, not 1 ÷ √T: the estimate is superconsistent. And the ratio is not normal: it is a ratio of functionals of Brownian motion, with a skewed distribution whose mass sits to the left of zero (the numerator is ½ (a chi-square minus 1), which is more often negative than positive).

  3. 3
    Simulate it.

    Generate many random walks of 250 observations and compute the t statistic each time. With no constant in the regression, the 5% point of the 4,000 statistics is −1.89; with a constant it is −2.86; with a constant and a trend it is −3.39. These agree with the published Dickey-Fuller table values (about −1.95, −2.86 and −3.41). The statistic averages −0.43, −1.54 and −2.18, far from the 0 that a t distribution would have. Using the normal cutoff of −1.645 would reject a true unit root 9%, 46% and 77% of the time.

Step 1 of 3
So
The null is a unit root, and the test is one-sided: reject (conclude the series is stationary) only if the statistic is below the Dickey-Fuller critical value. The more deterministic terms in the regression, the further left the critical value. That is why papers must say which version of the test they ran.
20406080100120140−5510ty

The series. A random walk wanders and need not return; a stationary series keeps coming back to zero.

−6−5−4−3−2−11230.10.20.30.40.50.6

Horizontal: the Dickey-Fuller t statistic in each of 1500 random-walk samples. The dashed curve is the standard normal. The black dot is this series’ statistic.

The statistic when there is a unit rootNormal 5% cutoff, −1.645Correct 5% cutoff
This series’ Dickey-Fuller statistic−0.61
5% critical value (simulated)−2.8
True unit root rejected if the normal cutoff were used46.2%
Average statistic when there is a unit root−1.53
What it shows

The test’s null is a unit root, so a statistic below the critical value rejects it. Here the statistic is −0.61 against −2.8: cannot reject a unit root. This series is a random walk, so a rejection is a false alarm that happens in about 5% of series. The histogram shows why the ordinary t table is wrong: when the series is a random walk the statistic is not centred on zero (its average is −1.53) and its left tail is long, so using the normal cutoff of −1.645 would wrongly reject 46.2% of true random walks, not 5%. The right cutoff is −2.8.

Pause and predict
In a random walk without drift, a shock of +1 today changes the expected value of the series ten periods ahead by
03
Detection

Testing for a unit root

The Dickey-Fuller (DF) test regresses the change in the series on its lagged level:

The Dickey-Fuller regression
Δyt​=γyt−1​+et​orΔyt​=a+γyt−1​+et​orΔyt​=a+bt+γyt−1​+et​
γ = ρ − 1. H₀: γ = 0, a unit root. H₁: γ < 0, stationary. The t statistic on γ is not compared with the t table. The 5% critical values for a large sample are about −1.95 with no constant, −2.86 with a constant and −3.41 with a constant and trend.
  • The null is a unit root. Rejecting it (a statistic below the critical value) is evidence of stationarity. Failing to reject is not proof of a unit root; the test has low power against persistent stationary series.
  • The augmented Dickey-Fuller (ADF) test adds lagged differences, Δyt−1, Δyt−2, …, on the right to soak up autocorrelation in the errors, with the same critical values. Choose enough lags that the residuals are white noise.
  • Which deterministic terms? Match the form of the series: a trending series needs the constant-and-trend version; a series that fluctuates around a level needs only the constant. The critical value changes with the choice.
  • The KPSS test turns the hypotheses round: its null is stationarity (and the alternative a unit root). The Phillips-Perron and ERS (DF-GLS) tests have a unit root as the null, like ADF. Used together, ADF and KPSS agree when both say stationary or both say unit root, and conflict otherwise.

Real data. India’s log real GDP, 1960 to 2025 (World Bank, read 2026-10-24), is trending steadily upward. The ADF statistic with a constant, a trend and one lagged difference is −1.73, against a simulated 5% critical value of −3.51 for this sample length: cannot reject a unit root. The series in first differences (annual growth) gives −5.65 against −2.92: a clear rejection, so growth is stationary. Log GDP is I(1); its growth rate is I(0). Like all unit-root tests, this one has limited power in 65 annual observations, so the conclusion is “consistent with a unit root”, not “proof”.

Watch out for

The mistakes examiners are fishing for

  • Mixing up the nulls. ADF, DF, Phillips-Perron: the null is a unit root. KPSS: the null is stationarity. A question that asks which test has stationarity as its null is asking for KPSS.
  • Using the normal or t table for the Dickey-Fuller statistic. The statistic is not t distributed under the null, and its critical values are further to the left.
04
Interactive

Spurious regression

Regress one random walk on another that is completely unrelated to it. You would expect a slope near zero and a t statistic that exceeds 2 about one time in twenty. Instead, in the lab’s first setting at 100 observations the t statistic exceeds 1.96 in roughly three samples out of four, the R² is often large, and the Durbin-Watson statistic is tiny: the residuals are themselves a random walk. This is spurious regression (a phenomenon associated with Granger and Newbold). The cause is that with a unit root the sums that make up the t statistic do not settle down, so the t distribution does not apply, and a regression of a trending series on a trending series fits the trends.

y and x are unrelated random walks. Regress y on x. The two series are generated independently, so the true slope is zero.

102030405060708090100−8−6−4−224tvalue

Both series against time. They are independent, yet random walks wander in ways that can look alike.

yx
This sample: t statistic of the slope−7.48
This sample: R²0.361
This sample: Durbin-Watson0.224
Samples with |t| above 1.96 (600 samples)77.2%
Average R²0.254
Average Durbin-Watson0.18
Samples with R² above DW55.8%
What it shows

Two random walks with nothing in common produce a slope that looks significant in 77.2% of samples, not the 5% a t test promises (the average |t| is 5.9), an average R² of 0.25, and a Durbin-Watson statistic near 0.18: the residuals are themselves close to a random walk. This is spurious regression. The Granger-Newbold rule of thumb, suspect a spurious regression when R² exceeds DW, flags only 55.8% of these samples, so it is a warning sign and not a test.

The Granger-Newbold rule of thumb: suspect that a regression is spurious if R² is greater than the Durbin-Watson statistic. A high R² with a low d is the warning sign. The lab shows that it is a signal, not a test: it catches only about half of the spurious regressions. Remedies:

  • Difference the series and regress growth rates (or changes) on each other: the third setting of the lab behaves perfectly. The price is that you lose information about long-run levels.
  • Test for cointegration (lesson 16): two I(1) series can have a genuine long-run relationship, in which case a regression in levels is meaningful, and the residual of the regression is stationary.
  • Add lagged variables or a trend, which can help but is not a general cure.
In economics

This is the sense in which a high R² does not protect a regression (lesson 4) and in which a Durbin-Watson statistic far below 2 (lesson 10) is more than a nuisance for standard errors: it can signal that the whole levels regression is meaningless.

What to say in an exam

A stationary series has constant mean, variance and autocovariances. A random walk has a unit root: shocks are permanent, variance grows, and it is I(1), stationary after one difference. The Dickey-Fuller test has a unit root as its null and uses non-standard critical values; KPSS has stationarity as its null. Regressing one unit-root series on another can give spurious results (high R², low Durbin-Watson, R² above d): difference the series or test for cointegration.

05
Solving the opening question

The opening question, solved

UGC NET December 2023 · hard
Which of (A) Xt = Xt−1 + Zt, (B) Xt = aXt−1 + Zt with 0 < a < 1, (C) Xt = 2 + Zt, (D) Xt = 8 + Xt−1 + Zt are I(0)?
  1. 1
    (A) is a random walk.
    Δx = Z, so one difference makes it stationary: it is I(1), not I(0).
  2. 2
    (B) is a stable AR(1).
    With |a| < 1 it is stationary as it stands: I(0).
  3. 3
    (C) is a constant plus white noise.
    Its mean is 2 and its variance σ², both constant: stationary, I(0).
  4. 4
    (D) is a random walk with drift.
    Δx = 8 + Z is stationary, so the level is I(1). (It trends upwards by 8 a period.)
Answer
(B) and (C) only, which is option 3.
06
Revise

The lesson on one screen

The lesson on one screen
Weak stationarity
Constant mean, constant variance, covariance depending only on the lag.
White noise
Zero mean, constant variance, uncorrelated. The building block.
AR(1)
xₜ = φxₜ₋₁ + eₜ is stationary if |φ| < 1: Var = σ² ÷ (1 − φ²). Shocks fade by φ per period.
Random walk
yₜ = yₜ₋₁ + eₜ: unit root, Var = tσ², shocks permanent, I(1). With drift: yₜ = δ + yₜ₋₁ + eₜ.
I(0), I(1)
I(d): stationary after d differences. A random walk, with or without drift, is I(1).
Dickey-Fuller
Δy on y(t−1), with or without constant and trend. H₀: unit root. Statistic is not t. 5% values about −1.95, −2.86, −3.41. Augment with lagged differences (ADF).
KPSS
Null: stationarity. Alternative: unit root. Phillips-Perron and ERS: null is a unit root.
Spurious regression
Two independent unit-root series regress to a high R², huge t and low DW. Granger-Newbold: suspect it if R² > DW. Difference, or test for cointegration.
07
Practice

Check yourself

0 of 13 correct so far

Compute

The variance of a random walk
yt = yt−1 + et, y₀ = 0, Var(e) = 4. Find Var(y50).
The variance of a stationary AR(1)
xt = 0.6xt−1 + et with Var(e) = 1.28. Find Var(x).
A Dickey-Fuller statistic
The regression yt = ρyt−1 + et gives ρ̂ = 0.95 with standard error 0.03. Find the Dickey-Fuller statistic (ρ̂ − 1) ÷ se. Is it below the 5% critical value of −1.95 (no constant)?
The drift of a series
A series takes the values 10, 12, 11, 15 in four successive periods. Find the average change per period.
Autocorrelation from Durbin-Watson
A regression of one series on another has R² = 0.91 and DW = 0.35. Find the approximate residual autocorrelation ρ̂, and note whether R² exceeds DW.
How fast a shock fades
xt = 0.8xt−1 + et. A shock of 10 hits at time t. What is its effect on x three periods later?
A random walk with drift
yt = 0.5 + yt−1 + et, y₀ = 0. What is E(y20)?
Observations in an ADF regression
A series has 100 observations. An augmented Dickey-Fuller regression with 2 lagged differences is run. How many observations does the regression use?

Quick questions

1The null hypothesis of the Dickey-Fuller test is that the series
2Which test has stationarity as its null hypothesis?
3A random walk is
4A regression of one unit-root series on another, unrelated one will typically show
5The Granger-Newbold rule of thumb says a regression may be spurious when
08
Real questions

Past papers, by level

Standard

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

6 questionsPractise →
All 6 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 Durbin-Watson statistic used in the Granger-Newbold rule is in lesson 10, and the next lesson shows when two unit-root series do have a long-run relationship.

← Lesson 14The linear probability model, logit and probitLesson 16 →AR, MA, VAR, Granger causality and cointegration

Read next

All resources →
EconometricsEconometrics 16: AR, MA, ARMA, VAR, Granger causality and cointegrationAutoregressive and moving-average processes, identification from the ACF and PACF, the Box-Jenkins steps, vector autoregressions and Granger causality, and cointegration with the Engle-Granger test and the error-correction model, with labs and real Indian 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 minEconometricsEconometrics for economics students, from multiple regression to time seriesA module in eighteen lessons, built on data where the truth is known: multiple regression, OLS in matrix form and the Gauss-Markov theorem, t and F tests, R squared, dummies, functional form and specification error, multicollinearity, heteroscedasticity and autocorrelation, endogeneity and instruments, simultaneous equations, panel data, binary outcomes, unit roots, ARMA, VAR and cointegration, then a test atlas that says which test fits which problem and the Delhi School's hardest questions, with graded past papers from every exam.Module · 935 min