Fair Credit Underwriting Risk Classifier

Hard · Machine Learning · Data Scientist · Onsite

Prompt

You have a historical table of consumer loan applications. Each record represents a single credit request containing borrower profile attributes, requested loan terms, and a binary repayment outcome indicating whether the borrower repaid as agreed or failed repayment criteria (such as default or severe delinquency).

Design and present an end-to-end supervised classification system for underwriting credit risk, covering:

  1. Framing the lending decision and defining a clean binary target variable.
  2. Exploratory data analysis, missing-data and leakage safeguards, and dataset splitting.
  3. Candidate model families you would benchmark and why each suits credit risk.
  4. Offline evaluation metrics spanning ranking discrimination, probability calibration, and portfolio economics.
  5. Selecting an operating approval cutoff under practical risk constraints.
  6. Auditing demographic disparities, mitigating bias, and meeting fair-lending regulations.
  7. Generating applicant-level explanations, performing independent validation, and monitoring post-deployment drift.

Scope & Expectations

  • Clear problem formulation covering prediction timestamp, outcome seasoning window, indeterminate or immature accounts, and selection bias from historically rejected applicants.
  • Sound temporal validation (out-of-time vintage splits), strict decision-time feature snapshots, and progression from transparent scorecards to constrained nonlinear models.
  • Calibrated probability-of-default cutoffs tied to expected loan profit and loss alongside domain ranking metrics (AUC/Gini, KS) and subgroup calibration checks.
  • Concrete fair-lending and governance practices: preventing disparate treatment, testing disparate impact and less discriminatory alternatives, producing individual adverse-action reasons, and tracking early drift indicators.

