Customer Churn Prediction
๐Ÿค–

Fill in customer details and click Run Prediction

Model Comparison
๐Ÿ”ตLogistic Regression
Accuracy73.2%
Precision (Churn)50%
Recall (Churn)79%
F1 (Churn)61%
ROC-AUC83.7%
CV ROC-AUC84.9%
๐ŸŸขRandom Forest
Accuracy75.6%
Precision (Churn)53%
Recall (Churn)76%
F1 (Churn)63%
ROC-AUC83.7%
CV ROC-AUC84.9%
๐Ÿ† Best Model
๐ŸŸ Gradient Boosting
Accuracy74.2%
Precision (Churn)51%
Recall (Churn)78%
F1 (Churn)62%
ROC-AUC84.0%
CV ROC-AUC84.6%
๐ŸŸกXGBoost
Accuracy74.1%
Precision (Churn)51%
Recall (Churn)78%
F1 (Churn)62%
ROC-AUC83.9%
CV ROC-AUC84.5%
โ„น๏ธ Best model ranked by ROC-AUC (test set). CV ROC-AUC from 5-fold StratifiedKFold. Gradient Boosting trained with sample_weight='balanced'.
Metric Comparison Across All 4 Models
Model Insights
Top Features Driving Churn โ€” Gradient Boosting ๐Ÿ† = engineered feature
โš ๏ธ High-Risk Customer Signals
61%
FiberNoAddons
Fiber optic, zero add-ons. Highest churn signal in dataset.
54%
NoProtection
No security, backup, or tech support. Easy to walk away.
53%
HighRiskCombo
Month-to-month + above median charges.
50%
EasyLeaver
Paperless billing + electronic check. Most frictionless exit.
53%
IsNewCustomer
First 6 months โ€” critical retention window.
34%
SoloCustomer
No partner, no dependents. More likely to shop around.
Confusion Matrix โ€” Gradient Boosting ๐Ÿ†
Test set ยท Best model by ROC-AUC (0.840)
934
True Negative
Correctly stayed
100
False Positive
Predicted churn, stayed
131
False Negative
Missed churner โš ๏ธ
244
True Positive
Caught churner โœ…
Predicted Stay Predicted Churn