Research question

Does a hypothetical leading indicator lead output by three months, and can that relationship be used to forecast? This article uses 144 simulated months to demonstrate cross-correlation, lagged regression and an out-of-sample test. The data are generated with seed 20261030 and are not real data.

Data

Item Value
Sample 144 months
Frequency monthly
Generating process c_t = 0.7c_{t-1} + N(0,1); x_t = c_{t+3} + N(0,0.8); y_t = c_t + N(0,0.8). In the notation N(μ, σ) the second parameter is the standard deviation (1 and 0.8 here), not the variance
r(x_t, y_{t+k}), k = 0…6 0.27, 0.40, 0.55, 0.76, 0.55, 0.42, 0.24
Lagged regression y_{t+3} = a + b x_t b = 0.76 (SE 0.055), t = 13.8, R² = 0.58, n = 141
Fit on 105 pairs, test on 36 out-of-sample R² = 0.54, RMSE 1.05; benchmark RMSE 1.55
r(x_t, y_{t+3}) in the two halves 0.77 and 0.76
License simulated data, no external license

x and y are monthly teaching series in arbitrary simulated units (dimensionless). The number of usable pairs falls as the lag grows, leaving 138 pairs at the longest lag, k = 6.

Method and assumptions

A lag plot scatters a series against itself at a fixed time displacement to check randomness and serial correlation (NIST 1.3.3.15). A cross-correlation is the correlation between x_t and y_{t+k}, where k > 0 means x moves first. Cross-correlations are computed on growth rates to avoid the common trend of level series; seven lags are compared, and the 5% significance threshold is about 0.165 with n = 141 and about 0.167 with 138 pairs. Next, y_{t+3} is regressed on x_t. A forecast claim requires stable coefficients and out-of-sample performance better than a benchmark; lead-lag tests ask whether past values improve prediction, not whether one series causes another.

Results

The correlation peaks at 0.76 at three months and then falls, matching the constructed three-month lead. The regression gives a slope of 0.76, t = 13.8 and R² = 0.58; the slope means y is 0.76 units higher three months later for each one-unit higher x, in simulated units. Estimating on the first 105 pairs and testing on the last 36 yields an out-of-sample R² of 0.54 and RMSE of 1.05, below the benchmark RMSE of 1.55 (the training-period mean). The two half-sample correlations are 0.77 and 0.76, so both halves read the same; note that they come from one simulated path and are not evidence of stability across samples. Every figure above comes from a single run of npm run sim:leads-lags with seed 20261030, and npm run check:sim compares the body against the script output. Re-running the same model over the 400 seeds starting at 20261030 gives a three-month correlation averaging 0.742 (95% range 0.631–0.829) and an out-of-sample R² averaging 0.540 (range 0.194–0.769). The 0.76 and 0.54 reported here fall inside those ranges, so they are typical outcomes of the design rather than a hand-picked draw.

Correlation against the forecast horizon k The horizontal axis is the horizon k from zero to six and the vertical axis is the correlation on a zero baseline, eighteen pixels per 0.1. The seven values are 0.27, 0.40, 0.55, 0.76, 0.55, 0.42 and 0.24, peaking at k equals three before falling again. r(x_t, y_{t+k}) (zero baseline, 18 px per 0.1) peak at k = 3: 0.76 0 1 2 3 4 5 6 lagged regression y_{t+3} = a + b·x_t: b 0.76 (SE 0.055), t 13.8, R² 0.58
Figure 1: the correlation profile across forecast horizons k = 0 to 6 months (zero baseline, 18 pixels per 0.1), peaking at 0.76 for k = 3 and then declining - consistent with the generating process x_t = c_{t+3} + noise, so x leads y by about three months. The peak marks the aligned lead, not a stronger relationship; the series are simulated for teaching.; sample: the article’s own argument; units as stated in the text.

Robustness

  • Seven lags are compared: even with no relationship at all, the chance that at least one looks significant at the 5% level is about 1 - 0.95^7 ≈ 30%. That figure treats the seven tests as independent, and neighbouring lag correlations move together, so the true probability is smaller; either way “a significant lag” is not evidence by itself.
  • Using first differences or lags of two to four months keeps the peak near three months but changes the coefficient and R².
  • One 36-month out-of-sample split cannot establish stability; the model should be re-estimated on a rolling basis with all results reported. Fixing the lag range and the number of tests in advance is more credible than choosing the peak afterwards.

The methodological anchor for the lead-lag test is the 1969 Econometrica paper, which studies causal relations with econometric models and cross-spectral methods and originates this line of testing [3].

Limitations

The simulation imposes the lead, while real lead times vary with the cycle, data revisions and institutions. In-sample R² is not forecast skill, and a leading indicator may only proxy a common shock. Extrapolating beyond the observed range is unreliable (OpenStax 12.5). Real-time forecasting can only use the data as published at the time; a revised history overstates what was knowable then. Nothing here forecasts real asset returns.

