Virtual laboratory/Mathematics/Probability/Benford's Law — the leading digit

Benford's Law — the leading digit

An extension of the statistics and logarithms topic. In many natural data sets the leading digit is 1 in about ~30% of cases, while 9 occurs only ~5% of the time — the distribution is logarithmic: P(d)=log₁₀(1+1/d). A deviation from it exposes fabricated data, which is why Benford's law is used in audits. It was popularized by Frank Benford in 1938 (earlier by Newcomb, 1881).

Benford's Law — the leading digit
Mathematics · Probability · Benford’s law — the leading digit (1938)
Data set — distribution of the leading digit:City populations
In natural data (populations, invoices, river lengths) the leading digit of a number is more often:
leading digit 1
30.0%
leading digit 9
4.2%
ratio 1 : 9
7.1×
obeys Benford
yes
🎯 Challenge: which digit is more frequent?
streak: 0

I’ll give you two digits — pick the one that is more often the leading digit in natural data. P(d) = log₁₀(1 + 1/d).

What just happened?

In many natural data sets — city populations, invoice amounts, river lengths, physical constants — the leading digit is NOT uniformly distributed (not ~11% each). Instead the digit 1 appears at the start in as many as ~30% of cases, while the digit 9 only in ~5%. The distribution is logarithmic — this is Benford’s law.

The Benford formula:

P(d)=log⁡10(1+1d)P(d)=\log_{10}\left(1+\dfrac{1}{d}\right)

where d∈{1,2,…,9}d\in\{1,2,\dots,9\} is the leading digit. Hence P(1)=log⁡102≈30.1%P(1)=\log_{10}2\approx 30.1\%, P(2)≈17.6%P(2)\approx 17.6\%, …, P(9)=log⁡10109≈4.6%P(9)=\log_{10}\tfrac{10}{9}\approx 4.6\%. The probabilities decrease in a “staircase” from 1 to 9 and sum to 100%100\%.

Where does it come from?

Intuitively: for a number to grow from 100100 to 200200 (leading digit 1) it must double, but to grow from 900900 to 10001000 (again leading digit 1) an increase of only ~11% is enough. Data that grow exponentially (spanning many orders of magnitude) “spend more time” with a small leading digit. That is why even purely mathematical sequences such as the powers of two 2n2^n or the Fibonacci numbers obey the law — you can check this in the control above.

History

The phenomenon was noticed by the astronomer Simon Newcomb in 1881 — he observed that the first pages of printed logarithm tables (those with digit 1) were more worn than the later ones. The law was popularized by the physicist Frank Benford in 1938, analysing more than 20,000 numbers from very diverse sources (from river areas to atomic masses).

Fraud detection (the invariant in practice)

The most important application: artificially faked data — fictitious invoices in accounting, manipulated election results — usually do not obey Benford’s law, because a fraudster invents “uniformly random” digits. A departure of the empirical distribution from the curve log⁡10(1+1d)\log_{10}(1+\tfrac{1}{d}) betrays manipulation. That is why Benford’s law is a real tool of auditors and investigators for detecting financial and electoral fraud (choose “Faked” above to see the flat, suspicious distribution).

Why this matters for your exam:

It is a beautiful combination of logarithms and probability with a real application. It shows that a distribution can be non-uniform against intuition, and it teaches a critical look at data. Remember the formula P(d)=log⁡10(1+1d)P(d)=\log_{10}(1+\tfrac{1}{d}) and that the base-10 logarithm here does the “weighting” of the orders of magnitude.

Remember: in natural data spread over many orders of magnitude the leading digit follows a logarithmic distribution P(d)=log⁡10(1+1d)P(d)=\log_{10}(1+\tfrac{1}{d}) — digit 1 dominates (~30%), digit 9 is the rarest (~5%). A distribution that is too “flat” betrays faked numbers.

Illustrative model · Representative / deterministic distributions · NexTutor Virtual Laboratory

Enjoyed the experiment? Share it.

It's free — send it to friends from school.

Theory & formulas

Distribution of the leading digit

P(d)=log⁡10 ⁣(1+1d),d=1,2,…,9P(d)=\log_{10}\!\left(1+\frac1d\right),\qquad d=1,2,\dots,9

Values

P(1)≈30.1%P(1)\approx 30.1\%, P(2)≈17.6%P(2)\approx 17.6\%, …, P(9)≈4.6%P(9)\approx 4.6\% — the distribution is logarithmic, not uniform.

Application

Natural data (invoices, financial figures) usually obey Benford's law; a deviation can be a signal of fraud — hence its use in audits.

Notation: dd the leading digit, P(d)P(d) its frequency.

Frequently asked questions

›

Which digit is most often the leading one in natural data?

The digit 1 — it appears in first position in about ~30% of cases, while 9 only ~5%.

›

What is the formula of Benford's law?

P(leading digit = d) = log₁₀(1 + 1/d) — a logarithmic distribution.

›

What is Benford's law used for?

For fraud detection — fabricated data (invoices, election results) usually fail to obey this distribution.

Teaching? Embed this experiment on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →