Objective

Predict customer attrition using customer credit card data

Data Prep

The Tree

Two Interpretations

  1. Customers who are 39 or older have the second highest number of customers who’ve become attrited
  2. Customers who’s transaction amount total is equal to or greater than 5448 are the least likely to become attrited

Variable Importance

Model Accuracy

Using the validation data, it is observed that the model is able to:

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  3066 
## 
##  
##                                | validation_tree$Attrition_Flag_predicted 
## validation_tree$Attrition_Flag | Attrited Customer | Existing Customer |         Row Total | 
## -------------------------------|-------------------|-------------------|-------------------|
##              Attrited Customer |               383 |                98 |               481 | 
##                                |          1456.529 |           240.172 |                   | 
##                                |             0.796 |             0.204 |             0.157 | 
##                                |             0.882 |             0.037 |                   | 
##                                |             0.125 |             0.032 |                   | 
## -------------------------------|-------------------|-------------------|-------------------|
##              Existing Customer |                51 |              2534 |              2585 | 
##                                |           271.021 |            44.690 |                   | 
##                                |             0.020 |             0.980 |             0.843 | 
##                                |             0.118 |             0.963 |                   | 
##                                |             0.017 |             0.826 |                   | 
## -------------------------------|-------------------|-------------------|-------------------|
##                   Column Total |               434 |              2632 |              3066 | 
##                                |             0.142 |             0.858 |                   | 
## -------------------------------|-------------------|-------------------|-------------------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  2012.413     d.f. =  1     p =  0 
## 
## Pearson's Chi-squared test with Yates' continuity correction 
## ------------------------------------------------------------
## Chi^2 =  2006.027     d.f. =  1     p =  0 
## 
##