Reproduction

  1. Generate the cyclical component and both growth series with the fixed seed.
  2. Compute scatter plots and correlations for k = 0…6.
  3. Estimate y_{t+3} on x_t.
  4. Fit on the first 105 pairs and compute out-of-sample R² and RMSE on the last 36.
  5. Report every lag, subsample and benchmark.
seed = 20261030
c[t] = 0.7*c[t-1] + N(0,1)
x[t] = c[t+3] + N(0,0.8)
y[t] = c[t] + N(0,0.8)
corr(x[t], y[t+k]) for k = 0..6
y[t+3] ~ x[t]; fit 1..105, test 106..141

Strength of conclusions

In the simulation x leads y by three months and the out-of-sample R² is positive, so the result is a predictive association. Without randomisation or an exogenous shock it is not causal; a real forecast would also need release timing, revisions and trading costs.

Related

  • Required prerequisite: Introduction to Linear Regression (RES-013).
  • Related reading: Indexing, Logarithms and Growth Rates (RES-006), Covariance and Correlation (RES-010), Trends, Nonstationarity and Spurious Regression (RES-016).

Figures in plain language

The three figures below check the mechanism, boundary and comparison in this article; labels come from its own sections, not new data.

Leads, Lags and Forecasting: mechanism chain Leads, Lags and Forecasting — three-step structure: problem, mechanism, judgment. Labels come from the article's sections, not new data. Leads, Lags and Forecasting: mechanism chain Labels come from the article's sections; all three steps matter. Problem Cross-correlation and lagged… Cross-correlatio n and lagged regression can describe which series moves… Reproduction Reproduction: 1. Reproduction: 1. Data | Item | Value | | --- | ---: | |… | Item | Value | | --- | ---: | | Sample | 144 months | | Frequency |… Reading order: test the problem, then the mechanism, then whether the judgment overreaches. If a middle step lacks evidence, later conclusions are hypotheses, not facts. Structural illustration, not a new data chart; sample is the article's own argument.
Figure 2: Leads, Lags and Forecasting — mechanism chain: problem, mechanism, judgment. Sample: the article's own argument; units as stated in the text.
Leads, Lags and Forecasting: boundary Separates conditions where the claim holds from those where it fails; a local example is not universal. Leads, Lags and Forecasting: when does it hold? Check the conditions before the conclusion If conditions, definitions or samples change, recompute the conclusion Holds The simulation imposes the lead, while real lead times vary with the cycle, data revisions and institutions.… Fails / rewrite Does a hypothetical leading indicator lead output by three months, and can that relationship be used to… Boundary illustration; sample is the article's own argument; units as stated in the text.
Figure 3: Leads, Lags and Forecasting — boundary: when the claim holds, and when it fails. Sample: the article's own argument; units as stated in the text.
Leads, Lags and Forecasting: object, conditions and common mistakes Three rows compare the concept, its conditions and common mistakes; comparison is not equivalence and does not replace a definition. Leads, Lags and Forecasting: object, conditions and common mistakes at a glance This article Commonly confused Object Cross-correlation and lagged regression… Adjacent concepts / common claims Conditions The simulation imposes the lead… Does a hypothetical leading indicator lead output by three… Check Define first, then compare; never judge labels only Correlation is not causation; a local case is not universal Comparison illustration; sample is the article's own argument; units as stated in the text.
Figure 4: Leads, Lags and Forecasting — comparison of object, conditions and common mistakes. Sample: the article's own argument; units as stated in the text.

Exercises

  1. Why compute cross-correlations on growth rates rather than levels?
  2. Does a correlation of 0.76 prove that x causes y?
  3. What problem arises from testing seven lags at once?
Suggested answers
  1. Level series often share a trend, which can be mistaken for a lead; differencing or growth rates reduce spurious correlation.
  2. No. It shows a lagged association that may come from a common shock or a third variable.
  3. Multiple comparisons: even with no relationship, one lag may look significant; correct for it, pre-specify the lag, or test out of sample.

Sources

  1. NIST/SEMATECH. e-Handbook of Statistical Methods, “1.3.3.15 Lag Plot.” U.S. Government work (public domain). https://www.itl.nist.gov/div898/handbook/eda/section3/lagplot.htm (accessed 2026-10-30)
  2. OpenStax. Introductory Statistics 2e, “12.5 Prediction.” CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/12-5-prediction (accessed 2026-10-30)
  3. Granger, C. W. J. “Investigating Causal Relations by Econometric Models and Cross-Spectral Methods.” Econometrica 37, no. 3 (1969): 424–438. License unknown. https://ideas.repec.org/a/ecm/emetrp/v37y1969i3p424-38.html (accessed 2026-10-30)

Worked demo

Read-through check: can you say three things?

No recitation needed. Tick each sentence below and see whether you can explain the mechanism, one worked example and one boundary in your own words.

Ticked 0 / 3

The numbers are teaching assumptions that show relationships, not forecasts or investment advice.

This article has passed the current publication gate. Factual, calculation and translation revisions update both language versions together.

Back to station