Generate Adverse Action Reason Codes From a Gradient Boosted Credit Model
Last updated: November 29, 2026
Quick Overview
Regulation requires telling declined credit card applicants the principal reasons for the decision. Explain how you would derive reliable reason codes from a gradient boosted model, including the baseline choice and how you would validate the codes.
Capital One
November 29, 20260
0
0 solved
Regulation requires telling declined credit card applicants the principal reasons for the decision. Explain how you would derive reliable reason codes from a gradient boosted model, including the baseline choice and how you would validate the codes.
Capital One must send adverse action notices under ECOA and Regulation B, so any machine-learned underwriting model needs defensible explanations at the individual level. The interviewer is checking practical explainability: SHAP or similar attributions, the reference point, grouping into customer-readable reasons, and stability.
What the Interviewer Expects
- Explains the legal need for specific principal reasons
- Uses per-applicant attributions such as SHAP and states the baseline
- Chooses a meaningful reference point, such as approved applicants near the cutoff
- Groups correlated features into human-readable reason categories
- Only reports factors that pushed the score toward decline
- Validates stability and monotonic sense of the codes
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- What goes wrong if two highly correlated features split the attribution?
- How would you handle a feature that is not actionable, like age of oldest account?
- How would monotonic constraints help explanations?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
The model outputs a default probability; applicants above a cutoff are declined. The notice needs up to four principal reasons in plain language, like "Proportion of balances to credit limits is too h...
Approach
- Compute per-applicant attributions with TreeSHAP, which is exact for tree ensembles and fast.
- Choose the baseline carefully: SHAP values explain the difference from an expected value. Using the ...