Icon

Basic Customer Segmentation Use Case with weka--Telecom dataset

Basic Customer Segmentation
Annotations and comments
  • Last amended: 30th Dec, 2019 Clustering of churn data leading to three clear clusters. Dataset: https://www.kaggle.com/becksddf/churn-in-telecoms-dataset (Kaggle)
  • Try with both Euclidean and Manhattan distances. With Manhattan, one can include more variables in the set.
  • Try all three normalization methods to get clusters
  • Use column filter to select just eight columns as mentioned in another annotation. Remove 'Churn' column also.
  • # Columns considered: Total: 8 ============== 1. DayMins 2. DayCharge 3. EveMins 4. Evecharge 5. IntlMins 6. IntlCalls 7. IntlCharge 8. CustServeCalls =============== 3-clusters and 99 iterations Distance Manhattan: Also include Intl Plan and Vmail Plan as aso Eve Calls when distance metric is Manhattan. ####
  • Scree Plot No of clusters (x) vs Sum of within cluster squared distances (y, Euclidean). For every x (say 2), develop kmeans-model using SimplKMeans node and from model output note down 'Sum of squared errors'; this is 'y'. Enter each pair of (x,y) into Table node. Then, get next (x,y) and so on.
  • Select 8 + churn column
  • Do parallel plots show any structure when data is random? No.
  • Day Mins vs eve charge vs Intl charges Rotate and see clear clusters
  • With Manhattan one can be more liberal in selection of columns
  • Reading CallsData.xls
  • Reading ContractData.csv
  • Join two streams
  • collect all cluster centers with new labels
  • normalize all but column c4
  • Normalize numerical cols [0,1]
  • Convert churn to String
  • Transfornm c4 to string
  • Do selected data have some structure? Yes. Compare it with random data
  • No pattern
  • column c4 is target
  • Day Mins vs eve charge See clear clusters
  • To select 2500 pts for plotting
  • Try both Eucl & Manhattan
  • Node 158

Nodes

Extensions

Links