Skip to content

Predict credit risk using machine learning (LogReg, Random Forest). Built clean pipeline with EDA, modeling, and visualizations.

License

Notifications You must be signed in to change notification settings

Ankur-krGarg/Credit-Risk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏦 Credit Risk Prediction using Machine Learning

This project applies machine learning to assess the risk of granting credit to potential borrowers. The goal is to predict whether a loan applicant is likely to default, helping lenders make data-driven decisions.


🔍 Problem Statement

Credit risk modeling is crucial for financial institutions to minimize losses. This project uses historical customer data to predict loan status (safe or risky), leveraging classification techniques.


📊 Dataset Overview

The dataset includes key features such as:

  • Age, Job, Housing, Loan status
  • Credit amount, Duration, Purpose
  • Savings, Checking account balance
  • Personal status, Employment, and more

Source: Public dataset (e.g., UCI German Credit — replace if different)


🧠 ML Techniques Used

  • EDA & Visualization (missing value treatment, correlations)
  • Encoding & Scaling (Label Encoding, StandardScaler)
  • Feature Engineering (selecting top features)
  • Modeling: Logistic Regression, Random Forest, Decision Tree
  • Evaluation: Accuracy, Precision, Recall, F1-Score, Confusion Matrix
  • ROC Curve & AUC Score

✅ Results

  • Achieved over 85% accuracy with Random Forest Classifier.
  • Visualized results using Seaborn and Matplotlib.
  • Feature importance and confusion matrix help interpret performance.

📌 Key Learnings

  • End-to-end pipeline of a real ML classification problem.
  • Importance of balancing data and choosing the right metric.
  • Clear understanding of model performance and tradeoffs.

About

Predict credit risk using machine learning (LogReg, Random Forest). Built clean pipeline with EDA, modeling, and visualizations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published