Count the leading digits in a set of numbers and test them against Benford's law, with a chi-square test and Nigrini's conformity rating, the screen used in forensic accounting.
P(first digit = d) = log₁₀(1 + 1/d)
Paste amounts, populations, counts and so on. Zeros are skipped; signs are ignored.
Benford's law says that in many naturally occurring collections of numbers, the leading digit is 1 about 30% of the time, and each larger digit is less common, down to 9 at under 5%. Intuition expects each digit 1–9 to lead about 11% of the time.
It applies to data that span several orders of magnitude and grow multiplicatively: populations, river lengths, share prices, invoice amounts. To go from a leading 1 to a leading 2, a number must double, but going from 9 to 10 needs only an 11% rise, so numbers spend longer starting with 1.
Auditors use it as a screen. Invented figures tend to have too few 1s and too many 5s to 9s. Tax authorities and forensic accountants flag accounts that break the pattern for a closer look.
As given in Benford (1938) and Nigrini, Benford's Law (2012), for the conformity bands. See Sources.
Up to 0.006 is close conformity, 0.006–0.012 acceptable, 0.012–0.015 marginal, above 0.015 nonconformity. Unlike χ², MAD doesn't flag tiny deviations just because the data set is huge.
301 of 1,000 start with a 1, against 301 expected, and every other digit is within a few counts of Benford. Testing only the first 50 powers gives a MAD of 0.024, rated "nonconformity", even though the numbers follow the same law: the bands assume a large data set.
| First digit | Benford | If all equal | Expected in 1,000 numbers |
|---|---|---|---|
| 1 | 30.1% | 11.1% | 301 |
| 2 | 17.6% | 11.1% | 176 |
| 3 | 12.5% | 11.1% | 125 |
| 4 | 9.7% | 11.1% | 97 |
| 5 | 7.9% | 11.1% | 79 |
| 6 | 6.7% | 11.1% | 67 |
| 7 | 5.8% | 11.1% | 58 |
| 8 | 5.1% | 11.1% | 51 |
| 9 | 4.6% | 11.1% | 46 |
For quantities that grow by multiplication, the leading digit is 1 across a much wider stretch of each order of magnitude (10–19.99 is a doubling) than 9 is (90–99.99).
At least 100 for a meaningful test, and ideally 1,000 or more. Below about 50, chance alone produces big swings.
Nigrini’s bands for first digits: close (≤ 0.006), acceptable (≤ 0.012), marginal (≤ 0.015) and nonconformity (above).
Yes. 0.0372 leads with 3, and −250 leads with 2. Zeros are skipped.
Simon Newcomb noticed it in 1881 from worn logarithm tables; Frank Benford tested it on 20,000 numbers in 1938.
Benford analysis has been used to support fraud investigations, but as a pointer to evidence, not as evidence on its own.
Often not: vote counts in similar-sized districts don’t span enough orders of magnitude. Claims of fraud based on it alone are unreliable.
Yes. Second digits follow a much flatter pattern, from 12% for 0 down to 8.5% for 9.
Related Tools