###Using the Credit Card Data which has 10,127 observations we will predict the attrition flag
##
##
## Cell Contents
## |-------------------------|
## | N |
## | Chi-square contribution |
## | N / Row Total |
## | N / Col Total |
## | N / Table Total |
## |-------------------------|
##
##
## Total Observations in Table: 3006
##
##
## | val$Attrition_Flag_predicted
## val$Attrition_Flag | Attrited Customer | Existing Customer | Row Total |
## -------------------|-------------------|-------------------|-------------------|
## Attrited Customer | 412 | 77 | 489 |
## | 1578.023 | 276.370 | |
## | 0.843 | 0.157 | 0.163 |
## | 0.920 | 0.030 | |
## | 0.137 | 0.026 | |
## -------------------|-------------------|-------------------|-------------------|
## Existing Customer | 36 | 2481 | 2517 |
## | 306.577 | 53.693 | |
## | 0.014 | 0.986 | 0.837 |
## | 0.080 | 0.970 | |
## | 0.012 | 0.825 | |
## -------------------|-------------------|-------------------|-------------------|
## Column Total | 448 | 2558 | 3006 |
## | 0.149 | 0.851 | |
## -------------------|-------------------|-------------------|-------------------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 2214.663 d.f. = 1 p = 0
##
## Pearson's Chi-squared test with Yates' continuity correction
## ------------------------------------------------------------
## Chi^2 = 2208.137 d.f. = 1 p = 0
##
##