tensorflow / probability

Probabilistic reasoning and statistical analysis in TensorFlow
https://www.tensorflow.org/probability/
Apache License 2.0
4.16k stars 1.08k forks source link

Support for Future Exogenous Data in STS Forecasting #1722

Open robertpawlowicz1975 opened 1 year ago

robertpawlowicz1975 commented 1 year ago

Hello TensorFlow Probability Team,

I'm using the Structural Time Series (STS) module for time series forecasting, specifically with a model that includes a LinearRegression component for exogenous variables.

Currently, when creating the LinearRegression component, the design_matrix argument requires the exogenous variables to be known both for the observed time series and the future period we want to forecast. This can cause problems in many practical applications, where future exogenous variables are not known at the time of model construction and fitting.

I understand from the documentation and the forecast function's current design that it assumes the structure of the time series (including the regression component) to be the same for the observed and forecast periods. However, this is not always a valid assumption in real-world forecasting tasks, and we might have different exogenous variables for the forecast period.

Therefore, I suggest that the STS forecast function be extended to allow the passing in of new exogenous data for the forecast period. This will provide flexibility to users who have models with exogenous variables and need to generate forecasts with new exogenous data.

Thank you for considering this feature request. I believe it would be a valuable addition to TensorFlow Probability's capabilities for time series forecasting.

Best regards, Robert

mrzaballa commented 2 months ago

Hi there, Any update on this? Best Miguel