Benford's Law: Why So Much Data Starts With the Digit 1
@novus_technologies · · 7 min read
Benford's Law: Why So Much Data Starts With the Digit 1
A short tour of one of mathematics’ most useful oddities — and why auditors care about it
A worn-out logarithm table
In 1881, the astronomer Simon Newcomb noticed something strange about the logarithm tables in his library. These were thick reference books, used constantly for hand calculation, and the pages were physically worn. But they weren’t worn evenly. The early pages — the ones for numbers beginning with 1 — were grubby and dog-eared. The pages for numbers beginning with 8 and 9 looked almost new.
Newcomb drew the obvious conclusion: people were looking up numbers that start with 1 far more often than numbers that start with 9. He published a short note proposing a formula, and the world ignored it for over fifty years.
In 1938, the physicist Frank Benford rediscovered the same effect and did the legwork. He collected more than 20,000 numbers from wherever he could find them — river lengths, street addresses, molecular weights, death rates, numbers pulled at random from newspapers — and found the same lopsided pattern every time. The law now carries his name.
The pattern
Take a large collection of real-world numbers spanning several orders of magnitude. Look only at the first significant digit of each one (the leading digit, ignoring any zeros and the decimal point: 0.00347 has a leading digit of 3; 91,204 has a leading digit of 9).
You might expect each of the nine possible digits to show up about 11.1% of the time. Instead, you typically get this:
Leading digit | Predicted frequency |
|---|---|
1 | 30.1% |
2 | 17.6% |
3 | 12.5% |
4 | 9.7% |
5 | 7.9% |
6 | 6.7% |
7 | 5.8% |
8 | 5.1% |
9 | 4.6% |
A leading 1 is roughly six and a half times more likely than a leading 9. The formula behind the table is compact:
P(d) = log₁₀(1 + 1/d), for d = 1, 2, …, 9
Check it: log₁₀(2) ≈ 0.301, and log₁₀(10/9) ≈ 0.0458. The nine probabilities sum to exactly 1, since the logs telescope: log₁₀(2/1) + log₁₀(3/2) + ⋯ + log₁₀(10/9) = log₁₀(10) = 1.
Why does this happen?
Two arguments, one intuitive and one structural.
The intuitive one: growth spends more time in the low digits
Imagine a quantity that doubles regularly — a bacterial colony, a savings account, a follower count. Start at 100 and track the leading digit:
To get from a leading digit of 1 to a leading digit of 2, the quantity has to grow by 100%. To get from 9 to 10 (and roll over to 1 again), it only has to grow by about 11%. A steadily growing quantity therefore lingers in the 1s and races through the 9s.
Precisely: on a logarithmic axis, the interval [1, 2) occupies log₁₀ 2 ≈ 30.1% of each decade, while [9, 10) occupies only log₁₀(10/9) ≈ 4.6%. Benford’s law is just the statement that many real datasets are roughly uniform on a log scale.
The structural one: scale invariance
Here is the argument that makes the law feel inevitable.
Suppose there is some universal distribution of leading digits for “naturally occurring” data. River lengths obey it whether you measure in kilometres or miles. Stock prices obey it in dollars or yen. So the distribution must be unchanged when you multiply every number in the dataset by an arbitrary constant.
It turns out that Benford’s distribution is the only one with this property. Any scale-invariant distribution of leading digits must be the logarithmic one. (Theodore Hill later proved a stronger and more surprising result in 1995: if you sample randomly from a random collection of distributions — which is a decent model for “data collected from all over the place” — the leading digits converge to Benford’s law, even when no individual distribution obeys it.)
This is why Benford’s law shows up in the wild but rarely in a single clean textbook distribution. It is a law about mixtures.
Where it works — and where it doesn’t
Benford’s law is not universal, and knowing its failure modes matters more than knowing the formula.
It tends to hold when:
• The data spans several orders of magnitude (populations from 300 to 30,000,000).
• The values arise from multiplication, growth, or combining many factors.
• There is no imposed minimum or maximum near the bulk of the data.
• The numbers measure something rather than label something.
It tends to fail when:
• Numbers are assigned, not measured. Phone numbers, postal codes, invoice IDs, ISBNs. These follow human conventions.
• The range is tightly constrained. Adult human heights in centimetres cluster between 150 and 200, so the leading digit is almost always 1. IQ scores, shoe sizes, exam percentages.
• A threshold intervenes. Prices ending in .99 and set just under psychological barriers, or transaction amounts capped at an approval limit.
• The sample is small. With 40 data points, deviations from the predicted frequencies mean very little.
That last point is worth repeating. Benford’s law is a statement about aggregates. It says nothing whatsoever about any individual number.
What it’s used for
Auditing and forensic accounting. This is the flagship application, developed largely by Mark Nigrini in the 1990s. Fabricated accounting entries tend to be invented by humans, and humans are bad at imitating logarithmic distributions — invented figures skew toward middle digits and toward “rounded-looking” values. Comparing the leading-digit distribution of a ledger against Benford’s prediction (usually with a chi-square or mean absolute deviation test) can flag an account for closer inspection. Many audit software packages include a Benford test as standard.
Data quality checks. Before trusting a scraped dataset or a new sensor feed, a Benford test is a cheap sanity check for truncation, unit mixing, duplicated records, or a broken import.
Scientific integrity. Reported measurements in published papers have been screened for Benford conformity as one signal among several in investigations of fabricated data.
Election forensics — contested. Benford tests have been applied to precinct-level vote counts, and the results are genuinely disputed among researchers. Critics, notably Walter Mebane, have argued that precinct vote totals often violate the law’s preconditions (narrow ranges, imposed by precinct sizing) and that first-digit tests produce misleading results on legitimate elections. This is an area where the law is frequently invoked with more confidence than the underlying statistics support.
A word of caution on all of these. A Benford deviation is a screening signal, not evidence of wrongdoing. It says “this dataset does not look like the datasets we expect,” which has many innocent explanations — including that the data was never Benford-distributed in the first place. Courts that have encountered Benford analysis have treated it as circumstantial at best.
Try it yourself
Ten lines of Python and any dataset you have lying around:
from collections import Counter
import math
def leading_digit(x):
x = abs(float(x))
if x == 0:
return None
return int(str(x).replace('.', '').replace('-', '').lstrip('0')[0])
def benford_report(values):
digits = [d for d in map(leading_digit, values) if d]
n = len(digits)
counts = Counter(digits)
print(f"n = {n}")
print(" digit observed expected")
for d in range(1, 10):
obs = 100 * counts[d] / n
exp = 100 * math.log10(1 + 1 / d)
print(f" {d} {obs:6.2f}% {exp:6.2f}%")
# Try it on: file sizes, city populations, invoice totals,
# stock volumes, the numbers in any CSV column you own.Good candidates to test: the file sizes in a large directory, the populations of every town in a country, the market caps of a stock index. Bad candidates: your contacts’ phone numbers, a list of years, anything measured on a fixed scale.
The takeaway
Benford’s law is a rare thing in mathematics: a result that is simple enough to state in one line, surprising enough to feel like a magic trick, and practical enough that auditors use it on Monday mornings.
But the deeper lesson is about the shape of data. Our intuition treats numbers as living on a linear scale, evenly spaced from 1 to 9. Much of the world doesn’t work that way. Growth is multiplicative, magnitudes are logarithmic, and once you start seeing data on a log scale, the dominance of the digit 1 stops looking like a paradox and starts looking like the only sensible outcome.
0 Replies4 Likes





