Predicting loan default risk for logbook loans using machine learning and Kenyan market data.
# π° Loan Default Prediction Model (Kenya)
## π Project Overview
This project builds a machine learning model to predict loan default risk for logbook loans in Kenya. The goal is to help financial institutions identify high-risk borrowers and reduce lending losses.
---
## π― Business Problem
Lenders in Kenya face significant risk when issuing logbook loans. This project uses data analysis and machine learning to:
* Identify high-risk customers
* Understand factors influencing default
* Improve lending decisions
---
## π Dataset
The dataset simulates real-world lending scenarios and includes:
* Customer income
* Employment type
* Loan details
* Vehicle information
* Previous loan history
---
## π Tools & Technologies
* Python (Pandas, NumPy)
* Seaborn & Matplotlib (Visualization)
* Scikit-learn (Machine Learning)
* Jupyter Notebook / Google Colab
---
## π Exploratory Data Analysis (EDA)
Key findings:
* Lower income customers have higher default rates
* Informal employment increases risk
* Older vehicles correlate with higher defaults
* High loan-to-value ratio strongly increases risk
---
## π€ Machine Learning Models
### 1. Logistic Regression
* Baseline model for prediction
### 2. Random Forest (Final Model)
* Improved accuracy
* Captures complex patterns
---
## π Key Insights
* Loan-to-value ratio is the strongest predictor
* Previous defaults significantly increase risk
* Income level affects repayment ability
---
## πΌ Business Impact
This model can help:
* Reduce loan default rates
* Improve credit risk assessment
* Support better lending decisions
---
## π Project Structure
```
loan-default-prediction-kenya/
β
βββ data/
βββ notebooks/
βββ visuals/
βββ src/
βββ README.md
```
---
## π Future Improvements
* Use real financial datasets
* Deploy model as a web app
* Add more advanced models (XGBoost)
---
## π€ Author
Data Analyst Portfolio Project
## π Project Notebook
View full analysis in the notebook:
Open Notebook