Question and data
How strongly does daily temperature drive electricity consumption in French regions? Daily regional consumption comes from RTE's éCO2mix annual files (2020–2024), and daily weather from the NASA POWER API. This project predates and is separate from my hourly forecasting system, which uses a much stricter evaluation protocol.
Explanatory models
With the daily consumption of region and its mean temperature (21,924 region-days):
| Specification | Temperature coefficient (MWh per °C) | R² |
|---|---|---|
| Pooled OLS | −5,163 | 0.13 |
| With region fixed effects | −5,071 | 0.90 |
Each additional degree is associated with about 5,000 MWh less daily consumption per region, consistent with heating demand dominating the period. The jump in comes almost entirely from the region effects, which capture persistent differences in regional size.
Daily consumption against temperature, three regions
Mean daily consumption (GWh) in 2 °C bins of daily mean temperature, 2020–2024; bins with fewer than 20 days omitted.
- Île-de-France
- Provence-Alpes-Côte d'Azur
- Bretagne
Data table
| Temperature bin (°C) | Île-de-France (GWh) | Provence-Alpes-Côte d'Azur (GWh) | Bretagne (GWh) |
|---|---|---|---|
| -4 to -2 | 567 (22 days) | — | — |
| -2 to 0 | 532 (36 days) | — | — |
| 0 to 2 | 496 (68 days) | — | 186 (33 days) |
| 2 to 4 | 478 (90 days) | 295 (34 days) | 169 (53 days) |
| 4 to 6 | 447 (140 days) | 277 (109 days) | 157 (90 days) |
| 6 to 8 | 418 (208 days) | 258 (193 days) | 149 (161 days) |
| 8 to 10 | 381 (192 days) | 240 (245 days) | 137 (253 days) |
| 10 to 12 | 348 (200 days) | 214 (187 days) | 123 (260 days) |
| 12 to 14 | 318 (149 days) | 193 (159 days) | 109 (224 days) |
| 14 to 16 | 299 (140 days) | 181 (144 days) | 98 (204 days) |
| 16 to 18 | 284 (206 days) | 177 (134 days) | 96 (240 days) |
| 18 to 20 | 286 (161 days) | 181 (136 days) | 96 (179 days) |
| 20 to 22 | 284 (124 days) | 192 (129 days) | 95 (72 days) |
| 22 to 24 | 289 (51 days) | 199 (163 days) | 99 (34 days) |
| 24 to 26 | 298 (26 days) | 209 (110 days) | — |
| 26 to 28 | — | 219 (63 days) | — |
Predictive models
Models trained on 2020–2023 and evaluated on 2024 (a time-ordered split, not a random one), with weather, calendar and region features:
| Model | R² on 2024 |
|---|---|
| Linear regression | 0.93 |
| Ridge regression | 0.93 |
| Decision tree (depth 4) | 0.70 |
Limitations (in hindsight)
- A high here mostly reflects between-region differences: region effects alone explain about 90 % of the variance. Within-region skill is the more informative measure, and it was not reported separately.
- The weather inputs are same-day observed values, so this is an explanatory model, not a forecast that could be issued in advance.
- The notebook prints the mean squared error under the label "RMSE". I report only for that reason.
For forecasts made before the weather and demand are observed, see the separate forecasting project.