PRINCIPALAICHAPTER 51

The evidence on AI lending: wider access or better-priced risk?

Five studies, one lab and one question: when a lender swaps a scorecard for a machine-learning score, who gains access, who pays more, and whose file was too thin to score well in the first place

50 MINLENDING AND CREDITUPDATED 2026-11-18
PREDICT

In the lab you hold the bad rate among approved loans at 12% for two scores built on the same data: a logistic regression and a gradient-boosted model (the constrained one from chapter 2.8). You test on the 2,110 finished loans applied for from April to June. Thin files, applicants with no bureau score, are 587 of those loans. Which statement about the thin files is closest to what you will find?

The word access here means being approved at all. A thin file is an applicant whose bureau report has no score because the bureau knows nothing about them (chapter 1.5 covers why). To re-price is to charge a different rate, or set a different risk premium, for the same applicant. The operating point of a score is where the lender draws its line: the cut-off, or the bad rate it will tolerate among the people it approves. This chapter’s argument is that no claim about a model’s effect on a credit market means anything until the operating point, the baseline and the population are stated. How the two models in the lab work is in the chapter on gradient-boosted models; how to test one for group gaps is in the fairness chapter. How a model learns at all belongs to the AI Engineering course.

Two claims that get mixed up

When people say a new score “expands credit” they mean one of two things, and the evidence for each is different.

Wider access. The new score finds borrowers whom the old one declined and who would have repaid. For that to happen the new score needs information the old one lacked. A more flexible model on the same inputs ranks the same applicants a little differently, but it cannot see a person the bureau cannot see. This is the claim that matters most for thin files.

Better-priced risk. The new score separates the safe from the risky more finely, so the safe are charged less and the risky more, or approved and declined in a different mix. No one need be newly approved. Some people gain and some lose, and whether the losers are a group the lender should worry about is a fairness question, not an accuracy one.

A third claim hides behind both: noise. A score is an estimate, and an estimate based on little data is a noisy one. If one group’s files are thin, the same model makes larger errors for that group, in both directions. Some are declined who would have repaid; some are approved who will not. The studies below speak to these claims in different proportions.

What five studies found

Read each study for four things: the market, the data, the finding as the authors state it, and what stops the finding crossing to Nigerian consumer lending. This chapter states each finding only as far as the paper’s abstract, or a search result of it, shows. For two papers the search could show only the working-paper abstract, and that is flagged.

Study Market and data What it reports What limits its transfer
Fuster, Goldsmith-Pinkham, Ramadorai and Walther, “Predictably Unequal?”, Journal of Finance 77(1), 2022 US mortgages; a large administrative dataset The authors compare traditional logistic default models with machine-learning models. Black and Hispanic borrowers are disproportionately less likely to gain. In their equilibrium model, rate disparities between and within groups grow, mainly because of the models’ flexibility. A summary of the paper adds that the ML model gives credit to a slightly larger share of borrowers and slightly narrows the spread of acceptance rates across groups (the abstract itself was seen only in its working-paper form) Secured mortgages in a market with standardised, rich credit files. The groups are defined by race and ethnicity, which this lab does not hold
Bartlett, Morse, Stanton and Wallace, “Consumer-lending discrimination in the FinTech era”, Journal of Financial Economics 143(1), 2022 (NBER working paper 25943, 2019) US mortgages; lender-level pricing and rejection Lenders charge otherwise-equivalent Latinx and African-American borrowers 7.9 basis points more on purchase mortgages and 3.6 on refinance (a basis point is a hundredth of a percentage point). FinTech algorithms also discriminate in pricing, but about 40% less than face-to-face lenders, and the working-paper abstract finds no discrimination by FinTechs in loan approval Mortgages priced against government-sponsored enterprises’ rules, which the identification relies on. The figures are the working paper’s; the published version may word them differently (one abstract of it says FinTech rate disparities were similar to other lenders’ for some mortgage types)
Di Maggio, Ratnadiwakara and Carmichael, “Invisible Primes”, NBER working paper 29840 (2022); later in Management Science Administrative data from one major US fintech platform Using alternative data in assessing borrowers is found to broaden access to credit. The largest beneficiaries are the “invisible primes”: borrowers with low credit scores and thin files but low default risk. The gains come primarily from alternative data, with model sophistication adding more in segments where credit reports are richer One platform’s data, and the platform is the paper’s subject. Read what the baseline model is before comparing the size of any gain with another market
Björkegren and Grissen, “Behavior revealed in mobile phone usage predicts credit repayment”, World Bank Economic Review 34(3), 2020 Call records from a South American telecom, matched to repayment on credit the telecom extended The riskiest fifth by their measure is 2.8 times as likely to default as the safest fifth. On borrowers with thin credit histories the method performs at least as well as models built on bureau data, and it works for people with no financial history One country and one telecom’s own customers. Phone data raises consent, gaming and data-protection questions that the alternative data chapter covers
Blattner and Nelson, “How Costly is Noise?”, Stanford GSB working paper (arXiv, 2021) TransUnion credit reports for 50 million anonymised US consumers, merged with property deed and mortgage records Credit scores are noisier predictors of default for historically under-served groups, because of thin files, and the paper places the noise in the underlying credit report data and not in how models are fitted. In their structural model, equalising score precision across groups would roughly halve approval and misallocation disparities for disadvantaged groups A structural model of mortgage lending. The remedy it tests, more precision, is a data remedy

