This project predicts whether a housing loan application will be approved or rejected using Logistic Regression. It leverages financial and demographic data to help financial institutions make data-driven decisions.
- Analyze housing finance dataset
- Perform data preprocessing & feature engineering
- Build Logistic Regression model
- Evaluate model using accuracy & ROC curve
The dataset includes key attributes such as:
- ๐ฐ Income to Asset Ratio (IAR)
- ๐ Loan to Value Ratio (LTV)
- ๐ Fixed Obligation to Income Ratio (FOIR)
- ๐ข Employer Type
- ๐ฆ Bank Savings
- ๐ Marital Status
- ๐ฏ Loan Decision (Target Variable)
-
Language: R
-
IDE: RStudio
-
Libraries:
- fastDummies
- corrplot
- caTools
- car
- ROCR
https://1drv.ms/x/c/f483042b9735aab9/IQCcLU9hPxEoSKeUcyso96AtAXgJrAD9s0hlR95DtLMv7L4?e=NLESkm
- Converted categorical variables into numerical format
- Used label encoding & dummy variables
- Correlation analysis to detect relationships & multicollinearity
- 70% Training Data
- 30% Testing Data
- Built Logistic Regression using
glm()function
- Confusion Matrix
- ROC Curve
- Accuracy Score
-
โ Achieved ~74% accuracy
-
๐ Key influencing features:
- Income to Asset Ratio
- Loan to Value Ratio
- FOIR
- Employer Type
- Bank Savings
# Install required libraries
install.packages(c("fastDummies","corrplot","caTools","car","ROCR"))
# Load dataset
data <- read.csv("your_dataset.csv")
# Run model (example)
model <- glm(Decision ~ ., data=data, family=binomial)
summary(model)Can also use this R file https://1drv.ms/u/c/f483042b9735aab9/IQCoIaLp1xnLSpKp9u3DH53DATKkz6ZvZk8x2qu98uoli0E?e=zp0not
- Logistic Regression effectively predicts loan approval decisions
- Financial ratios play a major role in decision-making
- Machine learning improves accuracy and reduces manual effort
- Use advanced models (Random Forest, XGBoost)
- Hyperparameter tuning
- Deploy as a web app (Shiny)
- Improve accuracy with feature selection
Dhathri Narne ๐ Data Analyst | Machine Learning Enthusiast
Give it a โญ on GitHub!