demographic-analysis

Construct life tables, project populations with Leslie matrices, and forecast mortality using the Lee–Carter model.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill demographic-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: demographic-analysis
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/10-sociology/demographic-analysis
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill demographic-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you perform core demographic methods—life table construction, mortality forecasting, and population projection—so you can quantify population dynamics and compare outcomes across groups or time.

Core Features & Use Cases

  • Life table building and life expectancy: Convert age-specific death rates into life tables, including Chiang-style confidence intervals for e0.
  • Population projection with Leslie matrices: Build a Leslie matrix from survival and fertility inputs and project population structure and growth.
  • Mortality modeling and decomposition: Estimate the Lee–Carter mortality model via SVD and use Arriaga decomposition to explain differences in life expectancy between populations.

Quick Start

Tell an AI agent to construct a life table from your age-specific death rates and compute e0 with a confidence interval, then project a future population using a Leslie matrix and estimate a Lee–Carter mortality forecast from your historical mx data.

Frequently Asked Questions about demographic-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I construct a life table from age-specific death rates?

Construct a life table by inputting age-specific death rates to generate life expectancy and Chiang-style confidence intervals for e0. This Skill converts mx data into standard demographic life table outputs.

What is the best way to project population structure using a Leslie matrix?

Project population structure by building a Leslie matrix from survival and fertility inputs. This Skill calculates future population growth and age distribution dynamics for demographic forecasting.

Can I forecast mortality rates using the Lee-Carter model with Python?

Forecast mortality rates using the Lee-Carter model with standard scientific Python dependencies. This Skill estimates the model via SVD to produce fitted and forecasted mortality rates from historical data.

How does Arriaga decomposition explain life expectancy gaps between populations?

Arriaga decomposition explains life expectancy gaps by breaking down differences across age-specific mortality rates. This Skill quantifies how distinct age groups contribute to life expectancy variations between populations.

Do I need historical age-specific mortality data for mortality forecasting?

Historical age-specific mortality data is required for mortality forecasting. This Skill needs mx inputs and model parameters to fit the Lee-Carter model and generate accurate future mortality projections.