Customer Churn Prediction App

May 25, 2025

Project image for Customer Churn Prediction App

Project Overview #

This project tackles the challenge of predicting customer churn using machine learning. I built and compared three models — Logistic Regression, Random Forest, and a tuned Random Forest — to identify which customers are most likely to leave a service.

The models were trained on telecom customer data, and I deployed all three in an interactive Streamlit app. Users can explore each model’s performance and test different service scenarios to see how likely a customer is to churn.


Business Value #

Customer churn is a major cost driver in subscription-based services. By predicting churn in advance, companies can offer proactive support, targeted incentives, or long-term contracts to reduce attrition.

This app helps businesses:


Key Results #

MetricLogistic RegressionRandom Forest (Tuned)
Accuracy73%75%
Recall (Churn)79%71%
Precision (Churn)50%52%
ROC-AUC0.830.83

The Logistic model caught more churners (high recall), while the Random Forest was better at avoiding false positives (higher precision). Both models had solid ROC-AUC scores, and tuning helped balance Random Forest performance.


Insights from the Data #


Tools Used #


Try It Yourself #

App Interface Preview #

Here’s what the deployed app looks like in action — with real-time predictions and model explainability:

Customer Churn App Screenshot


What I Learned #

This project strengthened my skills in:

Last updated on May 25, 2025