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.

Credit decisioning and model risk

Lending decisions a bank could defend

Built for lenders writing unsecured consumer loans at volume: a neobank, a credit union, a personal-loan originator. It decides who gets credit, explains every decline in plain English, proves it isn't discriminating, and tells you when it has gone stale.

Applications being decided

Every dot is a real loan from the test set. A ring means it went on to default.

live

Approved

0

Referred

0

Declined

0

Approved that defaulted

0

Loans it approves

6.7%

go on to default

Loans it turns away

36.9%

would have defaulted

Separation

5.5×

the gap that makes it worth running

Measured on 16,276 loans the model had never seen, issued later than the ones it learned from. Without any model, 16.8% of applicants default, so approving the best 60% cuts that to 6.7%.

Start here

Seven pages, one question each. In order, they walk from “does it work” to “can we defend it”.

  1. 1

    Can I decline someone lawfully?

    One applicant: the decision, and the four reasons the law requires.

  2. 2

    How many should we approve?

    Drag the cutoff and watch defaults, losses and profit move.

  3. 3

    Is the model still right?

    Whether today's applicants still look like the training data.

  4. 4

    Are we discriminating?

    Approval rates by protected group. This one fails on age.

  5. 5

    Can we defend it in two years?

    Purpose, performance, limitations: the document a regulator asks for.

  6. 6

    Where does AI help safely?

    Drafting decline letters and answering questions about the book.

The trade every lender makes

Approve more and you earn more, and lose more. There is no setting that avoids it.

If you approve……this share goes bad
40%4.5%
50%5.6%
60% current policy6.7%
70%8.2%
80%10.1%
90%12.6%
everyone (no model)16.8%

Every extra approval is more revenue and more loss. The job is to separate the two groups well enough that the next approval is still worth taking, and then to prove that separation is real, fair, and still true next quarter.

Try moving the cutoff yourself→

Ranking quality

0.583

Gini: 0 is a coin flip, 1 is perfect

Probabilities honest?

0.115

Brier: says 7%, about 7 in 100 default

Decision speed

46 ms

including the explanation

Still current?

0.017

drift: under 0.10 is stable

Trained on synthetic data, because neither public dataset can be downloaded without a manual step. The pipeline reads the real files the moment they exist, but no figure here describes a real borrower. The model card lists every limitation, including the fair-lending test this model fails.

Step 1 of 7

Next · Underwriting

Can I decline someone lawfully?

→