PRINCIPALCHAPTER 48

What the microfinance evidence says

Borrowers do better after a loan, and borrowers differ from everyone else. Randomised trials of microcredit found modest average effects, and the lab shows how easily a lender's own data finds one that is not there

60 MINLENDING AND CREDITUPDATED 2026-11-18
PREDICT

In the lab's loan book, individuals who were approved for a loan received ₦130,034 a month in wallet inflows on average in the 30 days after applying. Individuals who were declined received ₦28,531. In this generated book the loan does not change what flows into the wallet at all. What is the gap between the two groups in the 30 days BEFORE they applied?

The question behind every microfinance debate is a counterfactual: what would this borrower’s life have looked like without the loan? You never see it. You see the borrower’s life with the loan, and you must borrow the counterfactual from somewhere. Each place you borrow it from has a name and a way of going wrong.

Where counterfactuals come from, and how each goes wrong

Before and after. Compare the borrower with herself, earlier. This removes everything about her that stays the same, and it fails when anything else changes at the same time: a season, a growing market, a new road, or the event that made her ask for a loan. People often borrow because something has happened to them. A fall in takings sends a trader to a lender; takings then recover by themselves, and the loan gets the credit. That pattern, where a group is picked at a low point and then improves on average, is regression to the mean.

Borrowers against non-borrowers. Compare her with someone who did not borrow. This removes the season, and it fails on selection: borrowers are not a random sample. They chose to borrow, and the lender chose to lend. Both choices follow things the data does not show, such as ambition, an existing business and a network. Selection can push either way. A lender’s screening picks the people most likely to do well, which flatters the loan. A person with an urgent need and no other option may be worse off than the average, which flatters it less.

A comparison group chosen by a rule. Compare her with someone on the other side of a line the lender drew, such as a score cut-off, and close to it. Both fall near the line, so both look alike, and the decision to lend is close to a coin toss between them. This is the idea of a regression discontinuity design, and the lab uses it.

Randomisation. Let a lottery decide who is offered a loan. Chance makes the two groups alike on everything, measured or not, and the average treatment effect is the difference in their average outcomes. That is a randomised controlled trial (RCT). Its weaknesses are different: it is costly, it estimates the effect for the people and the place in the trial, and it needs enough people to see a small effect.

The six trials

Between 2003 and 2012 researchers ran randomised evaluations of microcredit in several countries. Banerjee, Karlan and Zinman introduced six of them in a 2015 issue of the American Economic Journal: Applied Economics. The search summaries of their introduction say the studies cover microcredit expansions by seven lenders in six countries (Bosnia, Ethiopia, India, Mexico, Morocco and Mongolia), from 2003 to 2012, that the authors judged fairly representative of the industry, and that they note “a consistent pattern of modestly positive, but not transformative, effects”. The title counts six evaluations and the abstract summary counts seven lenders; read the paper itself for how the counts are made. The introduction also names two limits that matter for what follows: statistical power, and the difficulty of predicting which borrowers benefit.

The Indian study, by Banerjee, Duflo, Glennerster and Kinnan, shows the shape of the results. In 2005 half of 104 slums in Hyderabad were chosen at random for a new branch of one microfinance lender. The working paper’s abstract, as search summaries give it, reports that small business investment and profits of businesses that already existed went up, durable goods spending went up, “temptation goods” spending went down, and consumption did not significantly increase. It reports no significant change in health, education or women’s empowerment. In a later wave, after the control areas had also gained access, very few significant differences remained. Read that carefully. Credit changed how households spent. It did not, on average, make them clearly better off on the measures the study took, in the periods it watched.

This is what policy debates compress into “microfinance does not work”. The trials do not say that. They say the average effect on the measured outcomes was small, and that the hopes of the 1990s (that small loans would lift large numbers out of poverty) did not show up in the data. A small positive average is also what a good financial product would look like if it helps some borrowers a lot and others not at all.

Putting the studies together

Each trial is one lender, one place and one period. A reader who wants a general answer must aggregate: combine the trials and ask how much of the difference between them is real. Meager did this for seven randomised experiments with a Bayesian hierarchical model, which treats each site’s effect as drawn from a common distribution and estimates both the centre and the spread. The 2019 AEJ: Applied paper’s abstract, as search results show it, says that economic features of the microcredit interventions predict variation in effects better than the studies’ evaluation protocols do. The earlier working paper’s abstract, as search summaries give it, says the effect is likely positive but small relative to the control group’s average level, that the possibility of a negative impact cannot be ruled out, and that the cross-study heterogeneity is almost entirely generated by heterogeneous effects for the 27% of households that previously operated businesses before microcredit expanded. The published version is summarised as finding the effects unlikely to be transformative. These readings rest on search summaries and on different versions of the paper; check the version you quote.

