# Crisis selector sources

The crisis **calendar** and the macroeconomic **paths** are separate sources. An IMF episode is a dated banking-crisis event. It does not contain annual paths for every variable in the scenario. Replay deviations are calculated from the macro series selected in your set, with missing history disclosed.

## IMF catalogue shipped offline

Laeven, Luc, and Fabian Valencia (2026), *Systemic Banking Crises Database: 1970–2025*, IMF Working Paper **WP/26/94**, published 15 May 2026. DOI: [10.5089/9798229045971.001](https://doi.org/10.5089/9798229045971.001).

- [Official publication](https://www.imf.org/en/publications/wp/issues/2026/05/14/systemic-banking-crises-database-1970-2025-576036)
- [Official source PDF](https://www.imf.org/-/media/files/publications/wp/2026/english/wpiea2026094-source-pdf.pdf)
- Original downloaded PDF: [sources/imf-wp-2026-094.pdf](sources/imf-wp-2026-094.pdf)
- Pinned normalized dates: `engine/crisis_data/imf-systemic-banking-crises-2026.json`

The import includes **all 164 episodes in Table A1**, printed pp. 25–29 (PDF pp. 27–31), across 120 countries. Imported fields: ISO country code, source country name, start/end year, systemic/borderline classification, five-year duration truncation, original footnote markers and source page. Fiscal/output losses, NPLs and intervention measures are outside this dates-only integration and are not used as macro shocks. The original PDF's hash, retrieval date (7 October 2026), edition and table/page are retained. Offline use requires no IMF connection or new Python runtime dependencies.

Interpretation and source inconsistencies:

- Country-level footnote markers designate **14 borderline cases**. They are labelled separately rather than presented as systemic crises. The published Table A1 uses country markers `5/` (and `4/` for Armenia), while its legend calls borderline cases `6/`; the original markers are retained. End-column `5/` identifies duration truncation, not a borderline country classification.
- Table A1 is the authoritative table for this snapshot. Its start dates differ from Table 1/A2 for Angola (2016 vs 2015), Ghana (2017 vs 2015) and Republic of Congo (2017 vs 2018). These are preserved as published in A1, with an original-table link for review.
- IMF durations are truncated at five years where marked. The end year does not necessarily mean banking-sector resolution.
- Vietnam 2022 and Sri Lanka 2023 have no reported end. The raw end remains null. The UI clearly describes a Halden three-year window, capped at the edition's last covered year (2025).
- March 2023 events in the US and Switzerland are not included as systemic crises: the paper explicitly says they do not meet its criterion.
- Classification is that of the cited authors' database; the resulting replay is a bank-created scenario using its own selected macro series.

## Replay scope and missing data

**Crisis country only**, the default for IMF entries, imposes replay shocks only on variables of the crisis country. Other countries follow the propagation model. **Replay period across my set** explicitly uses the IMF episode's years for each variable's own country, without importing or transferring the foreign crisis country's paths. **Use crisis-country analogue** is a third, explicit option: it imposes the source country’s historical deviations on matching variables in your set. For example Argentina’s 1980–82 real GDP shock can be applied to Dutch GDP; the rest may respond through the Dutch set’s model. This is a scenario assumption, clearly tagged **Cross-country analogue**, not an observed Dutch crisis path. The source country, source series and selected scope are saved. An unavailable same-country entry offers a direct analogue button when a complete matched source history exists.

Coverage requires every annual observation in the replay window, the year immediately before it, and at least two observations within the preceding five years. Shortening the scenario horizon truncates the resulting shock path; it does not relax this history requirement. For missing coverage the UI lists the missing years per variable.

### Longer historical calibration series

For same-country replay, the engine first tries your selected series. If it cannot cover the episode, it tries a **complete alternative official history for the same country, concept, form and unit** already present in the macro library (for example OECD bond yields or BIS property prices). It then tries the bundled World Bank GDP history for real GDP growth. No data sources are spliced together, no foreign observations are transferred through this fallback, and CPI is not substituted for HICP. Your baseline and propagation model retain their selected series. The replacement is labelled **Longer history**, with the actual provider, dates, source link and hash saved under `episode.calibration_sources` and `episode.macro_sources`.

[World Bank WDI GDP growth](https://databank.worldbank.org/metadataglossary/world-development-indicators/series/NY.GDP.MKTP.KD.ZG), indicator `NY.GDP.MKTP.KD.ZG`, measures annual real GDP growth at constant local-currency prices. The pinned API response covers 1960–2025 with 261 country/aggregate histories where observations exist. Netherlands GDP growth runs from 1961, allowing the 1974–75 and 1980–82 windows to work offline. National data and estimates may be revised by the provider. The full raw response is retained in `sources/worldbank-gdp-history.json.gz`; the source response SHA-256 and retrieval timestamp travel with each calibration series. Attribution: **World Bank, World Development Indicators, CC BY 4.0**. Rebuild with `python scripts/build-crisis-history.py`; use `--from-file docs/sources/worldbank-gdp-history.json.gz` to reconstruct from the archived response.

Entries with no matching complete history remain inspectable, with the add button disabled. A longer GDP series can make a replay available without making every variable an observed historical path.

### Responses of other variables

**Calculate responses for other variables** is on by default. The live preview and saved scenario use the same conditional VAR(1) model for variables without direct replay shocks. Such paths are tagged **Model-estimated**, separately from **Historical replay**. Switch it off to keep variables without a direct shock at baseline; these are tagged **Baseline unchanged**. If the model has insufficient history or does not cover a variable, that path remains at baseline and is not tagged as estimated. The existing scenario editor also exposes this switch for later changes.

The preview is read-only and matches the applied result. Response tags are derived from current engine results after any edit, avoiding stale labels when propagation is toggled. Exported `episode.responses` gives per-variable `historical-replay`, `cross-country-analogue`, `direct-shock`, `model-estimated`, or `baseline-unchanged`; `episode.propagate` saves the control and `episode.response_model` records model details. Tags are shown in scenario charts, Review paths and path lineage. Each saved replay retains crisis-date provenance and the macro series IDs, source URLs, hashes, retrieval timestamps and statuses behind its direct shocks. Those metadata travel with `.halscen` projects, path lineage, the creation audit event and `.halscenario.json` exports.

## Other episodes

**CEPR / EABCN:** [Chronology of Euro Area Business Cycles](https://eabcn.org/dbc/peaksandtroughs/chronology-euro-area-business-cycles). Peak/trough quarters underpin the 1974–75, 1980–82, 1992–93, 2008–09, 2011–13 and 2020 macro episodes. Annual replay windows and any recovery years are chosen by Halden, rather than being an IMF banking-crisis classification.

**Halden-selected windows:** dot-com slowdown (2001–03) and energy/inflation shock (2022–23). Explicitly labelled as selected shock windows without external recession dating.

**Found in your data:** GDP growth below zero or one sample standard deviation below its mean; consecutive downturn years are grouped and the next available year added. The source series and detection rule are shown and saved.

## Reproduce the IMF snapshot

Use a development environment with `pypdf==6.19.0`. PDF extraction is needed only to rebuild the bundled JSON, not to run the application.

```sh
python scripts/import-imf-crises.py --pdf docs/sources/imf-wp-2026-094.pdf
```

To retrieve the pinned edition afresh:

```sh
python scripts/import-imf-crises.py --download
```

The importer rejects unknown country names and anything other than 164 unique rows, so changed source layouts cannot silently omit crises. Review the original table, marker interpretation and edition before replacing the snapshot. Both the Python source engine and PyInstaller build include the catalogue.
