Causal effect of advanced weather on solar forecast error
Documentation
Formal setup, estimators, robustness checks, and how to read the live results.
What is the causal effect of incorporating advanced weather information into renewable energy forecasting, and does this effect vary across weather regimes?
Richer NWP inputs often improve predictive accuracy. The decision question is causal: does advanced weather information cause lower forecast error, and for which regimes is the product worth buying?
Let indicate access to advanced weather features, the absolute percentage forecast error, and confounders (lags, calendar, regime, site). Potential outcomes are and .
Negative values mean advanced weather reduces error. Because operational A/B assignment of weather products is rare, we use a semi-synthetic design with known so estimators can be scored against ground truth.
Inverse-propensity weighting uses propensity :
Doubly robust combines outcome regression with IPW residuals. Meta-learners (S/T/X) and Causal Forests target for regime-level HTE.
| Family | Methods | Target |
|---|---|---|
| Classical | Regression, IPW, doubly robust | |
| Meta-learners | S-, T-, X-learner | |
| Causal ML | Causal Forest | HTE by regime |
ATE recovery vs ground truth
Best in this run: doubly robust (bias 0.084 pp). Green reference ≈ -10.26%.
Precision in estimation of heterogeneous effects (PEHE) on known :
True ATE ≈ -10.26% — advanced weather cuts absolute % error by ~10.3 pp on average.
Heterogeneity dominates: clear ≈ -2.8%, extreme ≈ -20.9%. Policy: target hard regimes rather than buying high-res weather uniformly.
Heterogeneous effects by weather regime
Causal Forest vs ground-truth τ*
| Endpoint | Purpose |
|---|---|
| GET /results/* | ATE, HTE, forecasts, robustness |
| POST /experiment | Playground under confounding / seed |
| POST /whatif | Scenario τ under weather inputs |
| POST /train | Full GPU pipeline (local only) |
Open-source repository: github.com/AvoCahDoe/causal-solar-energy. Author: Farid Elboubkraoui.