A second Meager paper, in the American Economic Review in 2022, looks at quantiles of household profit, not only the average. The summaries say it finds a precise zero effect from the fifth to the seventy-fifth quantile, and uncertain but possibly large effects at the top, especially for households with business experience. It argues that quantiles are more reliable than averages here because the data have fat tails: a handful of large profits can move a mean.

What an average of about zero does and does not mean

Suppose a study reports no significant average effect on income. Three different worlds produce that report.

  1. The loan did nothing for anyone. The effect is zero for every borrower.
  2. The loan helped some and harmed others. Gains for a trader who expands cancel losses for someone who borrowed to cover a gap and could not repay. The average is near zero and no one’s experience is average. Defaults are a reminder that some borrowers cannot repay: in the lab’s book 368 of the 3,645 loans are in default or written off. That is not evidence of harm here, because the lab’s loans change nothing, but a real evaluation must look at it.
  3. The study could not see the effect. The true effect is real and the sample is too small or too noisy to separate it from chance. “No significant effect” then means “no conclusion”.

The lab’s book is built so that world 1 is true: the loan changes nobody’s inflows. A real trial never has that certainty, and an average of about zero is not proof of it.

The trials point to worlds 2 and 3 more than world 1: effects concentrated in households that already had a business, and wide intervals on outcomes like profit. A funder who reads “no average effect” as “no one benefits” has made an error of reading. A lender who reads it as “my product is fine” has made a worse one.

The lab puts a number on world 3. It builds a design with the best comparison its data allows and asks how large an effect that design could detect. The answer is sobering, and it is the reason aggregating many sites matters.

Digital credit: Kenya and Malawi

Microcredit meant group loans, field officers and weekly meetings. Digital credit is a loan on a phone, scored from mobile-money and phone data, approved in seconds. Fewer randomised trials exist, so the evidence leans on other designs, and each design has to be named.

Suri, Bharadwaj and Jack studied M-Shwari, a digital loan product in Kenya, in the Journal of Development Economics in 2021. They used a regression discontinuity design, as the lab does: the search summaries say they compared individuals who were eligible for the loan with individuals who were not, either side of the lender’s eligibility line. This is a quasi-experiment, not a randomised trial. The search summaries of the working paper and an Innovations for Poverty Action project page say that 34% of those eligible took a loan; that the loan did not substitute for other credit; and that households were 6.3 percentage points less likely to forgo expenses because of a negative shock. The authors’ reading, as summarised, is that digital loans improve access and resilience and do not fix the wider failures of credit markets. Check the journal version before quoting a figure: the summaries I could read are of the working paper.

Brailovskaya, Dupas and Robinson studied digital credit in Malawi (Economic Journal, 2024). The summaries describe two parts. A regression discontinuity analysis found no evidence that access to small digital loans harms consumers’ perceived well-being. A randomised experiment tested a short phone-based financial literacy message: it improved knowledge, did not improve timely repayment, modestly increased loan demand and so increased the chance of ever defaulting. Most borrowers, the abstract says, were not aware of loan terms, repaid late and paid substantial late fees. That finding is about disclosure and conduct, which chapter consumer protection and digital lending rules treats, and about what the late fees in the lab’s own products (₦500 to ₦2,000 an instalment) do to a borrower who is already behind.

Two cautions apply to both. The studies measure what their authors could measure: resilience to a shock, perceived well-being, repayment. They say little about borrowers’ long-run finances. And neither is Nigerian: the lessons that transfer are about method and about the questions to ask, and the numbers do not.

The lab’s design, and why it is built this way

The lab’s question is the NGO’s: did borrowing raise a borrower’s wallet inflows? The wallet inflows stand in for income. They are not income, and a wallet company’s customers are not a random sample of Nigerians; the lab teaches the method, and the numbers are illustrative.

One fact about the book makes it unusual and useful: the true effect is zero by construction. generate.py writes the wallet ledger first. loans.py then adds the loan book without posting to the ledger (the README says so), so what flows into a customer’s wallet cannot respond to a loan. Any method that reports an effect here is reporting selection or noise. You never know that in real data. Here you do, so the book works as a calibration: you find out how often each method gets it wrong.

The estimators, in the order the lab uses them:

  • Borrowers against the declined, after the loan. The selection gap.
  • Borrowers before against after. The same people, 30 days either side of applying.
  • A comparison at the lender’s score cut-off. The lender approves a bureau score at or above a cut-off by product (illustrative: 580 for salary advances, 620 for personal loans, 560 for buy now pay later). Applicants with scores a little below are declined for that reason. Applicants a little above are alike in score, which comes from a noisy bureau report, but a share of them (about half) are also declined for other reasons, such as too little income evidence or a request below the product minimum. The comparison is of all applicants a little above with all applicants a little below, the intention-to-treat estimate. The jump in approval at the line, the first stage, is about 0.47. Dividing the jump in outcomes by the first stage scales the estimate to the effect on those who were actually approved near the line. This is a fuzzy discontinuity design: fuzzy because crossing the line changes the chance of a loan (from 0 to about 0.47) rather than switching it from no to yes. The estimate describes approved applicants near the line, not everyone. It is wide for three reasons: only a few hundred applications sit near the line, inflows differ hugely between customers, and because only about half of those above are treated the jump in outcomes is diluted.

