Forecast Error Attribution: Bias, Variance, and Residual Seasonality Diagnostics
Forecast error attribution breaks down why your weather or power output forecast was wrong — separating consistent over/under-predictions (bias), unpredictable scatter (variance), and leftover repeating patterns (residual seasonality).
⚠️ Why It Matters
📘 Definition
Forecast error attribution is a diagnostic framework that decomposes total forecast error into orthogonal components: systematic bias (mean offset), irreducible variance (stochastic uncertainty), and residual seasonality (unmodeled periodic structure). It supports model validation, pipeline auditing, and ISO-compliant uncertainty reporting by isolating structural deficiencies from noise. The decomposition is grounded in squared-error loss decomposition and spectral residual analysis.
🎨 Concept Diagram
AI-generated illustration for visual understanding
💡 Engineering Insight
Residual seasonality isn’t just ‘leftover noise’ — it’s often the fingerprint of a violated Nyquist-Shannon condition in your sensor fusion stack. A 45-minute spectral peak almost always traces back to mismatched thermal time constants between pyranometer response (τ ≈ 12 s) and inverter telemetry polling (default 60 s), not model physics. Fix the hardware timing first — no ML model can learn what the sensors never captured.
📖 Detailed Explanation
Deeper diagnostics require proper temporal alignment: raw sky camera frames are timestamped at exposure start, but NWP outputs are valid at model step centers, and SCADA registers values at PLC scan completion. Without sub-millisecond UTC sync (e.g., PTPv2), phase errors smear spectral peaks and inflate apparent variance. This is why ISOs now require traceable timestamp provenance in FAR submissions.
Advanced attribution incorporates causal graph constraints: e.g., if sky camera cloud motion vectors show 3.2 m/s westward drift but residual seasonality peaks every 47 minutes at azimuth 285°, the root cause is likely insufficient frame-rate buffering in the optical flow engine — not the ML model. Modern pipelines embed attribution as a runtime guardrail: any Aₛ > 15 W/m² at 40–50 min triggers automatic reversion to legacy NWP-only mode while alerting the MLOps team.
🔄 Engineering Workflow
📋 Decision Guide
| Rock/Field Condition | Recommended Design Action |
|---|---|
| Bias > |75| W/m² AND Aₛ < 5 W/m² | Recalibrate sky camera radiometric chain using NIST-traceable irradiance reference cell; update NWP post-processing bias correction table. |
| σ²ₑ > 480 (W/m²)² AND SLR > 0.25 | Upgrade sky camera to global shutter with ≥2 Hz native frame rate; implement hardware-level anti-aliasing filter before ADC. |
| Aₛ > 18 W/m² AND dominant period = 45±5 min | Reconfigure SCADA polling to align with local thermal inertia time constant; add 2nd-order low-pass filter to irradiance fusion layer. |
📊 Key Properties & Parameters
Bias (μₑ)
-120 to +90 W/m² (irradiance), -8% to +5% (power output, relative to nameplate)Mean forecast error over a defined horizon and aggregation window, quantifying systematic directional deviation.
Directly determines required reserve margin uplift and triggers recalibration of sky camera calibration coefficients or NWP bias correction tables.
Variance (σ²ₑ)
140–650 (W/m²)² for 5-min GHI forecasts; 0.8–3.2 %² (relative) for 15-min PV plant outputVariance of forecast residuals after bias removal, capturing irreducible stochastic uncertainty from sensor noise, microscale turbulence, and model discretization.
Drives probabilistic forecast width and determines whether ensemble spread meets ERCOT PPA confidence interval requirements (e.g., 90% PI width < 18% of capacity).
Residual Seasonality Amplitude (Aₛ)
3–22 W/m² (GHI), 0.4–2.7% (output), measured via Lomb-Scargle periodogram peak heightPeak amplitude of statistically significant Fourier modes in de-trended residuals at sub-daily periods (e.g., 15–90 min), indicating unmodeled physical cycles.
Triggers re-evaluation of SCADA sampling rate alignment, sky camera shutter timing, or NWP boundary layer physics parameterization.
Spectral Leakage Ratio (SLR)
0.08–0.35 (unitless, 0–1 scale)Ratio of energy in aliased harmonics (e.g., 10-min mode appearing as 20-min artifact) to total residual spectral energy, quantifying undersampling impact.
Determines whether sensor fusion architecture requires anti-aliasing filters or higher-frequency sky camera frame rates (>1 Hz).
📐 Key Formulas
Mean Forecast Error (Bias)
μₑ = (1/N) ∑(yᵢ − ŷᵢ)Arithmetic mean of pointwise forecast errors over N samples
| Symbol | Name | Unit | Description |
|---|---|---|---|
| μₑ | Mean Forecast Error | Arithmetic mean of pointwise forecast errors over N samples | |
| N | Number of Samples | Total count of forecast-observation pairs | |
| yᵢ | Actual Observation | Observed value at time or sample i | |
| ŷᵢ | Forecast Value | Predicted or forecasted value at time or sample i |
Robust Variance Estimate
σ²ₑ = [IQR(yᵢ − ŷᵢ) / 1.349]²Variance estimate resistant to outliers using interquartile range scaling
| Symbol | Name | Unit | Description |
|---|---|---|---|
| σ²ₑ | Robust Variance Estimate | unit² | Variance estimate resistant to outliers using interquartile range scaling |
| IQR | Interquartile Range | unit | Difference between the 75th and 25th percentiles of the residuals |
| yᵢ | Observed Value | unit | Actual observed response for the i-th observation |
| ŷᵢ | Predicted Value | unit | Model-predicted response for the i-th observation |
Lomb-Scargle Peak Amplitude (Aₛ)
Aₛ = 2 × √[P(fₚ)/N]Amplitude estimate of strongest periodic component in residuals, where P(fₚ) is Lomb-Scargle power at dominant frequency fₚ
| Symbol | Name | Unit | Description |
|---|---|---|---|
| Aₛ | Lomb-Scargle Peak Amplitude | Amplitude estimate of strongest periodic component in residuals | |
| P(fₚ) | Lomb-Scargle Power at Dominant Frequency | Spectral power at the dominant frequency fₚ | |
| N | Number of Data Points | Total count of observations in the time series |
🏭 Engineering Example
SolarStar Kern County (CA)
N/A🏗️ Applications
- Real-time ISO dispatch compliance
- Autonomous recalibration of sky camera networks
- NWP model selection for regional fleet forecasting
🔧 Try It: Interactive Calculator
📋 Real Project Case
CAISO Zone 12 Solar Ramp Event Mitigation
2.1 GW solar portfolio across Central Valley, CA