LOADING DATA INTO R ENVIRONMENT

TRAINING THE RANDOM FOREST MODEL

Variable Importance in Random Forest Model

TESTING THE RANDOM FOREST MODEL

Confusion Matrix at 50% Cut-Off Probability

## Confusion Matrix and Statistics
## 
##          Actual
## Predicted   No  Yes
##       No  4519 1226
##       Yes   80   95
##                                           
##                Accuracy : 0.7794          
##                  95% CI : (0.7686, 0.7899)
##     No Information Rate : 0.7769          
##     P-Value [Acc > NIR] : 0.3262          
##                                           
##                   Kappa : 0.0789          
##                                           
##  Mcnemar's Test P-Value : <2e-16          
##                                           
##             Sensitivity : 0.07192         
##             Specificity : 0.98260         
##          Pos Pred Value : 0.54286         
##          Neg Pred Value : 0.78660         
##              Prevalence : 0.22314         
##          Detection Rate : 0.01605         
##    Detection Prevalence : 0.02956         
##       Balanced Accuracy : 0.52726         
##                                           
##        'Positive' Class : Yes             
##