Step-by-step walkthrough

  1. Frame the business decision and define the target label

    A loan underwriting model exists to drive a concrete business action: approve or decline an application (and often set its interest rate or credit limit). Because both the approval cutoff and the loan price depend on expected dollar profit and loss, the model needs to output a calibrated probability of default (PD)—a predicted probability where 0.10 genuinely means about 10 out of every 100 applicants with that score fail to repay—rather than a bare yes/no label or an uncalibrated risk score.

    Before touching a single feature, pin down the exact prediction unit, observation timestamp, and outcome window with product and risk stakeholders:

    Applicant applies                 18-month performance window ends
    (Originate loan at t = 0)         (Label observed at t = +18 months)
            |----------------------------------------|
            ^                                        ^
    All model features must                  y = 1 (bad): 90+ days past due, charge-off,
    be frozen at or before                                or bankruptcy within 18 months
    this exact moment                        y = 0 (good): paid on time (never 30+ days late)
    

    Clarify edge populations explicitly rather than letting them silently pollute training:

    • Immature loans originated fewer than 18 months ago have not finished their performance window yet; drop them from 18-month binary training or handle them separately via survival analysis so recent fast defaults do not bias the base rate.
    • Indeterminate accounts (for example, borrowers whose worst status was 30–89 days late, never reaching 90+ days default) sit in a gray zone; either assign them to good/bad per business accounting rules or hold them out of training and verify that the trained model ranks them cleanly in between.
    • Third-party or first-party fraud follows adversarial behavior rather than repayment capacity and belongs in a dedicated fraud model at the top of the funnel.

    Finally, call out sample selection bias (the reject inference problem, meaning ground-truth repayment labels exist only for applicants the historical policy approved, never for the 30%–50% it declined). Training naively on approved loans alone makes the model over-optimistic on risky applicants near or below the old cutoff. Practical remedies include bureau-based inference (checking credit-bureau tradelines to see how declined applicants repaid loans they opened at other lenders), statistical reweighting / parceling (upweighting approved borrowers who resemble declined ones), or running a capped random approval slice (approving 1%–2% of marginal declines under a strict dollar loss budget to collect unbiased labels).

  2. Explore the data and prevent leakage with an out-of-time split

    Two data hygiene rules separate real credit models from broken offline prototypes:

    1. Eliminate data leakage—the mistake of feeding the model fields recorded after the loan decision was made. Columns such as payments_received, current_principal_balance, or post_origination_collections_flag make offline validation look miraculous (AUC > 0.95) and crash to random guessing at application time when those columns do not exist yet. Every feature must carry a verified decision-time snapshot.
    2. Split by vintage (out-of-time split), never at random. A vintage is the cohort of loans originated in the same month or quarter. Borrowers from the same quarter share the same interest rates, inflation, and unemployment rate, so a random row split leaks the macroeconomic environment from future test loans into training. Furthermore, each training cohort must have finished its 18-month outcome window before the split date:
    Origination month:   M1 -------- M18   M19 --- M24   M25 --- M30
                         [   Train set  ]  [Validation]  [Out-of-time Test]
                                                                |
                                                  (+18 months seasoning so every
                                                   test loan's true outcome is known)
    

    With clean splits in place, walk through a structured exploratory checklist:

    • Base rate across vintages: Check overall default rate (say 6.0%) and how it moves across economic cycles (4.5% in calm periods vs 8.5% in downturns).
    • Bivariate risk shapes: Bucket each numeric feature (debt-to-income ratio, revolving credit utilization, recent credit inquiries) into 5–10 quantiles and plot observed bad rate per bucket to see whether risk rises smoothly or bends nonlinearly.
    • Informative missingness: In lending, missing bureau fields usually identify thin-file applicants—people with little or no prior credit history—rather than random sensor drop-outs. Never blindly overwrite missing bureau values with the population median; preserve explicit missingness indicators or dedicated "no_history" bins.
    • Outliers vs real edge cases: Distinguish corrupt entries (negative age, $1,000,000,000 salary) from valid edge cases ($0 earned income for a student or retiree backed by assets).
    • Compliance feature screening: Never include legally protected characteristics (such as race, color, religion, national origin, sex, or marital status), follow statutory rules on age, and flag potential proxy features—seemingly neutral variables like 5-digit ZIP code or retail category spend that strongly encode neighborhood demographics—for fairness auditing.
  3. Progress from a transparent scorecard baseline to constrained tree models

    Train candidate models from simplest to most expressive so every jump in complexity has to earn its keep on the out-of-time validation set:

    • Baseline: Logistic regression credit scorecard. Continuous features are grouped into interpretable intervals, and each bin is encoded by its Weight of Evidence (WoE)—defined as ln((bin's share of all good loans) / (bin's share of all bad loans)). For example, if a low-utilization bin holds 20% of all good loans and 10% of all bad loans, its WoE = ln(0.20 / 0.10) = +0.693; if a high-utilization bin holds 10% of goods and 25% of bads, its WoE = ln(0.10 / 0.25) = -0.916. Adjacent noisy bins are merged until WoE moves monotonically across the feature, and logistic regression learns one linear weight per feature. Scorecards are fast, rock-stable, and trivial to turn into point tables.
    • Challenger 1: Explainable Boosting Machines (EBMs) or Generalized Additive Models (GAMs). An additive model learns one smooth nonlinear risk curve f_j(x_j) per feature (plus optional vetted pairwise interactions), capturing bends that linear logistic regression misses while keeping every feature's exact risk curve inspectable on a single chart.
    • Challenger 2: Gradient-boosted decision trees (LightGBM / XGBoost) with monotonic constraints. Gradient boosting builds an ensemble of shallow decision trees sequentially, where each new tree fits the residual errors left by previous trees. Left unconstrained, trees can learn jagged noise—such as briefly predicting lower default risk when debt-to-income jumps from 48% to 52% due to a tiny sample quirk. Enforcing monotonic constraints (rules guaranteeing predicted PD can never decrease when debt-to-income or delinquency count increases) regularizes overfitting and keeps every adverse-action explanation defensible.

    Finally, apply post-hoc probability calibration on the validation set—using Platt scaling (fitting a two-parameter logistic curve over raw log-odds) or isotonic regression (fitting a non-decreasing piecewise-constant step curve when validation data is plentiful)—because boosted trees optimize ranking/log-loss imperfectly and often push probabilities away from true empirical default rates.

  4. Measure ranking power, calibration, and business impact separately

    Raw classification accuracy is misleading on imbalanced credit data: if 6% of borrowers default, approving 100% of applicants achieves 94% accuracy while losing millions on every bad loan. Instead, evaluate three complementary families of metrics on the out-of-time test set:

    Metric family   What question it answers                        Core metrics & worked numbers
    -------------   ---------------------------------------------   --------------------------------------------------
    1. Ranking      Does the model score bad loans higher than      ROC-AUC = 0.78  ->  Gini = 2 * 0.78 - 1 = 0.56
                    good loans across all possible cutoffs?         KS = 0.40 (at cutoff capturing 65% bads, 25% goods)
                                                                    PR-AUC (focuses on precision/recall of rare bads)
    
    2. Calibration  When the model predicts 10% PD, do roughly      Calibration curve by score decile (predicted vs
                    10 out of 100 borrowers actually default?       observed bad rate), Brier score, Log Loss
    
    3. Business     What happens to portfolio volume, losses,       Approval rate, bad rate among approved loans,
                    and dollar profit at our operating cutoff?      expected net profit ($), swap-set loss delta
    

    Define the domain-standard ranking metrics clearly:

    • ROC-AUC is the probability that a randomly chosen bad loan receives a higher predicted PD than a randomly chosen good loan (0.50 is coin-flip guessing; 1.00 is perfect separation).
    • Gini coefficient (2 * AUC - 1) rescales AUC onto [0, 1] and is standard in consumer banking.
    • KS (Kolmogorov-Smirnov) statistic measures the maximum vertical separation between the cumulative percentage of all bad loans captured and the cumulative percentage of all good loans captured as you sweep the risk threshold (65% - 25% = 40 points is strong consumer-credit separation).
    • Brier score is the mean squared error mean((p_i - y_i)^2) between calibrated PD p_i and outcome y_i.

    Always slice every metric across key subpopulations—new vs repeat borrowers, acquisition channel, loan size tier, thin-file vs thick-file, and demographic groups—because a 0.78 overall AUC can easily hide a 0.61 near-random AUC on thin-file applicants.

  5. Set the approval threshold from unit economics and risk constraints

    Once predicted PD p is well-calibrated, the unconstrained profit-maximizing cutoff comes directly from expected value per loan. Suppose:

    • A repaid good loan (y = 0, probability 1 - p) earns gain_if_good = $1,200 in net interest margin after funding and servicing costs.
    • A defaulted bad loan (y = 1, probability p) on a $10,000 principal with a 50% loss given default (LGD)—the share of exposure never recovered after collections—loses loss_if_bad = $5,000.

    Approve an applicant whenever expected profit is positive:

    expected_profit(p) = (1 - p) * $1,200 - p * $5,000
                       = $1,200 - $6,200 * p
    
    Approve when:  $1,200 - $6,200 * p > 0   =>   p < 1,200 / 6,200 = 0.1935  (about 19.4% PD)
    

    Walk through 10,000 out-of-time applicants sorted into five equal risk bands of 2,000 applicants each:

    Band   Count   Calibrated PD   Expected profit / loan          Band profit     Cumulative profit
    ----   -----   -------------   -----------------------------   -------------   -----------------
      1    2,000        2%         0.98*1200 - 0.02*5000 = +1076    +$2,152,000       +$2,152,000
      2    2,000        5%         0.95*1200 - 0.05*5000 =  +890    +$1,780,000       +$3,932,000
      3    2,000       10%         0.90*1200 - 0.10*5000 =  +580    +$1,160,000       +$5,092,000  <- optimal cutoff
      4    2,000       20%         0.80*1200 - 0.20*5000 =   -40       -$80,000       +$5,012,000
      5    2,000       35%         0.65*1200 - 0.35*5000 =  -970    -$1,940,000       +$3,072,000
    

    Approving Bands 1–3 (PD < 19.4%) approves 6,000 / 10,000 = 60% of applicants, yields $5,092,000 in expected profit, and produces an expected portfolio default rate of (2% + 5% + 10%) / 3 = 5.67%.

    def best_approval_cutoff(bands, gain_if_good, loss_if_bad):
        """Return how many safest-first (count, pd) bands to approve to maximize net profit."""
        best_profit = 0.0
        best_band_count = 0
        cumulative_profit = 0.0
    
        for band_index, (applicant_count, pd) in enumerate(bands, start=1):
            # Expected net dollars per loan in this score band
            profit_per_loan = (1.0 - pd) * gain_if_good - pd * loss_if_bad
            cumulative_profit += applicant_count * profit_per_loan
            if cumulative_profit > best_profit:
                best_profit = cumulative_profit
                best_band_count = band_index
    
        return best_band_count
    
    
    sample_bands = [(2000, 0.02), (2000, 0.05), (2000, 0.10), (2000, 0.20), (2000, 0.35)]
    print(best_approval_cutoff(sample_bands, gain_if_good=1200, loss_if_bad=5000))  # 3
    

    In production, tighten or adjust that economic break-even point against real business constraints: a board-mandated bad-rate ceiling (for example, portfolio defaults must stay <= 5.0%), available lending capital, risk-based pricing tiers (charging higher APR for Band 3 than Band 1), and a swap-set table comparing applicants newly approved/declined by the new model against the legacy policy. Always apply one uniform PD cutoff across all demographic groups—using group-specific cutoffs constitutes unlawful disparate treatment.

  6. Test for disparate impact and search for less discriminatory alternatives

    In US consumer lending, the Equal Credit Opportunity Act (ECOA) and Regulation B govern fair lending across two distinct legal concepts:

    • Disparate treatment: Explicitly using a protected characteristic (or different decision rules by group) to judge applicants. We prevent this by excluding protected attributes from model inputs and applying a single uniform policy.
    • Disparate impact: Using a facially neutral model that disproportionately rejects a protected group more often than a reference group, unless the disparity is strictly justified by credit risk and no Less Discriminatory Alternative (LDA)—a competing model that delivers comparable business accuracy with smaller group disparities—is available.

    Simply dropping race and gender ("fairness through blindness") never guarantees fairness because combinations of bureau, geography, and behavioral features can reconstruct group membership. For non-mortgage products where lenders are prohibited from asking race/ethnicity on the application, compliance teams estimate demographic probabilities on a completely separate audit table (never fed into the model!) using BISG (Bayesian Improved Surname Geocoding), which combines Census surname distributions with neighborhood Census-tract demographics.

    Evaluate group fairness using complementary metrics:

    Adverse Impact Ratio (AIR) = (Approval rate of protected group) / (Approval rate of reference group)
    
    Worked check:
      Protected group:  240 approved out of 400 applicants = 60.0%
      Reference group:  450 approved out of 600 applicants = 75.0%
      AIR = 0.60 / 0.75 = 0.80   (an AIR < 0.80, the "four-fifths rule", flags heightened disparity review)
    

    Alongside AIR, check equal opportunity (true-good approval rate P(approve | y = 0) across groups, ensuring creditworthy borrowers in one group are not rejected more often) and within-group calibration (confirming a predicted 10% PD corresponds to a 10% observed default rate inside each group). Well-known impossibility theorems (Chouldechova, 2017; Kleinberg et al., 2016) prove mathematically that whenever two groups have different underlying default rates and the model is imperfect, no single classifier can equalize approval rates, false-positive/false-negative rates, and within-group calibration all at once—so teams must prioritize calibrated risk accuracy plus active LDA search:

    Candidate model                         Out-of-time AUC   AIR     Expected Profit
    -------------------------------------   ---------------   -----   ---------------
    Model A: Unconstrained boosted trees         0.780        0.76      $5.12M
    Model B: Drop ZIP proxy + L2 penalty         0.776        0.84      $5.09M   <- strong LDA winner
    Model C: Coarse 5-feature scorecard          0.742        0.86      $4.55M
    

    Here Model B sacrifices just 0.004 AUC (< 0.6% profit impact) while lifting AIR from 0.76 to 0.84. Adopting Model B and archiving the search log provides concrete regulatory proof of fair-lending diligence.

  7. Explain declines, validate independently, and monitor drift in production

    Shipping a credit model requires three post-training pillars:

    1. Applicant-level adverse action explanations. Under ECOA and the Fair Credit Reporting Act (FCRA), every declined borrower (or borrower given worse pricing) must receive an adverse action notice stating the specific principal reasons for their outcome (for example, "Ratio of monthly debt obligations to income is too high" or "Too many inquiries in the last 12 months"), not vague global feature importances. For a scorecard, rank the features where the applicant lost the most points relative to an approved benchmark. For monotonic boosted trees, compute exact per-applicant SHAP values—game-theoretic attributions measuring how much each feature shifted this specific applicant's log-odds above a reference cutoff borrower—aggregate correlated sub-features into human-readable reason families, and verify that monotonic constraints prevent nonsensical explanations.
    2. Independent model risk validation. Following banking standards such as US Federal Reserve SR 11-7, an independent model validation team (separate from the builders) audits data lineage, reproduces training from scratch, stress-tests sensitivity (+-10% income shocks, missing bureau feeds), and verifies edge-segment calibration before sign-off.
    3. Proactive production monitoring. Because true 18-month default labels take 18 months to mature, waiting for full labels means flying blind for a year and a half. Monitor fast leading indicators continuously:
    Score Drift via Population Stability Index (PSI):
      PSI = sum over bins of (actual_share - expected_share) * ln(actual_share / expected_share)
    
      Score bin:          Bin 1    Bin 2    Bin 3    Bin 4
      Expected (train):   0.20     0.30     0.30     0.20
      Actual (live):      0.15     0.25     0.35     0.25
      Bin contribution:  0.0144 + 0.0091 + 0.0077 + 0.0112 = 0.0424  (PSI = 0.042 -> stable)
    
      Rule of thumb:  PSI < 0.10 stable | 0.10 to 0.25 investigate | > 0.25 major shift / retrain
    

    Track monthly PSI on model scores and top input features, early delinquency proxies (first-payment default, 30+ days past due at 3 and 6 months), approval rates, manual underwriter override rates, vintage calibration curves as cohorts season, and monthly AIR fairness ratios. Run a champion/challenger shadow or traffic split (for example 90% champion, 10% challenger) with pre-agreed alert thresholds that trigger recalibration, retraining, or fallback to the benchmark scorecard.

Intuition & how it works

Think of a loan classifier like an insurance underwriter pricing policies where the true outcome receipt arrives 18 months late and every rejection letter is audited by a consumer-protection regulator. Unlike an image classifier that only cares whether a photo is a cat or a dog right now, a credit model must output an honest probability of default (PD)—a calibrated risk estimate between 0 and 1 where 0.10 means roughly 10 out of 100 borrowers with that profile fail to repay—so the lender can weigh expected interest profit against expected principal loss, explain every decline in plain language, and prove the policy treats demographic groups fairly.

A naive textbook ML workflow fails catastrophically in lending for four reasons. First, optimizing raw accuracy on a dataset with a 6% default rate rewards approving everyone (94% accuracy, massive financial losses). Second, splitting rows at random mixes borrowers from the same economic boom into both train and test, hiding how the model breaks when unemployment rises, while accidentally including post-origination columns (like payments made) creates data leakage—cheating with future information unavailable at application time. Third, simply deleting race and gender columns ("fairness through blindness") leaves proxy features like ZIP code free to create disparate impact (unjustified outcome disparities across protected groups).

Walk through a concrete 3-applicant decision once our monotonic, calibrated model is ready. Suppose each repaid good loan nets $1,200 in profit and each defaulted bad loan loses $5,000 in unrecovered principal:

  1. Compute break-even risk: Expected profit (1 - p) * $1,200 - p * $5,000 stays positive whenever p < 1,200 / (1,200 + 5,000) = 0.194 (19.4% PD).
  2. Score three applicants at application time: Applicant A gets calibrated PD = 0.05 (+$890 expected profit -> Approve), Applicant B gets PD = 0.15 (+$270 expected profit -> Approve, optionally at a higher APR tier), and Applicant C gets PD = 0.25 (-$350 expected loss -> Decline).
  3. Explain and audit: For Applicant C, per-applicant SHAP values (individual feature attributions measured relative to the 19.4% cutoff) identify that a 54% debt-to-income ratio and 4 recent credit inquiries drove the score above 19.4%, generating specific legal adverse action reasons, while monthly fairness audits verify the Adverse Impact Ratio (AIR) across demographic groups.

Key points

  • Start from the lending decision and define bad precisely. Specify the observation point (application timestamp), the binary target (e.g., 90+ days past due, charge-off, or bankruptcy within an 18-month performance window), excluded immature/fraud cohorts, and how you handle reject inference (the sample selection bias caused by observing outcomes only on historically approved loans).
  • Guard against leakage and temporal optimism. Restrict features strictly to decision-time snapshots, treat missing credit history (thin-file status) as an explicit signal rather than noise to impute away, and validate on an out-of-time vintage split whose 18-month outcome windows have fully matured.
  • Benchmark complex models against a scorecard. Train a Weight of Evidence (WoE) logistic regression scorecard first, then test gradient-boosted trees with monotonic constraints (guaranteeing higher risk inputs never lower predicted PD), followed by validation-set probability calibration (Platt scaling or isotonic regression).
  • Separate ranking, calibration, and unit economics. Track ROC-AUC, Gini (2 * AUC - 1), KS statistic, and PR-AUC for ranking; decile reliability plots and Brier score for calibration; and expected dollar profit plus portfolio bad rate across demographic and thin-file segments.
  • Set one uniform economic cutoff, then apply risk caps. Derive the break-even PD gain / (gain + loss), layer capital and bad-rate ceilings, inspect the swap set against the legacy policy, and apply the exact same cutoff to every applicant.
  • Audit disparate impact and search for a Less Discriminatory Alternative (LDA). Exclude protected attributes to prevent disparate treatment, estimate group membership out-of-model (e.g., via BISG when race is uncollected) to compute AIR and group error rates, and systematically test feature/regularization variants to adopt an LDA that preserves almost all AUC with materially higher fairness.
  • Operationalize explainability, independent validation, and early monitoring. Generate borrower-specific adverse action reasons via scorecard points or constrained SHAP values, pass independent SR 11-7 validation, and monitor score drift (Population Stability Index, PSI), 3-month/6-month early delinquency, and monthly AIR long before 18-month labels mature.

Common mistakes

  • Allowing post-origination data leakage. Including fields updated after funding (last_payment_amount, delinquency_count_ever, account_closed_date) inflates offline AUC above 0.90 and collapses in live underwriting.
  • Using a random train/test split or unseasoned recent loans. Random splits leak macroeconomic conditions across cohorts, while including 4-month-old loans as "good" understates true 18-month default rates because slow defaults have not happened yet.
  • Reporting classification accuracy or picking an arbitrary 0.50 threshold. At a 6% base default rate, p = 0.50 approves wildly unprofitable 30%–45% PD loans when a bad loan loses four times what a good loan earns (break-even = 19.4%).
  • Feeding uncalibrated tree scores into profit or pricing formulas. Boosted decision trees can rank borrowers well (high AUC) while systematically misstating true default probabilities until calibrated on held-out data.
  • Assuming "we dropped race, so the model is fair." Correlated geographic and credit features can still create unlawful disparate impact; fairness must be measured empirically on outcomes and improved via LDA search.
  • Setting separate score cutoffs per demographic group to force equal approval rates. Post-hoc group-specific thresholds introduce explicit disparate treatment under US credit law.
  • Using global feature importance for adverse action notices. Regulators require the specific principal reasons why this individual applicant was declined, and unconstrained nonlinear models can assign blame to a feature moving in a nonsensical direction.
  • Waiting 18 months to detect model decay. Without tracking weekly/monthly PSI input drift and 30-day early payment defaults, a macroeconomic shock can generate a year of mispriced loans before final labels arrive.

Follow-up questions

  • How would you handle reject inference in practice when 40% of historical applicants were declined? First quantify how strongly declined applicants differ from approved ones in score distribution and feature space. In practice, combine bureau-based inference (pulling credit-bureau performance on similar loans that declined applicants opened at competing lenders within 3 months) with inverse-probability reweighting (upweighting approved marginal borrowers who look statistically similar to declines), and—whenever risk leadership grants a small learning budget—approve a 1%–2% randomized control slice of near-cutoff declines. Always evaluate any reject-inference model strictly on unbiased ground truth (the randomized approvals or verified external bureau outcomes), never on self-imputed labels.
  • What if your fairest candidate model has a slightly lower AUC than your unconstrained model—which one do you deploy? Translate the abstract AUC gap into concrete expected dollars alongside the fairness gain at your operating approval rate: for instance, dropping a proxy feature might lower AUC by 0.004 ($30,000 annual profit difference on a $5.1M portfolio) while raising the Adverse Impact Ratio (AIR) from 0.76 to 0.84. Under fair-lending disparate impact standards, when a Less Discriminatory Alternative (LDA) meets legitimate business risk needs with negligible loss in predictive utility, deploying the LDA is both the legally defensible choice and lower reputational/regulatory risk. Document the entire Pareto frontier of models tested as compliance evidence.
  • How do you generate reliable, regulator-ready adverse action reasons from a gradient-boosted tree model? First train the boosted trees with monotonic constraints on risk factors so a feature like high utilization or low income can never push risk in a counterintuitive direction. At inference time for a declined applicant, compute exact TreeSHAP attributions relative to a reference population sitting right at the approval cutoff (rather than the population mean), sum the attributions of correlated engineered features into clear reason buckets (for example, grouping 3-month, 6-month, and 12-month inquiry counts into "Recent credit-seeking activity"), and output the top 4 positive risk contributors. Validate stability offline by checking that tiny 1% feature perturbations do not randomly flip an applicant's top decline reasons.

Follow-up questions

Similar questions

More Zest AI interview questions

All 3 Zest AI questions →