Quantitative Risk & Model Governance

Completed

Credit Risk Scorecard

Regulatory-compliant credit scoring engine built on Home Credit data, evaluating a Logistic Regression scorecard against XGBoost challengers.

Key Performance Metrics

0.72
Scorecard AUC5-feature WoE logistic regression baseline model
+0.01
Algorithmic LiftTree model, same 5 features (0.7282 AUC)
+0.001
Bureau RedundancyNegligible gain from 7 external bureau features

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

Exhibit 1.1: Model discrimination

Kolmogorov-Smirnov (KS) Separation Curve

Cumulative Non-Defaulters (Good) Cumulative Defaulters (Bad) Optimal Cutoff (KS = 52.6%)
Interactive credit risk discrimination chart rendering score bands from 350 to 850. At the optimal cutoff score of 640, the Kolmogorov-Smirnov statistic reaches 52.6% maximum divergence, achieving a default rate of 20.2% on an approval rate of 26.0%.
100%75%50%25%0%Max KS: 52.6% (Cutoff 640)350450550640*750850Credit Score Band (Points)
Approval rate26.0%Portfolio Volume
Cumulative default20.2%Bad Rate at Cutoff
KS separation52.6%Good vs Bad Divergence
View raw scorecard calibration table
Score BandPop ShareCum. GoodCum. BadDefault RateApproval Rate
3502%0.5%8.2%80.4%98%
4005%1.8%18.5%67.2%93%
4508%4.2%31%59.5%85%
50012%8.5%46.2%52.1%73%
55015%15%61.8%41.2%58%
60018%24.5%76%31%40%
640 (Optimal)14%35.4%88%20.2%26%
70012%58.2%94.5%11.5%14%
7509%80%98.2%4.8%5%
8005%95%99.8%1.2%1%
8502%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.

Technical implementation stack

PythonWoELogistic RegressionXGBoostSHAPOptBinningScikit-learn
Notification message