WORKINGCHAPTER 11

Decisions: cut-offs, limits and risk-based pricing

A score ranks borrowers. Three dials turn the ranking into business: who gets a loan, how much, and at what price. Each one is set at the margin, not at the average

60 MINLENDING AND CREDITUPDATED 2026-11-14
PREDICT

Owoleaf approved 2,725 salary-advance and BNPL loans. 12.7% of them went bad (90 or more days past due, or written off, by the cut-off date). A new rule keeps only the loans scoring 70 points or more on the lab's points table, and the bad rate of the loans it keeps falls to 8.9%. Roughly how much of the book does it give up?

A score ranks applicants and says nothing about what to do with the ranking. Three decisions turn it into lending:

Dial Question Set from
Cut-off Who gets a loan at all? The bad rate of the applicants at the edge, against the break-even bad rate at your price
Limit How much? What the borrower can afford, trimmed by risk
Price At what cost? Expected loss, funding and servicing cost, and any cap

The dials are linked. A higher price tolerates a higher bad rate, so it moves the right cut-off. A cap on price removes that tolerance. A low limit makes a loss smaller, so it makes a risky borrower cheaper to accept. Treat them as one decision with three levers, which is how this chapter’s lab sets them.

The lab uses Owoleaf’s loan book at scale 1 (data1/: 8,386 applications and 3,645 loans), not the smaller default book, because a bad rate per band needs hundreds of loans in each band. It scores the salary advance (SAL) and the buy now pay later product (BNPL). Those two are short enough for nearly every loan to have had time to reach 90 days past due: every salary advance has, and only 6 BNPL loans are still in arrears at 68 to 89 days (the lab counts them as not bad, which understates the BNPL rate slightly). The personal loan and SME loan have 304 and 158 loans still current, so their bad rates are unfinished, and the sample leaves them out.

The score is the points table from the AI in lending chapter: bureau score in four bands, no delinquencies, few recent enquiries and long history each earn points, to a maximum of 120. Its points were fixed in that chapter before anyone looked at these loans, which keeps the cut-off analysis honest. It is a stated, simple score, not a good one. The full scorecard (target definition, binning, a fitted model, validation) is built in the credit scoring chapter and the module project. Here the score is the input.

Bad means the lab’s definition: status default or written_off at the cut-off, 28 October 2026. In the lab’s four bands, the sample’s 2,725 loans split as follows (these are the lab’s output, shown again in step 3):

Band Points Loans Bad Bad rate
A 100 or more 625 38 6.1%
B 80 to 90 496 44 8.9%
C 60 to 70 1,183 189 16.0%
D under 60 421 76 18.1%

Setting a cut-off: the trade

A cut-off trades two things you can count. Raise it and you decline more applicants, which loses the good borrowers among them and their income. You also avoid the bad ones, which saves the principal they would not repay. Where the cut-off should sit depends on how much a good loan earns against how much a bad loan costs.

Work it for the salary advance with the economics of a loan chapter’s inputs (all illustrative): funding at 18% a year, ₦800 to serve a loan, and a loss given default (LGD, the share of the principal not recovered) of 90%. Per ₦1 lent for 30 days, funding costs 0.18 × 30 ÷ 365 = 1.48%. The average advance is ₦26,626, so ₦800 to serve is 3.0%. The product charges a 1% fee, kept even if the borrower defaults, and 5% interest, paid only by borrowers who repay. If a share p of borrowers default, the margin per ₦1 lent is

margin = 0.01 + (1 − p) × 0.05 − p × 0.90 − 0.0148 − 0.0300

It is zero when p = 0.0152 ÷ 0.95 = 1.6%. That is the break-even bad rate at this price. Every band in the table above is far over it, including band A at 6.1% (and the salary advance’s own band A is 6.9%, in step 6). At 6% all-in, no cut-off on this points table makes the salary advance pay: even the 239 salary advances at 110 points or more went bad 5.4% of the time. Raising the cut-off shrinks the loss without ever turning it into a profit. A cut-off question has an answer only once the price is fixed, and the answer is the point where the bad rate of the marginal applicants crosses that price’s break-even.

The marginal customer, not the average

The loans you keep set the bad rate you report. The loans at the edge set the decision. Read step 3’s second table with that in mind. Moving the cut-off from 60 to 70 points brings the book’s bad rate down from 11.8% to 8.9%, which looks like a gain. The loans that move are the 934 at exactly 60 points, and 16.0% of them went bad. Whether it is a gain depends on whether those 934 loans earn more than they lose at the price charged: it is their 16.0% that goes against the break-even, not the 8.9% of the survivors.

Two things go wrong when you read this table. First, the cut-off lands on a cliff. The points table gives every thin file (an applicant the bureau has no history for) the same score: 20 for being thin, plus whatever the other rows earn. All 760 thin-file loans in the sample sit at exactly 60 points. A cut-off of 70 declines every thin file, whether or not each was risky. A score with few distinct values can only move a cut-off in big steps. Second, an in-sample table flatters. The bad rates above come from the loans the points were applied to. A cut-off picked because it looks best on them will do less well on the next quarter’s applicants. The lab’s break step shows the smallest version of this, and the credit scoring chapter’s out-of-time test is the proper cure.

What you cannot see: swap-in and swap-out

Every bad rate in the table is for loans the lender made. The people it declined have no outcome, because nobody lent to them. Suppose Owoleaf tests a challenger rule against the rule in force, the champion. Four groups appear:

Challenger approves Challenger declines
Champion approves Both approve: you see their outcomes Swap-out: you see their outcomes
Champion declines Swap-in: no outcomes Both decline: no outcomes

You can judge a swap-out from history, because the champion lent to them. If they went bad more often than the loans both rules approve, the challenger was right to drop them. You cannot judge a swap-in. Those applicants were declined, so what they would have done is a guess. A challenger that mostly adds swap-ins looks free in the old data and has not been tested at all.

