← Back to projects

County-Level Access to Credit in the United States

Exploring credit scores, balances, and delinquency across U.S. counties and racial subgroups using Opportunity Insights data.

Context and motivation

This project, created with Peter Koumpikov, explores trends in credit scores, credit card balances, and 90-day delinquency rates across the United States. As Informatics and Economics students, we were interested in relationships that could inform policy, regulation, and financial inclusion.

Peter focused on preprocessing in pandas, statistical summaries, and visualization with matplotlib and seaborn. I focused on association analysis and predictive modeling. We contributed equally to the project and wrote the original report together.

Data preparation

We combined three Opportunity Insights datasets describing credit scores, credit card balances, and 90-day delinquency rates in 2020. Each source included parent state, parent county, county name, child race, and parent income percentile alongside the financial measure of interest.

We averaged the relevant features across counties, joined the datasets, and renamed the financial columns for readability. Parent income percentile was dropped from the exploratory analysis. For the association analysis, we also grouped by race, producing county-race subgroups rather than individual-level observations. This distinction matters when interpreting the figures: a point represents an aggregate subgroup, not a person or an entire county.

Distributions

We compared means, medians, ranges, and interquartile ranges to understand the spread of each variable. Credit scores had a relatively tight interquartile range. Credit balances and delinquency rates varied more substantially across counties. The mean credit balance exceeded the median, suggesting a right-skewed distribution. These summaries describe variation in the data; they do not establish that geography has no effect on access to credit.

Density distribution of average county credit scores
Figure 1. Distribution of average credit scores across counties. View full size ↗
Density distribution of average county credit card balances
Figure 2. Distribution of average credit card balances across counties. View full size ↗
Density distribution of average county 90-day delinquency rates
Figure 3. Distribution of average 90-day delinquency rates across counties. View full size ↗

Association analysis

We calculated a correlation matrix and visualized the three pairwise relationships among credit score, credit balance, and delinquency rate. Credit score and delinquency showed the strongest negative association. Credit balance was positively associated with credit score and negatively associated with delinquency.

Correlation matrix of credit score, credit balance, and delinquency rate
Figure 4. Pairwise correlations in the analysis dataset. Credit score and delinquency have the strongest negative correlation (r = −0.96). View full size ↗

Coloring each observation by race added context to these relationships. In the scatter plots, observations labeled Black appeared more frequently in regions with higher delinquency and lower credit scores, while observations labeled Asian appeared more frequently in regions with lower delinquency and higher credit scores. These aggregate patterns motivate further study of structural disparities; they do not establish causal explanations or describe every individual within a group.

Credit score versus delinquency rate, colored by county-race subgroup
Figure 5. Higher average credit scores are associated with lower average delinquency rates. Each point represents a county-race subgroup. View full size ↗
Credit card balance versus credit score, colored by race
Figure 6. Credit card balance and credit score are positively associated across county-race subgroups. View full size ↗
Credit card balance versus delinquency rate, colored by race
Figure 7. Credit card balance and delinquency rate show a negative association, with more dispersion than the score–delinquency relationship. View full size ↗

We also examined subgroups at the extremes of the credit score–delinquency relationship. These observations illustrate the range of outcomes in the data and provide starting points for closer investigation, rather than a general ranking of counties.

Two tables of the ten selected county–race subgroups, with county names, race labels, credit scores, and raw delinquency values
Figure 8. The five county–race subgroups selected at each end of the credit score–delinquency relationship, using the original notebook’s squared-distance rule. Values are reproduced as reported, not converted to percentages; these are subgroup observations, not overall county rankings. View full size ↗

Predictive modeling

We constructed a decision tree classifier to distinguish high from low delinquency using a median split. The initial model included average credit score, credit card balance, delinquency rate, and county identifier. Including delinquency rate introduced target leakage: the target label was derived directly from that same variable. This tree illustrates how classification works, but its performance does not demonstrate useful prediction.

Baseline decision tree splitting directly on delinquency rate
Figure 9. Baseline decision tree. Its direct use of delinquency rate exposes the target leakage in the initial predictor set. View full size ↗

For the second model, I removed raw delinquency rate and retained credit score, credit balance, and county identifier. The reported evaluation accuracy declined to 92%, but the task became more meaningful because the model had to infer delinquency class from other features. Credit score and credit balance featured prominently in the tree, reinforcing the relationships observed in the exploratory analysis.

Decision tree using credit score, credit card balance, and county identifier
Figure 10. Decision tree after removing raw delinquency from the predictors. Open the full-size image to inspect individual splits. View full size ↗

Findings and limitations

The clearest finding was the strong negative relationship between credit score and delinquency. Grouping by both county and race revealed patterns that county-wide averages can conceal. Together, the statistical summaries, visualizations, and classifier show how complementary analytical methods can make a complex dataset more interpretable.

This is an exploratory analysis of aggregate data. Correlations do not establish causality, and the reported classifier accuracy does not by itself demonstrate performance in new counties or future years. Further work could examine how credit outcomes relate to health, quality of life, and other socioeconomic measures, with explicit attention to geographic validation and the limits of subgroup averages.

Source materials