Three details keep the cut-off comparison honest. The fit is a local linear regression on each side of the line, not a raw difference in averages, because the score is related to inflows and a slope would otherwise be mistaken for a jump. The width of the window, the bandwidth, is a choice, so the lab shows three. And the interval comes from a bootstrap: resample whole customers, because some customers applied twice, refit, and take the middle 95% of the estimates.

What the numbers say

Step 1 prints the two naive comparisons on 2,523 individual applications with 30 days of history and 30 days of follow-up. Salary advances, personal loans and buy now pay later are included; merchants’ SME loans are left out because their inflows are about ten times larger and would dominate any average. Borrowers against the declined: ₦130,034 against ₦28,531 after applying, a gap of ₦101,503, and ₦104,424 before. Borrowers before against after: ₦134,218 then ₦130,034, a change of −₦4,184, with a standard error of ₦3,468 over 1,240 borrowers. That is within about 1.2 standard errors of zero. Before and after looks like a good estimate here: close to the truth, and precise, because in this book nothing else moves the inflows of borrowers between the two windows. Step 4 breaks that.

Step 2 turns to the cut-off. Within 40 score points there are 249 applications at or above the line and 166 below; none below is approved, and 50% above are. The estimate of the change in inflows at the line is −₦17,144, with a 95% interval from −₦48,723 to ₦14,237. At bandwidth 30 it is −₦6,930 and at 60 it is −₦19,354; every interval includes zero. The comparison removes the selection problem, and what it costs is precision: its standard error, about ₦16,061 (step 3), is more than four times the ₦3,468 of the naive before-and-after.

Step 3 asks how big that noise is. It runs the same estimator at fake cut-offs, from 100 points below to 100 above, and keeps the eight with at least 150 applications in the window (60 points below to 100 above). Their results range from −₦7,748 to ₦20,438, with a standard deviation of ₦8,463. The real result of −₦17,144 is larger in size than any of the eight, so do not read the fake spread as the design’s whole uncertainty: eight overlapping windows are a rough guide only. The step therefore converts the bootstrap interval to a standard error of about ₦16,061. Multiplying by 2.8 gives the smallest effect the design would find about 80 times in 100 at the 5% level (1.96 for the 5% test plus 0.84 for the 80% power): ₦44,971 for the jump at the line, which is 52% of the average applicant’s ₦85,723 a month, or ₦95,274 per approved borrower after dividing by the first stage of 0.47. A true effect of ₦20,000 a month on approved borrowers, about 15% of their inflow, would move the jump at the line by only about ₦9,400 and would usually go unseen.

Step 4 is the test with a known answer. It plants an effect of ₦45,000 on every approved borrower’s inflow in memory. Before and after finds ₦40,816, the plant less the book’s drift of −₦4,184: it works, because nothing else moved, though it still carries the −₦4,184 the real book showed. The cut-off estimate moves from −₦17,144 to ₦4,097, a rise of ₦21,241, close to what the first stage predicts (0.47 of ₦45,000 is ₦21,150); and its interval, −₦27,034 to ₦36,784, still includes zero. Then it adds a common trend, every inflow growing 10% each 30 days from January, and no effect at all. Before and after reports ₦7,258: a loan effect that does not exist, from a trend that touched everyone. The cut-off estimate’s interval, −₦68,098 to ₦18,027, is wide enough to contain the truth and tell you nothing.

Two lessons come out. A comparison that removes selection and trend is more trustworthy, and in a book this size it is far noisier. A precise estimate and a correct estimate are different things: before and after was precise in every run and wrong in both runs with a trend (₦7,258 where the truth is zero, ₦52,258 where it is ₦45,000). Real evaluations meet both problems, which is why the trials pooled many thousands of households, and why Meager’s aggregation is useful: it pools sites to narrow the interval that no single site can.

What a funder should ask

Afolake’s memo to Bamike ends up as a list of questions, not an answer.

  • What is the comparison? Name where the counterfactual comes from, and what would break it.
  • Who is in the estimate? An RCT covers those offered the loan. A cut-off design covers applicants near the line. Neither says what happens to the very risky or the very safe.
  • What was measured, and when? Inflows in 30 days, a profit in 18 months, resilience to a shock and repayment are different outcomes. A study of one does not speak for the others.
  • How wide is the interval? Ask what size of effect the study could have seen. If the answer is larger than any plausible effect, the study is silent.
  • Who is harmed? An average hides losses. Arrears, late fees and loans taken to repay loans belong in the evidence, and the next chapters on credit cycles and over-indebtedness take that up.

The chapter takes no side on whether a lender should lend. It teaches what the evidence can and cannot support, so a claim of impact is tested before it is repeated.

LAB Measure the effect of a loan that has none ~60 MIN
YOU NEEDPython 3.9 or later, standard library onlylabs/finance/data1/finance.sqlite (scale 1, about 740 MB for the folder and 40 s to build, step 0)about 5 minutes of reading per step

You test three ways of measuring the effect of a loan on a borrower’s wallet inflows, on a book where you know the true effect is zero. Work in labs/finance. Do not open data1/answers/loans_truth.csv: it is not needed. Money is integer kobo in the data and every figure printed is illustrative. The regressions run on kobo as floats, as statistics, and print whole naira.

0. Build the scale 1 book once. If data1/finance.sqlite is missing, build it. It takes about 40 seconds and writes about 740 MB (475 MB is the database), so check the disk first. Then check the invariants.

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
loan book: 3645 loans, 9,771,721,819 kobo of principal outstanding; checks 7-11 run
card book: 100,972 card attempts, 1065 disputes for 1,189,430,900 kobo; checks 12-15 run
collections: 15,831 actions, 1274 promises, 368 placements; checks 16-18 run
application signals: 8,386; checks 19-20 run
OK: all invariants hold

The end of check.py’s output; two account lines between are left out. It takes about 30 seconds.

1. Save the toolkit and run the two naive comparisons. Save this as microcredit.py. It reads the book read-only, sums each applicant’s wallet money in (funding_transfer and funding_card that succeeded) for the 30 days before and the 30 days after the application date, and keeps the applications that have a full 30 days of both. growth is for the break step and is zero here.

"""microcredit.py: before/after and near-the-cut-off comparisons on the lab's loan book (data1).

Standard library only. Money is integer kobo; the regressions run on those integers as
floats and every figure is printed as whole naira. Every figure is illustrative: the
book is generated, and its wallet inflows do not respond to loans (see the chapter).
"""
import bisect
import collections
import datetime as dt
import math
import random
import sqlite3

DB = "data1/finance.sqlite"
WINDOW = 30                                   # days of inflow counted before and after the application
DATA_END = dt.date(2026, 6, 30)               # the wallet ledger stops here (180 days from 2026-01-01)
CUT = {"SAL": 580, "PL": 620, "BNPL": 560}    # the lender's illustrative bureau-score cut-offs (loans.py)
START = dt.date(2026, 1, 1)                   # the first day of the wallet ledger


def day(text):
    return dt.date.fromisoformat(text[:10])


def naira(kobo):
    """Whole naira with a sign, for printing. Never used for arithmetic."""
    n = round(kobo / 100)
    return f"{'-' if n < 0 else ''}₦{abs(n):,}"


def load(growth=0, db_path=DB):
    """One dict per individual-product application with a full 30 days of history and follow-up.
    growth: a percentage every inflow grows by each 30 days since 1 January, in integer kobo
    (0 for the real book; a planted common trend for the break step)."""
    db = sqlite3.connect(f"file:{db_path}?mode=ro", uri=True)
    when, kobo = collections.defaultdict(list), collections.defaultdict(list)
    for cid, ts, amount in db.execute("""SELECT customer_id, created_at, amount_kobo FROM transactions
            WHERE status = 'succeeded' AND kind IN ('funding_transfer', 'funding_card')
            ORDER BY customer_id, created_at"""):
        if growth:
            amount = amount * (3000 + growth * (day(ts) - START).days) // 3000
        when[cid].append(day(ts))
        kobo[cid].append(amount)

    def inflow(cid, start, end):                       # [start, end)
        w = when[cid]
        return sum(kobo[cid][bisect.bisect_left(w, start):bisect.bisect_left(w, end)])

    rows = []
    for aid, cid, product, applied, decision, hit, score, signup in db.execute("""
            SELECT a.id, a.customer_id, a.product, a.applied_at, a.decision, b.hit, b.score, c.signup_at
            FROM applications a JOIN bureau_reports b ON b.id = a.bureau_report_id
                                JOIN customers c ON c.id = a.customer_id
            WHERE a.product != 'SME' ORDER BY a.id"""):
        d = day(applied)
        w = dt.timedelta(days=WINDOW)
        if day(signup) > d - w or d + w > DATA_END:
            continue
        before, after = inflow(cid, d - w, d), inflow(cid, d, d + w)
        rows.append(dict(id=aid, cid=cid, product=product, decision=decision, hit=hit,
                         dist=(score - CUT[product]) if hit else None,
                         before=before, after=after, change=after - before))
    return rows


