Exogenous covariates

Also known as: external regressors · covariates in forecasting

On this page 7

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 typeKnown for the futureExamples
Known future covariatesYes, exactlyHolidays, planned promotions, day of week
Forecasted covariatesOnly as a forecastWeather, macroeconomic indicators
Past-only covariatesNoCompetitor sales, sensor readings, web traffic
Static covariatesConstant over timeStore size, product category, region
Types of covariates by availability at forecast time

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.

SymptomLikely causeFix
Backtest far better than live accuracyRealized covariates in trainingTrain on archived forecasts
Accuracy collapses at long horizonsCovariate forecast error growsLimit covariate use by horizon
Implausible coefficient signsFeedback between target and covariateModel both series jointly
Leakage symptoms and their usual causes

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.

MethodCovariate supportPractical note
ARIMA (ARIMAX)Linear regressorsEffects assumed linear and constant
ETS modelNot in the standard formCovariates added through residual regression
ProphetAdditional regressorsFuture values must be supplied
Gradient-boosted treesAny tabular featureCaptures nonlinear interactions
Temporal Fusion TransformerStatic, past and future inputsVariable selection improves interpretability
Time series foundation modelsVaries by modelMany early versions are univariate only
How common forecasting methods handle covariates

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.

SituationRecommended choiceReason
Covariate known in advanceUse directly over the horizonNo additional forecast error
Covariate needs its own forecastUse archived or simulated forecastsMatches production conditions
Covariate only observed in the pastUse as lagged featurePrevents leakage
Effect appears with delayAdd distributed lagsCaptures delayed response
Effect is nonlinearUse tree or neural modelsLinear models misestimate it
Decision guide for candidate covariates

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.