Quantitative analysis of health disparities across demographic and geographic dimensions in the United States.
This project analyzes health inequities across three key dimensions:
- Geographic disparities (metro vs. nonmetro)
- Racial and ethnic disparities
- Income-based disparities
The analysis uses data from America's Health Rankings 2025 Annual Report to calculate disparity metrics and create a composite index ranking states by overall health inequity.
- Composite disparity index combining geographic, racial, and income dimensions
- Interactive visualizations of state-level disparities
- State-specific deep-dive analysis
- Identification of health measures with largest gaps across demographic groups
America's Health Rankings 2025 Annual Report
- 82,054 records
- 1,578 unique health measures
- 51 states plus DC
- Demographic breakdowns across race, income, geography, age, education, and other factors
- Clone this repository
- Install dependencies:
pip install -r requirements.txtGenerate disparity metrics:
python disparity_analysis.pyThis creates four CSV files:
metro_nonmetro_gaps.csv: Geographic disparitiesracial_disparities.csv: Racial health gapsincome_disparities.csv: Income-based disparitiescomposite_disparity_index.csv: Combined disparity rankings
Run the interactive Streamlit application:
streamlit run streamlit_app.pyFor each dimension (geographic, racial, income), the analysis:
- Identifies relevant demographic splits in the data
- Calculates gaps between best and worst outcomes within each state
- Aggregates gaps across multiple health measures
- Standardizes metrics for comparison
The composite disparity index:
- Standardizes each disparity dimension (mean=0, sd=1)
- Averages standardized scores across dimensions
- Ranks states from highest to lowest disparity
Top states by composite disparity:
- South Dakota
- Tennessee
- Kentucky
- Alabama
- Arkansas
- Python 3.12
- pandas: Data manipulation
- numpy: Numerical operations
- scikit-learn: Standardization and statistical methods
- Streamlit: Interactive dashboard
- Plotly: Visualizations
health_disparity_analysis/
├── disparity_analysis.py # Core analysis functions
├── streamlit_app.py # Interactive dashboard
├── requirements.txt # Python dependencies
├── README.md # Project documentation
└── [generated CSV files] # Analysis outputs
Potential extensions:
- Time-series analysis of disparity trends
- Machine learning models to predict disparity patterns
- Additional demographic dimensions (disability, education, age)
- County-level analysis
- Policy intervention impact assessment
Jeffrey Olney
GitHub | LinkedIn
Related Projects
Health Disparity Analysis (Streamlit App)
This project is available for educational and research purposes.