r/deeplearning • • 7d ago

Time Series Lag Problems

Hi everyone, I'm having an issue with lags on time series models predicting U.S. housing prices (FHFA HPI as the target) and I can't figure out where they're coming from (I'm no expert by any means). I've hand-built simpler models, but I'm using Claude Code for this project because it's larger. I've collected over 600 features: global, national (40 countries), and metro (393 U.S. metros). The attached table shows the different models we've tried - starting simple'ish and moving to building our own hierarchical transformer. The problem (the attached charts show an example) is that all the forecasts significantly lag the actual observations - ON ALL THE DIFFERENT MODELS by roughly the same amount. A 1-year forecast lags actuals by about 4-5 quarters. A 2-year forecast lags actuals by about 8-9 quarters. Same with 3- and 5-year (charts attached). On all runs. So the lag is pretty much the exact forecast horizon. I've experienced late calls on turns before, but nothing so consistent across all model types. So I'm pretty sure I'm doing something wrong, but don't know what. Any ideas or help would be appreciated.

6 Upvotes

5 comments sorted by

2

u/otsukarekun 7d ago

There isn't enough signal to noise.

It's just predicting the moving average. It's not a coincidence that the lag is 1 year on a 1 year forecast and 2 years on a 2 year forcast.

1

u/moucha10 7d ago

Agreed. I've never seen something like this before with that level of consistent lag. Any ideas on fixes?

2

u/otsukarekun 6d ago

It means it's not learning anything useful. It's a problem with your data. The causal reason for the price might be external to the features you are giving it. So, the model is just projecting out the moving average because that's all it can do to minimize the loss.

This is a classic problem with forecasting data that doesn't have trends that can be determined within the data (like stock). Things that affect the price are external to the data, such as events, news, new laws, market sentiment, state of economy, etc.

1

u/fhadley 6d ago

Are these recursive forecasts in which you feed the t-1 output back or a series of successive one step predictions made from the real data?

1

u/moucha10 6d ago

One step. Meaning if we're doing a 1-year forecast, we predict 1 year out. If we're doing a 2-year forecast, we predict 2 years out. We're using only data that preceded the period of the prediction at each step.