##    CLIENTNUM                   Attrition_Flag  Customer_Age  
##  Min.   :708082083   Attrited Customer:1627   Min.   :26.00  
##  1st Qu.:713036770   Existing Customer:8500   1st Qu.:41.00  
##  Median :717926358                            Median :46.00  
##  Mean   :739177606                            Mean   :46.33  
##  3rd Qu.:773143533                            3rd Qu.:52.00  
##  Max.   :828343083                            Max.   :73.00  
##     Gender          Dependent_count Education_Level    Marital_Status    
##  Length:10127       Min.   :0.000   Length:10127       Length:10127      
##  Class :character   1st Qu.:1.000   Class :character   Class :character  
##  Mode  :character   Median :2.000   Mode  :character   Mode  :character  
##                     Mean   :2.346                                        
##                     3rd Qu.:3.000                                        
##                     Max.   :5.000                                        
##  Income_Category    Card_Category      Months_on_book  Total_Relationship_Count
##  Length:10127       Length:10127       Min.   :13.00   Min.   :1.000           
##  Class :character   Class :character   1st Qu.:31.00   1st Qu.:3.000           
##  Mode  :character   Mode  :character   Median :36.00   Median :4.000           
##                                        Mean   :35.93   Mean   :3.813           
##                                        3rd Qu.:40.00   3rd Qu.:5.000           
##                                        Max.   :56.00   Max.   :6.000           
##  Months_Inactive_12_mon Contacts_Count_12_mon  Credit_Limit  
##  Min.   :0.000          Min.   :0.000         Min.   : 1438  
##  1st Qu.:2.000          1st Qu.:2.000         1st Qu.: 2555  
##  Median :2.000          Median :2.000         Median : 4549  
##  Mean   :2.341          Mean   :2.455         Mean   : 8632  
##  3rd Qu.:3.000          3rd Qu.:3.000         3rd Qu.:11068  
##  Max.   :6.000          Max.   :6.000         Max.   :34516  
##  Total_Revolving_Bal Avg_Open_To_Buy Total_Amt_Chng_Q4_Q1 Total_Trans_Amt
##  Min.   :   0        Min.   :    3   Min.   :0.0000       Min.   :  510  
##  1st Qu.: 359        1st Qu.: 1324   1st Qu.:0.6310       1st Qu.: 2156  
##  Median :1276        Median : 3474   Median :0.7360       Median : 3899  
##  Mean   :1163        Mean   : 7469   Mean   :0.7599       Mean   : 4404  
##  3rd Qu.:1784        3rd Qu.: 9859   3rd Qu.:0.8590       3rd Qu.: 4741  
##  Max.   :2517        Max.   :34516   Max.   :3.3970       Max.   :18484  
##  Total_Trans_Ct   Total_Ct_Chng_Q4_Q1 Avg_Utilization_Ratio     random         
##  Min.   : 10.00   Min.   :0.0000      Min.   :0.0000        Min.   :0.0000223  
##  1st Qu.: 45.00   1st Qu.:0.5820      1st Qu.:0.0230        1st Qu.:0.2500875  
##  Median : 67.00   Median :0.7020      Median :0.1760        Median :0.5011257  
##  Mean   : 64.86   Mean   :0.7122      Mean   :0.2749        Mean   :0.5005649  
##  3rd Qu.: 81.00   3rd Qu.:0.8180      3rd Qu.:0.5030        3rd Qu.:0.7496791  
##  Max.   :139.00   Max.   :3.7140      Max.   :0.9990        Max.   :0.9998873
##                 Length Class  Mode     
## call                5  -none- call     
## type                1  -none- character
## predicted        7054  factor numeric  
## err.rate         1500  -none- numeric  
## confusion           6  -none- numeric  
## votes           14108  matrix numeric  
## oob.times        7054  -none- numeric  
## classes             2  -none- character
## importance         80  -none- numeric  
## importanceSD       60  -none- numeric  
## localImportance     0  -none- NULL     
## proximity           0  -none- NULL     
## ntree               1  -none- numeric  
## mtry                1  -none- numeric  
## forest             14  -none- list     
## y                7054  factor numeric  
## test                0  -none- NULL     
## inbag               0  -none- NULL     
## terms               3  terms  call
##                          Attrited Customer Existing Customer
## CLIENTNUM                     4.636534e-03      6.936339e-05
## Customer_Age                  5.251595e-03      4.919779e-03
## Gender                        6.470746e-03      8.131049e-04
## Dependent_count              -1.781707e-04      4.952252e-04
## Education_Level               2.833013e-06     -2.062724e-04
## Marital_Status                1.755770e-04      1.091904e-03
## Income_Category               7.719219e-04      2.512358e-04
## Card_Category                 7.445778e-05      2.893691e-04
## Months_on_book                3.487995e-03      1.651132e-03
## Total_Relationship_Count      2.699041e-02      3.031945e-02
## Months_Inactive_12_mon        3.128298e-02      9.632117e-04
## Contacts_Count_12_mon         1.256198e-02      4.194573e-03
## Credit_Limit                  1.521933e-02      1.548705e-02
## Total_Revolving_Bal           7.013543e-02      4.077853e-02
## Avg_Open_To_Buy               1.711396e-02      1.391121e-02
## Total_Amt_Chng_Q4_Q1          2.761704e-02      6.722734e-03
## Total_Trans_Amt               1.154089e-01      8.551687e-02
## Total_Trans_Ct                2.221404e-01      9.393588e-02
## Total_Ct_Chng_Q4_Q1           6.725160e-02      1.124266e-02
## Avg_Utilization_Ratio         1.427154e-03      3.493352e-02
##                          MeanDecreaseAccuracy MeanDecreaseGini
## CLIENTNUM                        0.0008030262        52.407451
## Customer_Age                     0.0049697662        59.848755
## Gender                           0.0017228025        16.156735
## Dependent_count                  0.0003865616        21.911884
## Education_Level                 -0.0001737582        20.676544
## Marital_Status                   0.0009441643        18.141064
## Income_Category                  0.0003380822        19.747673
## Card_Category                    0.0002557905         4.548512
## Months_on_book                   0.0019453982        45.107955
## Total_Relationship_Count         0.0297875878       133.489810
## Months_Inactive_12_mon           0.0058104783        50.798205
## Contacts_Count_12_mon            0.0055326601        54.756979
## Credit_Limit                     0.0154572256        62.653114
## Total_Revolving_Bal              0.0454807567       205.091196
## Avg_Open_To_Buy                  0.0144323080        61.134099
## Total_Amt_Chng_Q4_Q1             0.0100632546       113.559516
## Total_Trans_Amt                  0.0903535464       329.802273
## Total_Trans_Ct                   0.1144449290       321.411583
## Total_Ct_Chng_Q4_Q1              0.0202143409       196.239841
## Avg_Utilization_Ratio            0.0295767060       106.295625
##                   Attrited Customer Existing Customer class.error
## Attrited Customer               915               213  0.18882979
## Existing Customer                68              5858  0.01147486
## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  3073 
## 
##  
##                   | val$Attrition_Flag 
##  val$predicted_rf | Attrited Customer | Existing Customer |         Row Total | 
## ------------------|-------------------|-------------------|-------------------|
## Attrited Customer |               412 |                25 |               437 | 
##                   |          1639.037 |           317.747 |                   | 
##                   |             0.943 |             0.057 |             0.142 | 
##                   |             0.826 |             0.010 |                   | 
##                   |             0.134 |             0.008 |                   | 
## ------------------|-------------------|-------------------|-------------------|
## Existing Customer |                87 |              2549 |              2636 | 
##                   |           271.722 |            52.676 |                   | 
##                   |             0.033 |             0.967 |             0.858 | 
##                   |             0.174 |             0.990 |                   | 
##                   |             0.028 |             0.829 |                   | 
## ------------------|-------------------|-------------------|-------------------|
##      Column Total |               499 |              2574 |              3073 | 
##                   |             0.162 |             0.838 |                   | 
## ------------------|-------------------|-------------------|-------------------|
## 
## 
## [1] "Estimated financial impact of the model: 57420"