Problem
Churners are a small minority, so churn data is imbalanced. Teams must pick a model, a rebalancing method and an error metric before they know what works. The choices interact: a rebalancing method that helps one model or metric can hurt another.
The author benchmarked 11 models and 8 sampling setups on five public churn data sets with churn rates of 7.34–19.15%. The goal was a practical shortlist of what to try first.
Example from the article: the largest data set is the ACM KDD Cup 2009 data from the telecom company Orange (50,000 rows, 7.34% churn). It is one of five public sets the author used.
Solution in brief
Run one pipeline over many model and sampling combinations with repeated stratified cross-validation. Compare them on PR AUC (ranking quality) and F2 (thresholded decisions that favor recall). The metric you need decides whether sampling is worth it.
Questions this case answers
- How to choose a classifier and a rebalancing method for a rare-positive prediction task when the right error metric depends on whether the output is a ranking or a thresholded decision
- How to choose a churn model and a class-imbalance method without trying every combination on my own data?
- How to know whether SMOTE or undersampling will help my churn model?
- How to pick an error metric for a churn model with a 7–19% churn rate?
Tools and methods
- scikit-learn — pipeline (imputer, scaler, one-hot encoder), the models, soft VotingClassifier and repeated stratified k-fold
- imbalanced-learn (imblearn) — SMOTE, ADASYN, TomekLinks, NCR, random oversampling
- XGBoost, LightGBM — gradient-boosted tree models in the comparison
- Soft voting — mean of predicted probabilities of logistic regression, XGB and random forest
Google or a one-time email code. No password.