I analyzed a dataset of 10,000 bank customers to find patterns in customer churn and train a model to predict who would leave.
I used Python, pandas, and scikit-learn for the analysis and modeling.
- Role
- Data analysis & modeling2024
- With
- Independent project
- Stack
- Python, pandas, scikit-learn, Matplotlib, Seaborn
Patterns in customer churn
Inactive customers and customers aged 41–70 left more often. Customers with two products left less often.
Predicting who leaves
A random forest reached about 85% accuracy and caught 46% of customers who left. I focused on recall because about 80% of customers stayed: predicting "stays" for everyone would already look accurate while missing every customer who left.