Credit Risk Scorecard
Regulatory-compliant credit scoring engine built on Home Credit data, evaluating a Logistic Regression scorecard against XGBoost challengers.
Key Performance Metrics
Executive abstract
In commercial lending, choosing a model is not simply an AUC competition. This project implements a full production scorecard on the Kaggle Home Credit Default Risk dataset and contrasts it against XGBoost challengers, documenting the exact trade-offs between mathematical explainability, regulatory compliance, and raw predictive power.
Empirical exhibit
Kolmogorov-Smirnov (KS) Separation Curve
View raw scorecard calibration table
| Score Band | Pop Share | Cum. Good | Cum. Bad | Default Rate | Approval Rate |
|---|---|---|---|---|---|
| 350 | 2% | 0.5% | 8.2% | 80.4% | 98% |
| 400 | 5% | 1.8% | 18.5% | 67.2% | 93% |
| 450 | 8% | 4.2% | 31% | 59.5% | 85% |
| 500 | 12% | 8.5% | 46.2% | 52.1% | 73% |
| 550 | 15% | 15% | 61.8% | 41.2% | 58% |
| 600 | 18% | 24.5% | 76% | 31% | 40% |
| 640 (Optimal) | 14% | 35.4% | 88% | 20.2% | 26% |
| 700 | 12% | 58.2% | 94.5% | 11.5% | 14% |
| 750 | 9% | 80% | 98.2% | 4.8% | 5% |
| 800 | 5% | 95% | 99.8% | 1.2% | 1% |
| 850 | 2% | 100% | 100% | 0.2% | 0% |
Scorecard Baseline vs. Algorithmic Challengers
A baseline production scorecard was built using 5 Weight of Evidence (WoE) transformed features, achieving a 0.7188 AUC and scaled to standard points (PDO = 20). Two XGBoost challengers were built to measure lift: Challenger A tested the pure algorithmic boost on the same 5 features (0.7282 AUC), while Challenger B added 7 credit bureau features (0.7294 AUC).
The WoE Risk Ceiling & Outlier Blindness
A critical finding surfaced: binning continuous variables caps a linear model default probability at approximately 55% for the highest-risk applicants because they land in the same worst-case WoE bin. Operating on unbinned features, XGBoost correctly flagged these same individuals at ~92% risk.
SHAP Analysis & External Feature Redundancy
SHAP values revealed that external credit bureau features added virtually no independent information (+0.0012 AUC). Two application features (EXT_SOURCE_2 and EXT_SOURCE_3) accounted for over 60% of all decision weight, acting as near-perfect proxies for historical bureau creditworthiness.
What I would do differently
In future iterations, I would implement reject inference techniques to correct for survivorship bias in approved versus rejected loan populations.