Predict customer attrition using customer credit card data
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
##
##