Three lessons survive the differences between those datasets.

First, flexibility is not access. Fuster and co-authors find uneven gains from machine learning. Di Maggio and co-authors find that what helps thin-file borrowers is mostly new information, not a cleverer model. Björkegren and Grissen add the information: phone behaviour predicts repayment where the bureau is silent. Together they say that the thin-file gain comes from data, and the model class decides how much of it you can extract.

Second, the same technology can narrow one gap and widen another. Bartlett and co-authors find FinTech lenders’ pricing discriminates less than face-to-face lenders’ and not at all in approvals (in the working paper), while Fuster and co-authors see rate disparities grow with flexibility. These are different markets, different measures and different lenders. The disagreement tells you that “AI lending” is not one treatment, and that a claim from either side needs its own test.

Third, noise is unequal. Blattner and Nelson locate the problem in the data about people, which no model repair reaches. A thin file is a small sample about one person, and a small sample is noisy however it is analysed.

None of the five studies, as far as these abstracts show, uses Nigerian lending data. That does not make them wrong here. It means that the size of every effect is an open question for Owoleaf’s customers, and the direction of each is a hypothesis you can test on your own book.

What you can test on your own book

Owoleaf cannot copy a study, but it can ask the same questions of its own data, on the generated book of the lab. Three tests follow from the three lessons, and the lab runs them on data1/.

Hold the bad rate fixed and see who is approved. Rank the test loans by each model’s predicted risk, from safest to riskiest. Approve down the list for as long as the bad rate among those approved stays at or under a target. Do this for each model at the same target and the two approve sets can be compared like for like: how many loans, which segments, and who is in one set and not the other. Choosing the cut-off by looking at the outcomes is possible only in a test. A live lender cannot do it, so treat the result as a way to compare two rankings and not as a policy.

Price the risk, then look at the segment. Use each model’s predicted chance of going bad as a risk premium. That is a simplification: it treats the loss on a bad loan as the whole principal, which is a ceiling, since the expected loss chapter explains how loss given default and the costs of funds enter a real price. It is enough to ask who would be charged more. Compare each model’s prediction with the bad rate that happened, segment by segment.

Measure the noise. Refit each model on resamples of the training loans and see how far one borrower’s prediction moves. If the thin-file predictions move more, a thin-file applicant’s decision depends more on which loans happened to be in the sample.

One caution applies to all three. Every loan in the test set was approved by Owoleaf’s old rule, so the lab shows who the two scores would approve and rank among people the old rule already let through. It cannot say how the people the old rule declined would have repaid. That is the reject inference problem of chapter 2.8, and it is where the best evidence for wider access lives. The lab can test a mild version of the claim, not the strong one.

What the lab shows: access

The 465 training loans are those applied for before 1 April (59 bad). The 2,110 test loans are the finished ones from April to June (284 bad, 13.5%), of which 587 are thin files with 89 bad (15.2%). Of the 465 training loans, 118 are thin files and 27 of them are bad (22.9%). Keep that count in mind: it is small.

At a 12% target the logistic regression approves 1,469 loans and the boosted model 1,403. By segment:

Segment Loans Bad rate Logistic approves Boosted approves
Thin file 587 15.2% 16.0% 18.4%
Has a score 1,523 12.8% 90.3% 85.0%
Salary advance (SAL) 1,658 14.3% 64.4% 62.9%
Personal loan (PL) 15 20.0% 93.3% 100.0%
Buy now, pay later (BNPL) 398 10.3% 87.4% 76.9%
Working capital (SME) 39 7.7% 100.0% 100.0%

