Loan default prediction · XGBoost
CreditRisk AI scores a loan application's probability of default in real time, then states its decision — approve, review, or reject — alongside the three reasons that drove it.
In the dataset behind this model, 7,102 of 32,581 borrowers — better than one in five — defaulted on their loan. Traditional underwriting struggles to catch them ahead of time.
An XGBoost classifier reads ten features off the application — income, loan size, interest rate, credit grade, employment and credit history — and outputs a single probability of default. That probability is then routed through three fixed thresholds:
What the model learned matters most
Move the sliders to sketch out a borrower. The read-out below reconstructs the trained model's logic and thresholds from the project's documented feature weights, so you can feel how each factor moves the decision — the full XGBoost + SHAP pipeline lives in the repo's notebook.
Probability of default
| Profile | Probability of default | Decision | Result |
|---|---|---|---|
| Perfect borrower | 0.40% | Approve | ✓ correct |
| Good borrower | 0.52% | Approve | ✓ correct |
| Moderate risk borrower | 9.79% | Approve | ✓ correct |
| High risk borrower | 99.46% | Reject | ✓ correct |
| Worst case borrower | 99.42% | Reject | ✓ correct |