This is the selection problem, and its remedies are called reject inference: estimating how declined applicants would have behaved, for example by assuming they behave like approved applicants in the same band, or by buying bureau data on what they did elsewhere. Module 3’s model risk chapter covers the methods. One study of a lender’s data (Banasik, Crook and Thomas, 2003, in the Reading list) reports that models trained on accepted applicants alone predicted close to as well as models trained on a sample of everyone. It also reports, from a simulation, that the lower the risk band of the training sample, the more the model’s performance is overestimated, possibly by a lot. Treat reject inference as a way to bound what you do not know. It does not supply the missing outcomes.

The cheap, honest way to learn about swap-ins is to approve a small random sample of them and watch. That is a champion/challenger test.

Limits from affordability

A limit answers a different question from a cut-off. The cut-off asks whether this borrower is a good risk. The limit asks how much this borrower can carry. The two are independent: a safe borrower with thin cash flow still cannot repay a large instalment.

The usual measure is the debt-service ratio: the share of monthly income that goes to repaying debts. A lender measures income from evidence it can see. Owoleaf sees the wallet: the lab uses the money funded into the wallet by bank transfer or card in the 90 days before the application, divided by the months of history (30 days at least, 90 at most). One more care: this measures the income the lender saw on the application date. The lab’s loan generator capped its own approved amounts on inflows up to the end of the data, which a real lender cannot see. If you build limits on the later figure, you are using the future.

The rule has three steps:

  1. Pick the largest share of monthly inflow a borrower in each band may spend on this lender: here 40%, 35%, 30% and 25% for bands A to D. This is a policy choice. The lab does not tune it.
  2. Work out the monthly burden per naira borrowed. A salary advance repays ₦1.05 within the month per ₦1 borrowed (5% interest). A BNPL of four fortnightly instalments takes a quarter of the principal every 14 days, which is 30 ÷ 14 ÷ 4 = 0.5357 of the principal a month.
  3. Limit = share × inflow ÷ burden, rounded down to a whole ₦1,000 and capped at the product’s maximum. A limit below the product’s minimum means no loan.

A shopper at Ojaline’s checkout in band B with ₦90,000 of inflow a month may spend 0.35 × ₦90,000 = ₦31,500 a month on instalments. The limit is ₦31,500 ÷ 0.5357 = ₦58,800, which rounds down to ₦58,000. The shopper’s basket is ₦72,000. Rabiu’s screen can offer ₦58,000 of BNPL with the remaining ₦14,000 paid by card, or decline BNPL. Declining is the wrong default: the shopper can still buy, and the lender has taken only the risk it priced.

Step 5 applies the rule to the 2,725 loans. Two results matter. The loans above their limit went bad more often: 10.6% against 7.7% within the limit for BNPL, and 16.2% against 11.0% for the salary advance. And cutting every loan to its limit would remove 14.6% of the BNPL money lent and 16.0% of the money lost: about proportionate. Read that carefully. The calculation assumes a borrower who gets a smaller loan still defaults at the same rate, so the loss falls with the loan. The limit reduces how much each default costs. It does not make the borrower less likely to default. Real limits also grow: a customer who repays a first small loan is offered a larger limit next time, and repayment history is the best affordability evidence a lender gets.

Risk-based pricing

Risk-based pricing charges each band its own break-even price. It adds nothing to the economics chapter’s break-even idea except the band: you compute the same quantity for each band’s PD.

The probability of default (PD) is the band’s observed bad rate. LGD is assumed. In this book the salary advance’s observed LGD is 97.2%, because the generator’s borrowers who stop paying pay almost nothing afterwards, and recoveries from agencies are zero by construction. The lab assumes 90% for the salary advance and 65% for BNPL (observed 66.5% of principal, because BNPL borrowers pay instalments before they stop). The exposure at default (EAD, the amount owed when the borrower stops) is taken as ₦1 per ₦1 lent, so expected loss is PD × LGD × EAD = PD × LGD per naira. A real lender would use its own recovery history. Both figures are assumptions, and changing them is a one-line edit.

For a product with a fee kept regardless (the 1% fee) and interest paid only by borrowers who repay, the interest that breaks even for a band is

interest = (PD × LGD + funding + serving − fee) ÷ (1 − PD)

For band A: PD = 29 ÷ 419 = 6.92%. Expected loss is 0.0692 × 0.90 = 6.23%. Funding is 1.48% and serving is 2.67% (₦800 on that band’s average ₦29,971). The numerator is 6.23 + 1.48 + 2.67 − 1.00 = 9.38%, and dividing by 0.9308 gives 10.1% interest, or 11.1% all in with the fee. The product charges 6%. Step 6 repeats this for all four bands: 11.1%, 13.1%, 25.8% and 27.6%.

Those prices come from the lab’s data, and nothing in the data tells you the borrower can pay them. A single price in the book means PD cannot be observed as a function of price. A band’s PD at 25% a month is probably worse than at 6%, because heavier repayment is harder to meet and because customers who accept a high price are not the average customer. The calculation gives a floor for what a band costs the lender, not a price to charge.

BNPL has no interest to move, so its “price” is the fee the seller pays. With the fee taken at the start and kept even on default, the break-even fee is the sum of expected loss, funding and serving. For the whole BNPL sample it is 9.0%: 8.6% PD × 65% LGD = 5.6%, plus 1.7% funding (the balance falls as instalments arrive, so funding is on 35 principal-days, not 56) and 1.7% serving. It runs from 6.1% for band A to 12.4% for band D. The band order is not strict: band B’s 9.5% PD is above band C’s 9.0%, on 137 and 300 loans. A difference that size is within the noise.

What a rate cap does

Suppose the rules cap what a 30-day loan may cost all in. The lab invents a cap, which it labels so, and tests it at 10%, 12%, 15%, 20% and 30%. In this calculation a cap does not change the cost of funds or the PD (in life a lower price might change who applies and how they repay). It removes the bands whose break-even price is above it, so a cap on price is a cut-off in disguise. Step 6, part 3, shows it: at a 12% cap only band A is priceable and 419 of 1,959 salary advances survive. At 15% and 20% bands A and B survive, 778 loans, because no band’s break-even lies between 13.1% and 25.8%. The 578 thin files are all in band C, so every cap below 30% declines all of them.

That is a result about the lab’s score, and about caps in general: a cap protects the borrowers it leaves inside the market and excludes the ones it prices out, and the prices-out are often those the lender knows least about. A score that splits thin files into several bands, using alternative data such as wallet history, makes a cap exclude fewer of them. The lab does not say what a cap should be.

What does Nigeria’s rule say?

The Federal Competition and Consumer Protection Commission (FCCPC)’s Digital, Electronic, Online or Non-Traditional Consumer Lending Regulations 2025 are reported, in search results quoting the text, to provide that the Commission will periodically monitor consumer-lending interest rates to ensure they are not exploitative, with reports tying this to section 163 of the Federal Competition and Consumer Protection Act. Search results showed no numeric ceiling on rates, and one headline about a rule on loan-app rates was not readas of 2026-11. Monitoring is not a cap. Sources also disagree on when the Regulations took effect (21 July 2025 in several accounts, later dates in others), as the earlier chapters note. Read the Regulations before relying on either point. Consumer protection and digital lending rules, a later chapter in this module, reads them in full. The caps in the lab (10% to 30%) are invented to show a mechanism and are not Nigerian figures; the lab does not say what a cap should be.

Champion and challenger

A champion/challenger test runs a new rule (the challenger) on a small, random share of live applications while the champion decides the rest, then compares outcomes. The random choice is the point: it is how swap-ins get outcomes.

Design it before it starts. Choose the share (5% to 10% of applications is common), cap the exposure (a maximum limit per swap-in, say), and fix the date the verdict is read, long enough for the loans to mature. For the salary advance that is 30 days plus 90 days past due, about four months. Then check the arithmetic of size. Step 4 finds 96 swap-ins for a challenger that approves from 50 points. If you lent to all of them and 12 went bad (12.5%), the 95% interval around the rate is 12.5% ± 1.96 × √(0.125 × 0.875 ÷ 96) = 12.5% ± 6.6 points, so from about 6% to 19%. That cannot tell you whether the swap-ins are as good as the 12.2% of the loans both rules approve or as bad as the 18.1% of the swap-outs. A test needs far more than 96 loans, or a longer run, before it decides anything.

Rules govern the test too. A challenger changes who is declined, and a decision made only by a program may be regulated.

Section 37 of the Nigeria Data Protection Act 2023, as secondary commentary describes it, gives a data subject the right not to be subject to a decision based solely on automated processing, including profiling, that has legal or similar effects, with exceptions that include consent, a legal obligation, contract and written law, and safeguards such as human involvementas of 2026-11. The search results gave commentary and not the statute’s text, so check the section and subsection numbers in the Act. Whether a lending cut-off is such a decision, and what a declined customer is owed, is the subject of the gradient-boosted models chapter.

Where it goes wrong

  • Tuning on the sample. Choosing the cut-off that looks best in-sample overstates it. Choose on one period and test on a later one.
  • Reading the bad rate of those kept instead of those at the edge.
  • Ignoring the cliff. A score with 13 distinct values moves a cut-off in 10-point steps and puts every thin file on one step.
  • Immature loans. A bad rate on loans still running understates the risk. The lab restricts to SAL and BNPL for that reason, and still has six BNPL loans at 68 to 89 days past due that may yet go bad.
  • A limit that uses information the lender did not have, such as inflows after the application date.
  • A small band’s PD. Two bad loans in 59 is a 3.4% PD that the next quarter does not repeat. The break step shows a price built on it.
  • Overrides. Staff overruling the score are a source of the selection bias above, and a source of risk the score never sees.
  • Reading a model’s price as advice to borrowers. Nothing in this chapter says what anyone should borrow or from whom. It is about how a lender reasons.
LAB Move a cut-off, set limits from inflows, price by band and test a cap on data1 ~50 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with the scale 1 book built into data1About 720 MB of disk for data1 and about 40 seconds to build itNo Docker, no packages

You work in labs/finance. Every step runs Python from that folder against data1/finance.sqlite. The scripts only read.

1. Build and check the scale 1 book. If data1/ does not exist, build it with the README’s command (about 40 seconds). Then check it.

cd labs/finance
python3 generate.py --scale 1 --out data1 && python3 loans.py --out data1 \
  && python3 cards.py --out data1 && python3 collect.py --out data1
python3 check.py --db data1/finance.sqlite
python3 - <<'PY'
import sqlite3
db = sqlite3.connect("data1/finance.sqlite")
print(db.execute("SELECT COUNT(*) FROM applications").fetchone()[0], "applications")
print(", ".join(f"{s} {n}" for s, n in db.execute("SELECT status, COUNT(*) FROM loans GROUP BY 1 ORDER BY 1")))
PY

check.py takes about 30 seconds and its last line is OK: all invariants hold, after loan book: 3645 loans, 9,771,721,819 kobo of principal outstanding; checks 7-11 run. The query prints:

8386 applications
arrears 42, closed 2773, current 462, default 310, written_off 58

2. Save the sample and the score. Save this as book.py. It joins each approved SAL and BNPL loan to its bureau report and to the wallet inflows in the 90 days before the application, scores it, and defines bad as default or written_off. Money is integer kobo throughout.

"""The sample for this chapter: salary-advance and BNPL loans on data1, with a stated score."""
import sqlite3