def mean_se(values):
    n = len(values)
    m = sum(values) / n
    sd = math.sqrt(sum((v - m) ** 2 for v in values) / (n - 1))
    return m, sd / math.sqrt(n), n


def solve(a, b):
    """Gauss-Jordan elimination for a small linear system."""
    n = len(b)
    m = [row[:] + [b[i]] for i, row in enumerate(a)]
    for i in range(n):
        p = max(range(i, n), key=lambda r: abs(m[r][i]))
        m[i], m[p] = m[p], m[i]
        for r in range(n):
            if r != i:
                f = m[r][i] / m[i][i]
                m[r] = [x - f * y for x, y in zip(m[r], m[i])]
    return [m[i][n] / m[i][i] for i in range(n)]


def jump(rows, key, cut=0, bandwidth=40):
    """Local linear fit y = a + b*x + c*above + d*above*x on applicants within `bandwidth` score
    points of `cut` (x = distance from the cut). Returns c: the jump in y at the cut-off."""
    xs, ys = [], []
    for r in rows:
        if r["dist"] is None or abs(r["dist"] - cut) > bandwidth:
            continue
        x = r["dist"] - cut
        u = 1 if x >= 0 else 0
        xs.append([1, x, u, u * x])
        ys.append(r[key])
    a = [[sum(x[i] * x[j] for x in xs) for j in range(4)] for i in range(4)]
    b = [sum(x[i] * y for x, y in zip(xs, ys)) for i in range(4)]
    return solve(a, b)[2], len(xs)


def bootstrap(rows, key, cut=0, bandwidth=40, reps=300, seed=1):
    """95% interval for `jump`: resample whole customers (a customer can apply more than once)."""
    by = collections.defaultdict(list)
    for r in rows:
        by[r["cid"]].append(r)
    ids, rng, est = sorted(by), random.Random(seed), []
    for _ in range(reps):
        sample = []
        for _ in ids:
            sample += by[rng.choice(ids)]
        est.append(jump(sample, key, cut, bandwidth)[0])
    est.sort()
    return est[int(0.025 * reps)], est[int(0.975 * reps)]

Then save step1.py and run it.

import microcredit as m

rows = m.load()
print(f"{len(rows)} individual applications with 30 days of history and 30 days of follow-up")
ap = [r for r in rows if r["decision"] == "approved"]
de = [r for r in rows if r["decision"] == "declined"]
print(f"approved {len(ap)}, declined {len(de)}, withdrawn {len(rows) - len(ap) - len(de)}")

print("\nNaive 1: borrowers against people who did not borrow, 30 days after applying")
ma, sa, _ = m.mean_se([r["after"] for r in ap])
md, sd, _ = m.mean_se([r["after"] for r in de])
print(f"  approved {m.naira(ma)}   declined {m.naira(md)}   gap {m.naira(ma - md)}")
mb, _, _ = m.mean_se([r["before"] for r in ap])
mdb, _, _ = m.mean_se([r["before"] for r in de])
print(f"  the same two groups BEFORE applying: {m.naira(mb)} and {m.naira(mdb)}, gap {m.naira(mb - mdb)}")

print("\nNaive 2: borrowers before against after")
mc, se, n = m.mean_se([r["change"] for r in ap])
print(f"  before {m.naira(mb)}   after {m.naira(ma)}   change {m.naira(mc)}  (standard error {m.naira(se)}, n={n})")
2523 individual applications with 30 days of history and 30 days of follow-up
approved 1240, declined 1205, withdrawn 78

Naive 1: borrowers against people who did not borrow, 30 days after applying
  approved ₦130,034   declined ₦28,531   gap ₦101,503
  the same two groups BEFORE applying: ₦134,218 and ₦29,794, gap ₦104,424

Naive 2: borrowers before against after
  before ₦134,218   after ₦130,034   change -₦4,184  (standard error ₦3,468, n=1240)

The two groups differed by ₦104,424 before they applied, and by about the same after. Borrowers before and after is within about 1.2 standard errors of zero. A comparison with non-borrowers would have credited the loan with ₦101,503 a month that it did not create.

2. Compare applicants either side of the cut-off. Save as step2.py. dist is the bureau score minus the product’s cut-off. Thin files have no score and are left out. The bootstrap takes about 3 seconds.

import microcredit as m

