Time-Varying Parameter WLS (TVP-WLS)

Econometrics
Introduced by
Cooley & Prescott (1976); Harvey (1990)
Year
1976–1990
Type
Time-varying coefficient regression with observation weights
Family
Econometrics / time series

What does it do?

Time-Varying Parameter WLS is a regression method for time-series data in which the coefficient vector is allowed to change over time, following a state equation rather than being fixed.

Observations are weighted to reflect their reliability or recency. The method combines the state-space evolution of time-varying parameter models with the weighting of weighted least squares.

The intuition behind the method

Standard OLS assumes the coefficients are fixed for the whole sample. Relationships between variables often drift, however: the effect of interest rates on investment in one decade may differ from another. TVP-WLS lets each coefficient follow its own path through time, with the rate of change controlled by the drift variance Q. The weights matter too: giving larger weight to observations judged more reliable or more recent offsets unequal noise across periods. The result is a model whose coefficients can adapt as the data-generating process changes.

History

Cooley and Prescott (1976) studied estimation under stochastic parameter variation in regression, and Harvey (1990) set out such time-varying models in state-space form, estimated with the Kalman filter. Weighted least squares builds on generalised least squares theory.

When to use it

Use TVP-WLS when there are substantive reasons, or diagnostic evidence from parameter-stability tests such as Chow, CUSUM or Nyblom, to expect the regression coefficients to change over the sample. Typical cases are macroeconomic models across policy regimes, financial series spanning structural breaks, and models where observation weights are needed to handle heteroscedasticity. The series should be long enough for the coefficient path to be estimated with some precision, and there should be a clear economic reason to expect drift. Do not use it as a default. If stability tests do not reject constancy, the constant-coefficient special case (Q = 0) is preferred: standard WLS when weights are needed, and OLS or GLS otherwise. Also avoid it when the sample is very short, when the drift is small relative to the noise, or when the timing of a change is known and a structural-break model with those breakpoints is more defensible.

Limitations and considerations

  • The drift variance Q and the initial state of the coefficients must be specified or estimated; with short samples these are weakly identified and results can be sensitive to them.
  • Because each coefficient can move, the model may treat noise as structural change; Q controls this trade-off between tracking genuine drift and smoothing noise.
  • Filtered estimates at a date use only data up to that date, and smoothed estimates use the full sample. When Q is large, however, the coefficient at a given date is identified mainly by nearby observations, so its uncertainty is larger than that of the pooled constant-coefficient estimate.
  • The weighting scheme is an additional modelling choice on top of Q, and different weights can change the coefficient path, so the choice needs justification from the data-generating process.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Lets the coefficients move with the data, so gradual or abrupt change can be tracked without fixing breakpoint dates in advance. Detection depends on Q and the weighting scheme, so noise can be mistaken for drift; when the timing of a change is known, check the result against a structural-break model.
  • Observation weights address unequal error variance and the declining relevance of distant observations within one criterion.
  • Produces a full coefficient path, so the timing and size of drift can be read directly from the estimates.
  • With the drift variance Q set to zero, the model reduces to a constant-coefficient WLS fit, which gives a direct nested comparison.
  • The Kalman-filter form supports sequential updating, so estimates can be refreshed as new observations arrive.

Applications

  • Modelling macroeconomic relationships across monetary or fiscal policy regimes, where the inflation-output trade-off may shift over time.
  • Estimating a possibly time-varying beta in the Capital Asset Pricing Model (CAPM) for financial portfolios.
  • Measuring pass-through from exchange rates to domestic prices, where the pass-through rate may change over time.
  • Real-time forecasting of GDP or inflation with adaptively weighted indicator models.
  • Environmental econometrics, where the effect of pollution controls may change as technology and regulation evolve.

How it works

How it works

1

The outcome y_t is modelled as a linear function of predictors x_t with a coefficient vector β_t that is allowed to differ at each time point. The error variance is σ²/w_t, so a larger observation weight means a smaller error variance: noisier periods receive smaller weights and contribute less to estimation.

