Credit cycles: what happened to digital lenders in Kenya and Nigeria
A lender that is loosening looks its best shortly before the losses arrive. Read a boom at equal age, and tell a credit cycle from a rule-making one
Owoleaf's salary-advance and BNPL book had PAR30 of 5.1% on 31 May. Suppose the lender had loosened its bureau-score cut-off by 100 points from 1 April. That adds 9.1% more lending, and the added loans are in truth far riskier than the loans it already makes. What is the book's PAR30 on 31 May, two months later?
A credit cycle is a swing in how freely lenders lend, and the losses that follow it. It has four steps, and the second and third are the ones an analyst misreads.
- Loosening. Lenders approve more applicants, raise limits or lend to thinner files. Competition, growth targets and a long run of good results all push this way.
- Growth. The book grows. Fee income and interest rise with it.
- Lag. The new loans have not reached their first due date, so arrears ratios stay low or fall. Losses are still ahead.
- Bust. The new loans age, the arrears arrive, provisions rise, funders pull back and lending stops. With lending stopped, the arrears ratio looks worse still, because the denominator now shrinks.
The module’s portfolio metrics chapter showed step 4 on Owoleaf’s whole book: PAR30 of 1.1% on 30 June and 19.2% on 28 October. This chapter works steps 1 to 3, where the signal is quiet and the decisions are made.
Why the early ratios flatter a growing book
A loan can only be late after its first instalment falls due. A salary advance (SAL) falls due 30 days after disbursement. A buy now, pay later (BNPL) loan has four fortnightly instalments, so its first falls due after 14 days. Before that, the loan adds to the balance and cannot add to the arrears. A ratio of arrears to balance is therefore low whenever the balance is mostly new. That is the denominator effect, and its fix is to compare loans at the same age, as the vintage curves of the portfolio metrics chapter do.
Step 3 of the lab runs this on the SAL and BNPL book. The gross portfolio, the principal outstanding on open loans, grows from ₦708,750 on 31 January to ₦41,259,620 on 30 June: 58 times in five months. PAR30 climbs from 0.3% on 31 March to 7.6% on 30 June. Read alone, that looks like deterioration. It is mostly age. The second table in the lab measures first-payment default: the share of loans whose first instalment is still unpaid 30 days after it fell due. Every loan is read at the same age, so growth cannot dilute it. It reads 13.0%, 13.5%, 12.5% and 11.8% for loans disbursed in March, April, May and June. The borrowers did not change. The mix of ages in the book did.
Two warnings follow. A ratio that rises in a book that is growing is evidence of something. A ratio that is low in a book that is growing is evidence of very little. And the lag is product-specific: a 12-month personal loan has its first missed payment a month in and its heavy losses much later, so a lender of instalment loans has a longer quiet period than the salary-advance lender in the lab, and a longer fall afterwards.
Loosening: what it does to the ratios, and to the money
Step 4 of the lab loosens Owoleaf’s cut-off in a copy of the book. The copy keeps every real loan. It adds loans for applicants the real lender declined on score, from 1 April, who are within 100 bureau-score points of the old cut-off and who pass the lender’s other rules (enquiries, delinquencies, inflows and the product’s minimum). There are 221 of them, 178 salary advances and 43 BNPL, worth ₦6,725,000. The lender made ₦74,242,000 of SAL and BNPL loans over the same three months, so the change grows its lending by 9.1%.
Nobody lent to these applicants, so nobody knows how they would have repaid. This is the selection problem of the decisions chapter. The lab therefore simulates them, and states its assumptions in code you can change. The real SAL loans scored in the 80 points above the old cut-off went bad (90 or more days past due, or written off, at the cut-off) 20.3% of the time (92 of 453); for BNPL it is 11.6% (14 of 121). The lab assumes the loosened applicants are one and a half times as likely to stop paying: 30.5% and 17.4%. Those multipliers are invented. They are the lab’s guess at a plausible direction, not a finding. A borrower who stops paying stops at an instalment chosen at random, and one who does not stop pays late 20% of the time. All of it is simulation, and nothing in it is Owoleaf’s real behaviour.
The results, in step 4, show the three things the cycle predicts.
The headline ratio does not warn. With the change, whole-book PAR30 is 1.8% on 30 April and 4.7% on 31 May, against 1.9% and 5.1% without it. On 30 June both are 7.6%. The 90-day ratio, the non-performing loan (NPL) ratio, is lower with the change on every date from 31 July to 28 October: 10.0% against 11.4% on 31 July, and 98.4% against 99.1% at the cut-off. A bigger book with the same arrears has a smaller ratio. A board that watched only these two lines would have judged the loosened lender the safer one.
The added loans tell another story. On their own, they are 7.2% past 30 days on 30 June and 49.0% a month later. Their 90+ balance is ₦30,750 on 31 July, ₦304,750 on 31 August, ₦1,105,750 on 30 September and ₦1,739,250 at the cut-off. The loss arrives two to four months after the loan, and after the quiet months. By first-payment default, read at equal age, the added loans fail at 34.3%, 27.3% and 23.5% for the April, May and June vintages. The rest of the lending fails at 13.5%, 12.5% and 11.8%.
The money is the verdict. By the cut-off the added loans earned ₦210,850 (₦49,100 of fees and ₦161,750 of interest) and lost ₦1,739,250 of principal: a net loss of ₦1,528,400 on ₦6,725,000 lent. That is not a surprise to anyone who has done the arithmetic in the decisions chapter. At the salary advance’s price in the lab, 6% all in (5% interest and a 1% fee), the decisions chapter puts the break-even bad rate at about 1.6%, after funding and servicing costs, and a band that goes bad one time in five is far over it. What is new is the timing. The lender could not have seen this loss in its own ratios until the quarter after it decided to loosen.
Two limits on the experiment. First, with a different random draw the numbers move. Step 5 runs 30 seeds: the added loans lose between ₦1,252,750 and ₦2,491,500, and PAR30 on 31 May lies between 4.6% and 4.9%, below the 5.1% baseline every time. The direction is the same under every draw. The size is not fixed. Second, the multiplier of 1.5 is a guess. Step 5 also sets it to 1.0, the added loans exactly as risky as the loans at the old edge, and the loss is still ₦1,012,400, because the edge is already unprofitable at this price. A cut-off set where the marginal borrower loses money is a mistake at any multiplier.
Why lenders loosen
Every lender who loosens in a boom has reasons. Three recur in the literature, which is about banks, so it applies to digital lenders by analogy and not by measurement.
- Memory fades. Berger and Udell’s institutional memory hypothesis says that loan officers’ ability to spot weak borrowers deteriorates over a lending cycle, and that this erodes credit standards. The working-paper version tested it on US bank data and reports support. A lender that has run only good months has no recent loss to remember.
- Growth carries its own risk. Foos, Norden and Weber (2010) study banks in 16 countries. They find that loan growth is followed by higher loan loss provisions over the next three years, lower relative interest income and lower capital ratios. The lag is the point: three years for banks, a few months for the salary advance.
- Credit growth predicts crises. Schularick and Taylor (2012) use data for 14 countries from 1870 to 2008 and find that credit growth is a strong predictor of financial crises. That is about whole economies, not single lenders, so take from it only the direction: fast growth is a signal to examine, not to admire.
A digital lender has two more reasons. Its customers can borrow from the next app in minutes, so a lender that holds its cut-off loses volume to one that does not. And it often has a funder whose own targets depend on volume. Neither is a failure of ethics. Both make the loosening feel like market discipline from the inside.
Kenya: a boom, a listing rule and a licence
Kenya is the longer story, and the sources are better. Its digital lenders were outside the Central Bank of Kenya (CBK)’s licensing until 2022, as the rules below show. A study of one widely used product, M-Shwari, is worth keeping beside any account of harm. Bharadwaj, Jack and Suri’s working paper (NBER, 2019; published in the Journal of Development Economics in 2021) reports that 34% of eligible users took the loan, that it did not substitute for other credit, and that households were 6.3 percentage points less likely to forgo expenses after negative shocks. Digital credit helped some households, and the evidence of benefit sits beside the evidence of harm.
The harm shows up in credit records. A credit reference bureau (CRB) is Kenya’s name for a credit bureau, as in the credit data chapter. A listing at a CRB follows a borrower to the next lender. Johnen, Parlasca and Musshoff (PLOS ONE, 2021) use representative Kenyan data and report, in the abstract as search results give it, that digital credit borrowing is responsible for 90% of all blacklistings, partly through higher default rates and partly through a higher chance that a default leads to listing. A press report of a CGAP survey of 1,037 digital credit users says 12% had defaulted and 47% had repaid late. That is press, and the original report was not read here.
Then came the rules.
The Central Bank of Kenya (Digital Credit Providers) Regulations, 2022 (Legal Notice 46 of 2022), made under the Central Bank of Kenya (Amendment) Act, 2021, require a CBK licence to carry on digital credit business. Search summaries put this at rule 4(1). A CBK press release, as search results show it, says existing providers had six months from publication, to 17 September 2022, to apply. Summaries read regulation 14 as barring a provider from sending negative information to a credit reference bureau when the amount outstanding is KSh 1,000 or less; one quotes it as “does not exceed” KSh 1,000, but the gazette text was not read here. Sources disagree on dates: Kenya Law shows publication and commencement on 22 April 2022, the CBK release dates the notice 18 March 2022, and another tracker gives 18 September 2022, which looks like the end of the transition period. Several accounts say the CRB Regulations 2020 (gazetted in April 2020, as press reports give it) first set a KSh 1,000 floor for negative listing. They differ on “less than” and “1,000 or less”, and the gazette text was not read. Read the Regulations before you quote a date or a thresholdas of 2026-11.
The CBK’s September 2025 release, as search summaries describe it, took the number of licensed digital credit providers to 153, after a batch of 41 in June 2025 and a further 27. Later CBK releases, again as search summaries give them, took it to 195 (December 2025), 227 (April 2026) and 252 (July 2026); one secondary report cites a September 2026 directory with 281, which was not checked against the directory. A consultancy summary says the Business Laws (Amendment) Act, 2024 extended the CBK’s licensing to non-deposit-taking credit providers beyond digital lenders, in force from 27 December 2024, as several law-firm summaries agree. The counts only rise, so check the CBK directory for the current numberas of 2026-11.
Read the rules as a response to a cycle. Lending grew, borrowers were listed for small amounts, the regulator took the lenders inside its perimeter and set a floor under which a default is not reported. A possible effect, which this chapter did not find measured, is that a rule against listing small defaults also gives lenders a reason to stop making small loans. That would be a cost of the rule, set against the harm it prevents, and it is the kind of second-order effect an investor should ask a Kenyan lender about.
Nigeria: registration first, then rules
Nigeria’s story is shorter and the evidence is thinner, and it is a different kind of story. The Federal Competition and Consumer Protection Commission (FCCPC) moved against digital lenders on consumer-protection grounds.
The FCCPC issued its Limited Interim Regulatory/Registration Framework and Guidelines for Digital Lending in 2022 (search results give 18 August 2022), requiring digital lenders to register with it. Existing lenders were given 90 days, and FCCPC notices, as search results show them, extended the deadline from 14 November 2022 to 31 January 2023 and then to 27 March 2023. Press reports say the FCCPC later delisted apps and asked Google to remove others operating without registrationas of 2026-11.
The FCCPC issued the Digital, Electronic, Online or Non-Traditional Consumer Lending Regulations, 2025. Search results quoting the FCCPC’s release give 21 July 2025 as the effective date. That release is itself dated 3 September 2025, which may be the source of a 3 September date, and a law firm gives a publication date of 24 or 25 July, so the date is unresolved. Press reports give a compliance deadline of 5 January 2026, after an earlier 31 October 2025 date, and a penalty for non-compliance of up to ₦100 million. They give about 492 registered lenders in October 2025, 521 in January 2026 and 525 in September 2026, and say conditional approvals were revoked after the January deadline. Read the Regulations for the rules; the FCCPC’s register is the authority for any countas of 2026-11.
The FCCPC also published DEON Consumer Lending Guidelines 2025 on its site. A law-firm analysis says they took effect on 18 November 2025 and replaced the 2022 guidelines; the guidelines’ own text was not read hereas of 2026-11.
The consumer protection chapter reads the 2025 Regulations. What matters here is the sequence and what it does not show. A fast-growing sector of lenders, many of them apps, drew complaints; the FCCPC set up registration in 2022, extended it, and replaced it with a fuller regime in 2025, with press reports of conditional approvals revoked after the January 2026 deadline. That is a rule-making cycle. It follows growth, as a credit cycle does. It is not, on the evidence found, a credit-loss cycle. The searches for this chapter turned up no public portfolio figures (arrears, defaults or write-offs) for Nigerian digital lenders, and press accounts of a lender’s collapse are not evidence of a sector’s loss history. A reader who says Nigeria had a digital-lending bust is claiming something this chapter cannot support. A reader who says it had a registration and enforcement cycle is on firm ground.
What the two cases do and do not show
They share a shape: fast growth by lenders outside the usual regulatory perimeter, harm to borrowers that regulators could see (listings in Kenya, conduct complaints in Nigeria), then a licence or registration regime. That is a pattern in the rules, and it is what the sources support.
They do not show that digital lenders lose money in booms. For that you need loss data by vintage, and the public sources found here give counts of licences and registrations, not arrears or write-offs. Nor do they show that the rules worked. The Kenyan floor on small listings may protect borrowers, and it may push lenders towards bigger minimum loans. The Nigerian register may remove abusive apps, and it may push some lending onto unregistered ones. The honest summary is the one an investor can use: regulation follows growth, the rules change lender economics, and the loss data that would settle the question sits inside the lenders.
Reading a lender in a boom
Chidiebere’s checklist for the two packs follows from the lab.
- First-payment default by disbursement month. Every loan at the same age. Ask for it by product. If the rate has risen while PAR30 has fallen, the book is loosening behind a growing denominator.
- Approval rate and cut-off by month. A rising approval rate, a lower cut-off or a rising share of thin files is the loosening itself. The lab’s step 4 is a model of the question: what would we see if the cut-off had moved?
- Growth with the age mix. Ask what share of the balance is less than 60 days old. Where that share is large, no arrears ratio is yet informative.
- Vintages at equal age, by product, with the loans-per-vintage count beside each curve.
- Losses after the quiet months. Ask for the earliest vintage’s 90+ rate and set it against the ratios the pack showed when that vintage was new.
- Funding. Who funds the growth, on what terms, and what happens to the lender’s volume if the funder pulls back? A run-off turns a good ratio into a bad one.
- What the regulator can do. A licence or registration regime can remove a product (small loans) or a lender. Check the status of each in the regulator’s own register.
None of this says which lender is sound. It says what to ask for, and how to read the answer.
Where it goes wrong
- Reading a ratio in a growing book as a verdict. It measures age as much as risk.
- A loosening judged on this quarter’s arrears. The loss arrives after the quiet months. Judge it on first-payment default at equal age, and on money.
- Treating the lab’s multiplier as a fact. It is a stated guess. The size of the loss changes with it, and so does the argument for the change.
- Reading regulation as loss data. A count of licences says how many lenders the regulator saw, not how they performed.
- Quoting a date or a threshold from a summary. The sources here disagree on both for each country. Read the instrument.
- Taking bank evidence for a digital lender’s. Berger and Udell, Foos and others studied banks. The mechanism may carry over, and the lag may not.
You work in labs/finance. Every step runs Python from that folder against data1/finance.sqlite. The scripts only read, and the loosened loans exist only in memory: the copy of the book is never written. The chapter uses the salary advance (SAL) and BNPL because their outcomes are mature by the cut-off, as in the decisions chapter. Money is integer kobo in every script.
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 and count what you will use.
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 book3.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")))
print(db.execute("SELECT COUNT(*) FROM applications WHERE decline_reason = 'score_below_cutoff'").fetchone()[0], "applications declined on score")
PYcheck.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
1017 applications declined on score2. Rebuild the book at any date. Save this as book.py. state gives a loan’s days past due and principal outstanding on a date, from the schedule and repayments, counting only payments made by then. It is the rule of the portfolio metrics chapter, in less code. check_book.py proves it against the stored statuses.
"""The loan book on data1, rebuilt at any date, and a copy of it with a looser approval rule.
Money is integer kobo. Days past due (DPD) follows the loan lifecycle chapter: days since the due
date of the oldest instalment not yet paid in full, counting only payments made on or before the date.
"""
import sqlite3
from collections import defaultdict
from datetime import date, timedelta
DB = "data1/finance.sqlite"
SHORT = ("SAL", "BNPL") # the two products whose outcomes the book has had time to show
def naira(kobo):
return f"₦{kobo // 100:,}.{kobo % 100:02d}"
def month_ends(first=1, last=9, year=2026):
return [date(year, m + 1, 1) - timedelta(days=1) for m in range(first, last + 1)]
def new_loan(lid, product, principal, disbursed, due, source):
"""due: [(instalment, due date, total kobo)]. source says where the loan came from."""
return dict(id=lid, product=product, principal=principal, disbursed=disbursed, due=due,
received=defaultdict(list), principal_paid=[], source=source)
def load_book(path=DB):
db = sqlite3.connect(path)
cut_off = date.fromisoformat(db.execute("SELECT value FROM loan_book_meta WHERE key = 'cut_off'").fetchone()[0])
loans = {}
for lid, product, principal, disbursed in db.execute(
"SELECT id, product, principal_kobo, disbursed_at FROM loans ORDER BY id"):
loans[lid] = new_loan(lid, product, principal, date.fromisoformat(disbursed), [], "book")
for lid, n, due, total in db.execute(
"SELECT loan_id, instalment, due_date, total_kobo FROM schedule ORDER BY loan_id, instalment"):
loans[lid]["due"].append((n, date.fromisoformat(due), total))
for lid, n, paid_at, amount, fee, principal in db.execute(
"SELECT loan_id, instalment, paid_at, amount_kobo, late_fee_kobo, principal_kobo FROM repayments"):
d = date.fromisoformat(paid_at)
loans[lid]["received"][n].append((d, amount - fee)) # a late fee does not pay an instalment down
loans[lid]["principal_paid"].append((d, principal))
return loans, cut_off
def state(loan, on):
"""(days past due, principal outstanding) on a date, or None before the loan was disbursed."""
if loan["disbursed"] > on:
return None
outstanding = loan["principal"] - sum(k for d, k in loan["principal_paid"] if d <= on)
for n, due, total in loan["due"]:
if due < on and sum(k for d, k in loan["received"][n] if d <= on) < total:
return (on - due).days, outstanding
return 0, outstandingSave this as check_book.py and run it.
import sqlite3
from book import DB, load_book, state
loans, cut_off = load_book()
db = sqlite3.connect(DB)
wrong = sum(1 for lid, dpd, out in db.execute("SELECT id, days_past_due, outstanding_principal_kobo FROM loans")
if state(loans[lid], cut_off) != (dpd, out))
print(f"cut-off {cut_off}: rebuilt {len(loans) - wrong} of {len(loans)} loans exactly as the loans table has them, {wrong} do not")python3 check_book.pycut-off 2026-10-28: rebuilt 3645 of 3645 loans exactly as the loans table has them, 0 do notThe rebuilt days past due and principal outstanding match the loans table for all 3,645 loans at the cut-off. A rebuild at an earlier date has nothing stored to match, so this is the check you have.
3. The boom as the ratios see it. Save this as cycle.py. Part 1 is the month-end history of the SAL and BNPL book. Part 2 is first-payment default by month of disbursement.
"""The book as the ratios see it: SAL and BNPL on data1, month by month, and first-payment default by vintage."""
from datetime import timedelta
from book import SHORT, load_book, month_ends, naira, state
def month_end_rows(loans, on, products=SHORT):
"""[(dpd, outstanding)] for every open loan of the products on a date."""
rows = [state(l, on) for l in loans.values() if l["product"] in products]
return [s for s in rows if s and s[1] > 0]
def par(rows, days):
gross = sum(o for _, o in rows)
return sum(o for d, o in rows if d >= days) / gross if gross else 0.0
def first_payment_default(loan, days=30):
"""True if the first instalment was still unpaid in full `days` days after it fell due."""
n, due, total = loan["due"][0]
on = due + timedelta(days=days)
return sum(k for d, k in loan["received"][n] if d <= on) < total
if __name__ == "__main__":
loans, cut_off = load_book()
dates = month_ends() + [cut_off]
print("1. SAL and BNPL, month by month (principal in whole naira)")
print(f" {'month-end':<11}{'lent in month':>15}{'open':>6}{'gross portfolio':>17}{'growth':>8}{'PAR30':>7}{'PAR90':>7}")
previous = None
for i, on in enumerate(dates):
lent = sum(l["principal"] for l in loans.values() if l["product"] in SHORT
and l["disbursed"].month == on.month)
rows = month_end_rows(loans, on)
gross = sum(o for _, o in rows)
growth = f"{gross / previous - 1:>+8.0%}" if previous else f"{'':>8}"
print(f" {on.isoformat():<11}{lent // 100:>15,}{len(rows):>6}{gross // 100:>17,}{growth}{par(rows, 30):>7.1%}{par(rows, 90):>7.1%}")
previous = gross
print("\n2. First-payment default: first instalment unpaid 30 days after its due date, by month of disbursement")
print(f" {'vintage':<9}" + "".join(f"{p:>14}" for p in SHORT) + f"{'both':>14}")
for m, label in ((3, "Mar"), (4, "Apr"), (5, "May"), (6, "Jun")):
cells, both = [], []
for p in SHORT:
sel = [l for l in loans.values() if l["product"] == p and l["disbursed"].month == m]
both += sel
bad = sum(first_payment_default(l) for l in sel)
cells.append(f"{bad:>4} of {len(sel):>4}={bad / len(sel):>4.0%}")
bad = sum(first_payment_default(l) for l in both)
print(f" {label:<9}" + "".join(f"{c:>14}" for c in cells) + f"{bad / len(both):>14.1%}")python3 cycle.py1. SAL and BNPL, month by month (principal in whole naira)
month-end lent in month open gross portfolio growth PAR30 PAR90
2026-01-31 714,000 27 708,750 0.0% 0.0%
2026-02-28 3,191,000 111 3,197,250 +351% 0.0% 0.0%
2026-03-31 9,998,000 313 10,150,250 +217% 0.3% 0.0%
2026-04-30 15,618,000 604 17,901,551 +76% 1.9% 0.0%
2026-05-31 25,209,000 1010 29,118,140 +63% 5.1% 0.1%
2026-06-30 33,415,000 1494 41,259,620 +42% 7.6% 0.9%
2026-07-31 0 616 13,191,889 -68% 44.7% 11.4%
2026-08-31 0 361 8,785,417 -33% 98.9% 38.7%
2026-09-30 0 353 8,699,292 -1% 100.0% 67.7%
2026-10-28 0 353 8,699,292 +0% 100.0% 99.1%
2. First-payment default: first instalment unpaid 30 days after its due date, by month of disbursement
vintage SAL BNPL both
Mar 35 of 196= 18% 1 of 81= 1% 13.0%
Apr 60 of 330= 18% 4 of 145= 3% 13.5%
May 84 of 560= 15% 12 of 210= 6% 12.5%
Jun 117 of 770= 15% 9 of 302= 3% 11.8%The gross portfolio grows from 708,750 to 41,259,620 naira between 31 January and 30 June, 58 times (41,259,620 ÷ 708,750 = 58.2). PAR30 climbs from 0.3% on 31 March to 7.6% on 30 June, and then to 100.0%, because from July only loans that did not repay are left. Part 2 reads the same loans at equal age: 13.0%, 13.5%, 12.5% and 11.8% of loans disbursed in March, April, May and June missed their first instalment by 30 days. The ratio climbed from 0.3% to 7.6%; the rate at equal age did not rise. Check one cell by hand: 84 of 560 May salary advances is 15.0%. No loans were disbursed after 30 June, so the last rows of part 1 show a run-off.
4. Loosen the cut-off in a copy. Save this as loosen.py. It reads the lender’s own cut-offs from loans.py, picks the score-declined applications that the new cut-off would let through, and simulates what those borrowers do, with the assumptions in capitals at the top. annuity is the lab’s own schedule function, so the added loans have real schedules.
"""Loosen the score cut-off in a copy of the book and simulate what the extra borrowers would have done."""
import random
import sqlite3
from datetime import date, timedelta
from loans import SCORE_CUTOFF, annuity
from book import DB, SHORT, new_loan
POLICY_FROM = date(2026, 4, 1) # the lender loosens on this date (illustrative)
POINTS_DOWN = 100 # by this many bureau-score points (illustrative)
RISK_MULTIPLE = 1.5 # assumption: stop-paying chance of a loosened borrower, against the loans immediately above the old cut-off
BAND_ABOVE = 80 # the loans from the old cut-off up to this many points above it set the base rate
LATE_HABIT = 0.20 # assumption: share of instalments a paying borrower pays late
LATE_DAYS = [1, 2, 3, 5, 8, 12, 20, 35]
RULE = {"SAL": dict(rate=0.05, days=30, n=1, minimum=1_000_000, maximum=15_000_000),
"BNPL": dict(rate=0.0, days=14, n=4, minimum=2_000_000, maximum=30_000_000)}
def base_rates(db):
"""Per product: the share of loans scored in [cut-off, cut-off + BAND_ABOVE) that are 90+ days past due or written off."""
out = {}
for p in SHORT:
n, bad = db.execute("""SELECT COUNT(*), SUM(l.status IN ('default', 'written_off')) FROM loans l
JOIN applications a ON a.id = l.application_id JOIN bureau_reports b ON b.id = a.bureau_report_id
WHERE a.product = ? AND b.hit = 1 AND b.score >= ? AND b.score < ?""",
(p, SCORE_CUTOFF[p], SCORE_CUTOFF[p] + BAND_ABOVE)).fetchone()
out[p] = (n, bad, bad / n)
return out
def candidates(db):
"""Score-declined applications of the two products, in the new band, from the policy date, that pass the other rules."""
rows = []
for aid, p, applied, requested, enq, delq, score, inflow in db.execute("""
SELECT a.id, a.product, a.applied_at, a.requested_kobo, b.enquiries_90d, b.delinquent_12m, b.score,
(SELECT COALESCE(SUM(t.amount_kobo), 0) FROM transactions t
WHERE t.customer_id = a.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)
FROM applications a JOIN bureau_reports b ON b.id = a.bureau_report_id
WHERE a.decline_reason = 'score_below_cutoff' AND a.product IN ('SAL', 'BNPL')
ORDER BY a.id"""):
if date.fromisoformat(applied) < POLICY_FROM or score < SCORE_CUTOFF[p] - POINTS_DOWN:
continue
if enq > 6 or delq >= 2: # the other rules of loans.py still apply
continue
monthly = inflow // 3 # a month of the last 90 days' inflow
if monthly < 500_000 and p != "BNPL":
continue
amount = min(requested, monthly // 100_000 * 100_000, RULE[p]["maximum"])
if amount < RULE[p]["minimum"]:
continue
rows.append((aid, p, date.fromisoformat(applied), amount))
return rows
def simulate(rows, rates, cut_off, seed=7):
"""New loans with invented behaviour: stop paying with the assumed chance, otherwise pay, sometimes late."""
rng = random.Random(seed)
loans = []
for aid, p, applied, amount in rows:
r = RULE[p]
sched = annuity(amount, r["rate"], r["n"])
due = [(i, applied + timedelta(days=r["days"] * i), pr + it) for i, pr, it in sched]
loan = new_loan(f"X{aid:06d}", p, amount, applied, due, "loosened")
stops = rng.random() < min(1.0, rates[p][2] * RISK_MULTIPLE)
stop_at = rng.randint(1, r["n"]) if stops else None
for (i, d, total), (_, pr, _) in zip(due, sched):
if stops and i >= stop_at:
break
paid = d + timedelta(days=rng.choice(LATE_DAYS) if rng.random() < LATE_HABIT else 0)
if paid >= cut_off:
continue
loan["received"][i].append((paid, total))
loan["principal_paid"].append((paid, pr))
loans.append(loan)
return loansSave this as experiment.py. It adds the simulated loans to a copy of the book and prints five things: the assumption, the ratios with and without the change, the added loans on their own, first-payment default by vintage, and what the added loans earned and lost.
"""Loosen the cut-off in a copy of the book and compare the ratios with what the loosened loans did."""
import sqlite3
import sys
from book import DB, SHORT, load_book, month_ends, naira, state
from cycle import first_payment_default, month_end_rows, par
import loosen
SEED = int(sys.argv[1]) if len(sys.argv) > 1 else 7
loans, cut_off = load_book()
db = sqlite3.connect(DB)
rates = loosen.base_rates(db)
rows = loosen.candidates(db)
added = loosen.simulate(rows, rates, cut_off, seed=SEED)
copy = dict(loans)
copy.update({l["id"]: l for l in added})
dates = month_ends() + [cut_off]
print(f"1. The assumption: loosen by {loosen.POINTS_DOWN} bureau-score points from {loosen.POLICY_FROM}, SAL and BNPL")
for p in SHORT:
n, bad, rate = rates[p]
print(f" {p:<5}loans above the old cut-off: {bad} of {n} bad = {rate:.1%}; assumed for the loosened: {min(1, rate * loosen.RISK_MULTIPLE):.1%}")
print(f" {len(rows)} score-declined applications pass the other rules: "
+ ", ".join(f"{sum(1 for r in rows if r[1] == p)} {p}" for p in SHORT)
+ f"; {naira(sum(r[3] for r in rows))} lent")
base_lent = sum(l["principal"] for l in loans.values() if l["product"] in SHORT and l["disbursed"] >= loosen.POLICY_FROM)
print(f" the same months' lending without the change: {naira(base_lent)}, so the book grows {sum(r[3] for r in rows) / base_lent:.1%} more")
print("\n2. What the ratios show: the whole SAL and BNPL book, with and without the change")
print(f" {'month-end':<11}{'gross base':>12}{'gross loose':>13}{'PAR30 base':>12}{'PAR30 loose':>13}{'PAR90 base':>12}{'PAR90 loose':>13}")
for on in dates[3:]:
b, c = month_end_rows(loans, on), month_end_rows(copy, on)
print(f" {on.isoformat():<11}{sum(o for _, o in b) // 100:>12,}{sum(o for _, o in c) // 100:>13,}"
f"{par(b, 30):>12.1%}{par(c, 30):>13.1%}{par(b, 90):>12.1%}{par(c, 90):>13.1%}")
print("\n3. What the added loans did, on their own")
print(f" {'month-end':<11}{'open':>5}{'balance':>13}{'PAR30':>8}{'PAR90':>8}{'90+ balance':>14}")
for on in dates[3:]:
r = [s for s in (state(l, on) for l in added) if s and s[1] > 0]
if not r:
continue
print(f" {on.isoformat():<11}{len(r):>5}{sum(o for _, o in r) // 100:>13,}{par(r, 30):>8.1%}{par(r, 90):>8.1%}"
f"{sum(o for d, o in r if d >= 90) // 100:>14,}")
print("\n4. First-payment default by month of disbursement (first instalment unpaid 30 days after due)")
print(f" {'vintage':<9}{'base loans':>11}{'rate':>7}{'added loans':>13}{'rate':>7}{'whole copy':>12}")
for m, label in ((4, "Apr"), (5, "May"), (6, "Jun")):
b = [l for l in loans.values() if l["product"] in SHORT and l["disbursed"].month == m]
a = [l for l in added if l["disbursed"].month == m]
fb, fa = sum(map(first_payment_default, b)), sum(map(first_payment_default, a))
print(f" {label:<9}{len(b):>11}{fb / len(b):>7.1%}{len(a):>13}{fa / len(a):>7.1%}{(fb + fa) / (len(b) + len(a)):>12.1%}")
lent = sum(l["principal"] for l in added)
fees = sum(l["principal"] // 100 for l in added if l["product"] == "SAL") # SAL's 1% fee, taken at disbursement
paid = sum(k for l in added for n in l["received"] for d, k in l["received"][n])
interest = paid - sum(k for l in added for d, k in l["principal_paid"])
lost = sum(s[1] for s in (state(l, cut_off) for l in added) if s[0] >= 90)
print("\n5. What the added loans earned and lost by the cut-off (late fees ignored)")
print(f" lent {naira(lent)}; fees {naira(fees)}; interest paid {naira(interest)}; principal 90+ days past due {naira(lost)}")
print(f" earned {naira(fees + interest)}, lost {naira(lost)}, net {naira(fees + interest - lost)}")python3 experiment.py1. The assumption: loosen by 100 bureau-score points from 2026-04-01, SAL and BNPL
SAL loans above the old cut-off: 92 of 453 bad = 20.3%; assumed for the loosened: 30.5%
BNPL loans above the old cut-off: 14 of 121 bad = 11.6%; assumed for the loosened: 17.4%
221 score-declined applications pass the other rules: 178 SAL, 43 BNPL; ₦6,725,000.00 lent
the same months' lending without the change: ₦74,242,000.00, so the book grows 9.1% more
2. What the ratios show: the whole SAL and BNPL book, with and without the change
month-end gross base gross loose PAR30 base PAR30 loose PAR90 base PAR90 loose
2026-04-30 17,901,551 18,969,301 1.9% 1.8% 0.0% 0.0%
2026-05-31 29,118,140 31,893,390 5.1% 4.7% 0.1% 0.1%
2026-06-30 41,259,620 45,494,120 7.6% 7.6% 0.9% 0.8%
2026-07-31 13,191,889 15,238,389 44.7% 45.2% 11.4% 10.0%
2026-08-31 8,785,417 10,617,667 98.9% 98.3% 38.7% 34.9%
2026-09-30 8,699,292 10,531,542 100.0% 100.0% 67.7% 66.4%
2026-10-28 8,699,292 10,531,542 100.0% 100.0% 99.1% 98.4%
3. What the added loans did, on their own
month-end open balance PAR30 PAR90 90+ balance
2026-04-30 35 1,067,750 0.0% 0.0% 0
2026-05-31 103 2,775,250 1.1% 0.0% 0
2026-06-30 153 4,234,500 7.2% 0.0% 0
2026-07-31 77 2,046,500 49.0% 1.5% 30,750
2026-08-31 64 1,832,250 95.5% 16.6% 304,750
2026-09-30 64 1,832,250 100.0% 60.3% 1,105,750
2026-10-28 64 1,832,250 100.0% 94.9% 1,739,250
4. First-payment default by month of disbursement (first instalment unpaid 30 days after due)
vintage base loans rate added loans rate whole copy
Apr 475 13.5% 35 34.3% 14.9%
May 770 12.5% 88 27.3% 14.0%
Jun 1072 11.8% 98 23.5% 12.7%
5. What the added loans earned and lost by the cut-off (late fees ignored)
lent ₦6,725,000.00; fees ₦49,100.00; interest paid ₦161,750.00; principal 90+ days past due ₦1,739,250.00
earned ₦210,850.00, lost ₦1,739,250.00, net ₦-1,528,400.00Read part 2 against part 3. On 31 May whole-book PAR30 is 4.7% with the change and 5.1% without, while the added loans are at 1.1%: too young to be late. On 30 June both books read 7.6%. From 31 July the 90-day ratio is lower with the change, 10.0% against 11.4%, though the added loans’ own 90+ balance is growing: ₦30,750, ₦304,750, ₦1,105,750 and ₦1,739,250. Part 4 is the reading at equal age: 34.3%, 27.3% and 23.5% against 13.5%, 12.5% and 11.8%. Part 5 is the money. Check it by hand: ₦49,100 + ₦161,750 = ₦210,850 earned; ₦210,850 − ₦1,739,250 = −₦1,528,400. Check the base rate too: 92 ÷ 453 = 20.3%, and 20.3% × 1.5 = 30.5%.
5. How much does the answer depend on the draw and on the guess? Save this as seeds.py. It runs experiment.py with 30 seeds.
"""Run experiment.py with 30 different seeds and show how much the answer moves."""
import re
import subprocess
import sys
lost, may = [], []
for seed in range(1, 31):
out = subprocess.run([sys.executable, "experiment.py", str(seed)], capture_output=True, text=True, check=True).stdout
lost.append(int(re.search(r"earned ₦[\d,]+\.\d\d, lost ₦([\d,]+)\.\d\d", out).group(1).replace(",", "")))
may.append(float(re.search(r"2026-05-31 +[\d,]+ +[\d,]+ +[\d.]+% +([\d.]+)%", out).group(1)))
print(f"principal lost by the added loans, 30 seeds: lowest ₦{min(lost):,}, highest ₦{max(lost):,}, mean ₦{sum(lost) // len(lost):,}")
print(f"PAR30 of the whole copy on 2026-05-31 (baseline 5.1%): lowest {min(may)}%, highest {max(may)}%")python3 seeds.pyprincipal lost by the added loans, 30 seeds: lowest ₦1,252,750, highest ₦2,491,500, mean ₦1,703,291
PAR30 of the whole copy on 2026-05-31 (baseline 5.1%): lowest 4.6%, highest 4.9%The direction is the same for every draw: the whole-book PAR30 on 31 May is below the 5.1% baseline, and the added loans lose money. The size is not fixed. A single run is one draw, so report the range.
In loosen.py, change RISK_MULTIPLE = 1.5 to RISK_MULTIPLE = 1.0, so the loosened applicants are exactly as risky as the loans at the old edge, and run python3 experiment.py again. The headline hardly moves: PAR30 on 31 May reads 4.6% and on 30 June 7.6%, and the 90-day ratio at the cut-off reads 99.1%, the same as without the change. The added loans’ first-payment default falls to 22.9%, 22.7% and 22.4%, still well above the 11.8% to 13.5% of the other lending. And they still lose money: ₦235,600 earned, ₦1,248,000 lost, a net of −₦1,012,400. The multiplier set the size of the loss, not its sign. The edge of this lender’s cut-off is already unprofitable at a 6% price, which is the decisions chapter’s break-even again. Put the multiplier back to 1.5 before you go on.
Template
# Downturn playbook: <lender, product>
Drafted by <head of credit risk> · Signed by <board risk committee chair> · Date · Review on <date>
## Why this exists
<The boom it guards against, in one sentence with a lab figure.>
## Indicators and thresholds (say which are lab figures and which are assumptions)
| Indicator | Reads | Baseline | Amber | Red |
|---|---|---|---|---|
| <name> | <measure, at what age> | <lab figure> | <number> | <number> |
## Actions at each level
| Level | Action | Owner | Done within |
|---|---|---|---|
| Amber | <what happens> | <role> | <days> |
| Red | <what happens> | <role> | <days> |
| Stop | <who may stop new lending> | <role> | <days> |
## Back-test
<The date each indicator would have fired on the lab's book, against the date losses showed.>
## How this could be wrong
<One way, and the evidence that would show it.>
## Out of scope
<What this playbook does not decide.> WORKED EXAMPLE
Playbook for Owoleaf’s salary-advance and BNPL lending · Drafted by the head of credit risk · Signed by the chair of the board risk committee · 21 November 2026 · Review 21 May 2027.
Why it exists. On 31 May the lab’s book had grown 63% in a month and PAR30 read 5.1%; by 31 August it was 98.9%. The ratio gave no warning, so the triggers read growth and default at equal age. Every threshold and deadline is my assumption, for the committee to change.
Indicators, amber then red.
- Book growth in a month (lab: +217% March, +76% April, +63% May): over 40% two months running; over 60% two months running.
- First-payment default by vintage, whole book (lab baseline 11.8% to 13.5%): above 14.0%; above 16.0%.
- The same measure for loans approved under a changed rule (lab: 23.5% to 34.3%): above 18%; above 20%.
- PAR90, a late confirmation only (lab: 0.9% on 30 June, 11.4% on 31 July): above 2%; above 5%.
Actions and owners.
- Amber: the head of credit lists rule changes and pulls first-payment default by vintage within 5 days; the CFO re-runs the loss estimate within 10 days.
- Red: the head of credit freezes the cut-off and holds lending at last month’s level within 2 days; the head of collections starts early contact on the newest vintage within 5 days; the CFO warns the funder within 7.
- Stop new lending on the product: the CEO, if the loosened-loan measure stays red for two vintages or the funder withdraws. The committee hears within 2 days.
Back-test. Growth reaches amber on 31 March, when PAR30 read 0.3%, though the book was tiny. The April vintage of loosened loans, 34.3% on 35 loans, is red by 30 June, a month before the first 90+ balance (₦30,750 on 31 July).
How this could be wrong. The red line rests on a simulated draw and a guessed multiplier. A small loosening could stay under 20% while losses build. A rising PAR90 on an unflagged vintage would show it.
Out of scope. Pricing, funder terms and contact with a regulator.
Now you
You are head of credit risk at a payday lender in Abuja that lends salary advances to civil servants, on terms like the lab’s SAL. You write the playbook and the chair of the board risk committee signs it. The CEO and CFO, who must carry it out, read it before the next funder review, to decide which responses are agreed in advance and which need a meeting. The figures are invented for the exercise. The book grew 50%, 45%, 40% and 35% in March to June, PAR30 on 30 June was 2.4%, and the approval rate rose from 41% to 55%. One funder provides all the money. Use the lab’s step 3 table and step 4 parts 2 to 4 as your reference class, and say where your own book would differ. Cover the indicators and thresholds, the actions and owners at each level, what stops lending, and what you cannot see.
Self-check
Chibundu has June packs from two lenders. The Lagos lender's book has grown 45% a month for four months, its PAR30 is 2.1% and its approval rate has risen from 38% to 52% since March. The Nairobi lender's book grows 6% a month, its PAR30 is 3.4% and its approval rate is steady. All of these figures are invented for the exercise. Chidiebere asks which data request goes out first.
- PAPER Loan growth and riskiness of banks Daniel Foos, Lars Norden and Martin Weber, 2010
Journal of Banking and Finance 34(12), the study of 16 countries cited here. Read the abstract for the three-year lag. It is about banks, so read it for the mechanism and not for a digital lender's timing. Read: The abstract and the sections on loan growth and subsequent provisions.
- PAPER The institutional memory hypothesis and the procyclicality of bank lending behavior Allen N. Berger and Gregory F. Udell, 2003
The Federal Reserve working paper behind the 2004 Journal of Financial Intermediation article. Read the introduction for why standards loosen late in a cycle. The journal text is behind a paywall, so this is the version to read. Read: The abstract and the introduction.
- PAPER Credit booms gone bust: monetary policy, leverage cycles and financial crises, 1870-2008 Moritz Schularick and Alan M. Taylor, 2012
The NBER working paper behind the American Economic Review article, on credit growth as a predictor of crises. Read it for the macro view and its direction. Skip the monetary-policy sections on a first pass. Read: The abstract and the introduction.
- PAPER Fintech and household resilience to shocks: evidence from digital loans in Kenya Prashant Bharadwaj, William Jack and Tavneet Suri, 2019
The NBER working paper on M-Shwari, published in the Journal of Development Economics in 2021. Read it for the benefit side of the Kenyan story. Check the published version before you quote a figure. Read: The abstract and the take-up and resilience results.
- PAPER Promises and pitfalls of digital credit: empirical evidence from Kenya Christopher Johnen, Marie-Christin Parlasca and Oliver Musshoff, 2021
The PLOS ONE paper using representative Kenyan data on credit bureau listings. Read the abstract for the share of blacklistings from digital credit and the two reasons given. Read: The abstract and the results on blacklisting.
- DOC The Central Bank of Kenya (Digital Credit Providers) Regulations, 2022 Kenya Law, Legal Notice 46 of 2022, 2022
The Regulations as Kenya Law publishes them. Read the licensing rule, the transition period and the provision on negative information for the date and the threshold this chapter could not confirm. Skip the schedules on a first pass.
- DOC FCCPC: digital lending, FCCPC tackles abuses and issues landmark regulations Federal Competition and Consumer Protection Commission, 2025
The FCCPC's own release on the 2025 Regulations. Read it for scope, registration and the effective date, and compare the date with the Regulations' text. It is a press release, so read the Regulations for the rules.
- DOC Limited Interim Regulatory/Registration Framework for Digital Lending 2022 Federal Competition and Consumer Protection Commission, 2022
The first FCCPC framework, hosted on its site. Read the registration requirements to see how little it set beyond registration. Check whether the 2025 instruments replaced it before you rely on it.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.