rows = m.load()
hits = [r for r in rows if r["hit"]]
print(f"{len(hits)} applications with a bureau score (thin files have none and are left out)")
for k in (30, 40, 60):
    near = [r for r in hits if abs(r["dist"]) <= k]
    up = [r for r in near if r["dist"] >= 0]
    low = [r for r in near if r["dist"] < 0]
    ok = sum(r["decision"] == "approved" for r in up) / len(up)
    print(f"within {k} points: {len(up)} at or above the cut-off ({ok:.0%} approved), "
          f"{len(low)} below ({sum(r['decision'] == 'approved' for r in low)} approved)")

print("\nJump at the cut-off, local linear fit, 95% interval from 300 resamples of customers")
for k in (30, 40, 60):
    for key, label in (("before", "BEFORE window (should be zero)"), ("change", "CHANGE after - before")):
        est, n = m.jump(hits, key, 0, k)
        lo, hi = m.bootstrap(hits, key, 0, k)
        print(f"  bandwidth {k:>2} {label:32} {m.naira(est):>10}  [{m.naira(lo)}, {m.naira(hi)}]")
1880 applications with a bureau score (thin files have none and are left out)
within 30 points: 170 at or above the cut-off (48% approved), 133 below (0 approved)
within 40 points: 249 at or above the cut-off (50% approved), 166 below (0 approved)
within 60 points: 377 at or above the cut-off (51% approved), 220 below (0 approved)

Jump at the cut-off, local linear fit, 95% interval from 300 resamples of customers
  bandwidth 30 BEFORE window (should be zero)      ₦17,851  [-₦24,419, ₦69,346]
  bandwidth 30 CHANGE after - before               -₦6,930  [-₦43,747, ₦30,569]
  bandwidth 40 BEFORE window (should be zero)       ₦7,013  [-₦33,040, ₦47,776]
  bandwidth 40 CHANGE after - before              -₦17,144  [-₦48,723, ₦14,237]
  bandwidth 60 BEFORE window (should be zero)      ₦20,996  [-₦13,395, ₦59,953]
  bandwidth 60 CHANGE after - before              -₦19,354  [-₦46,749, ₦5,666]

Nobody below the line is approved, and about half of those above are: that is the first stage. The BEFORE rows ask whether the two sides already differed before the loan: the estimates are thousands of naira from zero but every interval includes zero, so the two sides cannot be told apart. The CHANGE rows are the estimate: negative at every bandwidth and with every interval including zero. The true effect is zero, and the design cannot say so with any precision.

3. Run the same estimate at cut-offs that do not exist, and find the smallest effect the design could see. Save as step3.py.

import statistics
import microcredit as m

rows = m.load()
hits = [r for r in rows if r["hit"]]
K = 40
real, n = m.jump(hits, "change", 0, K)
print(f"real cut-off (distance 0): {m.naira(real)} on {n} applications")

print("\nThe same estimate at cut-offs that do not exist")
fake = []
for c in (-100, -80, -60, -40, -20, 20, 40, 60, 80, 100):
    est, n = m.jump(hits, "change", c, K)
    if n < 150:
        continue
    fake.append(est)
    print(f"  fake cut-off {c:>4}: {m.naira(est):>10}  ({n} applications)")
print(f"spread of the {len(fake)} fake cut-offs: standard deviation {m.naira(statistics.pstdev(fake))}")

lo, hi = m.bootstrap(hits, "change", 0, K)
se = (hi - lo) / (2 * 1.96)
mean_after = sum(r["after"] for r in hits) / len(hits)
for r in hits:
    r["approved"] = 1 if r["decision"] == "approved" else 0
stage, _ = m.jump(hits, "approved", 0, K)
print(f"\nfirst stage: approval jumps by {stage:.2f} at the cut-off")
print(f"bootstrap standard error about {m.naira(se)}")
print(f"smallest effect this design detects reliably (2.8 x SE): {m.naira(2.8 * se)}, "
      f"{2.8 * se / mean_after:.0%} of the average applicant's {m.naira(mean_after)} a month")
print(f"per approved borrower (divide by the first stage): {m.naira(2.8 * se / stage)}")
real cut-off (distance 0): -₦17,144 on 415 applications

The same estimate at cut-offs that do not exist
  fake cut-off  -60:    -₦4,431  (200 applications)
  fake cut-off  -40:    -₦7,290  (271 applications)
  fake cut-off  -20:     ₦5,210  (326 applications)
  fake cut-off   20:     ₦2,563  (476 applications)
  fake cut-off   40:     ₦2,277  (551 applications)
  fake cut-off   60:    ₦20,438  (616 applications)
  fake cut-off   80:    -₦7,748  (621 applications)
  fake cut-off  100:       ₦582  (617 applications)
spread of the 8 fake cut-offs: standard deviation ₦8,463

first stage: approval jumps by 0.47 at the cut-off
bootstrap standard error about ₦16,061
smallest effect this design detects reliably (2.8 x SE): ₦44,971, 52% of the average applicant's ₦85,723 a month
per approved borrower (divide by the first stage): ₦95,274

