✅ Updated Code (climate_model_audit.py
✅ Updated Code (climate_model_audit.py)
📥 Instructions to Use
-
Dataset selection
For example, you can use the dataset from Global Carbon Project / Our World in Data on fossil CO₂ emissions (annual series from 1750 onwards). ESSD+3Our World in Data+3CO2 Earth+3
Download the CSV and name itclimate_emissions_history.csv
(or adjust path in script). -
Signal column mapping
In the script it usesCO2_emissions
as the signal column. If your dataset uses a different label (e.g., “fossil_CO2” or “annual_emissions”), change accordingly. -
Window / order tuning
-
window=5
incompute_entropy_coherence
means a 5‑period rolling window — adjust if your data is monthly rather than yearly. -
ARIMA order
(5,1,0)
is a default; you may need to inspect ACF/PACF and choose better parameters.
-
-
Forecast horizon
The variablesteps=5
sets how far ahead you forecast. For annual data you might forecast 5 years; for monthly, 12–24 months. -
Work with mesh/regional breakdown
If you have emissions broken down by region/country (so “region” dimension), you can loop across each region, compute metrics per region, and compare across. The simple script above assumes one series. Expand as needed.Encourage adversarial audits: mention “feel free to fork and test alternative windows/models”.
Comments
Post a Comment