Formula
y_t = x_t^{\top}\beta_t + \varepsilon_t, \quad \varepsilon_t \sim (0, \sigma^2 / w_t)
2

The coefficients follow the random-walk transition β_t = β_{t-1} + η_t, where η_t has covariance Q. Q governs how quickly the coefficients can move: when Q is near zero the coefficients stay nearly constant, and larger values allow faster drift.

Formula
\beta_t = \beta_{t-1} + \eta_t, \quad \eta_t \sim (0, Q)
3

At each evaluation date a weighted sum of squared residuals is minimised, with weights w_s on the observations. The weights may reflect the inverse of estimated error variance (for heteroscedasticity), exponential decay that gives recent observations more influence, or external reliability scores. Because a criterion with the same weights at every date yields one constant coefficient vector, the time path must come either from weights that depend on the evaluation date (as in a rolling or kernel window) or from the state recursion described under estimation.

Formula
\hat{\beta}_t = \arg\min \sum_{s=1}^{T} w_s (y_s - x_s^{\top}\beta_t)^2
4

Estimation can use the Kalman filter, which updates the coefficient estimates recursively as each observation arrives, or a rolling or expanding WLS window that re-estimates the coefficients locally in time. In the window version, the weights used at each date depend on the window and on the distance of each observation from that date, so every date receives its own weighted fit.

5

Standard errors for the coefficient path come from the Kalman smoother's posterior variance or, in the window version, from the WLS covariance at each window. Pointwise bands show estimation uncertainty at each date only; they do not test whether a coefficient changes over time. A formal test of constancy, such as a Chow, CUSUM or Nyblom-type test, should be run before concluding that the coefficients drift.

Common pitfalls

  • Setting Q too large relative to the signal, causing coefficients to chase noise and producing implausible swings in estimated effects.
  • Ignoring unit roots or cointegration in the regressors; TVP-WLS does not automatically handle integrated processes and spurious results may arise.
  • Using ad-hoc exponential-decay weights without testing whether simpler down-weighting schemes (rolling window OLS) perform equally well out of sample.
  • Reporting only average or end-of-sample coefficient values and suppressing the time path, which defeats the main purpose of the approach.
  • Neglecting to run parameter-stability tests before adopting TVP-WLS — if coefficients are actually constant, the added complexity brings no benefit.

Frequently asked questions

How is TVP-WLS different from rolling OLS?

Rolling OLS re-estimates a fixed-coefficient model on a moving window and gives all out-of-window data zero weight. TVP-WLS uses the full sample and lets the coefficients evolve through a state equation, so the coefficient path is smooth by construction and its uncertainty comes from the state-space model rather than from separate window fits.

What weights should I use?

Weights should reflect relative reliability of observations. Common choices are inverse-variance weights (if heteroscedasticity is the main concern), exponential decay weights (to discount older data), or frequency-based weights in mixed-frequency settings. The choice should be grounded in the data-generating story, not chosen to maximise fit.

How do I choose the coefficient drift variance Q?

Q can be estimated by maximum likelihood (via the Kalman filter prediction-error decomposition) or by grid search with out-of-sample forecast evaluation. A common diagnostic is a parameter-stability test such as the Nyblom test: if it fails to reject constancy, set Q = 0 and use standard WLS.

Can TVP-WLS handle multiple time-varying coefficients?

Yes. In the Kalman-filter formulation, β_t is a vector and Q is a covariance matrix capturing co-movement of drifting coefficients. Estimation complexity grows with the number of TVP parameters, so restricting some coefficients to be constant is advisable when data are limited.

Does TVP-WLS require stationarity?

TVP-WLS does not impose stationarity by itself. If regressors contain unit roots, you should first test for cointegration or difference the series appropriately. Applying TVP-WLS to I(1) variables without cointegration risks spurious estimation of the time-varying relationship.

Related methods

Sources

  1. Harvey, A. C. (1990). Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press.

    ISBN: 978-0521405737
  2. Cooley, T. F., & Prescott, E. C. (1976). Estimation in the Presence of Stochastic Parameter Variation. Econometrica, 44(1), 167–184.

    Open publication reference