The fake cut-offs scatter from −₦7,748 to ₦20,438: that is what noise looks like. 2.8 times the standard error is 1.96 (a 5% test) plus 0.84 (80% power). An effect smaller than ₦44,971 on the jump at the line, or about ₦95,000 per approved borrower, would usually go unseen.

4. Plant an effect and a trend, then see which method notices. Save as step4.py. It adds ₦45,000 (4,500,000 kobo) to the 30 days after each approved application, in memory only, and in two of the four runs makes every inflow grow 10% each 30 days from January.

import microcredit as m

PLANT = 4_500_000          # ₦45,000 a month, added in memory to the 30 days after each approved application


def report(label, growth, plant):
    rows = m.load(growth=growth)
    for r in rows:
        if r["decision"] == "approved":
            r["after"] += plant
            r["change"] += plant
    ap = [r for r in rows if r["decision"] == "approved"]
    hits = [r for r in rows if r["hit"]]
    mc, se, _ = m.mean_se([r["change"] for r in ap])
    est, _ = m.jump(hits, "change", 0, 40)
    lo, hi = m.bootstrap(hits, "change", 0, 40)
    print(f"{label:36} before/after {m.naira(mc):>9} (SE {m.naira(se)})   "
          f"cut-off {m.naira(est):>9} [{m.naira(lo)}, {m.naira(hi)}]")


report("the real book (true effect zero)", 0, 0)
report("a 10% a month trend, no effect", 10, 0)
report("a planted +₦45,000, no trend", 0, PLANT)
report("a planted +₦45,000 and the trend", 10, PLANT)
the real book (true effect zero)     before/after   -₦4,184 (SE ₦3,468)   cut-off  -₦17,144 [-₦48,723, ₦14,237]
a 10% a month trend, no effect       before/after    ₦7,258 (SE ₦4,818)   cut-off  -₦24,081 [-₦68,098, ₦18,027]
a planted +₦45,000, no trend         before/after   ₦40,816 (SE ₦3,468)   cut-off    ₦4,097 [-₦27,034, ₦36,784]
a planted +₦45,000 and the trend     before/after   ₦52,258 (SE ₦4,818)   cut-off   -₦2,840 [-₦44,399, ₦42,221]

Row 2 is the lesson: a trend and no effect, and before and after reports ₦7,258. Row 3: before and after finds the plant (₦40,816, which is ₦45,000 less the book’s drift of ₦4,184). The cut-off estimate rises by about ₦21,241, which the first stage (0.47) predicts for ₦45,000, but its interval still includes zero.

Plant a bigger effect. In step4.py change PLANT = 4_500_000 to 9_000_000 (₦90,000, about 69% of an approved borrower’s inflow) and run it again. Before and after will report close to ₦85,816 on the no-trend row. The row labels still say ₦45,000; read them as ₦90,000. Watch the cut-off interval: even with an effect that size it still includes zero in the no-trend row (about −₦11,000 to ₦60,000). Then change the bandwidth in step4.py from 40 to 60 and see whether the answer, and your confidence in it, changes. Write down what you would tell Bamike.

ARTEFACT Check an impact claim against the evidence ~50 MIN
YOU PRODUCEAn evidence review memo on an investor deck's impact claim

Template

# Evidence review: <claim in six words>
From <analyst>, <organisation> · To <the person deciding> · Date · Decision needed by <date>

## The claim
<Quoted word for word.> Deck: <whose>, slide <n>.

## What the lender's own data shows (source: <lab step>)
- Comparison behind the claim: <borrowers against whom, or before against after>, and the gap
- The same gap before the loan, or the check that removes selection: <figure, interval>
- Smallest effect this data could have seen: <figure>

## What each study found
| Study | Design | Outcome measured | Found | Does it support the claim? (yes / partly / no, and why) |

## Verdict
<One paragraph: what the claim gets right, what it cannot show.>

## Wording the evidence supports
> <The claim rewritten so every word is backed.>

## How this could be wrong
<One way, and what would show it. Say which readings rest on abstracts.>

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

Afolake, the NGO’s analyst, writes this; Bamike, the director, signs it before it goes to the foundation. Claim, slide 4 of a lender’s deck: “Our loans lift borrowers’ monthly inflows from ₦28,531 to ₦130,034.”

The lender’s data. ₦130,034 and ₦28,531 are approved and declined applicants in the 30 days after applying. Before applying they were ₦134,218 and ₦29,794, a gap of ₦104,424: selection, not the loan. Before and after: −₦4,184 (standard error ₦3,468, n=1,240). At the score cut-off: −₦17,144, interval −₦48,723 to ₦14,237. That design would find only an effect above ₦44,971 a month.

