Credit Card Default Prediction Using Random Forest Classification

24 Nov

Authors: Assistant Professor Dr. V. Subha, K Soma Surya Kalyan, MB Rahul Krish

Abstract: Credit card default prediction is an important machine learning problem in financial risk assessment because identifying customers who may default can support informed credit-management decisions. This study presents a Random Forest-based binary classification approach using the UCI Default of Credit Card Clients dataset. The implementation was carried out in Python using pandas, NumPy, ucimlrepo, and scikit-learn. The data were combined into a single DataFrame, inspected, and cleaned by removing duplicate rows. After preprocessing, 29,965 records and 23 input features were used. The dataset was divided using an 80:20 train-test split with random_state=42 and stratified sampling. A Random Forest Classifier containing 100 trees was trained without hyperparameter tuning. Performance was evaluated using accuracy, weighted precision, weighted recall, weighted F1-score, classification report, and confusion matrix. The reported model results are 81.31% accuracy, 79.39% weighted precision, 81.31% weighted recall, and 79.30% weighted F1-score. Class-wise results show stronger performance for the No Default class than for the Default class, particularly in recall. The study therefore provides a baseline Random Forest implementation while demonstrating the difficulty of detecting the minority default class.

DOI: https://doi.org/10.5281/zenodo.24495190