Forecast horizon

Also known as: prediction horizon

On this page 7

The forecast horizon, also called the prediction horizon, is the number of future time steps for which a forecasting model produces predictions, counted from the forecast origin, the last observed point. In time series & forecasting work within artificial intelligence, the horizon is usually written as h, so a daily model with h = 14 predicts the next two weeks.

The horizon is a design decision driven by the business need, not a property of the data. It determines which features are available, which multi-step strategy is feasible, how uncertainty is reported and how the model must be evaluated. As a rule, forecast error grows with the horizon, because each additional step adds unknown shocks that the model cannot anticipate.

How the forecast horizon is defined

A forecast is fully specified by three quantities: the forecast origin t, the horizon h and the sampling frequency of the series. A prediction for time t + h is called an h-step-ahead forecast, and a model that outputs all steps from 1 to h at once produces a forecast trajectory or path.

Practitioners distinguish the horizon from related intervals. The lead time is the delay between making a forecast and acting on it, and a forecast is useless if its horizon is shorter than the lead time. The lookback window or context length is the amount of history the model reads, and it is a separate hyperparameter. A forecast gap sometimes separates the origin from the first relevant step when data arrives late.

The table below lists the terms that frame a forecasting task.

QuantityMeaningTypical example
Forecast originLast observed time stepMidnight on Sunday
Horizon hNumber of steps predicted7 daily steps
Lookback windowHistory length the model reads90 days
Lead timeDelay before acting on a forecast3 days for restocking
Update frequencyHow often new forecasts are issuedEvery morning
Quantities that define a forecasting task

Short, medium and long horizons

Horizon length is relative to the sampling frequency and the decision. Twenty-four steps is short for hourly electricity load but long for monthly sales. Still, practitioners commonly group horizons into three bands, each dominated by different signals and methods.

Horizon bandDominant signalTypical decisionsSuitable approaches
Very short and shortRecent values, autocorrelationDispatch, staffing, tradingLag features, ARIMA, nowcasting
MediumSeasonality and calendar effectsInventory, promotions, rostersETS, gradient boosting, deep forecasters
LongTrend and structural driversCapacity, budgets, strategyTrend models, scenarios, causal drivers
Horizon bands and their characteristics

At short horizons, the latest observations carry most of the information, so simple models are hard to beat. At long horizons, recent noise fades and forecasts converge toward trend and seasonal structure; beyond the range where the data contains useful signal, a model adds little over a seasonal naive forecast.

How the horizon shapes model design

Any horizon greater than one requires a multi-step forecasting strategy. The recursive strategy trains a one-step model and feeds its own predictions back as inputs, which is simple but lets errors accumulate along the path. The direct strategy trains a separate model for each step, avoiding feedback errors at the cost of h models and possibly inconsistent paths. Multi-output models, including most neural forecasters such as N-BEATS, DeepAR in its sampling form and the Temporal Fusion Transformer, emit the whole horizon in one pass.

The horizon also restricts feature availability. A lag feature of 1 day cannot be used for a 7-day-ahead prediction unless it is recomputed recursively, so direct models use lags of at least h. Exogenous covariates such as weather must themselves be forecast for the horizon, while calendar features and planned promotions are known in advance and remain valid.

StrategyModels trainedBehavior as h growsMain risk
RecursiveOneErrors compound step by stepDrift on long paths
DirectOne per stepEach step fitted independentlyHigh cost, jagged paths
Multi-outputOne joint modelLearns the whole path jointlyFixed h at training time
Hybrid direct-recursiveOne per step with feedbackBalances bias and varianceComplex to maintain
Multi-step strategies and horizon behavior

Evaluating forecasts across the horizon

A single accuracy number averaged over all steps hides the most useful information. Good practice reports error by horizon step, for example MASE at h = 1, 7 and 28, because a model can excel at short range and fail at long range. Scale-free metrics such as MASE and the pinball loss for quantile forecasts allow comparison across series of different magnitudes.

Evaluation must respect time. Rolling-origin evaluation, also known as time series cross-validation, moves the forecast origin forward repeatedly and scores each full horizon, so the test mimics production use. The test horizon must equal the operational horizon; scoring a 28-day model only on 7-day windows overstates its quality.

Prediction intervals should widen with the horizon. Intervals that stay constant across steps usually indicate a model that underestimates uncertainty, a common flaw in recursive models that ignore accumulated error.

Choosing a forecast horizon and common mistakes

The horizon should be derived from the decision it supports: it must cover the lead time plus the period the decision affects. A retailer ordering stock with a 10-day supplier lead time and weekly ordering needs at least 17 days of daily forecasts.

MistakeConsequenceBetter practice
Horizon shorter than lead timeForecast arrives too late to actSet h from lead time plus review period
Using lags shorter than hLeakage or unavailable inputsRestrict lags or forecast recursively
Averaging error over all stepsLong-range weakness hiddenReport error per step
Constant interval widthOverconfident long-range plansCalibrate intervals by step
Excessively long horizonForecast equals seasonal meanSwitch to scenarios beyond useful range
Frequent horizon-related mistakes

Understanding it simply

The forecast horizon is how far into the future a prediction reaches. A weather app that shows the next ten days has a ten-day horizon.

Near days are easier to predict than distant ones. Tomorrow will probably look like today. Next month depends on many things nobody knows yet. The further ahead you look, the less certain the answer becomes. So a good forecast reaches just far enough to support the decision at hand, and it shows wider error ranges for distant days.

Applied in practice

A regional grid operator forecasts hourly electricity demand. Generator scheduling happens at noon for the following day, so the operator needs predictions for hours 13 to 36 after the forecast origin, a horizon of 36 hourly steps that includes a 12-hour gap.

The team trains a multi-output gradient boosting model that uses calendar features, holiday flags and next-day temperature forecasts, and it excludes demand lags shorter than 36 hours. Rolling-origin evaluation over two years shows MAPE near 2 percent for the first hours and roughly double that for the final hours, with 90 percent intervals widening accordingly.

Because the error profile is reported per step, schedulers add more reserve capacity for late-evening hours of the next day, which reduces costly balancing purchases without over-committing generators.