DB = "data1/finance.sqlite"
PRODUCTS = ("SAL", "BNPL")
BAD = ("default", "written_off")                 # bad = 90 or more days past due at the cut-off
FUNDING_BPS = 1800                               # 18% a year, as in the economics chapter (illustrative)
SERVE_KOBO = 80_000                              # ₦800 to serve one loan (illustrative)
PRINCIPAL_DAYS = {"SAL": 30, "BNPL": 35}         # SAL: 1 x 30 days. BNPL: balance 1, 3/4, 1/2, 1/4 for 14 days each
BURDEN = {"SAL": 1.05, "BNPL": 30 / 14 / 4}      # naira due each month per naira borrowed


def points(hit, score, delinquent, enquiries, years):
    """The points table from the AI-in-lending chapter. Fixed before looking at these loans."""
    p = (60 if score >= 740 else 40 if score >= 680 else 20 if score >= 620 else 0) if hit else 20
    p += 20 if delinquent == 0 else 0
    p += 20 if enquiries <= 2 else 10 if enquiries <= 4 else 0
    p += 20 if years >= 5 else 10 if years >= 2 else 0
    return p


def band(p):
    return "A" if p >= 100 else "B" if p >= 80 else "C" if p >= 60 else "D"


SQL = """
SELECT l.id, a.product, a.applied_at, l.principal_kobo, l.fee_kobo, l.paid_interest_kobo,
       l.paid_late_fees_kobo, l.outstanding_principal_kobo, l.status,
       b.hit, COALESCE(b.score, 0), b.delinquent_12m, b.enquiries_90d, b.history_years,
       CAST(julianday(a.applied_at) - julianday(substr(c.signup_at, 1, 10)) AS INTEGER) AS tenure_days,
       (SELECT COALESCE(SUM(t.amount_kobo), 0) FROM transactions t
         WHERE t.customer_id = l.customer_id AND t.status = 'succeeded'
           AND t.kind IN ('funding_transfer', 'funding_card')
           AND t.created_at >= date(a.applied_at, '-90 days') AND t.created_at < a.applied_at) AS inflow_90d
FROM loans l
JOIN applications a ON a.id = l.application_id
JOIN bureau_reports b ON b.id = a.bureau_report_id
JOIN customers c ON c.id = l.customer_id
WHERE a.product IN ('SAL', 'BNPL')
ORDER BY l.id
"""


def load():
    db = sqlite3.connect(DB)
    rows = []
    for (lid, product, applied, principal, fee, interest, late, outstanding, status,
         hit, score, delinquent, enquiries, years, tenure, inflow) in db.execute(SQL):
        months = max(30, min(90, tenure)) / 30            # a new customer has less than 90 days of history
        pts = points(hit, score, delinquent, enquiries, years)
        rows.append(dict(id=lid, product=product, applied=applied, principal=principal,
                         income=fee + interest + late, lost=outstanding if status in BAD else 0,
                         bad=status in BAD, hit=hit, score=score, points=pts, band=band(pts),
                         monthly_inflow=int(inflow / months)))
    return rows


def naira(kobo):
    return f"₦{kobo // 100:,}.{abs(kobo) % 100:02d}" if kobo >= 0 else "-" + naira(-kobo)


def funds(row):
    return row["principal"] * FUNDING_BPS * PRINCIPAL_DAYS[row["product"]] // (10_000 * 365)


def profit(row):
    """What the loan earned, less funding, servicing and the principal lost (illustrative costs)."""
    return row["income"] - funds(row) - SERVE_KOBO - row["lost"]
python3 - <<'PY'
from book import load, naira

rows = load()
for product in ("SAL", "BNPL"):
    sel = [r for r in rows if r["product"] == product]
    print(f"{product:<5}{len(sel):>6} loans  {sum(r['bad'] for r in sel):>4} bad  lent {naira(sum(r['principal'] for r in sel))}")
r = rows[0]
print({k: r[k] for k in ("id", "product", "principal", "points", "band", "bad", "monthly_inflow")})
PY
SAL    1959 loans   281 bad  lent ₦52,161,000.00
BNPL    766 loans    66 bad  lent ₦35,984,000.00
{'id': 'L000001', 'product': 'BNPL', 'principal': 3200000, 'points': 60, 'band': 'C', 'bad': False, 'monthly_inflow': 5941852}

2,725 loans and 347 bad, 12.7%. The first loan is a ₦32,000 BNPL whose borrower had ₦59,418.52 a month of inflow (5,941,852 kobo). It scores 60 points, so band C, and it did not go bad.

3. Move the cut-off. Save this as cutoffs.py. Part 1 is the band table. Part 2 raises the cut-off step by step and also prints the loans each step drops, which are the marginal applicants.

from book import load, band

rows = load()
total, bad_total = len(rows), sum(r["bad"] for r in rows)
print(f"{total} loans, {bad_total} bad ({bad_total / total:.1%})\n")

print("1. bad rate by points band")
print(f"   {'band':<6}{'points':<10}{'loans':>6}{'bad':>5}{'bad rate':>10}")
for b, label in (("A", "100+"), ("B", "80-90"), ("C", "60-70"), ("D", "0-50")):
    sel = [r for r in rows if r["band"] == b]
    bad = sum(r["bad"] for r in sel)
    print(f"   {b:<6}{label:<10}{len(sel):>6}{bad:>5}{bad / len(sel):>10.1%}")

