Logo Lanfrica

Rogerlytics/loan-default-prediction-kenya

Domain:

socioeconomic
Creator:
Rog
Host:
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