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.
- 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.
- 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.
- 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.
- 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.
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:
- 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.
- 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.
- 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.
Seven-Layer Metric Stack for Electricity Price Forecast Audits
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.
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:
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:
- 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).
- 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).
- 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.
- 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.