KatInterview

Choosing and Validating a Loan Default Model Under Regulation

Machine LearningModel answer
MediumModel answerMachine Learningcredit-riskgradient-boostingclass-imbalance

Last updated

Compare logistic regression, random forests and boosted trees for predicting loan default, and explain how to validate them, treat rare defaults, and keep decisions explainable.

Scenario

A lender wants to replace its current underwriting score with a machine-learning model that estimates the probability that an applicant will default. The inputs are tabular: credit bureau attributes, application fields and internal account behavior. Only a small share of applicants (roughly 2-10%) ever default. The score will drive approval, credit limits and pricing, and it will feed expected-loss calculations. The lender operates under fair-lending and model-risk rules, so every decline must be explainable to the applicant and the model must pass independent validation.

Questions

  1. Compare logistic regression, random forest and gradient boosting for this task. Discuss strengths and weaknesses, and say which you would put into production and why.
  2. Describe how you would evaluate the candidate models. Which metrics, and what validation design?
  3. Explain how you would deal with the class imbalance.
  4. Explain how you would make the final model interpretable and compliant.

What a good answer covers

  • A clear problem framing (target definition, how the score is used).
  • A concrete comparison across accuracy, calibration, interpretability, constraints and governance.
  • Metrics for ranking, probability accuracy, business impact, stability and fairness.
  • A reasoned stance on resampling versus weighting versus threshold choice.
  • Practical failure modes such as leakage, drift and selection bias.

Hints

Hint 1

Ask what the score is used for. If it feeds expected loss and pricing, ranking alone is not enough, so think about calibrated probabilities as well as discrimination.

Hint 2

How you split the data can matter more than which metric you report. Consider what differs between loans originated in different periods, and whether the outcome window has had time to mature.

Hint 3

Ask which of your metrics change when you rebalance classes, and which do not. Then consider what weighting or resampling does to predicted probabilities and how to repair it.

Hint 4

Think about what must be handed to a declined applicant and to a regulator: reason codes, sensible feature directions, and evidence of fairness testing. Which model families make that easy, and which need extra tooling?