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.
| Quantity | Meaning | Typical example |
|---|---|---|
| Forecast origin | Last observed time step | Midnight on Sunday |
| Horizon h | Number of steps predicted | 7 daily steps |
| Lookback window | History length the model reads | 90 days |
| Lead time | Delay before acting on a forecast | 3 days for restocking |
| Update frequency | How often new forecasts are issued | Every morning |
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 band | Dominant signal | Typical decisions | Suitable approaches |
|---|---|---|---|
| Very short and short | Recent values, autocorrelation | Dispatch, staffing, trading | Lag features, ARIMA, nowcasting |
| Medium | Seasonality and calendar effects | Inventory, promotions, rosters | ETS, gradient boosting, deep forecasters |
| Long | Trend and structural drivers | Capacity, budgets, strategy | Trend models, scenarios, causal drivers |
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.
| Strategy | Models trained | Behavior as h grows | Main risk |
|---|---|---|---|
| Recursive | One | Errors compound step by step | Drift on long paths |
| Direct | One per step | Each step fitted independently | High cost, jagged paths |
| Multi-output | One joint model | Learns the whole path jointly | Fixed h at training time |
| Hybrid direct-recursive | One per step with feedback | Balances bias and variance | Complex to maintain |
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.
| Mistake | Consequence | Better practice |
|---|---|---|
| Horizon shorter than lead time | Forecast arrives too late to act | Set h from lead time plus review period |
| Using lags shorter than h | Leakage or unavailable inputs | Restrict lags or forecast recursively |
| Averaging error over all steps | Long-range weakness hidden | Report error per step |
| Constant interval width | Overconfident long-range plans | Calibrate intervals by step |
| Excessively long horizon | Forecast equals seasonal mean | Switch to scenarios beyond useful range |
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.