Read it twice. Against the claim that machine learning helps thin files, the boosted model approves 108 against 94: 14 more thin files, out of 587. In the other direction, it approves fewer people who have a bureau score (85.0% against 90.3%) and fewer BNPL borrowers (76.9% against 87.4%). The loans in one approve set and not the other are the swaps: 164 loans that only the logistic model approves (bad rate 15.9%, 24% thin), and 98 that only the boosted model approves (bad rate 18.4%, 55% thin). Fifty-five percent of the boosted model’s extra approvals are thin files, and they go bad at 18.4%, which is above the 12% average the target holds. That does not say the boosted model chose badly. A bad rate on 98 loans has a wide interval, and the target is met overall by construction. It says that the thin files the boosted model lets in are a riskier group than the scored borrowers it lets out.

Change the target to 10% and the picture changes. The logistic model approves 1,075 loans and the boosted 876. Thin files: 6 approved by the logistic and 3 by the boosted. The swap sets are 273 loans only the logistic approves and 74 only the boosted approves, and the 74 go bad at 25.7%. At a 10% bad rate neither score has room for thin files at all. This is the first finding to take away: at one operating point a score looks like a gain for thin files and at another it does not, and in both the thin-file count is a few dozen loans. A vendor’s claim that its model expands access is a statement about one point on one curve.

The PL and SME rows rest on 15 and 39 loans. Do not read them. The book is mostly salary advances and BNPL in these months because the loan must have finished its story (the rule from chapter 2.8), and that excludes most long loans.

What the lab shows: who pays more

Treat the predicted chance of going bad as the risk premium and compare it with what happened:

Segment Loans Actual bad rate Logistic predicts Boosted predicts
Thin file 587 15.2% 22.8% 21.3%
Has a score 1,523 12.8% 10.0% 10.8%
BNPL 398 10.3% 10.4% 12.2%
SME 39 7.7% 3.1% 5.3%

Both models say thin files are riskier than they proved to be: 22.8% and 21.3% against 15.2%. The reason is in the training loans. Their 118 thin files went bad at 22.9% (27 of 118), and the models learned that rate. The April to June thin files did better. Both models also under-predict the scored borrowers, 10.0% and 10.8% against 12.8%. So in these months the thin-file premium is too high and the scored premium too low. On a ₦50,000 loan, the logistic model’s 7.6 points of over-prediction for a thin file (22.8% minus 15.2%) is a premium ₦3,800 too high (50,000 × 0.076). That is a loss of income if the premium is the price, and a lost customer if it is the reason for a decline. Either way it falls on one segment, and the average accuracy of the model hides it.

Among the 1,305 loans that both scores approve, the two models’ premiums are close on average (thin files 16.5% and 16.7%, scored borrowers 8.2% and 8.5%). They do not agree on individuals. For 41% of scored borrowers the boosted model’s premium is higher, and for 28% it is higher by two points or more; for BNPL borrowers, 35% pay at least two points more under the boosted model. Averages hide who moves. A switch that changes the average price by 0.3 points can still raise the price for a third of one product’s borrowers by two points. That is the Fuster pattern in miniature: a similar average, a different distribution.

What the lab shows: noise

Refit each model 20 times on resamples of the 465 training loans, and measure how far each test loan’s predicted risk moves (its standard deviation across the refits):

Segment Logistic Boosted
Thin file 5.4 points 6.2 points
Has a score 3.8 points 4.6 points

A thin-file applicant’s predicted risk moves by 5 to 6 points when the training loans change. That is several times the 1.5-point gap between the two models’ average predictions for thin files (22.8% and 21.3%). And the approve decision itself is unstable: counting the loans that are approved in some refits and declined in others (approved in 10% to 90% of them), the share is 72% of thin files under the logistic model and 87% under the boosted one, against 28% and 39% of scored borrowers.

This is Blattner and Nelson’s mechanism seen in a toy: a thin file gives a model less to work with, so its decision depends on chance. The training set is small, 465 loans, and that exaggerates the effect; the lab does not show how much larger samples would shrink it. The flexible model is noisier than the logistic one on every segment with more than 15 loans, which is the usual price of flexibility on a small sample. What would reduce the noise is not a better algorithm but more data about the person, which is the argument of Björkegren and Grissen and of the Di Maggio paper, and of the alternative data chapter.

What the evidence supports for Owoleaf