print("\n2. move the cut-off up")
print(f"   {'cut-off':>7}{'kept':>6}{'kept %':>8}{'bad rate':>10}   {'dropped since last':>18}{'their bad rate':>16}")
previous = 0
for cutoff in (0, 50, 60, 70, 80, 90, 100, 110):
    kept = [r for r in rows if r["points"] >= cutoff]
    dropped = [r for r in rows if previous <= r["points"] < cutoff]
    bad = sum(r["bad"] for r in kept)
    d_bad = sum(r["bad"] for r in dropped)
    d_rate = f"{d_bad / len(dropped):>16.1%}" if dropped else f"{'':>16}"
    print(f"   {cutoff:>7}{len(kept):>6}{len(kept) / total:>8.1%}{bad / len(kept):>10.1%}   {len(dropped):>18}{d_rate}")
    previous = cutoff
python3 cutoffs.py
2725 loans, 347 bad (12.7%)

1. bad rate by points band
   band  points     loans  bad  bad rate
   A     100+         625   38      6.1%
   B     80-90        496   44      8.9%
   C     60-70       1183  189     16.0%
   D     0-50         421   76     18.1%

2. move the cut-off up
   cut-off  kept  kept %  bad rate   dropped since last  their bad rate
         0  2725  100.0%     12.7%                    0                
        50  2465   90.5%     12.2%                  260           18.1%
        60  2304   84.6%     11.8%                  161           18.0%
        70  1370   50.3%      8.9%                  934           16.0%
        80  1121   41.1%      7.3%                  249           16.1%
        90   858   31.5%      6.6%                  263            9.5%
       100   625   22.9%      6.1%                  233            8.2%
       110   350   12.8%      5.4%                  275            6.9%

The kept columns are what a report would show: the bad rate falls from 12.7% to 6.1% as the cut-off rises to 100. The last two columns are what the decision rests on. The 934 loans dropped at a cut-off of 70 went bad 16.0% of the time, against 8.9% for those kept. All 760 thin files are among them, because the points table gives every thin file 60 points.

4. Champion against challenger. Save this as swaps.py. The champion is the bureau-score cut-off the lender really used. The challenger approves from 50 points. It also scores the applications the champion declined on score, to count the swap-ins.

import sqlite3
from book import DB, load, points

CHALLENGER_CUTOFF = 50          # the challenger approves from 50 points; the champion is the bureau-score cut-off

rows = load()                   # every loan the champion approved
both = [r for r in rows if r["points"] >= CHALLENGER_CUTOFF]
swap_out = [r for r in rows if r["points"] < CHALLENGER_CUTOFF]

db = sqlite3.connect(DB)
declined = [points(hit, score, dq, enq, yrs) for hit, score, dq, enq, yrs in db.execute(
    """SELECT b.hit, COALESCE(b.score, 0), b.delinquent_12m, b.enquiries_90d, b.history_years
       FROM applications a JOIN bureau_reports b ON b.id = a.bureau_report_id
       WHERE a.product IN ('SAL', 'BNPL') AND a.decline_reason = 'score_below_cutoff'""")]
swap_in = [p for p in declined if p >= CHALLENGER_CUTOFF]


def line(label, sel):
    bad = sum(r["bad"] for r in sel)
    print(f"   {label:<40}{len(sel):>6}{bad:>5}{bad / len(sel):>10.1%}")


print(f"champion: the bureau-score cut-off. challenger: {CHALLENGER_CUTOFF} points or more.\n")
print(f"   {'':<40}{'loans':>6}{'bad':>5}{'bad rate':>10}")
line("both approve", both)
line("swap-out (champion yes, challenger no)", swap_out)
print(f"   {'swap-in (champion no, challenger yes)':<40}{len(swap_in):>6}{'?':>5}{'?':>10}")
print(f"   {'both decline on score':<40}{len(declined) - len(swap_in):>6}")
python3 swaps.py
champion: the bureau-score cut-off. challenger: 50 points or more.

                                            loans  bad  bad rate
   both approve                              2465  300     12.2%
   swap-out (champion yes, challenger no)     260   47     18.1%
   swap-in (champion no, challenger yes)       96    ?         ?
   both decline on score                      730

The swap-outs went bad 18.1% of the time, against 12.2% for the loans both rules approve: a measured result. The 96 swap-ins show ?, because they were declined and have no outcome. The two groups’ sizes, 260 out against 96 in, say the challenger mostly declines. Whether the 96 are good is something this data cannot say. The 730 that both decline are those the champion declined on score; the champion declined others for other reasons, which this script does not replay.

5. Set limits from inflows. Save this as limits.py.

from book import load, naira, BURDEN

# The most a borrower in each band may spend on this lender's instalments, as a share of the
# monthly wallet inflow in the 90 days before the application (illustrative policy).
MAX_SHARE = {"A": 0.40, "B": 0.35, "C": 0.30, "D": 0.25}
MIN_KOBO = {"SAL": 1_000_000, "BNPL": 2_000_000}          # the products' minimums
MAX_KOBO = {"SAL": 15_000_000, "BNPL": 30_000_000}        # and maximums


