Data Science Center

Twelve labs, thirty-plus interactive experiments, a project studio that analyses your files locally, a dataset library, learning paths and a specialised assistant.

41interactive experiments

Data Science Center

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

  1. Open the customers sample
  2. Check the churn rate (imbalance)
  3. Split train/test
  4. Train a decision tree
  5. 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

  1. Breiman, L., Friedman, J., Olshen, R., & Stone, C. (1984). Classification and Regression Trees. Wadsworth (bibliographic data entered by the editor, not machine-checked)
  2. 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)