Taken together, the five studies and the lab support four claims, each short of a promise.

  1. A better score can widen access, but the information has to be new. The evidence for thin-file gains comes from alternative data, phone behaviour in one study and a fintech’s wider data in another. A flexible model on the bureau’s inputs, as in the lab, does not find hidden borrowers: it approves a few more thin files at one operating point and fewer at another.
  2. Who gains depends on the group, and the average hides it. The Fuster result and the lab’s segment tables say the same thing at different scales.
  3. Thin files are noisy, and noise is a harm of its own. A decision that rests on 118 training loans for a segment is a coin with a bias. Measure it, and do not call the result a property of the borrower.
  4. The comparison is the claim. Every study compares one model with a baseline at some operating point on some population. Ask for all three.

What the evidence does not support is a statement that machine learning makes lending fair, or unfair, or cheaper, in Nigeria. No study here measured it. What the lab cannot show is how the applicants Owoleaf declined would have repaid, which is where wider access would be, if it exists.

What the rules say

This section gives only what the sources found by search support, and a lender’s counsel decides what applies to a particular lender and product.

On data protection, section 37 of the Nigeria Data Protection Act 2023 is described by commentators as giving a person the right not to be subject to a decision based solely on automated processing, including profiling, where it has legal or similarly significant effects, with exceptions (including explicit consent, and written law with suitable safeguards) and, where it is allowed, a right to ask for human involvement, to give a view and to contest the decisionas of 2026-11. The search results confirmed the section’s number and subject from the gazette’s contents and from commentary, and the full text of the subsections was not read, so check the Act. One commentary refers to section 27 for the duty to inform people about automated decisions: the section numbering differs between sources.

Elsewhere, the European Union’s Artificial Intelligence Act lists in Annex III, point 5(b), AI systems used to evaluate the creditworthiness of natural persons or establish their credit score as high-risk, with an exception for systems used to detect financial fraudas of 2026-11. The search results gave this from commentary on the Annex and from the Annex’s own page, not from the Official Journal, and sources disagree on when the high-risk obligations apply, so this chapter does not give a date. Whether the Act reaches a Nigerian lender is a legal question. The reason to mention it is that two regimes now treat a credit-scoring model as a system whose decisions a person can contest, and neither asks only how accurate it is.

Back at Owoleaf

Mobolanle and Omotayo write four questions for the vendor, each from a result above. At what bad rate among the approved, and on what months, was the 20% measured, and against which baseline? How many of the extra approvals were thin files, and what was their bad rate? Which new data does the model use that the bureau does not hold, and under what consent? And what happens to a borrower’s score when the training sample changes? They also set what the shadow run will report: approval and bad rate by segment at three operating points, premiums against outcomes by segment, and the refit spread for thin files. The rule they agree is that the vendor’s claim is tested at Owoleaf’s operating point, on Owoleaf’s loans, and that a model that is less stable for thin files is not deployed on them without a person’s review.

LAB Hold the bad rate fixed: who a logistic and a boosted score approve, and who pays more ~40 MIN
YOU NEEDPython 3.11 or later with scikit-learn in the lab's virtual environment (pip install scikit-learn), as in chapter 2.8labs/finance/data1: the scale 1 loan book, built by the README's commandgbm_data.py and gbm_models.py from chapter 2.8, saved in labs/financeoptional: any free AI chat assistant, for the try-it step in the AI box

You compare two scores at the same bad rate on the loan book, by thin file and by product, then price the risk and measure the noise. Work in labs/finance. Every figure is illustrative and comes from scikit-learn 1.9.1 and NumPy 2.5.5 on Python 3.13: another version may differ in the third decimal. Nothing here opens data1/answers/.

0. Check what you need. The chapter reuses two files you saved from chapter 2.8, the book at scale 1 and the virtual environment. If data1/ is missing, build it with the README’s commands (about 40 seconds and 720 MB), and make the environment as chapter 2.8’s step 1 did.

ls .venv/bin/python data1/finance.sqlite gbm_data.py gbm_models.py
.venv/bin/python
data1/finance.sqlite
gbm_data.py
gbm_models.py

All four exist. If gbm_data.py or gbm_models.py is missing, save them whole from chapter 2.8’s steps 1 and 2. Running .venv/bin/python gbm_data.py should print 2,575 finished loans, 465 in training and 2,110 in test.

1. Write the shared helper. Save this as ev_common.py. It loads the book as chapter 2.8 did, marks the training and test loans, and holds the one function the chapter turns on: approve down a ranking while the bad rate among the approved stays under a target.

"""Shared by the chapter's scripts: the book's training and test loans, and a rule that holds
the bad rate among the approved at a target."""
import numpy as np
from gbm_data import load, CUT, FEATURES
from gbm_models import Logistic, Boosted

THIN, PRODUCTS = FEATURES.index("thin_file"), ["SAL", "PL", "BNPL", "SME"]


