In time series forecasting, the use of covariates refers to incorporating additional external data that might improve the accuracy of predicting future values of a target series. These covariates can be categorized into three main types: past covariates, future covariates, and static covariates. Understanding the differences between these types is critical for effectively utilizing them in forecasting models like those in the Darts library.
Past Covariates
Definition:
Past covariates are variables whose values are known only up to the current time or within the historical timeframe. They provide contextual information about the past that can help explain the behavior of the target series. For example, past values of economic indicators, sales data, or any auxiliary data that have been recorded historically.
Use Case:
- They are particularly useful in scenarios where the past conditions influence the target but do not have predictable future values.
- A model utilizing past covariates would only require these values up until the prediction point, and they are typically used to explain variations that have occurred up to the current observation.
Future Covariates
Definition:
Future covariates are variables whose future values can be predicted or are otherwise known ahead of time. This includes data like planned events, promotional schedules, or forecasted weather conditions.
Use Case:
- These covariates are useful when future conditions are expected to affect the target series, and their values are available or reliably predictable in advance.
- A model incorporating future covariates requires these projections to be available for the entire forecast horizon, thus influencing the predictions directly with known future information.
Static Covariates
Definition:
Static covariates are variables that remain constant throughout the entire period of the dataset. They typically represent fixed attributes or properties related to the time series, such as geographical location, type of product, or properties of sensors.
Use Case:
- These variables help differentiate between different series in a multi-series context by adding context that’s consistent across time.
- They are used mainly for enhancing the model’s understanding of systematic differences or characteristics between different series.
Practical Implications in Darts
In the context of Darts, a library for time series forecasting, these distinctions are operationalized as follows:
-
Past and Future Covariates: Models can explicitly take these as inputs, and the library uses them based on their time alignment. This distinction is crucial because it informs the model during training and inference about the format and availability of data it should expect.
-
Alignment: Darts manages the alignment of these covariates with the target series automatically by utilizing slicing logic based on the time axes. This means that the inherent offsets and different start times of the covariate and target data series are handled within the framework.
-
Error Reduction: By clearly defining covariates as past or future, Darts helps reduce errors stemming from incorrect assumptions about data availability during model inference. This way, users can make informed decisions about which covariates to include, depending on what data will actually be available when making forecasts.
By properly distinguishing and using these types of covariates, forecasters can significantly enhance the predictive performance of their models, tailoring them more closely to the realities of the scenario they are modeling.