Many potential borrowers face barriers to obtaining home loans due to stringent banking requirements and complex lending criteria. Home Credit International seeks to enhance financial inclusion by extending credit to applicants with limited traditional credit histories while simultaneously controlling the risk of loan default. By utilizing historical loan application data and credit behavior information collected from multiple data sources, the objective is to develop a predictive model that estimates the probability of loan repayment or default prior to loan approval.
This project develops an end-to-end default-risk pipeline for Home Credit, including:
- exploratory analysis,
- reusable data preparation and feature engineering,
- comparative modeling and hyperparameter tuning,
- Kaggle submission generation,
- and model governance documentation.
HOME_CREDIT_EDA.qmd— Exploratory data analysis (target imbalance, predictors, missing data, anomalies, supplementary joins)Data_preparation.qmd— Reusable train/test data preparation and feature engineering functionsModeling.qmd— Full modeling workflow (benchmarks, model comparison, imbalance handling, tuning, final training, submission)Modeling.html— Rendered modeling reportMODEL_CARD_NOTEBOOK.qmd— Assignment model card notebook (executive summary, performance, threshold analysis, SHAP, fairness, risks)MODEL_CARD.qmd— Extended model card versionMODEL_CARD_README.md— Quick guide to model card sections
application_train.csvapplication_test.csvbureau.csvbureau_balance.csvprevious_application.csvinstallments_payments.csvcredit_card_balance.csvPOS_CASH_balance.csvsample_submission.csv
- Target is highly imbalanced (~92% non-default vs ~8% default)
- Majority-class baseline can show high accuracy but weak discrimination; AUC is the primary metric
- Strong predictors include
EXT_SOURCE_*, age-related fields, and credit history features - Key anomaly:
DAYS_EMPLOYED = 365243placeholder value - Missingness is informative and explicitly modeled via indicators/imputation strategy
Data_preparation.qmd provides reusable functions that:
- fix known anomalies,
- engineer demographic and financial-ratio features,
- aggregate supplementary transactional data to
SK_ID_CURR, - join aggregated features back to application data,
- and keep train/test feature schemas consistent.
- Train-only statistics (medians/bin thresholds) are fit on training data
- Stored values are reused on test data
- Train/test columns are aligned identically (except
TARGET)
- Majority-class baseline
- Logistic regression (core and expanded predictor sets)
- Random forest
- XGBoost
- Baseline accuracy is inflated by imbalance and not sufficient
- AUC-based comparison favored boosted trees
- XGBoost delivered strongest out-of-sample CV AUC with practical training time
- Compared no adjustment, class weighting, upsampling, and downsampling
- Used randomized search (~20 iterations) with 5K sample and 3-fold CV
- Selected tuned XGBoost and retrained on full training data
- Submission file generated in the modeling notebook
- Public leaderboard AUC: 0.794
This notebook covers the required assignment sections:
- Model Details
- Intended Use
- Performance Metrics (CV AUC, Kaggle AUC, precision/recall at threshold)
- Decision Threshold Analysis with cost assumptions and sensitivity analysis
- Explainability (SHAP on 1,000-row sample)
- Adverse Action Mapping
- Fairness Analysis (
CODE_GENDER,NAME_EDUCATION_TYPE) - Limitations and Risks
- Executive Summary
Speed-up constraints are explicitly implemented:
- SHAP computed on a 1,000-row sample
- Modeling workflow/model settings reused from
Modeling.qmd
quarto render HOME_CREDIT_EDA.qmd
quarto render Data_preparation.qmd
quarto render Modeling.qmd
quarto render MODEL_CARD_NOTEBOOK.qmdThe scope of this project includes exploratory data analysis of applicant and credit behavior data collected from multiple sources, followed by the development of a predictive analytics model to identify loan applicants at high risk of default. Model performance is evaluated using the Area Under the Receiver Operating Characteristic Curve (ROC–AUC) to assess discriminatory power. The model is designed to support safer, more inclusive loan approval decisions for applicants with limited credit histories and does not include post-approval loan monitoring or recovery strategies.
This project was completed as an individual assignment. I was responsible for the entire project lifecycle, utilizing AI-driven analysis to perform deep-dive data cleaning and model evaluation for the Home Credit dataset.
Many people are "unbanked" or have "thin" credit files (little to no history). Traditional scoring models often reject these people automatically because they look like a "blank slate," which the system interprets as high risk.
The Value: By using AI to look at alternative data (like telco bills or transaction patterns), the business can safely approve loans for people who would have been rejected before.
Result: This opens up an entirely new market of customers, increasing the company's total loan volume and revenue.
Every time a customer fails to pay back a loan (a "default"), the company loses the principal amount plus the interest they expected to earn.
The Value: Even a small increase in model accuracy (e.g., a 1% to 2% improvement in identifying "bad" applicants) can save a large lender millions of dollars per year.
Result: Lowering the default rate directly increases the company's net profit margin.
Manual credit reviews are slow and expensive. A loan officer can only review a few dozen applications a day.
The Value: An AI model can process thousands of applications in milliseconds with consistent logic.
Result: This reduces the "cost-per-application" and provides a better customer experience by giving instant approvals.
In this project, I utilized AI-assisted workflows to develop a predictive model for the Home Credit Default Risk challenge on Kaggle. This experience provided hands-on expertise in the end-to-end data science lifecycle:
Exploratory Data Analysis (EDA): I learned how to deep-dive into complex datasets to uncover hidden patterns and correlations between applicant profiles and repayment capabilities.
Advanced Data Preprocessing: I practiced rigorous data cleaning and feature engineering to ensure the model received high-quality, normalized input.
Model Selection & Training: I evaluated multiple machine learning algorithms, focusing on the trade-offs between different models to identify the most accurate predictor.
Validation & Business Logic: I performed robust model validation to ensure the results were not just statistically sound, but also actionable for real-world financial risk and business decision-making.
Phan Chung
March 22, 2026