Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Many possible tomorrows
Weather is chaotic: tiny uncertainties in today’s state grow until two equally good forecasts disagree completely. A model trained to minimise squared error hedges by predicting the average of all possible weathers, which looks like a smooth, washed-out map with no storm in the right place. A generative weather model instead draws many sharp, realistic weathers, an ensemble. The fraction of members with heavy rain over a city is a usable probability. The demo compares a single forecast line with an ensemble for a simple weather variable.
Ensemble forecasts drive launch-weather decisions, airline routing around convection, wind and solar power trading and early warnings of tropical cyclones; generative ML models now produce them in minutes instead of hours on a supercomputer.
- 1. An ensemble forecast is…
- 2. A model trained only with MSE tends to produce forecasts that are…
- 3. GenCast is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The models and how they are scored
- Data: ERA5 reanalysis (ECMWF, Hersbach et al., 2020): hourly global atmospheric states since 1940 at 0.25°; models are trained on decades of it and often fine-tuned on operational analyses.
- Deterministic ML models: FourCastNet (Pathak et al., 2022; adaptive Fourier neural operator), Pangu-Weather (Bi et al., Nature 2023; 3-D Earth-specific transformer), GraphCast (Lam et al., Science 2023; graph network on a multi-mesh, 6-hour steps, beat ECMWF HRES on 90% of 1380 targets), Aurora (Bodnar et al., Nature 2025; a 1.3-billion-parameter foundation model fine-tuned for weather, air quality, ocean waves and cyclone tracks).
- Probabilistic and generative models: GenCast (Price et al., Nature 2025): a conditional diffusion model with 12-hour steps that samples 15-day, 50-member ensembles at 0.25°, each in about 8 minutes on one TPU v5; better CRPS than ENS on 97.2% of 1320 targets. NeuralGCM (Kochkov et al., Nature 2024): differentiable dynamical core plus learned physics, with stochastic ensembles and stable multi-decade climate runs. ECMWF’s AIFS (Lang et al., 2024) runs operationally, with an ensemble version trained on the CRPS.
- Making ensembles: sample the noise of a diffusion model; perturb initial conditions; or train with a proper scoring rule (CRPS) that rewards calibrated spread. Every step is a fresh sample, so members diverge as in a physical ensemble.
- Scoring: RMSE and ACC of the ensemble mean; CRPS (a proper score for whole distributions); spread/skill ≈ 1 for calibration; Brier score and reliability diagrams for events; energy spectra for realism; tropical cyclone track errors; WeatherBench 2 (Rasp et al., 2024) standardises these comparisons.
- Climate emulation: much longer rollouts (years to centuries) that must stay stable and unbiased, conserve mass and energy, and respond correctly to forcings such as CO₂ or sea-surface temperatures. Examples include ACE and ACE2 (Ai2) and NeuralGCM’s climate runs. Generative emulators sample internal variability and extremes.
- 1. GraphCast steps the atmosphere forward by…
- 2. GenCast ensembles have…
- 3. A proper score for a whole forecast distribution is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.Verifying ensembles
Exercise 1.
- The ensemble CRPS, fair and standard.
- The closed-form CRPS of a Gaussian forecast.
- The Brier score for an event.
- The spread/skill ratio with the finite-ensemble correction.
Practice.
- Compare probabilistic and deterministic models with CRPS, not RMSE: RMSE always favours a smooth mean forecast.
- Use the fair CRPS when ensembles differ in size.
- Report spread/skill multiplied by √((M + 1)/M), and reliability diagrams for events.
- Verify against the model’s own analysis and against observations; state the verification period and resolution (WeatherBench 2 conventions).
- Check power spectra at long leads: blurring hides in RMSE but shows up as missing small-scale energy.
- For climate emulators, check multi-decade drift, conservation and the response to forcings, not only weather skill.
import xarray as xr
# verifying an ensemble with xarray: ens dims (member, time, lat, lon), obs dims (time, lat, lon)
def crps_fair(ens, obs):
M = ens.sizes["member"]
skill = abs(ens - obs).mean("member")
spread = abs(ens - ens.rename(member="m2")).sum(["member", "m2"]) / (2 * M * (M - 1))
return (skill - spread).weighted(np.cos(np.deg2rad(obs.lat))).mean(["lat", "lon"])- 1. When ensembles have different sizes, use…
- 2. Blurring at long leads is best seen in…
- 3. The spread/skill correction factor is…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
CRPS. CRPS(F, y) = ∫ (F(z) − 1[z ≥ y])² dz = E|X − y| − ½ E|X − X’| for X, X’ independent draws from F. It is strictly proper: its expectation is minimised only by the true distribution. For a point forecast it reduces to the absolute error.
Ensemble estimators. With M members, the standard estimator divides the spread term by 2M², which under-counts it and penalises small ensembles; the fair estimator divides by 2M(M − 1) and is unbiased for the CRPS of the distribution the members come from.
Gaussian benchmark. If y ~ N(μ, σ²), the expected CRPS of the perfect forecast N(μ, σ²) is σ/√π, while the deterministic forecast μ has expected absolute error σ√(2/π). Their ratio is 1/√2, so a perfect ensemble beats the perfect mean forecast by 1 − 1/√2 ≈ 29% in CRPS at every lead, whatever σ is.
Spread and skill. For a calibrated M-member ensemble, E[(ensemble mean − y)²] = (1 + 1/M) times the mean ensemble variance, so the raw ratio must be multiplied by √((M + 1)/M).
Exercise check. At lead 1 (seed 0) the raw spread/skill was 0.949; times √(17/16) it is 0.978. The CRPS gains of the ensemble over the deterministic forecast were 28.9%, 29.2% and 29.3% at leads 1, 5 and 20.
- 1. CRPS of a point forecast equals…
- 2. A perfect ensemble beats the perfect mean forecast in expected CRPS by about…
- 3. The standard CRPS estimator penalises…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.How should a generative weather model be compared with a deterministic one, and what does the deterministic model miss?
History.
- T. Gneiting and A. E. Raftery, “Strictly proper scoring rules, prediction, and estimation” (JASA, 2007).
- R. Lam et al., “Learning skillful medium-range global weather forecasting” (Science, 2023; GraphCast).
- K. Bi et al., “Accurate medium-range global weather forecasting with 3D neural networks” (Nature, 2023; Pangu-Weather).
- D. Kochkov et al., “Neural general circulation models for weather and climate” (Nature, 2024; NeuralGCM).
- I. Price et al., “Probabilistic weather forecasting with machine learning” (Nature, 2025; GenCast).
Exercise 2.
- Toy atmosphere: a latitude circle of 40 points with stochastic advection–diffusion (κ = 0.3, c = 0.8, damping 0.03, noise 0.3), one model step = 4 simulator steps.
- Training: one 3000-step ‘reanalysis’ trajectory; least-squares one-step map W (the deterministic, MSE-trained model) and its residual covariance (the generative model’s noise).
- Forecasts: 300 cases, leads 1, 5 and 20; deterministic W^L x₀; 16-member generative ensemble sampled step by step; an under-dispersed ensemble with half the noise.
- Extremes: event = value above 1.5 climatological standard deviations (0.441 × 1.5).
| measure (seed 0) | lead 1 | lead 5 | lead 20 |
|---|---|---|---|
| RMSE: deterministic / ensemble mean / one member | 0.294 / 0.304 / 0.410 | 0.382 / 0.394 / 0.538 | 0.440 / 0.452 / 0.627 |
| CRPS: deterministic / ensemble / under-dispersed | 0.235 / 0.167 / 0.181 | 0.305 / 0.216 / 0.233 | 0.351 / 0.248 / 0.269 |
| spread/skill (raw): ensemble / under-dispersed | 0.949 / 0.484 | 0.977 / 0.499 | 0.975 / 0.490 |
| gradient energy vs truth: deterministic / one member | 0.082 / 1.002 | 0.011 / 0.999 | – |
| event rate / share flagged by deterministic | 0.0762 / 0.0329 | 0.0659 / 0.0024 | – |
| Brier: ensemble / deterministic / climatology | 0.0534 / 0.0647 / 0.0704 | 0.0590 / 0.0650 / 0.0616 | – |
- RMSE and CRPS disagree: RMSE ranked the deterministic forecast first and a single ensemble member last (about √2 worse). CRPS ranked the calibrated ensemble first at every lead, 29% better than the deterministic forecast, matching the Gaussian theory.
- Blurring: the deterministic forecast kept 8% of the small-scale energy at lead 1 and 1% at lead 5; each member kept all of it.
- Extremes: at lead 5 the deterministic forecast flagged 0.24% of points as extreme when 6.6% were. Its Brier score was worse than climatology (skill −5.5%); the ensemble’s was better (skill 4.2% at lead 5, 24% at lead 1).
- Calibration matters: halving the noise gave spread/skill 0.48–0.50 and a worse CRPS, though still better than the deterministic forecast.
- Fair CRPS: with 4 members the fair CRPS was 0.215 (16 members: 0.216); the standard estimator gave 0.270 with 4 and 0.229 with 16.
- Seeds 1 and 2: lead-5 CRPS 0.217 and 0.219 for the ensemble against 0.306 and 0.308 for the deterministic forecast; deterministic Brier 0.0638 and 0.0705, worse than climatology (0.0605 and 0.0652) on both.
- Caveat: linear-Gaussian toy; real atmospheres are chaotic and non-Gaussian, which makes the gap at long leads larger for real models.
Generative weather and climate models in AI, robotics and aerospace
- Operational forecasting: ECMWF runs AIFS alongside its physics-based IFS; Google DeepMind’s GenCast and its successors provide ensemble guidance, including tropical cyclone tracks.
- Aviation and launch: probabilistic forecasts of convection, turbulence, winds aloft and lightning support routing and launch commit criteria.
- Energy: wind and solar ensembles feed grid balancing and trading decisions.
- Climate risk: generative emulators sample many plausible decades for extreme-event statistics at a fraction of a climate model’s cost.
References
- H. Hersbach et al. (2020). “The ERA5 global reanalysis.” Quarterly Journal of the Royal Meteorological Society 146.
- T. Gneiting and A. E. Raftery (2007). “Strictly proper scoring rules, prediction, and estimation.” JASA 102.
- J. Pathak et al. (2022). “FourCastNet: a global data-driven high-resolution weather model using adaptive Fourier neural operators.” arXiv.
- R. Lam et al. (2023). “Learning skillful medium-range global weather forecasting.” Science 382.
- D. Kochkov et al. (2024). “Neural general circulation models for weather and climate.” Nature 632.
- I. Price et al. (2025). “Probabilistic weather forecasting with machine learning.” Nature 637.
- C. Bodnar et al. (2025). “A foundation model for the Earth system.” Nature.
- S. Rasp et al. (2024). “WeatherBench 2: a benchmark for the next generation of data-driven global weather models.” JAMES.
- V. Fortin, M. Abaza, F. Anctil and R. Turcotte (2014). “Why should ensemble spread match the RMSE of the ensemble mean?” Journal of Hydrometeorology 15.