def limit(row):
    """Integer kobo, rounded down to a whole ₦1,000. BURDEN is naira due a month per naira borrowed."""
    raw = int(MAX_SHARE[row["band"]] * row["monthly_inflow"] / BURDEN[row["product"]])
    return min(raw // 100_000 * 100_000, MAX_KOBO[row["product"]])


rows = load()
print(f"   {'':5}{'loans':>6}{'over limit':>11}{'bad rate over':>15}{'bad rate within':>17}{'below minimum':>15}")
for product in ("SAL", "BNPL"):
    sel = [r for r in rows if r["product"] == product]
    over = [r for r in sel if r["principal"] > limit(r)]
    within = [r for r in sel if r["principal"] <= limit(r)]
    below = [r for r in sel if limit(r) < MIN_KOBO[product]]
    print(f"   {product:<5}{len(sel):>6}{len(over):>11}{sum(r['bad'] for r in over) / len(over):>15.1%}"
          f"{sum(r['bad'] for r in within) / len(within):>17.1%}{len(below):>15}")

print("\nIf every loan had been cut to its limit, and loans with a limit below the minimum declined:")
print(f"   {'':5}{'lent now':>16}{'lent at limit':>16}{'lost now':>14}{'lost at limit':>15}")
for product in ("SAL", "BNPL"):
    sel = [r for r in rows if r["product"] == product]
    kept = [r for r in sel if limit(r) >= MIN_KOBO[product]]
    lent = sum(r["principal"] for r in sel)
    lent_cut = sum(min(r["principal"], limit(r)) for r in kept)
    lost = sum(r["lost"] for r in sel)
    lost_cut = sum(r["lost"] * min(r["principal"], limit(r)) // r["principal"] for r in kept)
    print(f"   {product:<5}{naira(lent):>16}{naira(lent_cut):>16}{naira(lost):>14}{naira(lost_cut):>15}")

print("\nOne checkout: band B, monthly inflow ₦90,000, BNPL")
shopper = dict(band="B", monthly_inflow=9_000_000, product="BNPL")
print(f"   limit = 0.35 x 9,000,000 / {BURDEN['BNPL']:.4f} = {naira(limit(shopper))}")
python3 limits.py
         loans over limit  bad rate over  bad rate within  below minimum
   SAL    1959       1266          16.2%            11.0%            571
   BNPL    766        236          10.6%             7.7%            117

If every loan had been cut to its limit, and loans with a limit below the minimum declined:
                lent now   lent at limit      lost now  lost at limit
   SAL    ₦52,161,000.00  ₦34,254,000.00 ₦6,848,659.00  ₦4,005,841.51
   BNPL   ₦35,984,000.00  ₦30,725,000.00 ₦1,775,883.00  ₦1,490,943.12

One checkout: band B, monthly inflow ₦90,000, BNPL
   limit = 0.35 x 9,000,000 / 0.5357 = ₦58,000.00

Loans above their limit went bad more often: 10.6% against 7.7% (BNPL) and 16.2% against 11.0% (SAL). Cutting each loan to its limit lowers the money lent by 14.6% (BNPL: ₦35,984,000 to ₦30,725,000) and the money lost by 16.0% (₦1,775,883 to ₦1,490,943). That is proportionate, because the script assumes a borrower still defaults when lent less. The checkout line checks by hand: ₦90,000 × 0.35 = ₦31,500 a month, and ₦31,500 ÷ 0.5357 = ₦58,800, rounded down to ₦58,000. The last lost figure carries kobo because a share of an integer loss is not a whole number of naira.

6. Price by band and test a cap. Save this as pricing.py. Parts 1 and 2 use the band’s PD from the loans in WINDOW, the assumed LGD and the formula from the chapter. Part 3 asks which bands survive a cap.

from book import load, naira, funds, SERVE_KOBO

WINDOW = ("2026-01-01", "2026-07-01")                 # applications in this window set the PDs
ASSUMED_LGD = {"SAL": 0.90, "BNPL": 0.65}             # an assumption: see the text. Observed: 97% and 67%
SAL_FEE = 0.01                                        # the product's 1% fee, taken at disbursement
CAP = 0.15                                            # ILLUSTRATIVE cap on the all-in charge of a 30-day loan

rows = [r for r in load() if WINDOW[0] <= r["applied"] < WINDOW[1]]


def band_stats(product, b):
    sel = [r for r in rows if r["product"] == product and b in (r["band"], "all")]
    lent = sum(r["principal"] for r in sel)
    return dict(n=len(sel), bad=sum(r["bad"] for r in sel), lent=lent,
                funds=sum(funds(r) for r in sel) / lent, serve=len(sel) * SERVE_KOBO / lent)


print("1. Salary advance: the all-in charge (interest + fee) that breaks even, by band")
print(f"   {'band':<5}{'loans':>6}{'PD':>7}{'EL':>7}{'funds':>7}{'serve':>7}{'interest':>10}{'all-in':>8}   under cap?")
for b in "ABCD":
    s = band_stats("SAL", b)
    pd_ = s["bad"] / s["n"]
    el = pd_ * ASSUMED_LGD["SAL"]
    interest = (el + s["funds"] + s["serve"] - SAL_FEE) / (1 - pd_)   # the fee is kept even when the loan defaults
    all_in = interest + SAL_FEE
    print(f"   {b:<5}{s['n']:>6}{pd_:>7.1%}{el:>7.1%}{s['funds']:>7.1%}{s['serve']:>7.1%}"
          f"{interest:>10.1%}{all_in:>8.1%}   {'yes' if all_in <= CAP else 'no'}")
print("   charged today: 5% interest + 1% fee = 6.0% for every band")

print("\n2. BNPL: the fee the seller would have to pay, by band (the shopper pays 0%)")
print(f"   {'band':<5}{'loans':>6}{'PD':>7}{'EL':>7}{'funds':>7}{'serve':>7}{'seller fee':>12}")
for b in "ABCD":
    s = band_stats("BNPL", b)
    pd_ = s["bad"] / s["n"]
    el = pd_ * ASSUMED_LGD["BNPL"]
    print(f"   {b:<5}{s['n']:>6}{pd_:>7.1%}{el:>7.1%}{s['funds']:>7.1%}{s['serve']:>7.1%}{el + s['funds'] + s['serve']:>12.1%}")

s = band_stats("BNPL", "all")
pd_ = s["bad"] / s["n"]
el = pd_ * ASSUMED_LGD["BNPL"]
print(f"   {'all':<5}{s['n']:>6}{pd_:>7.1%}{el:>7.1%}{s['funds']:>7.1%}{s['serve']:>7.1%}{el + s['funds'] + s['serve']:>12.1%}")

print("\n3. What the cap does to the salary advance book")
sal = [r for r in rows if r["product"] == "SAL"]
for cap in (0.10, 0.12, 0.15, 0.20, 0.30):
    ok = []
    for b in "ABCD":
        s = band_stats("SAL", b)
        pd_ = s["bad"] / s["n"]
        all_in = (pd_ * ASSUMED_LGD["SAL"] + s["funds"] + s["serve"] - SAL_FEE) / (1 - pd_) + SAL_FEE
        if all_in <= cap:
            ok.append(b)
    kept = [r for r in sal if r["band"] in ok]
    thin = [r for r in kept if not r["hit"]]
    all_thin = [r for r in sal if not r["hit"]]
    print(f"   cap {cap:>4.0%}: bands {''.join(ok) or '-':<5} keep {len(kept):>5,} of {len(sal):,} loans; "
          f"thin files kept {len(thin)} of {len(all_thin)}")
python3 pricing.py
1. Salary advance: the all-in charge (interest + fee) that breaks even, by band
   band  loans     PD     EL  funds  serve  interest  all-in   under cap?
   A       419   6.9%   6.2%   1.5%   2.7%     10.1%   11.1%   yes
   B       359   8.6%   7.8%   1.5%   2.8%     12.1%   13.1%   yes
   C       883  18.3%  16.5%   1.5%   3.3%     24.8%   25.8%   no
   D       298  19.8%  17.8%   1.5%   3.1%     26.6%   27.6%   no
   charged today: 5% interest + 1% fee = 6.0% for every band

2. BNPL: the fee the seller would have to pay, by band (the shopper pays 0%)
   band  loans     PD     EL  funds  serve  seller fee
   A       206   4.4%   2.8%   1.7%   1.5%        6.1%
   B       137   9.5%   6.2%   1.7%   1.7%        9.6%
   C       300   9.0%   5.8%   1.7%   1.9%        9.5%
   D       123  13.8%   9.0%   1.7%   1.7%       12.4%
   all     766   8.6%   5.6%   1.7%   1.7%        9.0%

3. What the cap does to the salary advance book
   cap  10%: bands -     keep     0 of 1,959 loans; thin files kept 0 of 578
   cap  12%: bands A     keep   419 of 1,959 loans; thin files kept 0 of 578
   cap  15%: bands AB    keep   778 of 1,959 loans; thin files kept 0 of 578
   cap  20%: bands AB    keep   778 of 1,959 loans; thin files kept 0 of 578
   cap  30%: bands ABCD  keep 1,959 of 1,959 loans; thin files kept 578 of 578

Check band A by hand: PD = 29 ÷ 419 = 6.9%, EL = 0.0692 × 0.90 = 6.2%, numerator 6.23 + 1.48 + 2.67 − 1 = 9.38%, ÷ 0.9308 = 10.1% interest, 11.1% all in. Every band needs more than the 6% charged. At a 12% cap only band A survives. At 15% and 20% bands A and B survive, the same 778 loans, because no band breaks even between 13.1% and 25.8%. All 578 thin files fall in band C, so every cap below 30% declines them all. BNPL’s seller fee for the whole mix is 9.0%.

7. Change the window. Set WINDOW = ("2026-01-01", "2026-04-01") in pricing.py and run it again.

Only the first three months of applications set the PDs, and band A has 59 loans:

1. Salary advance: the all-in charge (interest + fee) that breaks even, by band
   band  loans     PD     EL  funds  serve  interest  all-in   under cap?
   A        59   3.4%   3.1%   1.5%   2.6%      6.3%    7.3%   yes
   B        64   6.2%   5.6%   1.5%   2.8%      9.5%   10.5%   yes
   C       131  21.4%  19.2%   1.5%   3.0%     29.0%   30.0%   no
   D        47  21.3%  19.1%   1.5%   3.4%     29.3%   30.3%   no
   charged today: 5% interest + 1% fee = 6.0% for every band

2. BNPL: the fee the seller would have to pay, by band (the shopper pays 0%)
   band  loans     PD     EL  funds  serve  seller fee
   A        32   3.1%   2.0%   1.7%   1.3%        5.1%
   B        22   4.5%   3.0%   1.7%   1.7%        6.3%
   C        43  16.3%  10.6%   1.7%   2.0%       14.3%
   D        15  13.3%   8.7%   1.7%   1.0%       11.4%
   all     112   9.8%   6.4%   1.7%   1.5%        9.6%

3. What the cap does to the salary advance book
   cap  10%: bands A     keep    59 of 301 loans; thin files kept 0 of 83
   cap  12%: bands AB    keep   123 of 301 loans; thin files kept 0 of 83
   cap  15%: bands AB    keep   123 of 301 loans; thin files kept 0 of 83
   cap  20%: bands AB    keep   123 of 301 loans; thin files kept 0 of 83
   cap  30%: bands ABC   keep   254 of 301 loans; thin files kept 83 of 83

Band A’s PD is now 3.4% (2 bad loans in 59), its all-in price 7.3% rather than 11.1%, and a 10% cap now lets band A through where the full window let nothing through. Band C’s BNPL seller fee jumps from 9.5% to 14.3% on 43 loans. Change the window back before you go on.

A price built on a small band is a guess that looks like a number. Look at step 7’s output and ask what the next quarter’s band A would have looked like: in the full window band A’s PD is 6.9% (419 loans, 29 bad), twice the first quarter’s. Two more bad loans in the first quarter’s 59 would have moved band A’s all-in price from 7.3% to about 10.9%. A PD needs a sample large enough to put a range around it, which is why the scorecard project reports the range and not only the number.

ARTEFACT Write the cut-off and limit strategy paper ~50 MIN
YOU PRODUCEA cut-off and limit strategy paper

Template

# Cut-off and limit strategy: <product>, <quarter>
Prepared by <analyst>, credit risk. Date: <date>. Approved by <head of credit risk>.

## 1. Decision needed
<what is to be decided, by whom, by when>

## 2. Where we are today
Loans, approval rate, bad rate (definition and cut-off date), profit at today's price.

## 3. Options
| Option | Cut-off | Price | Approval rate | Bad rate of loans kept | Bad rate of loans moved | Profit |
Profit = <income> less funding, serving and principal lost. Assumptions: <funding, serving, LGD>.

## 4. Limits
Share of monthly inflow by band, burden per naira, result: <lent and lost, now and at limit>.

## 5. Price bands
| Band | Loans | PD | Break-even price | Charged today |

## 6. Recommendation
The option chosen, and why the others lost.

## 7. Monitoring
<measure, trigger, owner, review date, and the challenger test if any>

## 8. How this could be wrong
<one way, and what would show it>
Out of scope: <what this paper does not decide>.
WORKED EXAMPLE

Ojaline BNPL cut-off and limits, November 2026. Murtala, who runs the BNPL programme, writes this for Owoleaf’s head of credit risk, who signs it. Rabiu’s checkout screen follows the decision.

The decision: which cut-off to use for the next quarter. Today the programme approves all 766 BNPL loans in the sample (bad rate 8.6%, printed in step 6), which at a flat 7% fee would lose ₦490,892.55.

The table is derived from the lab, not printed by the chapter. I ran book.py on the 766 BNPL loans and filtered on points. Profit is my own formula: for each loan kept, a flat 7% seller fee on the principal (an assumption, from the Decide) less funding (18% a year on the days the principal is out), ₦800 serving and the principal lost, summed. The fee-by-band row charges 6.1%, 9.6%, 9.5% and 12.4% (step 6) instead.

Option Approval rate Bad rate kept Profit
Cut-off 60, flat 7% 83.9% 7.6% -₦123,288.83
Cut-off 70, flat 7% 54.4% 6.2% ₦83,552.69
Cut-off 80, flat 7% 44.8% 6.4% ₦23,785.84
Cut-off 60, fee by band 83.9% 7.6% ₦260,103.17

Limits use shares of 40%, 35%, 30% and 25% of monthly inflow by band and a burden of 0.5357 (step 5). Cutting every BNPL loan to its limit takes the money lent from ₦35,984,000 to ₦30,725,000 and the loss from ₦1,775,883 to ₦1,490,943.12.

Recommendation: cut-off 70 at a flat 7%, with the limits above. It earns the most of the flat-fee options, and the screen does not change. The 226 loans it drops, against cut-off 60, went bad 10.2% of the time (derived the same way). The fee-by-band option earns more, but only if sellers accept a variable fee, which Murtala will ask them.

Monitoring: each month, the 90-day bad rate of loans kept, owner Murtala, trigger above 7.6%, first review 1 February 2027.

Could be wrong: band PDs rest on 137 to 300 loans, and 70 declines every thin file. A bad rate above 7.6% would show it.

Now you

You are a credit analyst at Owoleaf. The salary advance charges 5% interest and a 1% fee for every borrower. Its 1,959 loans in the lab sample went bad 14.3% of the time, and the chapter shows no cut-off on this points table makes it pay at 6%. Your head of credit risk wants a strategy paper for next quarter.

Use book.py to filter to SAL, then reuse cutoffs.py, limits.py and pricing.py. Lab figures to build on: limits cut the money lent from ₦52,161,000 to ₦34,254,000 and the loss from ₦6,848,659 to ₦4,005,841.51. Break-even all-in prices are 11.1%, 13.1%, 25.8% and 27.6% for bands A to D. All 578 thin files sit in band C. Compare at least three options, including one that raises the price, then recommend one. Your head of credit risk reads it and decides the cut-off, the limit rule and the price for the quarter.

Self-check

DECIDE

Ojaline charges sellers a flat 7% fee on BNPL orders (an invented figure). Murtala's band table, built from Owoleaf's data1 book, says the fee that breaks even is 6.1% for band A, 9.6% for B, 9.5% for C and 12.4% for D, and 9.0% for the mix. Shoppers pay 0%. Rabiu must decide what the checkout does with each band.

READING
  1. DOC
    FCCPC: Digital, Electronic, Online or Non-Traditional Consumer Lending Regulations 2025

    The Regulations as the FCCPC hosts them. Read the provision on monitoring interest rates and the disclosure rules, and check the commencement date. Skip the press commentary.

  2. DOC
    Federal Competition and Consumer Protection Commission: digital lending regulations announcement

    The FCCPC's own announcement of the 2025 Regulations. Read it for scope and aims, then read the Regulations themselves before you rely on a figure.

  3. DOC
    Nigeria Data Protection Act 2023

    A copy of the Act hosted by Nigeria's national CERT. Read section 37 on automated decisions and compare its subsection numbers with this chapter's note before you cite them. Skip the parts on the commission's administration.

  4. PAPER
    Sample selection bias in credit scoring models John Banasik, Jonathan Crook and Lyn Thomas, 2003

    The study this chapter cites on reject inference, from the University of Southampton's repository. Read the abstract for what accepted-only models do and do not lose. The full text is with the publisher. Read: Abstract and the sections on accepted-only and all-applicant samples.

  5. PAPER
    Reject inference, augmentation and sample selection Banasik and Crook

    A working paper on the same problem, using a sample where almost every applicant was accepted so the models can be checked against what happened. Read the introduction for how the methods are named; skip the estimation detail on a first read. Read: Introduction and the data description.

  6. BOOK
    Intelligent Credit Scoring: Building and Implementing Credit Risk Scorecards, second edition Naeem Siddiqi, 2016

    A practitioner's text on building and implementing scorecards, in the publisher's catalogue entry. Check its contents for the strategy and monitoring chapters and read them after the credit scoring chapter; skip the software-specific sections. Read: The contents page, for the chapters on scorecard development and implementation.

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: Disbursement and repayment rails: direct debit, card on file, GSI →