Load forecasting you can trust: probabilistic forecasts, pinball loss and backtesting
A load forecast decides how much to buy, how much headroom to hold and when to call on demand response. A single accuracy number does not show whether it is fit for those decisions. This article sets out four checks that do: a rolling-origin backtest, pinball loss on quantile forecasts, a calibration check, and an error measure aimed at peaks. It runs all four on synthetic hourly data that includes the drift caused by growing solar output and electric vehicle (EV) charging.
Point forecasts and probabilistic forecasts
A point forecast gives one number per hour: “82 MW at 18:00”. A probabilistic forecast gives a distribution, usually as quantiles: “10 percent chance of less than 76 MW, 50 percent chance of less than 82 MW, 90 percent chance of less than 89 MW”. The median can serve as the point forecast; the spread is the new information.
The spread matters because the costs are lopsided. Under-forecasting a peak can mean buying at a spike price or running short of headroom; over-forecasting means holding reserve nobody needed. A planner who can see the 90th percentile can buy protection against the bad outcome and no more.
Backtest by rolling origin
A fair test mimics how the forecast is used. Pick an origin date, train only on data before it, forecast the window after it, and score. Move the origin forward and repeat, then pool the scores. This is a rolling-origin backtest.
Figure 1. A rolling-origin backtest: train before the origin, score after it, repeat. Illustration.
Two rules protect the result. Never let information from after the origin leak into training, including corrected meter values that were not available at the time. And feed the model the inputs it would really have had: a day-ahead forecast uses a weather forecast, not observed temperature, or it will look better than it performs. Use several origins across seasons.
Pinball loss
Pinball loss scores a quantile forecast. For quantile level tau (for example 0.9), forecast q and actual y:
loss(tau, q, y) = tau * (y - q) if y >= q
loss(tau, q, y) = (1 - tau) * (q - y) if y < q
Take the 90th percentile forecast of 80 MW. If the actual is 84 MW the loss is 0.9 x 4 = 3.6. If the actual is 76 MW the loss is 0.1 x 4 = 0.4. Missing on the high side costs nine times as much, which pushes an honest 90th percentile upwards until about 90 percent of actuals fall below it. Average the loss over hours and over a set of quantile levels (here 0.05 to 0.95) to get one score. Lower is better. At tau = 0.5 it is half the mean absolute error (MAE).
Calibration
Pinball loss rewards sharp and calibrated forecasts together, so check calibration separately. For each quantile level, count the share of actuals below the forecast: for the 90th percentile it should be close to 90 percent, and a central 80 percent band should contain about 80 percent of actuals. Plot observed share against nominal level; a calibrated forecast lies on the diagonal.
Peak error
Whole-day accuracy can hide the hours that matter. Report error where the decisions are: the MAE of the daily peak value, its signed bias (is it systematically low?), and the MAE over the top 5 percent of hours.
A worked example on synthetic data
The series is hourly net load for 2024 and 2025, built from a daily and weekly shape, heating and cooling responses to temperature, a weekend dip, solar output that grows through 2025, EV charging in the evening that also grows, and autocorrelated noise. Seed 42. Six monthly origins (1 July to 1 December 2025) each train on all earlier data and forecast the next month, 4,416 hours in all, using a forecast temperature with a standard deviation of 1.0 C of error. The solar and EV growth, the temperature responses and the noise are assumptions planted in the simulation, so the example shows how the checks behave, not how large such drift is on a real network.
Two models were compared. The benchmark is “same hour last week”. The candidate is a regression on hour-of-week and heating and cooling terms in four six-hour blocks, with quantiles formed by adding empirical residual quantiles (by hour of day, last 365 days of training) to the point forecast.
Same hour Regression +
last week residual quantiles
MAE, all hours (MW) 4.12 2.88
Daily peak MAE (MW) 4.12 3.55
MAE, top 5% hours (MW) 5.21 4.67
Mean pinball loss 2.06* 0.92
The benchmark is scored by treating its single value as every quantile.
On every measure the regression wins, which would be the end of a conventional review. Now look at the quantiles.
Figure 2. Calibration of the quantile forecasts over the backtest. Actuals fell below the 5th percentile forecast 7.7 percent of the time (planned 5) and below the 95th percentile forecast 91.8 percent of the time (planned 95). Synthetic data.
The central 80 percent band contained the actual in 72.5 percent of hours. The bands are too narrow: the 10th percentile had 13.9 percent of actuals under it and the 90th had 86.4 percent. The main cause is that the residuals used to build the bands came from a world with less solar and less EV charging than the test month; a smaller part is that they were computed with observed, not forecast, temperature.
Figure 3. One week of the backtest. Evening peaks repeatedly reach the top of the band or above it. Synthetic data.
The pattern is a bias that depends on the time of day. Averaged over the backtest, the forecast was 2.61 MW too high in the hours beginning 11:00 to 15:00 (solar has grown, so net load at midday is lower than the history suggests) and 3.17 MW too low in the hours beginning 18:00 to 22:00 (EV charging has grown). The daily peak was forecast 3.17 MW too low on average, and the monthly peaks were missed by between 3.0 and 9.6 MW (for December, 85.1 MW forecast against 93.3 MW actual). The all-hours bias, 0.19 MW, looked harmless because the two errors cancel.
Figure 4. Error by forecast origin. The regression beats the benchmark every month, while its bias moves from 1.25 MW (July) to minus 0.55 MW (December) as the load mix changes. Synthetic data.
Coverage of the 80 percent band was 63.8 percent in July, 69.2 percent in August and between 74.5 and 76.4 percent from September to December. Monthly retraining helps, but only after the fact.
Weather normalisation
Comparing two periods without adjusting for weather mixes demand change with temperature change. A simple method: fit the temperature model, then predict the later period twice, once with its own weather and once with the earlier period’s weather; the ratio is the weather effect. In the synthetic data, July to December 2025 averaged 11.6 C against 12.7 C a year earlier. Net energy was 0.3 percent lower year on year, the model attributes a 0.67 percent rise to the colder weather, so the weather-normalised change is about 1.0 percent lower. This is a sketch on net load; a real normalisation should state its model and weather baseline.
What goes wrong
- Backtesting on observed weather. Flatters the model. Use archived forecasts.
- One origin, one season. Wins in autumn can vanish in the first cold snap, and a small MAE can hide a biased peak.
- Uncalibrated bands. Residual quantiles from an older regime understate today’s uncertainty.
- Drift from new technology. Solar, batteries and EV charging change the shape of net load. Track bias by hour of day, not just overall.
How to start
- Archive each forecast as issued, with the weather forecast used.
- Build a backtest with several origins across at least two seasons and a seasonal naive benchmark.
- Report MAE, peak error and bias by hour of day, then add quantiles scored with pinball loss.
- Plot calibration, and widen or recalibrate bands that miss.
An illustrative project
This is an illustrative scenario built on synthetic data. It does not describe a specific client.
A planning team holds a day-ahead forecast whose overall error looks fine, yet it keeps under-estimating the evening peak in winter. The team builds a rolling-origin backtest with archived weather forecasts and finds the pattern described above: midday over-forecast and evening under-forecast that cancel in the headline MAE. They move to quantile forecasts, add a time-of-day bias check and use the 90th percentile for evening hours as the planning figure, tracking the share of evening peaks inside the 80 percent band.
SLIQ (StratLytics Intelligence for Quantum Grid) supports load forecasting, energy disaggregation, demand response optimisation and grid visibility.
Related reading
- Demand forecasting methods and how to choose between them
- Monitoring models in production: PSI, KS and AUC
- Data quality and lineage for models: checks, drift and defects
- Supply chain forecast monitoring
- Measuring demand response: baselines, measurement and verification
- Smart meter data quality and energy disaggregation: what NILM can and cannot do