Credit Default Risk Model: Design, Cutoff, and Fairness Review
Machine LearningModel answerLast updated
Design an end-to-end default-risk classifier for a lender, from label definition through approval cutoff, fairness testing, explainability and post-launch monitoring.
A lender gives you a table of historical loan applications. Each row holds details about the applicant, details about the loan requested, and a binary outcome marking the loan as repaid acceptably or defaulted / seriously delinquent under the lender's business rules.
Walk through how you would build a model that predicts repayment risk and supports the lender's approve/decline decision. Cover each of these areas:
- Problem framing: what exactly you predict, and how you would define the label.
- Data work: how you would explore, clean, split and engineer features from the data.
- Model choices: which algorithms you would try, and why.
- Metrics: how you would measure both statistical quality and business value.
- Decision cutoff: how you would pick the score above which applications are declined.
- Fairness and compliance: how you would detect and reduce unfair treatment of protected groups while meeting lending regulations.
- Operations: how you would explain decisions, validate the model, and monitor it once it is live.
Be specific about trade-offs, and say which pitfalls you would watch for.
Hints
Hint 1
Pin down the label first: which delinquency or default event counts as bad, over what observation window, and which loans (immature, fraud, ambiguous) get excluded. Also ask which features are truly known at application time.
Hint 2
Derive the cutoff from economics: compare profit on a repaid loan with loss on a defaulted one, which gives a break-even probability. That only works if predicted probabilities are calibrated.
Hint 3
Treat fairness as a design constraint: leave protected attributes out of the features, screen for proxies, measure group outcomes (for example approval-rate ratios), and search for less discriminatory model variants rather than using group-specific thresholds.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Overview
This is a decision problem, not just a prediction problem. The model outputs a probability of default, and that probability drives money, risk and legal exposure. A strong answer ties every modeling choice to one of those three.
1. Objective and label
- Target: estimate P(bad | information available at application time). This feeds approve/decline and potentially pricing.
- Label definition: agree it with the business. A typical choice is "90+ days past due, charged off, or bankrupt within 12-24 months of origination" (the performance window).
- Exclusions: loans still inside the window (immature), confirmed fraud (separate model), and indeterminate cases such as loans that went briefly late then cured. Drop or analyze these separately.
- Leakage: use only point-in-time features. Payment history, current balance and collections flags are post-origination and must not enter.
- Selection bias: outcomes exist only for previously approved applicants. Name this limitation and mention mitigations: reject inference, or a small randomized approve-below-cutoff test cell to observe outcomes for marginal applicants.
2. Data exploration and preparation
- Plot bad rate by origination month (vintage). Defaults track the economy, so odd vintages need explanation.
- Split by time: train on older vintages, validate on newer ones, with a final out-of-time holdout. Random splits overstate performance because they leak economic conditions.
- Missing values: missingness is often informative (thin credit file). Add missing indicators and use native NaN handling in tree models.
- Outliers: cap ratios such as debt-to-income and utilization, and validate impossible values.
- Features: payment-to-income, utilization, recent inquiries, months since last delinquency, loan-to-value.
- Protected attributes (race, sex, religion, national origin, marital status, and age in some contexts) are excluded from the features but retained or estimated for fairness testing.
- Proxy screening: ZIP code, names and some merchant categories can encode protected status. Test their correlation and predictive contribution before including them.
3. Models
| Model | Role |
|---|---|
| Logistic regression / WoE scorecard | Transparent benchmark that regulators know |
| Gradient boosted trees | Likely champion; captures interactions and nonlinearity, often a few Gini points above the scorecard |
| GBM with monotonic constraints | Forces sensible directions (higher DTI never lowers risk); improves stability and explainability |
Neural networks rarely justify their governance and explainability cost on tabular credit data. Tune with time-aware cross-validation, early stopping and regularization. Calibrate with isotonic or Platt scaling so scores are true probabilities.
4. Metrics
- Ranking: AUC/Gini (2*AUC - 1) and KS. PR-AUC if defaults are rare.
- Calibration: Brier score and predicted vs. actual bad rate by decile. This matters most because the cutoff and pricing use the probability values.
- Business: at a given approval rate, report the bad rate among approvals and expected profit. Compare against the current policy with a swap-set analysis: applicants the new model approves but the old one declined (swap-ins), and the reverse (swap-outs), with expected performance of each group.
- Stability: performance by vintage and segment.
Reporting accuracy alone is a red flag, since it ignores class imbalance and unequal costs.
5. Choosing the cutoff
Approve when expected profit is positive:
(1 - p) * G - p * L > 0, so approve if p < G / (G + L)
G is profit on a repaid loan (interest + fees - funding cost); L is loss given default times exposure.
Example: G = 1,200 and L = 6,000 gives p* = 1,200 / 7,200, about 16.7%.
Then refine:
- Apply constraints: maximum portfolio bad rate, capital, volume targets, fairness limits.
- Consider risk-based pricing instead of one cutoff, where allowed.
- Check calibration near the cutoff, where decisions flip, and stress-test (for example L or p up 30%).
6. Fairness, bias and regulation
Legal frame (US): ECOA/Regulation B and the Fair Housing Act prohibit disparate treatment (using protected class directly) and unjustified disparate impact (neutral policy that disproportionately harms a group when a less discriminatory alternative exists). Adverse action notices must give specific principal reasons. Model risk guidance (SR 11-7) requires documented development, validation and governance.
Measuring:
- Protected status is often not collected, so estimate it, for example with BISG (surname plus geography).
- Adverse Impact Ratio = approval rate of protected group / approval rate of reference group. Investigate below about 0.80 (some lenders use 0.90).
- Also compare score distributions, false negative rates (creditworthy people declined) and calibration by group.
- Acknowledge that when base rates differ, calibration and equal error rates cannot all hold at once. State which you prioritize and justify it.
Mitigating:
- Remove or replace proxy features.
- Run a less discriminatory alternative search: vary features, hyperparameters or add a fairness penalty or constraint, then plot AUC against AIR. Choose a model that improves AIR materially for a small accuracy cost and document the search.
- Never use group-specific thresholds based on protected class; that is disparate treatment.
7. Explain, validate, monitor
Explain: global SHAP importance, partial dependence and monotonicity checks; per-applicant SHAP contributions mapped to plain-language reason codes for adverse action notices.
Validate: independent review of data, assumptions and code; out-of-time and segment backtests; benchmark against the scorecard; sensitivity and stress tests; challenger models.
Monitor after launch:
- Input drift (PSI on features and scores), approval rate and mix shift.
- Early-delinquency indicators, since true default labels arrive months later. Track calibration and Gini as vintages mature.
- Fairness metrics on a schedule, with alert thresholds.
- Retraining triggers, rollback plan, and a champion/challenger setup.
Common mistakes
- Random train/test split on time-dependent data.
- Using post-origination fields (leakage).
- Ignoring selection bias from approved-only data.
- Reporting accuracy instead of ranking, calibration and profit.
- Picking a cutoff to maximize F1 instead of using economics.
- Including protected attributes or obvious proxies, or applying different thresholds by group.
- Deploying an uninterpretable model that cannot produce adverse action reasons.