Model performance
Three classifiers trained on 5,049 historical loans with a time-based 80/20 split.
ROC-AUC (test)
0.740
Random = 0.500
PR-AUC (test)
0.515
Baseline = 0.274
Recall on defaults
0.68
At threshold 0.5
Precision on defaults
0.43
At threshold 0.5
Model comparison
All three models were trained on the same data. Logistic Regression was
selected as the production model based on its PR-AUC and interpretability.
| Model | ROC-AUC | PR-AUC | Selected |
|---|---|---|---|
| Logistic Regression | 0.7398 | 0.5147 | ★ Primary |
| Random Forest | 0.7452 | 0.4868 | — |
| XGBoost | 0.7079 | 0.4688 | — |
ROC curve — trade-off between true positive and false positive rate.
Precision–Recall curve — the metric that matters for imbalanced credit data.
Confusion matrix at threshold 0.5.
Calibration — how closely predicted probabilities match observed default rates.
SHAP beeswarm — every dot is one loan. Features are ranked by their impact
on the model's output. Colour shows whether the feature value was high or
low for that loan.
Mean absolute SHAP value — the average magnitude of each feature's
contribution to the model's predictions.