Mental health in aging populations is one of the most vital challenges for modern public health. I wanted to know which factors make older people mentally strong. By analyzing the 2020 (Wave 15) data, I aimed to understand how certain variables like education level and physical health affect mental health during a pandemic. My goal is to find out how social structures affect healthy aging and this study is an initial step in achieving my goal.
This project addresses a prticular knowledge gap according to recent literature. Despite the fact that the relationship between physical health and depression is widely recognized, the majority of current studies rely on data collected before 2020. There is a significant gap in studying the effect of education during periods of sudden, worldwide isolation. By using the Wave 15 (2020) data, this project presents a timely investigation into whether typical social factors continued to be effective during the COVID-19 pandemic.
In this project, I investigated the socioeconomic and health-related predictors of mental distress in the aging U.S. population. I used a large-scale sample from the University of Michigan’s Health and Retirement Study (HRS), I developed a Multiple OLS regression model to quantify the impact of education, physical health, and demographic factors on depression scores.
- Language: Python
- Libraries:
Pandas,NumPy,Statsmodels,Matplotlib,Seaborn. - Model: Multiple Ordinary Least Squares (OLS) Regression.
- Diagnostics: Jarque-Bera Test for Normality.
The model explains 18% of the variance in depressive symptoms (
| Variable | Coefficient ( |
P-Value | Interpretation |
|---|---|---|---|
Physical Health (r15shlt) |
0.7347 | 0.000 | Strongest predictor; poorer health significantly increases depression risk. |
Education (raeduc) |
-0.0691 | 0.000 | Higher education acts as a significant protective factor. |
Gender (ragender) |
0.2880 | 0.000 | Significant gender-based differences in reported symptoms. |
Age (r15agey_e) |
-0.0179 | 0.000 | A slight decrease in symptoms observed with advancing age in this cohort. |
Marital Status (r15mstat) |
0.0972 | 0.000 | Social standing/marital status significantly impacts mental well-being. |
To validate the OLS regression assumptions, I conducted a formal Jarque-Bera test on the model residuals.
- Jarque-Bera Statistic: 4726.9271
- P-value: 0.0000
Statistical Interpretation: The p-value is significant (
This heatmap confirms the relationships between features and ensures that multicollinearity does not compromise the regression estimates.
Interpretation:
- Multicollinearity Check: The low-to-moderate correlations between independent variables ensure the stability of the coefficients.
- Primary Driver: The visualization supports the regression finding that physical health has the most direct linear relationship with the CES-D 8 score.
The plot shows the distribution of model predictions against actual clinical scores, highlighting the model's reliability across the 0-8 scale.
Interpretation:
- Trend Alignment: The clustering along the central axis demonstrates that the model effectively captures the upward trend of depressive symptoms as health and socioeconomic stressors increase.
-
Clinical Insight: While the model is highly accurate at predicting lower-range symptoms(
$0-3$ ), the variance at higher scores ($8.0$ ) suggests that severe depression is influenced by complex factors beyond the primary socioeconomic variables included here.
While the relationship between socioeconomic status and mental health is widely recognized, this project adds value through:
- By using the 2020 (Wave 15) data, this research provides an overview of psychological well-being during a period of global health crisis.
- The model represents how self-reported physical health and education level serve as primary predictors even when controlling for demographic variables.
- This workflow is designed to be longitudinal and the Python scripts can be modified to compare these coefficients across previous waves(years) to track how the beneficial effect of education has changed over time.
The data used in this project is provided by the Health and Retirement Study (HRS), produced and managed by the University of Michigan.
- Dataset: RAND HRS Longitudinal File (1992-2022)
- Official Link: https://hrsdata.isr.umich.edu/data-products/rand-hrs-longitudinal-file-2022

