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.
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.
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.
Set φ = 1 in the AR(1) and the series stops returning:
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:
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.
Least squares on yt = ρyt−1 + et gives
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.
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).
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.
The series. A random walk wanders and need not return; a stationary series keeps coming back to zero.
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 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.
The Dickey-Fuller (DF) test regresses the change in the series on its lagged level:
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”.
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.
Both series against time. They are independent, yet random walks wander in ways that can look alike.
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:
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.
Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.
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.