Skip to content

About

Reproducible panel-data analysis of NATO defense spending after the 2014 and 2022 geopolitical shocks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NATO Defense Spending Analysis, 2000–2024

tests

A reproducible panel-data analysis of how NATO defense spending evolved around the 2014 annexation of Crimea and Russia's 2022 full-scale invasion of Ukraine.

Average NATO defense spending over time

Findings

  • The mean member-country defense burden rose from 1.37% of GDP in 2014 to 2.08% in 2024—an increase of 0.71 percentage points.
  • 16 of 32 members (50%) reached or exceeded 2% in the constructed SIPRI/World Bank measure in 2024, compared with 3 of 28 (10.7%) in 2014.
  • In a country fixed-effects segmented trend, the pre-2014 slope was −0.036 percentage points per year. The slope changed by +0.083 after 2014 and by a further +0.124 after 2022 (both p < 0.05).
  • In a country-and-year fixed-effects comparison, the eastern flank's differential shift was +0.345 points after 2014 (95% CI 0.136–0.553) and an additional +0.550 after 2022 (95% CI 0.266–0.833).

These are associational results, not clean causal estimates. The event-study diagnostic shows non-zero pre-2014 differences, weakening a strict parallel-trends interpretation.

Research design

The project combines SIPRI military expenditure in current US dollars with World Bank GDP, then computes military expenditure as a share of GDP.

Three views are reported:

  1. Descriptive member-year trends. Annual means, medians, GDP-weighted aggregates, and the share of members at or above 2%.
  2. Segmented trend. Country fixed effects with slope changes after 2014 and 2022.
  3. Eastern-flank comparison. Country and year fixed effects with post-period interactions for NATO's eight eastern-flank battlegroup hosts.

Both panel models use country-clustered standard errors. To hold membership composition stable, the estimation sample uses the 26-country pre-2005 NATO cohort over 2005–2024 (520 observations).

Data quality

The pipeline builds a complete grid before merging, so missing observations cannot disappear silently.

Check Result
Expected country-years 800
Complete country-years 795
NATO member-years 670
Complete NATO member-years 670
Duplicate country-year keys 0
Median absolute gap vs. SIPRI's published GDP share 0.0013 pp

The five incomplete observations occur before the relevant countries joined NATO. See data/README.md and coverage.csv for provenance and country-level checks.

Reproduce

The repository includes the processed panel and executed notebook, so review does not require the large source workbooks.

python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -e ".[dev]"
pytest
jupyter nbconvert --to notebook --execute --inplace notebooks/exploratory_analysis.ipynb

To rebuild every data and model artifact, first place the two source workbooks in data/raw/ as documented in data/README.md, then run:

python scripts/run_analysis.py
python scripts/build_notebook.py
jupyter nbconvert --to notebook --execute --inplace notebooks/exploratory_analysis.ipynb

Repository layout

data/
  processed/nato_defense_panel.csv   analysis-ready panel
  raw/                               ignored source workbooks
figures/                             publication-ready charts
notebooks/exploratory_analysis.ipynb executed narrative analysis
reports/final_report.md              methods, results, and limitations
reports/tables/                      quality checks and model estimates
scripts/                             reproducible build commands
src/nato_defense/                    data, model, and plotting functions
tests/                               pipeline and output tests

Limitations

SIPRI military expenditure is not identical to NATO's official defense-expenditure accounting, so the 2% counts are an analytical reference rather than official compliance totals. The model does not control for fiscal policy, elections, threat exposure, procurement cycles, or exchange-rate effects. The 2022 post-period contains only three annual observations. SIPRI and World Bank series are revised over time, so this repository intentionally identifies its input snapshot and publishes cross-checks rather than presenting the latest year as immutable.

For the complete interpretation, see the final report.

About

Reproducible panel-data analysis of NATO defense spending after the 2014 and 2022 geopolitical shocks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages