Customer churn classification
عربيIntermediate
Problem
Which customers are most likely to churn?
Goal
Build a simple classifier and evaluate it beyond accuracy.
Dataset
Customers (synthetic) Synthetic, generated in the browser
Work steps
- Open the customers sample
- Check the churn rate (imbalance)
- Split train/test
- Train a decision tree
- Compare with the baseline and read the rules
Statistical methods
- CART tree
- Accuracy versus baseline
- Gini impurity
Challenges
- Class imbalance
- Feature leakage
Discussion questions
- Why is accuracy not enough?
- What do you do when errors have different costs?
Tools used
- Project Studio
- Decision Tree experiment
Expected outcomes
A comparison of test accuracy with the baseline. No result figures are published here.
No recorded results are shown here; your results come from running the project on the data.
Run this project in the Studio
References
- Breiman, L., Friedman, J., Olshen, R., & Stone, C. (1984). Classification and Regression Trees. Wadsworth (bibliographic data entered by the editor, not machine-checked)
- Pedregosa, F., et al. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825-2830 Link (bibliographic data entered by the editor, not machine-checked)
