An open API service indexing awesome lists of open source software.

https://github.com/sumdiboii/loan-prediction-decision-trees

A Decision Tree Classifier was implemented to predict personal loan acceptance using a dataset of 5,000 customers. Key features included income, education, mortgage, and credit card usage. The model achieved 97% accuracy, with 92% precision and 76% recall for positive loan predictions, validated using a classification report and confusion matrix.
https://github.com/sumdiboii/loan-prediction-decision-trees

classification data-visualisation decision-trees loan-prediction machine-learning python scikit-learn supervised-learning

Last synced: about 2 months ago
JSON representation

A Decision Tree Classifier was implemented to predict personal loan acceptance using a dataset of 5,000 customers. Key features included income, education, mortgage, and credit card usage. The model achieved 97% accuracy, with 92% precision and 76% recall for positive loan predictions, validated using a classification report and confusion matrix.

Awesome Lists containing this project

README

          


Typing SVG


Loan Project Logo


💼 Loan Prediction Using Decision Trees 💼


Scikit-learn powered classification model for banking analytics.




📊 Open in Colab


---


## 🚀 Project Overview

This project utilizes a Decision Tree Classifier to predict whether a customer will accept a personal loan offer, based on a dataset of 5,000 banking records. Key features include customer income, education level, credit card spending, mortgage value, and account behavior. The model was trained using scikit-learn and evaluated with a classification report and confusion matrix, achieving an **accuracy of 97%**, with **92% precision** and **76% recall** for predicting positive loan responses.


---


## 🛠️ Tech Stack and Tools




Technology
Purpose




Python
Primary programming language


Pandas
Data loading, cleaning, and manipulation


Matplotlib & Seaborn
Data visualization and analysis


Scikit-learn
Model training, testing, and evaluation


Jupyter Notebook / Colab
Interactive development and visualization


---


## 🔍 Core Highlights

- 📊 Cleaned and preprocessed 5,000 rows of real-world banking data
- 🌲 Trained a Decision Tree Classifier with `max_leaf_nodes=3`
- 🧠 Achieved **97% overall accuracy**
- 🎯 Precision: **92%** for identifying loan-accepting customers
- 📉 Visualized loan acceptance trends across education, family size, and financial behavior


---


## 📚 Key Learning Outcomes

- Practical understanding of classification algorithms using Decision Trees
- Insights into data-driven loan decision modeling
- Experience in evaluating model performance with precision, recall, and confusion matrix
- Visualization of model errors using Seaborn


---


## 👨‍💻 About the Creator

**Sumdiboii** – Machine Learning Enthusiast & Software Developer

*LinkedIn – [Sumedh Pimplikar](https://www.linkedin.com/in/sumedh-pimplikar)*


> **From raw banking data to sharp predictions — this project showcases the practical power of decision trees in solving real-world business problems.**