How to Audit Electricity Price Forecasts Without Backtest Leakage: CRPS, Diebold-Mariano, and Walk-Forward Value

A headline MAE slide rarely survives live settlement in ERCOT or CAISO. Here is the statistical and economic verification framework power trading desks and BESS risk committees use to separate genuine forecasting skill from hindsight artifacts.

Executive Summary
  1. Audit the timestamp before the error: Any backtest using ex-post realized load, wind/solar generation, or non-identical timestamp intersections suffers from leakage that renders reported accuracy unusable for live bidding.
  2. Replace MAE-only rankings with strictly proper scoring rules: Evaluate probabilistic forecasts jointly via Pinball Loss, CRPS Skill Score, WIS-80, and P10–P90 empirical coverage so sharpness and tail calibration are rewarded together.
  3. Account for multi-step error autocorrelation: Use the Diebold-Mariano (DM) test with a Newey-West (HAC) variance estimator and the Harvey-Leybourne-Newbold (HLN) Student-t finite-sample correction rather than naive paired t-tests.
  4. Score economic value causally: Verify whether statistical gains convert into battery revenue through a rolling-horizon Model Predictive Control (MPC) walk-forward benchmark reporting both Oracle Capture % and Incremental Alpha ($/kW-yr) over a baseline.
10× WIS-80 tail-breach penalty outside [P10, P90] (2 / 0.20)
80% Target empirical coverage across calibrated P10–P90 bands
48h · 7d · 30d Rolling windows for HLN Diebold-Mariano significance audits

Three Backtest Pitfalls That Break Live Trading Desks

