Benford's law for screening deposits: a worked example on sample data, and why a screen is not a finding
In many real sets of amounts, about 30% start with the digit 1 and under 5% start with 9. When one branch's deposits drift far from that curve, it's worth a look. Here's how to run the screen and how to read it.
Storek team··5 min read
Sample dataOne branch's deposits checked against the first-digit curve. Illustrative data.
Pick any long list of amounts that grew naturally: deposits, invoices, expense claims. Count how many start with each digit. You might expect each of 1 through 9 to lead about 11% of the time. Instead, in many real datasets, about 30% start with 1 and fewer than 5% start with 9.
That pattern is Benford’s law. The expected share for each first digit d is log10(1 + 1/d). Auditors have used it for decades as a screen: people who make up numbers, or bend them to stay under a limit, tend not to reproduce the curve. In a 1999 Journal of Accountancy article, Mark Nigrini described deviations as “anomalies worthy of investigation.” That phrase is the whole method. A screen points; people investigate.
This article walks through a Benford screen on invented branch deposits, from first digits to a ranked list.
The worked example
A community bank wants to screen a quarter of cash deposits across eight branches. The numbers below are invented. Start with one branch, Mill Creek, which took 4,812 cash deposits in the quarter.
Pick data the law applies to
Benford’s law fits amounts that arise naturally and span several orders of magnitude. Cash deposits from $20 to $40,000 qualify. Account numbers, ZIP codes, fixed fees and amounts with a hard cap don’t. Drop zeros and negatives, which have no meaningful first digit.
Take the first digit and count
For each deposit, take the first non-zero digit: $1,840 gives 1, $73.50 gives 7. Count how many deposits start with each digit.
In Storek
You ask
“Do any branches' cash deposits break Benford's law?”
What Storek did
took the first digit of every cash deposit, branch by branch
compared each branch's digits with the shape Benford's law expects
ranked the branches by how far they drift from it
The answer
Mill Creek follows the curve closely; the branch to look at is the one that drifts furthest.
Dig deeper: see how it works
Storek counted every deposit, not a sample, left out refunds and amounts under a dollar, and kept account numbers masked throughout. Open any branch to drill from its total to the individual deposits behind the gap.
For analysts
SELECT CAST(SUBSTR(CAST(ABS(amount) AS TEXT), 1, 1) AS INTEGER) AS first_digit, COUNT(*) AS depositsFROM cash_depositsWHERE branch = 'Mill Creek' AND amount >= 1GROUP BY first_digitORDER BY first_digit;
Compare with the expected shares
Divide each count by the total and set it beside log10(1 + 1/d).
First digit
Expected share
Deposits
Observed share
Gap (points)
1
30.1%
1,398
29.1%
1.1
2
17.6%
812
16.9%
0.7
3
12.5%
588
12.2%
0.3
4
9.7%
417
8.7%
1.0
5
7.9%
371
7.7%
0.2
6
6.7%
352
7.3%
0.6
7
5.8%
310
6.4%
0.6
8
5.1%
287
6.0%
0.8
9
4.6%
277
5.8%
1.2
Sample dataMill Creek's 4,812 cash deposits by first digit. Gaps are worked out before rounding; the largest is 1.2 percentage points, on digit 9. Invented data.
The chart at the top of this page draws the same table: bars for what happened, a line for what Benford’s law expects.
Measure the distance, not just significance
There are two common ways to put one number on the gap. A chi-square test asks whether the gap is bigger than chance would produce. For Mill Creek it comes to 36.6; the critical value for 8 degrees of freedom at p = 0.001 is 26.125, so formally the branch “fails.”
But look at the table. No digit is off by more than 1.2 points. With nearly 5,000 deposits, a formal test calls even small, harmless gaps significant. So also measure the size of the gap. The mean absolute deviation (MAD) averages the nine gaps: 0.0073 for Mill Creek, or 7.3 when multiplied by 1,000 to make it readable. Use it to compare branches with each other.
Rank the branches
Run the same steps for every branch and sort by distance from the curve.
Sample dataDistance from Benford's curve by branch. Airport Rd sits at about twice the next branch. Invented data.
Airport Rd stands out at 14.6. Its deposits have fewer leading 1s than expected and noticeably more leading 8s and 9s: 7.5% and 8.2% of deposits, against 5.1% and 4.6% expected.
Hand the lead to a person
A pile-up on 8 and 9 has several possible explanations. Amounts kept just under a reporting or approval threshold produce it. So does a branch near a car dealership whose customers deposit similar large sums, or a single business making many near-identical deposits. The screen can’t tell these apart. An investigator, looking at the actual deposits, can.
A screen is not a finding
This is the line that matters most. A Benford deviation says the numbers don’t look like typical naturally arising amounts. It doesn’t say why. A 2017 Journal of Accountancy article puts it directly: counting leading digits “will never decidedly prove the absence or presence of fraud.”
Honest reasons a branch drifts from the curve include its customer mix, minimum or fixed amounts, and simple size: a branch with a few hundred deposits will wander from the curve by chance. Treat the ranked list as a work queue for review, not as a list of suspects.
The same screen on public data
Storek’s public-data financial workspace runs a Benford conformity screen per institution and per state, as one of 39 pre-built analyses built only on public data. The map below shows the shape of that per-state view, drawn on invented numbers.
Sample dataDistance from Benford's curve by state, the per-state view of the screen. The values here are invented; Nevada and Georgia were set high to show how outliers read. Invented data.
On your own deposits, you can ask the question in plain English, for example “Do any branches’ cash deposits break Benford’s law?”, and read the SQL behind the answer. Account numbers and customer names in those files are detected and masked when read; tokenized account numbers still join deposits to customers.
An observation that in many naturally occurring sets of numbers, the first digit is more often small than large. The expected share for first digit d is log10(1 + 1/d): about 30.1% of numbers start with 1, and about 4.6% start with 9.
Does a Benford deviation prove fraud?
No. It marks data worth a closer look. An AICPA Journal of Accountancy article puts it plainly: counting leading digits will never decidedly prove the absence or presence of fraud. Branch mix, pricing rules and thresholds all move the curve for honest reasons.
What data works for a Benford test?
Amounts that arise naturally and span several orders of magnitude, such as deposits, invoices or expense claims. It doesn't suit assigned numbers (account numbers, ZIP codes), amounts with a fixed price or a cap, or small samples.
How many records does a Benford screen need?
Enough that each digit gets a meaningful count, usually thousands rather than hundreds. With very large samples the opposite problem appears: a formal test flags tiny, harmless deviations as significant, so also look at how big the gap is.
Book a demo
See your own data, delivered.
30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.