def setup():
    X, y, applied, meta = load()
    mature = y >= 0
    train, test = mature & (applied < CUT), mature & (applied >= CUT)
    product = np.array([m["product"] for m in meta])
    return X, y, train, test, product


def approve_at_bad_rate(p, y, target, min_k=100):
    """Rank loans from lowest to highest predicted risk and approve down the list for as
    long as the bad rate among those approved stays at or under the target. It uses the
    outcomes, so it is a way to compare rankings, not a policy a live lender can run."""
    order = np.argsort(p, kind="stable")
    bad = np.cumsum(y[order])
    k = np.arange(1, len(p) + 1)
    ok = np.where((bad / k <= target) & (k >= min_k))[0]
    n = ok.max() + 1 if len(ok) else 0
    approved = np.zeros(len(p), dtype=bool)
    approved[order[:n]] = True
    return approved

2. Who each score approves at a 12% bad rate. Save this as ev_access.py and run it. It picks each model’s cut-off by looking at the test outcomes, so it compares two rankings and is not a policy a live lender could run.

"""Who each score approves when the bad rate among the approved is held at 12%."""
import numpy as np
from ev_common import *

TARGET = 0.12
X, y, train, test, product = setup()
lg = Logistic().fit(X[train], y[train])
bo = Boosted(monotone=True).fit(X[train], y[train])
Xt, yt, pt = X[test], y[test], product[test]
thin = Xt[:, THIN] == 1
a_lg = approve_at_bad_rate(lg.prob(Xt), yt, TARGET)
a_bo = approve_at_bad_rate(bo.prob(Xt), yt, TARGET)

print(f"{len(yt)} finished test loans, {yt.sum()} bad ({yt.mean():.1%}); target bad rate among approved {TARGET:.0%}")
for name, a in (("logistic", a_lg), ("boosted", a_bo)):
    print(f"{name:<9} approves {a.sum()} loans ({a.mean():.1%}), bad rate {yt[a].mean():.1%}")

print(f"\n{'segment':<10}{'loans':>6}{'bad':>6}{'logistic':>10}{'boosted':>9}{'both':>6}{'only lg':>9}{'only bo':>9}")
segments = [("thin file", thin), ("has score", ~thin)] + [(p, pt == p) for p in PRODUCTS]
for label, s in segments:
    print(f"{label:<10}{s.sum():>6}{yt[s].mean():>6.1%}{a_lg[s].mean():>10.1%}{a_bo[s].mean():>9.1%}"
          f"{(a_lg & a_bo & s).sum():>6}{(a_lg & ~a_bo & s).sum():>9}{(~a_lg & a_bo & s).sum():>9}")

only_lg, only_bo = a_lg & ~a_bo, a_bo & ~a_lg
print(f"\nswap-out (logistic only): {only_lg.sum()} loans, bad rate {yt[only_lg].mean():.1%}, thin {thin[only_lg].mean():.0%}")
print(f"swap-in  (boosted only):  {only_bo.sum()} loans, bad rate {yt[only_bo].mean():.1%}, thin {thin[only_bo].mean():.0%}")
.venv/bin/python ev_access.py
2110 finished test loans, 284 bad (13.5%); target bad rate among approved 12%
logistic  approves 1469 loans (69.6%), bad rate 12.0%
boosted   approves 1403 loans (66.5%), bad rate 12.0%

segment    loans   bad  logistic  boosted  both  only lg  only bo
thin file    587 15.2%     16.0%    18.4%    54       40       54
has score   1523 12.8%     90.3%    85.0%  1251      124       44
SAL         1658 14.3%     64.4%    62.9%   956      112       87
PL            15 20.0%     93.3%   100.0%    14        0        1
BNPL         398 10.3%     87.4%    76.9%   296       52       10
SME           39  7.7%    100.0%   100.0%    39        0        0

swap-out (logistic only): 164 loans, bad rate 15.9%, thin 24%
swap-in  (boosted only):  98 loans, bad rate 18.4%, thin 55%

Both hold the bad rate at 12.0%. Thin files: 54 approved by both, 40 by the logistic only (94 in all, 16.0% of 587) and 54 by the boosted only (108 in all, 18.4%). Scored borrowers and BNPL move the other way. The 98 loans the boosted model alone approves are 55% thin files and go bad at 18.4%. PL and SME rest on 15 and 39 loans.

3. Who pays more. Save this as ev_price.py. It treats each model’s predicted chance of going bad as the risk premium: an illustrative simplification (loss given default of the whole principal, no costs).