Evaluating electricity price forecasts is notoriously harder than evaluating equities or smooth macroeconomic series. Wholesale Locational Marginal Prices (LMPs) exhibit extreme positive skewness during scarcity, abrupt negative plunges under renewable curtailment, diurnal regime shifts, and non-stationary weekend vs. weekday load profiles. Consequently, three subtle evaluation flaws routinely make weak models look dominant on paper:

  1. Vintage & Hindsight Leakage: Real-time price spikes are frequently driven by forecast errors in load, wind, or solar—not by known fundamentals. If a historical backtest feeds the model ex-post actual ISO load or actual weather instead of the locked pre-delivery forecast vintage published before market gate closure (such as ERCOT's 10:00 CPT Day-Ahead deadline or the binding RTD/FMM cutoff), the model appears to "predict" scarcity events it could never have seen in production.
  2. Cohort Mismatch & Outlier Trimming: Comparing Model A against Model B across slightly different timestamp sets—or excluding scarcity spikes above an arbitrary cap like $500/MWh as "outliers"—invalidates head-to-head ranking. In deregulated energy-only markets, the top 1% of intervals can account for over half of annual battery arbitrage P&L. Every candidate and baseline must be scored on the exact same strict intersection of pre-delivery timestamps.
  3. The Point-Error Paradox (Flat-Baseline Bias): On calm weekends and mild shoulder days, a naive benchmark that simply echoes Day-Ahead Market (DAM) clearing prices or 24-hour persistence is remarkably hard to beat on headline Mean Absolute Error (MAE). A model engineered to stay flat near DAM clears wins quiet-day MAE trophies while missing the high-variance evening ramps and negative-price troughs where commercial dispatch value actually lives.

The Institutional Scoring Stack: Metrics Compared

A sound verification protocol pairs point accuracy with strictly proper probabilistic scoring rules, formal significance testing, and physical dispatch economics. No single scalar captures all four dimensions.

Exhibit 01 · Verification Stack

Seven-Layer Metric Stack for Electricity Price Forecast Audits

MAE / RMSE Baseline sanity check on median/mean bias
Central tendency error (P50 for MAE; conditional mean for RMSE).
Blind spot Ignores predictive uncertainty, skew, and tail coverage; RMSE is dominated by single extreme spikes.
Pinball Loss Calibrating charge floors (P10) and scarcity offers (P90)
Asymmetric quantile accuracy at specific τ ∈ (0, 1) (e.g., P10, P50, P90).
Blind spot A single quantile does not summarize the full predictive distribution.
CRPS & CRPS Skill Primary proper-scoring ranking metric across models
Integrated probabilistic accuracy across the entire predictive CDF vs. baseline.
Blind spot Does not explicitly separate interval width from tail-breach penalty.
WIS-80 Diagnosing over-confident narrow bands vs. wide bands
Weighted Interval Score combining median accuracy, P10–P90 sharpness, and 10× tail-miss penalties.
Blind spot Depends on the chosen central prediction interval level (e.g., 80%).
Empirical Coverage Calibration audit paired with WIS-80 sharpness
Share of realized prices falling inside predicted [P10, P90] (target = 80%).
Blind spot Trivial to game in isolation by outputting excessively wide intervals.
HLN Diebold-Mariano Confirming gains over 48h / 7d / 30d windows are not noise
Statistical significance of paired loss differentials vs. benchmark under multi-step serial correlation.
Blind spot Tests statistical superiority, not physical battery profitability.
Walk-Forward MPC Alpha Final commercial sign-off for QSEs & storage owners
Realized causal BESS revenue reported as Oracle Capture % and incremental $/kW-yr vs. baseline.
Blind spot Sensitive to assumed asset duration, round-trip efficiency, and cycling degradation parameters.
Framework aligned with GEFCom probabilistic forecasting standards, Lago et al. (2021) EPF benchmarking best practices, and Harvey–Leybourne–Newbold (1997).

Proper Scoring Rules: Pinball Loss, CRPS Skill, and WIS-80

In probabilistic electricity forecasting (as established across the GEFCom literature and Lago et al.'s EPF benchmarking standards), a scoring rule is strictly proper if a forecaster minimizes expected loss only by reporting its true conditional probability distribution—preventing gaming through artificial hedging or band widening.

1. Pinball (Quantile) Loss at quantile τ ∈ (0, 1)
Lτ(qτ, y) = max( τ · (y − qτ), (τ − 1) · (y − qτ) )
2. CRPS Skill Score
CRPSSkill = 1 − mean(CRPSmodel) mean(CRPSbaseline)
Positive values outperform the baseline; for discrete uniform quantile grids, 2 × mean Pinball Loss approximates CRPS.
3. Interval Score & Weighted Interval Score (80% Central Interval, α = 0.20, [l, u] = [P10, P90])
IS0.20(l, u; y) = (u − l) + 20.20 max(l − y, 0) + 20.20 max(y − u, 0)
WIS80(m, l, u; y) = 11.5 [ 0.5 · |y − m| + 0.202 IS0.20(l, u; y) ]

Notice how the Interval Score inside WIS-80 enforces discipline: narrowing the P10–P90 spread reduces the width term (u − l), but any realized price outside the band incurs a 10× penalty (2 / 0.20). A model that under-prices evening scarcity spikes—or hides behind excessively wide bands—is immediately penalized.

Testing Statistical Significance: HLN Diebold-Mariano with Newey-West HAC

Suppose Model A beats a DAM baseline by 12% in CRPS over a 7-day rolling window (168 hourly intervals). Is that genuine skill, or luck from two volatile evenings? Applying a textbook paired t-test gives the wrong answer because multi-step power price forecast errors (h > 1) are strongly serially correlated: a single missed wind ramp or heatwave error persists across consecutive delivery hours, inflating naive t-statistics and producing false positives.

The institutional standard is the Diebold-Mariano (DM) test applied to the paired loss differential series dt = L(ŷ1,t, yt) − L(ŷ2,t, yt), where L can be absolute error, Pinball Loss, or CRPS—enhanced with two essential corrections:

Paired Loss Differential at Delivery Timestamp t
dt = L(ŷmodel,t, yt) − L(ŷbaseline,t, yt)
A negative mean differential (d < 0) indicates lower loss for the candidate model.
Newey-West (HAC) Long-Run Variance with Bartlett Weights
γ̂k = 1T TΣt=k+1 (dt − d)(dt−k − d)
V̂NW(d) = 1T [ γ̂0 + 2 LΣk=1 wk · γ̂k ], where wk = 1 − kL + 1
Harvey-Leybourne-Newbold (HLN, 1997) Finite-Sample Statistic
DM = d √V̂NW(d) , DMHLN = DM · [ T + 1 − 2h + h(h − 1)/T T ] 1/2
Evaluate DMHLN against a Student-t distribution with df = T − 1 (instead of asymptotic N(0, 1)) to control false positives on 48h, 7d, and 30d windows.

Two implementation details matter in practice. First, using the Bartlett kernel (Newey-West) guarantees that the estimated long-run variance remains strictly positive semi-definite—preventing undefined square roots that occasionally occur under unweighted rectangular lag truncation. Second, desks should inspect DM p-values across multiple rolling horizons (such as 48h for regime shifts, 7d for weekly persistence, and 30d for statistical power) rather than cherry-picking a single flattering window.

Bridging Statistics to Dollars: Causal Rolling-Horizon MPC

Even a statistically significant reduction in CRPS (p < 0.05) does not automatically translate into storage revenue if the accuracy gains occur during flat midday hours where the battery is already idle. To measure true commercial value, desks wrap forecasts inside a causal rolling-horizon Model Predictive Control (MPC) walk-forward test:

  1. Lock information at step t: The optimizer observes only the battery's realized physical State of Charge (SoCt) and the strictly pre-delivery price forecast spanning the lookahead horizon [t, t + H] (e.g., 24 or 48 hours ahead).
  2. Solve physical dispatch constraints: Maximize expected net revenue subject to inverter power rating (±Pmax), usable energy capacity ([SoCmin, SoCmax]), AC-to-AC round-trip efficiency (ηRT), and marginal cycling degradation (cdeg).
  3. Execute only step t and settle on realized prices: Apply only the first binding charge or discharge command ut, update physical SoCt+1, and book actual cash flow using the realized ISO settlement price yt—never the forecast price.
  4. Advance to t + 1 and repeat: Re-optimize at every interval with the next locked pre-delivery vintage.

Reporting realized MPC revenue alongside two fixed reference points prevents misleading claims: Oracle Capture % (realized revenue divided by a hindsight perfect-foresight optimizer on the same physical battery) establishes how close the schedule came to the theoretical ceiling, while Incremental Alpha ($/kW-yr) (realized revenue minus the identical MPC optimizer driven by a naive or DAM baseline) isolates the exact dollar value contributed by the forecast.

Five-point audit checklist before licensing any power price forecast: (1) Are all evaluated forecasts timestamped strictly prior to market gate closure using pre-delivery weather and load vintages? (2) Are all competing models and baselines scored on the exact same non-filtered timestamp intersection including extreme spikes? (3) Are CRPS Skill, WIS-80, and P10–P90 coverage reported alongside MAE? (4) Are Diebold-Mariano p-values computed with HAC variance and HLN Student-t adjustment? (5) Is economic value verified via causal rolling-horizon MPC settled against actual RT prices rather than single-shot ex-post optimization?

Frequently Asked Questions

What is forecast vintage leakage in electricity price backtests?

Vintage leakage occurs when a historical backtest feeds a model ex-post realized load, wind, solar, fuel, or transmission outage data—or updates model parameters using future periods—rather than freezing the exact input snapshot available prior to market gate closure. Because actual load and wind forecast errors drive real-time price spikes, hindsight inputs artificially inflate backtest accuracy.

Why is the Harvey-Leybourne-Newbold (HLN) adjustment required for Diebold-Mariano tests on power forecasts?

Multi-step power price forecasts (such as 24-hour or 72-hour horizons) exhibit strong serial correlation in their forecast errors up to at least lag h − 1. The standard asymptotic Diebold-Mariano test tends to be oversized on short evaluation windows like 48 hours, 7 days, or 30 days. Pairing a Newey-West HAC long-run variance estimator with the Harvey-Leybourne-Newbold finite-sample correction and Student-t critical values (T − 1 degrees of freedom) controls false-positive significance rates.

How do CRPS and WIS-80 differ from MAE when evaluating probabilistic power forecasts?

MAE only scores a single central point estimate (the median) and ignores whether a forecast captured tail risk. Continuous Ranked Probability Score (CRPS) and Weighted Interval Score (WIS) are strictly proper scoring rules that jointly reward sharpness (narrow prediction intervals) and calibration (heavily penalizing realized scarcity or negative-price breaches outside the predicted P10–P90 envelope).

Why does causal rolling-horizon MPC provide a more realistic BESS benchmark than single-shot backtesting?

In a causal rolling-horizon Model Predictive Control (MPC) test, the battery optimizer sees only its current State of Charge and the locked pre-delivery forecast at each decision interval, executes only the binding step, and settles that physical dispatch against the realized market price. Comparing that realized P&L against a perfect-foresight oracle and a naive baseline directly measures actionable economic alpha without lookahead bias.