inequality-analysis

Compute Gini, Lorenz, Theil, and FGT poverty statistics from income microdata.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, matplotlib, statsmodels.

What problem does it solve?

This Skill helps you measure and explain income or wealth inequality and poverty by turning microdata into interpretable statistics and decomposition results.

Core Features & Use Cases

  • Inequality measurement: Calculate Gini coefficients and produce Lorenz curves from weighted or unweighted income/wealth data.
  • Decomposable inequality: Compute Theil index measures and break total inequality into within-group and between-group components.
  • Poverty & distribution analysis: Compute Foster-Greer-Thorbecke (FGT) poverty indices, analyze inequality trends, and run quantile regression for distributional effects.
  • Mobility analysis: Estimate income mobility with rank-rank regression and build income transition matrices.

Quick Start

Use the inequality-analysis Skill to compute the Gini coefficient, Lorenz curve, Theil within/between decomposition, and FGT poverty indices for your dataset of weighted household incomes.

Frequently Asked Questions about inequality-analysis

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

FAQPage Schema
How do I calculate Gini coefficient and Lorenz curve from weighted income microdata?

To calculate the Gini coefficient and Lorenz curve from weighted income microdata, use this Skill to process your dataset and generate interpretable inequality statistics with built-in non-positive handling safeguards.

How does Theil index decomposition work for within-group and between-group inequality?

Theil index decomposition works by breaking total inequality into within-group and between-group components, allowing you to explain inequality across demographics using weighted income distribution microdata.

Can I compute FGT poverty measures for cross-country time-series analysis in Python?

Yes, you can compute FGT poverty measures for cross-country time-series analysis in Python by applying this Skill to calculate Foster-Greer-Thorbecke poverty gap and severity indices from your microdata.

What is the best way to run quantile regression for distributional effects on income?

The best way to run quantile regression for distributional effects on income is using this Skill, which leverages statsmodels to perform distributional regression and analyze income mobility.

Does this inequality analysis tool support non-positive income values?

Yes, this inequality analysis tool supports non-positive income values by implementing non-positive handling safeguards to ensure accurate Gini, Theil, and FGT calculations.

How do I estimate income mobility with rank-rank regression and transition matrices?

To estimate income mobility with rank-rank regression and transition matrices, use this Skill to build income transition matrices and run distributional regression on your income microdata.