"""Who pays more: each model's predicted chance of going bad as the risk premium, by segment."""
import numpy as np
from ev_common import *

TARGET = 0.12
X, y, train, test, product = setup()
lg = Logistic().fit(X[train], y[train])
bo = Boosted(monotone=True).fit(X[train], y[train])
Xt, yt, pt = X[test], y[test], product[test]
thin = Xt[:, THIN] == 1
p_lg, p_bo = lg.prob(Xt), bo.prob(Xt)
both = approve_at_bad_rate(p_lg, yt, TARGET) & approve_at_bad_rate(p_bo, yt, TARGET)

print("Predicted chance of going bad against what happened, all 2,110 test loans")
print(f"{'segment':<10}{'loans':>6}{'actual':>8}{'logistic':>10}{'boosted':>9}")
segments = [("thin file", thin), ("has score", ~thin)] + [(p, pt == p) for p in PRODUCTS]
for label, s in segments:
    print(f"{label:<10}{s.sum():>6}{yt[s].mean():>8.1%}{p_lg[s].mean():>10.1%}{p_bo[s].mean():>9.1%}")

print(f"\nBorrowers both scores approve ({both.sum()}): price = predicted chance of going bad")
print(f"{'segment':<10}{'loans':>6}{'logistic':>10}{'boosted':>9}{'boosted higher':>16}{'by 2+ pts':>11}")
for label, s in segments:
    m = both & s
    if m.sum() == 0: continue
    d = p_bo[m] - p_lg[m]
    print(f"{label:<10}{m.sum():>6}{p_lg[m].mean():>10.1%}{p_bo[m].mean():>9.1%}{(d > 0).mean():>16.0%}{(d > 0.02).mean():>11.0%}")
.venv/bin/python ev_price.py
Predicted chance of going bad against what happened, all 2,110 test loans
segment    loans  actual  logistic  boosted
thin file    587   15.2%     22.8%    21.3%
has score   1523   12.8%     10.0%    10.8%
SAL         1658   14.3%     14.6%    14.3%
PL            15   20.0%      9.8%     8.8%
BNPL         398   10.3%     10.4%    12.2%
SME           39    7.7%      3.1%     5.3%

Borrowers both scores approve (1305): price = predicted chance of going bad
segment    loans  logistic  boosted boosted higher  by 2+ pts
thin file     54      16.5%    16.7%             48%        17%
has score   1251       8.2%     8.5%             41%        28%
SAL         956       9.0%     9.0%             39%        26%
PL           14       9.2%     8.2%             43%        21%
BNPL        296       7.8%     8.9%             49%        35%
SME          39       3.1%     5.3%             46%        36%

Thin files are predicted at 22.8% and 21.3% against 15.2% in fact: on a ₦50,000 loan, 7.6 points is ₦3,800 (50,000 × 0.076). The training loans’ thin files went bad at 22.9% (27 of 118), which is what the models learned. The averages for the 1,305 loans both approve are close; the individual premiums are not (28% of scored borrowers pay two points or more under the boosted model, 35% of BNPL borrowers).

4. Measure the noise. Save this as ev_noise.py. It refits each model on 20 resamples of the 465 training loans and measures how far each test loan’s prediction moves. It takes a few seconds.

"""How much does a borrower's predicted risk move when the training loans are resampled?"""
import numpy as np
from ev_common import *

R = 20
X, y, train, test, product = setup()
Xt, yt, pt = X[test], y[test], product[test]
thin = Xt[:, THIN] == 1
tr = np.where(train)[0]
rng = np.random.default_rng(7)
P = {"logistic": [], "boosted": []}
for r in range(R):
    idx = rng.choice(tr, size=len(tr), replace=True)
    P["logistic"].append(Logistic().fit(X[idx], y[idx]).prob(Xt))
    P["boosted"].append(Boosted(monotone=True, seed=r).fit(X[idx], y[idx]).prob(Xt))
print(f"{R} refits on resamples of the {len(tr)} training loans; spread = standard deviation of a loan's predicted chance of going bad")
print(f"{'segment':<10}{'loans':>6}{'logistic':>10}{'boosted':>9}")
for label, s in [("thin file", thin), ("has score", ~thin)] + [(p, pt == p) for p in PRODUCTS]:
    print(f"{label:<10}{s.sum():>6}" + "".join(f"{np.std(np.array(P[k]), axis=0)[s].mean() * 100:>9.1f} pts" for k in P))
