CLCreditLens
OverviewUnderwritingPortfolioMonitoringFair lendingGovernanceAI assistance

A portfolio project by Siddharth Hiraou. Every figure is generated from the model artifacts in the repository and reproducible with make train. Trained on synthetic data, not a real lender, and no real applicants.

For the underwriter

Decide an application

One applicant at a time: the decision, what drove it, and, if the answer is no, the letter you are legally required to send.

The question this page answers

Can I decline this person, and can I tell them exactly why?

Under the Equal Credit Opportunity Act, a US lender that declines an application must give the applicant the specific principal reasons. Not “your score was too low”. The actual factors. Get this wrong and it is a regulatory finding, not a bug report. Most credit models cannot do it at all, which is why lenders end up bolting a separate rules engine beside the model just to produce the letter.

Declines with 4 real reasons

100%

Four different reasons, not one restated four ways.

Average reasons given

4.00

Out of four required.

Inputs with no plain-English wording

0

Any of these would silently drop out of a legally required letter.

Explanation accuracy

6.7e-15

The reasons add up to the score exactly, to machine precision.

Pick an applicant

A spread of real outcomes: approved, referred and declined. Colour shows the decision.

The decision

decline

Credit score

512

Chance of default

29.79%

Amount requested

616k

Expected loss

119k

What we lose on average: risk × 65% unrecovered × amount.

Applicant profile

AttributeValue
Income69,700
Requested credit616,300
Annuity18,605
Age37.8 yrs
Employment tenure4.9 yrs
EducationHigher education
OccupationCore staff
ContractRevolving loans

Adverse action reasons

Four distinct principal reasons, ranked by contribution, as required under ECOA and Regulation B.

  1. 1
    Debt-to-incomeactionable

    Proposed monthly payment is high relative to stated income

    RATIO_credit_to_income · AMT_INCOME_TOTAL · RATIO_residual_income_per_member

  2. 2
    Repayment recordactionable

    Record of late or partial payments on prior obligations

    INST_late_share_total · INST_shortfall_max · INST_paid_to_due

  3. 3
    Delinquency on credit fileactionable

    Credit file shows past-due amounts or accounts reported delinquent

    BURO_overdue_recency_wtd · BURO_days_overdue_mean · BB_max_status

  4. 4
    Prior application history

    Record of recent declined or withdrawn credit applications

    PREV_credit_to_application · PREV_n_refused · PREV_refusal_rate

What moved the decision

The ten strongest factors. Red pushed toward declining, green toward approving.

These are attributions, not causes. A SHAP value says how much a feature moved this model's output relative to a baseline of 0.0261, given the other features. It does not say that changing the feature would change the applicant's real risk.

What can never appear in a decline letter

Age, sex, family status and number of dependents are suppressed outright. The model's single strongest feature is an interaction that embeds age. It is disclosed as a credit-bureau-score reason, never as an age reason, so the applicant is told something they can act on and no protected attribute is ever named as a basis for denial. All 221 built features are either mapped to a reason family or explicitly suppressed, and a test fails the build if that stops being true.

Step 2 of 7

Next · Portfolio

How many should we approve?

→