Exogenous covariates are input variables that originate outside the time series being forecast but help explain its behavior, such as temperature for electricity load, promotions for retail sales or interest rates for loan demand. Also known as external regressors or covariates in forecasting, they are a core concept of time series & forecasting in artificial intelligence and classical statistics alike.
The word exogenous means that the variable is determined independently of the target: the target does not cause it within the model. This assumption separates exogenous covariates from endogenous variables, which influence each other and are usually modeled jointly in multivariate forecasting.
How exogenous covariates enter a forecasting model
A forecasting model with exogenous covariates predicts the target from its own history plus external inputs. In classical statistics, this is written as ARIMAX or as regression with ARIMA errors, where a linear regression on the covariates is combined with an ARIMA process for the residual dynamics. Machine learning models simply add the covariates as extra input features next to lag features and calendar features.
The decisive practical question is when each covariate value is known. Covariates are therefore grouped by their availability at prediction time, as the following table shows.
| Covariate type | Known for the future | Examples |
|---|---|---|
| Known future covariates | Yes, exactly | Holidays, planned promotions, day of week |
| Forecasted covariates | Only as a forecast | Weather, macroeconomic indicators |
| Past-only covariates | No | Competitor sales, sensor readings, web traffic |
| Static covariates | Constant over time | Store size, product category, region |
Deep-learning forecasters such as DeepAR and the Temporal Fusion Transformer accept these groups through separate inputs: past covariates feed only the encoder, while known future covariates also feed the decoder across the forecast horizon.
Exogeneity and the leakage trap
The most common failure with exogenous covariates is look-ahead leakage: training with actual covariate values that would not be available when the real forecast is made. A model trained on observed weather looks excellent in backtests but degrades in production, where it receives weather forecasts with their own error.
Sound practice is to train and backtest with the same information state that production will have. That means using archived forecasts of the covariate when they exist, or at least adding realistic noise, and lagging past-only covariates by at least the forecast horizon.
A second issue is genuine exogeneity. Price is often treated as an external regressor for demand, yet prices are frequently set in response to expected demand. Such feedback loops bias the estimated effect, which matters when the model is used for what-if analysis rather than pure prediction.
Formally, a covariate is strictly exogenous when its values are uncorrelated with the model errors at all leads and lags, and weakly exogenous when this holds only for current and past errors. Pure prediction tolerates weak exogeneity, but scenario planning and causal interpretation require stronger conditions, often supported by instrumental variables, randomized price tests or domain knowledge about how the covariate is set. When exogeneity is doubtful, a vector autoregression that models both series jointly is often the safer choice.
| Symptom | Likely cause | Fix |
|---|---|---|
| Backtest far better than live accuracy | Realized covariates in training | Train on archived forecasts |
| Accuracy collapses at long horizons | Covariate forecast error grows | Limit covariate use by horizon |
| Implausible coefficient signs | Feedback between target and covariate | Model both series jointly |
Support for exogenous covariates across forecasting models
Forecasting methods differ sharply in how naturally they accept covariates. Pure univariate methods ignore them, while regression-style and deep models were built to include them.
| Method | Covariate support | Practical note |
|---|---|---|
| ARIMA (ARIMAX) | Linear regressors | Effects assumed linear and constant |
| ETS model | Not in the standard form | Covariates added through residual regression |
| Prophet | Additional regressors | Future values must be supplied |
| Gradient-boosted trees | Any tabular feature | Captures nonlinear interactions |
| Temporal Fusion Transformer | Static, past and future inputs | Variable selection improves interpretability |
| Time series foundation models | Varies by model | Many early versions are univariate only |
In global forecasting models, trained across thousands of related series, covariates such as price, promotion flags and store attributes often deliver a large share of the accuracy gain over naive baselines, because they explain variation that the history alone cannot.
Selecting and engineering useful covariates
Good covariates have a plausible causal link to the target, reliable data and timely availability. Engineering them carefully usually matters more than the choice of model.
| Situation | Recommended choice | Reason |
|---|---|---|
| Covariate known in advance | Use directly over the horizon | No additional forecast error |
| Covariate needs its own forecast | Use archived or simulated forecasts | Matches production conditions |
| Covariate only observed in the past | Use as lagged feature | Prevents leakage |
| Effect appears with delay | Add distributed lags | Captures delayed response |
| Effect is nonlinear | Use tree or neural models | Linear models misestimate it |
Useful transformations include lagged and rolling versions of the covariate, interaction terms such as temperature by hour of day, and Fourier terms or holiday indicators for calendar effects. Each candidate should be validated with time series cross-validation, comparing accuracy metrics such as MASE with and without it.
Common mistakes with external regressors
- Using realized values of covariates that are only forecastable, which inflates backtest accuracy.
- Ignoring covariate uncertainty, which makes prediction intervals too narrow in probabilistic forecasting.
- Adding many weak covariates, which increases variance and the risk of spurious correlation.
- Assuming stable relationships, although effects such as price elasticity drift over time.
- Forgetting data latency, for example economic indicators published weeks after the reference period.
Monitoring should track both the target and the covariates in production, because a broken weather feed or a changed promotion calendar degrades the forecast even when the model itself is unchanged.
Explained without jargon
Some things are easier to predict when you look beyond their own past. An ice cream shop can study last summer’s sales. It will do better if it also checks the weather forecast. The weather is an exogenous covariate. It comes from outside the sales numbers, but it helps explain them.
There is one catch. The forecast can only use information that is truly available at the moment of prediction. Tomorrow’s real temperature is unknown today. Only the weather forecast is known, and that forecast can be wrong.
A typical use case
A regional electricity grid operator forecasts hourly load for the next 48 hours. Its gradient-boosted model uses the load history plus exogenous covariates: temperature and cloud cover forecasts, a holiday calendar, the hour of day and school vacation flags. Temperature is the strongest driver, because heating and cooling demand rise sharply outside a comfortable band.
In the first version, the team trained on measured temperatures and saw excellent backtests, but live errors were clearly higher. After retraining on archived weather forecasts issued 24 to 48 hours ahead, the backtest accuracy dropped slightly yet now matched production performance. The operator gained reliable error estimates for scheduling reserve generation.