Time-Lagged Regression
Time-lagged regression (also called distributed-lag regression, or finite impulse-response regression) explains an output time series as a weighted sum of present, past, and possibly future values of an input series :
where are lag coefficients, are the maximum future and past lags considered, and is a noise term. With (no future lags) the model is causal; with both it is non-causal and useful only for offline analysis. The infinite version is the population analogue, but in practice only finitely many lags are estimated.Estimation. With lag coefficients, build the design matrix whose row at time is , and run OLS:
When the lag count is large (often the case in neuroscience, economics, audio), becomes ill-conditioned and OLS overfits. Standard remedy: ridge regression or lasso, with the regularization strength chosen by cross-validation.
Connection to filtering. The fitted are the weights of a finite linear filter applied to (see 2.3.4 Linear Filters and Frequency Response); the frequency response describes which frequencies of drive .
Correlated Predictor Lags in a distributed-lag model are far from orthogonal; adjacent columns can have correlation above . OLS standard errors will be large and individual may flip sign run-to-run, even when the sum is stable. Inference on individual lag coefficients is unreliable; inference on aggregate impulse-response shape is what to trust.
Lagged versions of the same series are heavily correlated. The columns of
Intuition
Time-lagged regression is the simplest way to model ” drives with some delay” without committing to a specific dynamical mechanism. Instead of writing a parametric model like an AR or ARMA, the analyst lets the data choose the impulse response: how strongly an impulse in at time shows up in at times . The weights are exactly that impulse response, and their full sequence describes both the shape and the delay of the input-to-output coupling.
The classic example in time-series textbooks is the SOI–Recruitment fish-population data: a climate index () drives a fish-population variable () with a delay of several months, and the distributed-lag fit shows precisely how the response builds and dissipates. The neuroscience example covered in lecture is spectro-temporal receptive field (STRF) estimation: is a sound spectrogram and is the firing rate of an auditory neuron, with the fitted surface describing which sound features at which past times drive the neuron’s response.
Properties
(Equivalence to Filtering) The fitted model can be rewritten , a discrete convolution. The frequency response is the DTFT of .
This is why time-lagged regression is sometimes called finite-impulse-response (FIR) filter identification: from the engineer’s point of view, we are estimating the filter that best maps to . The frequency response is informative diagnostically: a low-pass filter (high gain at low , low gain at high ) means the coupling is dominated by slow components; a band-pass filter localizes the coupling to a specific frequency range.
(OLS Optimality on Whitened Inputs) If is white noise and is white noise independent of , then , so the OLS estimate equals the rescaled sample cross-covariance.
For non-white inputs the OLS estimate is the cross-covariance after pre-whitening both series with the same filter. This is the basis of the standard distributed-lag identification procedure: fit an ARMA to to get its innovations, apply the same filter to , then read off lag coefficients from the cross-correlation of the whitened series.
(Lag Count vs. Sample Size) For OLS to be well-conditioned, the lag count should satisfy , typically as a rule of thumb.
When is comparable to , the design matrix has fewer rows than effective columns, the estimator overfits dramatically, and out-of-sample prediction error explodes. Ridge regression with a CV-tuned penalty extends usable to several hundred even with in the thousands, and is the standard remedy in modern STRF and finance applications.
(Causal vs. Non-Causal Identification) Including future lags () helps detect whether leads (significant negative-lag coefficients) or whether the assumed direction of causality is wrong.
A clean causal coupling shows non-zero at and noise at ; a wrong-direction model shows the mirror pattern. This is a powerful sanity check that pure ARMA modeling lacks. (Causality here is in the engineering sense, the temporal direction of the linear coupling, not Granger causality, which is a related but distinct test.)
(Residual Diagnostics) The residuals should be white. If they are not, the lag count is too short, or there is missing endogenous structure that needs separate ARMA modeling.
A two-stage workflow: (i) fit the distributed-lag model, (ii) fit an ARMA to the residuals to capture any leftover serial correlation. Combined this gives a transfer function (or ARMAX) model: .
(Standard-Error Inflation under Serial Correlation) OLS standard errors are wrong when is autocorrelated; HAC standard errors (Newey-West) or GLS with an estimated noise covariance are needed for valid inference.
The point estimates remain unbiased, but their advertised significance can be wildly wrong if computed naively. In econometric practice, HAC corrections are standard for distributed-lag models; in neuroscience, the inference is often visual (compare to the noise distribution from circularly-shifted permutation tests).
Examples
Climate-driven fish recruitment
Let be the monthly Southern Oscillation Index and be monthly fish recruitment. A distributed-lag fit with monthly lags shows peaking at months and decaying smoothly out to .
Interpret. says some climate effects accumulate over the better part of a year. The shape is a smooth, unimodal impulse response, typical of a low-pass coupling. The fitted frequency response would show a peak near , confirming that low-frequency (slow) variations in drive low-frequency (slow) variations in .
The peak at lag 5 says climate conditions drive fish populations with about a five-month delay, a plausible biological lead time for ENSO-related sea-surface temperature changes to propagate through the food chain to recruitment. The decay tail to
Spectro-temporal receptive field (STRF)
An auditory neuron’s firing rate is regressed on a sound spectrogram across frequency channels and time lags ( ms at Hz).
How is the model parameterized and fit? regressors per output sample. With a typical recording of samples, OLS is feasible but overfits without regularization. Ridge regression with regularization chosen by 5-fold CV is standard. The fitted coefficient surface is the spectro-temporal receptive field: a 2-D plot of frequency vs. lag that shows the neuron's preferred sound feature. Auditory cortical neurons typically show a band-limited preferred frequency (rows of peak at one or two channels) and a ms response delay (columns of peak at ).
The full design has
Diagnosing direction with non-causal lags
You suspect leads but want to be sure. Fit a distributed-lag model with , , a 21-lag fit including 10 future and 10 past lags.
What pattern confirms the causal direction? for (past values of predict ) with for (future values of do not) is consistent with causality. The opposite pattern (significant negative-lag coefficients) would mean : the variables are coupled in the reverse direction, and the model setup was wrong. A symmetric pattern (both significant) suggests bidirectional coupling or a common driver, neither of which the simple distributed-lag model can disentangle.
Significant