Count the leading digit of every US county's population and you will find a 1 about 30% of the time and a 9 about 5% of the time. Many other datasets, from river lengths to share prices, follow the same frequencies. What's going on?
Each tick is a county, at an angle set by the fractional part of log10(population). Bigger counties get longer ticks, and pointing at one shows its integer part. Drag the ring. A turn of t multiplies every population by 10t.
The pmf of the leading digit of US county populations, compared with the Benford pmf.
The Benford pmf is a single probability model. It has no parameters and is not estimated from the data.
Many processes, like county populations, are multiplicative, in that each outcome is a product of many random factors.
log10 x can be decomposed into an integer (the characteristic) plus a fractional part (the mantissa). D(x) depends on the mantissa alone.
Cut the density of log10 X at every integer and add the pieces together on [0, 1). The sum is the density of the mantissa.
Let M be the mantissa of X, so that D(X) = d exactly when M falls in [log10 d, log10(d + 1)). If M is uniform, each digit's probability is the width of its interval, which is the Benford pmf.
The Benford pmf can also be derived from a different starting point. Changing the units of a dataset multiplies every value by a constant c. Units are arbitrary, so a leading digit pmf found in nature should be scale invariant, with D(cX) distributed like D(X). What does multiplying by c do to a leading digit pmf?
So the density of M(cX) is the density of M(X) shifted right by log10 c, with whatever passes 1 wrapping round to 0. At c = 10 it has gone once all the way round.
Only a uniform density on M is invariant to shifts. Hence the Benford pmf is the only scale-invariant leading digit pmf (Pinkham 1961).
So a leading digit pmf found in nature has to be Benford. Real data can only approximate it. Multiply each dataset by every c from 1 to 10 and see how far its digits move.