# How often does a loan flip between approve and decline across refits, at the 12% bad rate?
for k in P:
    ap = np.array([approve_at_bad_rate(p, yt, 0.12) for p in P[k]])
    share = ap.mean(axis=0)
    unstable = (share > 0.1) & (share < 0.9)
    print(f"{k}: loans approved in some refits and declined in others (10% to 90% of refits): thin {unstable[thin].mean():.0%}, has score {unstable[~thin].mean():.0%}")
.venv/bin/python ev_noise.py
20 refits on resamples of the 465 training loans; spread = standard deviation of a loan's predicted chance of going bad
segment    loans  logistic  boosted
thin file    587      5.4 pts      6.2 pts
has score   1523      3.8 pts      4.6 pts
SAL         1658      4.3 pts      5.1 pts
PL            15      6.4 pts      5.8 pts
BNPL        398      4.2 pts      4.9 pts
SME           39      2.5 pts      3.2 pts
logistic: loans approved in some refits and declined in others (10% to 90% of refits): thin 72%, has score 28%
boosted: loans approved in some refits and declined in others (10% to 90% of refits): thin 87%, has score 39%

A thin file’s prediction moves by 5.4 and 6.2 points between refits, against 3.8 and 4.6 for a scored borrower, and most thin files are approved in some refits and declined in others. Read it against step 2: the gap between the models on thin files (14 loans) is smaller than what a different training sample does.

5. Try the assistant (optional). Do the AI box’s try-it step: ask a free assistant what Björkegren and Grissen found, and check its answer against the paper’s abstract. Write down each claim it made that the abstract does not support.

Your own answers: the chapter quotes none. The abstract says the data are call records from a South American telecom matched to repayment on credit it extended, that the highest risk quintile is 2.8 times as likely to default as the lowest, and that on thin-file borrowers the method performs at least as well as models using bureau data.

Tighten the target. In ev_access.py change TARGET = 0.12 to TARGET = 0.10 and run it again. The output becomes:

2110 finished test loans, 284 bad (13.5%); target bad rate among approved 10%
logistic  approves 1075 loans (50.9%), bad rate 10.0%
boosted   approves 876 loans (41.5%), bad rate 9.9%

segment    loans   bad  logistic  boosted  both  only lg  only bo
thin file    587 15.2%      1.0%     0.5%     1        5        2
has score   1523 12.8%     70.2%    57.3%   801      268       72
SAL         1658 14.3%     46.1%    38.2%   573      192       61
PL            15 20.0%     73.3%    73.3%     9        2        2
BNPL         398 10.3%     65.3%    50.0%   188       72       11
SME           39  7.7%    100.0%    82.1%    32        7        0

swap-out (logistic only): 273 loans, bad rate 14.3%, thin 2%
swap-in  (boosted only):  74 loans, bad rate 25.7%, thin 3%

Thin files nearly vanish (6 approved by the logistic model, 3 by the boosted one) and the boosted model now approves fewer people than the logistic one in every segment but PL. The model that looked better for thin files at 12% looks worse at 10%. A claim about access is a claim about one operating point.

ARTEFACT Write the investor-claims check ~45 MIN
YOU PRODUCEAn AI-lending claims check: each claim in a pitch, the evidence for and against, a verdict and replacement wording

Template

# AI-lending claims check: <lender>, <vendor or pitch>, <date>
Prepared by <credit strategy analyst>. Signed by <head of credit risk>.

## 1. The pitch
<where the claims were made, and by whom>

## 2. Claims
### Claim <n>: '<quoted exactly>'
- Measured at: <operating point, baseline, population, months>, or 'not stated'
- Evidence for: <study or lab line, with figures>
- Evidence against: <study or lab line, with figures>
- Verdict: <supported / unproven / contradicted>, because <one sentence>
- Say instead: <honest replacement wording>

## 3. What the lab cannot see
<for example, applicants the old rule declined>

## 4. How this could be wrong
<one way, and what would show it>

## 5. Decision and sign-off
Decision needed: <what, from whom, by when>. Out of scope: <what this check does not cover>.
Prepared <name, date>. Approved <name, date>.
WORKED EXAMPLE

At a lender like Owoleaf, a credit strategy analyst writes this before any vendor meeting, and the head of credit risk signs it. Mobolanle prepares Owoleaf’s, dated 21 November 2026, for the vendor’s slide to the credit team.

Claim 1: ‘approves 20% more applicants at the same loss rate.’ Measured at: not stated. For: none in the lab. Against: at a 12% bad rate among the approved, the logistic model approves 1,469 of 2,110 test loans and the boosted model 1,403; at 10%, 1,075 against 876. Verdict: unproven, because on Owoleaf’s inputs the boosted score approved fewer, not more. Say instead: ‘We will test whether it approves more at our bad rate.’

