demographic-analysis

Installation
SKILL.md

Demographic Analysis

When to Use

Use this skill when you need to:

  • Construct period or cohort life tables from age-specific death rates (mx) following standard actuarial conventions
  • Compute life expectancy at birth (e0) with Chiang confidence intervals
  • Load and process HMD (Human Mortality Database) data files for multiple countries and years
  • Build a Leslie matrix for a female population and project population structure 50 years forward
  • Derive stable population parameters from the Leslie matrix dominant eigenvalue
  • Estimate the Lee-Carter mortality model (log m_{x,t} = a_x + b_x × k_t) via SVD and project future mortality rates with ARIMA forecasts of the time index k_t
  • Decompose the life expectancy gap between two populations using Arriaga's method (contribution by age group to the e0 difference)

Background

Installs
8
GitHub Stars
38
First Seen
Mar 30, 2026