Giter Site home page Giter Site logo

amario1306619051 / finanku-credit-risk-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 212 KB

Building a financial customer default risk prediction model using Machine Learning with financial data.

Jupyter Notebook 100.00%
bussiness-intelligence classification data-analytics data-science machine-learning python3 sklearn

finanku-credit-risk-prediction's Introduction

Customer Credit Risk Prediction

Table of Contents

Introduction

This project aims to predict the credit risk of customers using various machine learning algorithms. We will analyze the dataset, preprocess the data, build predictive models, and evaluate their performance.

Data

We have used two datasets for this project:

Data Understanding

  • We explored the distribution of customers based on location and identified those with unpaid bills.
  • Analyzed customer age distribution for both all customers and those with unpaid bills.
  • Calculated the average annual and quarterly balances of customers.
  • Examined the average product ownership of customers.

Data Preparation

We performed data preprocessing and feature engineering:

  • Checked for duplicate and missing data.
  • Calculated relevant variables such as mean balance and balance change over the observation period.
  • Determined customer activity periods.
  • Added or subtracted product holdings.
  • Calculated the duration of credit card ownership.

Modeling

We built predictive models using three different algorithms:

  • Logistic Regression
  • Gradient Boosting (XGBoost)
  • Random Forest

Hyperparameters were tuned using GridSearchCV for each algorithm and each experiment.

Evaluation

We evaluated the models using various metrics, including accuracy and recall. The results showed that the models had reasonable accuracy but lower recall, indicating room for improvement.

Conclusion

In this project, we aimed to predict customer credit risk using various machine learning models. While the models showed promise, further improvements are needed to enhance the recall and better identify potential credit risks. Possible future steps include increasing the dataset, oversampling the minority class, expanding the time horizon, trying different feature combinations, exploring more hyperparameter combinations, and experimenting with other machine learning algorithms.

finanku-credit-risk-prediction's People

Contributors

amario1306619051 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.