Claim 2: ‘thin-file customers gain most.’ Measured at: not stated. For: Di Maggio and co-authors find that alternative data helps ‘invisible primes’; at 12% the boosted model approves 108 thin files and the logistic 94, 14 more out of 587. Against: at 10% it approves 3 against 6, and its thin-file predictions move by 6.2 points between refits. Verdict: unproven, because the gain flips with the operating point. Say instead: ‘Thin files may gain only if the data is new, consented to, and the score is stable.’

What the lab cannot see. How the applicants the old rule declined would have repaid.

Could be wrong. All 2,110 loans were approved by the old rule. A shadow run on every applicant would show it.

Decision. Approval to run a shadow test before the vendor’s deadline this month; no vendor score decides anything until it reports. Out of scope: the vendor’s price and data contracts.

Now you

A payday lender in Abuja, unnamed, has pitched a buy now, pay later product to its board with three claims: ‘our machine-learning score approves more customers than the scorecard’, ‘it prices risk more fairly’, and ‘it is more stable than a scorecard’. You are its credit strategy analyst. Use the lab’s step 2, 3 and 4 outputs. At 12%, the logistic model approves 87.4% of BNPL loans and the boosted model 76.9%, and 16.0% against 18.4% of thin files. The boosted premium for BNPL is 12.2% against 10.3% in fact, and 35% of the BNPL borrowers both approve pay two points or more under it. BNPL predictions move 4.2 points between refits for the logistic model and 4.9 for the boosted one, and the boosted model moves more on every segment with more than 15 loans. The lab holds no group data, so treat ‘fairly’ as who pays more. Write the claims check for the head of credit risk, who will use it to decide whether the board hears the claims as they stand.

Self-check

DECIDE

Owoleaf at 200 people. A vendor's machine-learning score claims to approve 20% more applicants at the same loss and to help thin-file customers most. Mobolanle's lab test, on Owoleaf's own book, shows the boosted score approving 14 more thin files out of 587 at a 12% bad rate and 3 against 6 at 10%, with thin-file predictions that move by 5 to 6 points when the training loans change. The vendor wants a decision this month.

READING
  1. PAPER
    Predictably Unequal? The Effects of Machine Learning on Credit Markets Andreas Fuster, Paul Goldsmith-Pinkham, Tarun Ramadorai and Ansgar Walther, 2022

    US mortgage evidence that machine learning widens rate differences between and within groups in the authors' model, with Black and Hispanic borrowers gaining less. Read the abstract and introduction first; it is one market, not a finding about Nigerian lending. Read: the abstract and the introduction.

  2. PAPER
    Consumer-Lending Discrimination in the FinTech Era Robert Bartlett, Adair Morse, Richard Stanton and Nancy Wallace, 2019

    The working-paper version, with the pricing estimates in basis points and the comparison of FinTech with face-to-face lenders. The published version is in the Journal of Financial Economics 143(1), 2022: check the wording there. Read: the abstract and the sections on algorithmic lenders.

  3. PAPER
    Invisible Primes: Fintech Lending with Alternative Data Marco Di Maggio, Dimuthu Ratnadiwakara and Don Carmichael, 2022

    The case that thin-file borrowers with low default risk gain from alternative data, using one fintech platform's records. Read what it compares against, and note the platform is the subject of the study. Read: the abstract and the introduction.

  4. PAPER
    Behavior Revealed in Mobile Phone Usage Predicts Loan Repayment Daniel Björkegren and Darrell Grissen, 2020

    Free arXiv version of the paper published in the World Bank Economic Review as 'Behavior revealed in mobile phone usage predicts credit repayment'. Shows what phone data adds where the bureau is silent; skip the technical appendix on a first read. Read: the abstract and the results on thin-file borrowers.

  5. PAPER
    How Costly is Noise? Data and Disparities in Consumer Credit Laura Blattner and Scott Nelson, 2021

    The argument that thin files make scores noisier for under-served groups, and that more precise data would cut disparities. The structural model is for a second pass. Read: the abstract and the introduction.

  6. DOC
    EU AI Act, Annex III: high-risk AI systems 2024

    Point 5(b) lists credit scoring of natural persons as high-risk. The European Commission's AI Act Service Desk copy of the Annex, not the Official Journal: check the official text and its application dates, which sources give differently, before relying on either.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Winding down a lending business: running off the book, recovery plans and selling the portfolio →