In this machine learning project, the goal is to assist banks in making informed decisions about credit card approvals by building a Random Forest Classifier model, contributing to the ongoing efforts in leveraging machine learning for credit risk assessment and aiding financial institutions in making more informed and equitable lending decisions.
The dataset includes detailed information about 438,557 bank customers, encompassing personal and financial attributes. The project followed a comprehensive data preparation and exploration process, addressing issues such as duplicate entries and missing data. The dependent variable, representing 'good' or 'bad' clients, was not predefined; instead, this work considered customers' credit payment histories to categorize data and generate the target variable.
The analysis categorizes customers into three groups: "Not Enough Data," "Bad Payer," and "Good Payer," providing a nuanced approach to credit risk assessment. After cleaning and merging relevant datasets, the resulting "credit_data" is utilized for model training. The Random Forest Classifier is employed with 1,000 decision trees and a maximum of 4 features. To handle class imbalance, a Random Under Sampler is applied, ensuring a more balanced representation of 'good' and 'bad' clients.
The model achieves an overall accuracy of 87.36%, with a precision of 90.45% and recall of 95.52%, demonstrating its ability to effectively predict creditworthiness. Despite the successful model performance, there is a notable challenge in correctly predicting 'bad' clients, as reflected in the specificity metric (33.67%). Future improvements could focus on enhancing the model's capability to identify high-risk applicants.
Binary_Classification Machine Learning Python Random_Forest Banking