Study Found Supports?
Six trials (2015) Modestly positive, not transformative (from summaries) Partly: modest
Hyderabad trial, 104 slums Existing businesses’ profits up; consumption not significantly up; few differences left in the later wave No: not inflows
Meager 2019, seven trials Working paper: likely positive but small; negative not ruled out Partly
Meager 2022, quantiles Precise zero from the 5th to the 75th; top uncertain, possibly large No
Kenya, cut-off design 6.3 points fewer forgone expenses after a shock (working paper) Resilience only
Malawi, cut-off design No evidence of harm to perceived well-being; most borrowers unaware of terms, paid late fees Silent

Verdict. The slide compares who was chosen. The trials point to small average effects.

Wording. “In a randomised trial in Hyderabad, profits of existing businesses rose; across trials the average effects were small. Our data cannot yet separate our loans’ effect from who we lend to.”

Could be wrong. The study findings come from abstracts and summaries; the journal versions could differ. Decision. Bamike is asked to send this to the foundation. Whether to fund is out of scope.

Now you

A month later the foundation sends you a second deck, from a payday lender in Abuja, and asks whether it can be believed. Slide 6 says: “Borrowers’ wallet inflows rose ₦7,258 a month after our loan, measured before and after.” Slide 7 says: “Digital loans make households more resilient.” The lender’s market grew about 10% every 30 days that year, and you have no way to know whether the loans did anything. Use step 4’s second row, a trend and no effect, as that lender’s book: it prints ₦7,258 for before and after, and −₦24,081 at the cut-off, with an interval from −₦68,098 to ₦18,027. Check both slides against the studies the chapter cites, and say what each found. Decide which claim any study speaks to, and write the wording you would let the lender print. Your director signs the memo, and the foundation’s programme officer reads it to decide whether to put either claim in the case for a grant.

Self-check

DECIDE

The foundation wants to know whether its digital-loan scheme for 3,000 traders raises their takings. Afolake's NGO has a year and a modest budget. The lender holds records for every applicant and agrees to two things: it will keep using its score cut-off, and it will approve a randomly chosen fifth of the applicants close below the cut-off whom it would otherwise decline, up to a cap. Bamike must pick the design.

READING
  1. PAPER
    Six Randomized Evaluations of Microcredit: Introduction and Further Steps Abhijit Banerjee, Dean Karlan and Jonathan Zinman, 2015

    The summary of the trials the chapter relies on. Read how the authors state the pattern of results and what they say about power and about predicting who benefits; the details of each country's study are in the separate papers. Read: American Economic Journal: Applied Economics 7(1): the introduction and the sections on interpreting the studies together.

  2. PAPER
    The Miracle of Microfinance? Evidence from a Randomized Evaluation Abhijit Banerjee, Esther Duflo, Rachel Glennerster and Cynthia Kinnan, 2013

    The Hyderabad trial in full, with its design: half of 104 slums chosen at random. Read how the authors separate households that already had a business from those that did not; skip the survey appendices. Read: the abstract and the sections on business and consumption outcomes (the NBER working paper; the published version is AEJ: Applied 2015).

  3. PAPER
    Understanding the Average Impact of Microcredit Expansions: A Bayesian Hierarchical Analysis of Seven Randomized Experiments Rachael Meager, 2019

    The aggregation the chapter describes. Read what a hierarchical model says about differences between sites; skip the model's priors unless you plan to reproduce it. Read: American Economic Journal: Applied Economics 11(1): the abstract, the introduction and the results on heterogeneity.

  4. PAPER
    Aggregating Distributional Treatment Effects: A Bayesian Hierarchical Analysis of the Microcredit Literature Rachael Meager, 2022

    The follow-up that looks at the whole distribution of profit, not the mean. Read why quantiles suit fat-tailed outcomes; the open-access copy on this page is the accepted version. Read: American Economic Review 112(6): the abstract and the results on quantiles.

  5. PAPER
    Fintech and Household Resilience to Shocks: Evidence from Digital Loans in Kenya Tavneet Suri, Prashant Bharadwaj and William Jack, 2019

    A regression discontinuity on a credit-score threshold, the design the lab uses, applied to a digital loan product. Check any figure against the journal version before you quote it. Read: the NBER working paper (published in the Journal of Development Economics in 2021): the design and the resilience results.

  6. PAPER
    Is Digital Credit Filling a Hole or Digging a Hole? Evidence from Malawi Brailovskaya, Dupas and Robinson, 2021

    Digital credit evidence in a country with a thin credit market: well-being, repayment, late fees and borrowers who do not know the terms. Read the abstract first; the later sections matter if you design such an experiment. Read: the CEPR discussion paper abstract (published in the Economic Journal in 2024): the discontinuity and the financial-literacy experiment.

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: Credit cycles: what happened to digital lenders in Kenya and Nigeria →