Key idea of this section
P(first significant digit = d) = log₁₀(1 + 1/d), d = 1, …, 9 X is Benford ⟺ log₁₀ X mod 1 is uniformly distributed on [0, 1)
The phenomenon
In 1881 the astronomer Simon Newcomb noticed that the early pages of logarithm tables were far more worn than the later ones: people looked up numbers beginning with 1 more often than numbers beginning with 9. The physicist Frank Benford rediscovered the effect in 1938 and tested it on over 20 000 numbers from river areas, populations, physical constants and street addresses. The law states that the leading digit D satisfies
d 1 2 3 4 5 6 7 8 9 P(D=d) 0.3010 0.1761 0.1249 0.0969 0.0792 0.0669 0.0580 0.0512 0.0458
The mantissa formulation
Every x > 0 can be written uniquely as x = 10ᵏ·s with k ∈ ℤ and significand s ∈ [1, 10). Then log₁₀ x = k + log₁₀ s, so log₁₀ s = {log₁₀ x} is the fractional part. The leading digit is d if and only if d ≤ s < d + 1, that is, if and only if {log₁₀ x} ∈ [log₁₀ d, log₁₀(d + 1)).
Proposition 12.1. If {log₁₀ X} is uniformly distributed on [0, 1), then P(D = d) = log₁₀(d + 1) − log₁₀ d = log₁₀(1 + 1/d). More generally, P(s ≤ t) = log₁₀ t for 1 ≤ t < 10.
This formulation also gives the joint distribution of all digits. The second digit, for example, satisfies P(D₂ = d) = ∑ₖ₌₁⁹ log₁₀(1 + 1/(10k + d)), which is 0.1197 for d = 0 and 0.0850 for d = 9; the higher digits rapidly become uniform.
Scale invariance
Why should real data have uniformly distributed log-mantissas? One answer is invariance under change of units. If a distribution of significands is the same whether a quantity is measured in metres or feet, then the distribution of {log₁₀ X} on the circle ℝ/ℤ must be invariant under every rotation u ↦ u + log₁₀ c. Theorem (Hill, 1995): the only probability distribution on significands that is invariant under all such scalings is Benford's. The proof is the uniqueness of Haar measure on the circle group, a close relative of the Haar measure dt/t of Lesson 3. Hill also proved a limit theorem: if one samples from randomly chosen distributions in an unbiased way, the combined data converge to Benford. In addition, products of many independent positive factors tend to Benford, because the sum of many independent random variables reduced mod 1 tends to the uniform distribution.
Powers of 2
Theorem 12.2. The leading digits of 2ⁿ, n = 1, 2, 3, …, follow Benford's law in the sense of asymptotic density.
Proof. {log₁₀ 2ⁿ} = {nα} with α = log₁₀ 2. The number α is irrational, since α = p/q would give 2q = 10p, impossible for positive integers because 5 divides the right side but not the left. By Weyl's equidistribution theorem, {nα} is equidistributed in [0, 1) for irrational α: for every interval [a, b) ⊂ [0, 1) the proportion of n ≤ N with {nα} ∈ [a, b) tends to b − a. By Proposition 12.1 the leading digit of 2ⁿ is d exactly when {nα} lies in an interval of length log₁₀(1 + 1/d). ∎
Proof of Weyl's theorem (sketch). By Weyl's criterion it suffices to show (1/N) ∑ₙ₌₁N e2πikn α → 0 for every nonzero integer k. This is a geometric sum equal to (1/N) e2πikα(e2πikNα − 1)/(e2πikα − 1), whose numerator is bounded by 2 and whose denominator is a fixed nonzero number, because kα ∉ ℤ. Approximating the indicator of [a, b) above and below by trigonometric polynomials completes the argument.
Among 2¹, …, 2¹⁰⁰⁰ the leading digits 1 through 9 occur 301, 176, 125, 97, 79, 69, 56, 52 and 45 times, against Benford expectations of 301.0, 176.1, 124.9, 96.9, 79.2, 66.9, 58.0, 51.2 and 45.8. The same theorem applies to aⁿ whenever log₁₀ a is irrational, to n!, and to the Fibonacci numbers, since Fₙ ≈ φⁿ/√5 with log₁₀ φ irrational.
Applications and cautions
Benford's law is used to screen accounting and election data for fabrication (Nigrini's work since the 1990s), since invented numbers tend to have too uniform leading digits. It also guides the design of floating-point systems: Hamming showed that, for data whose significands are Benford, relative rounding error is distributed non-uniformly. Caution is needed: data confined to a narrow range (human heights, prices set to end in 99, assigned identifiers) are not Benford, and a deviation from Benford is evidence of nothing unless the data would be expected to span several orders of magnitude.
Exercise
- (a)Compute the probability, under Benford's law, that the leading digit is at least 5.
- (b)Prove that two consecutive powers of 2 never have the same leading digit.
- (c)Find the leading digit of 2¹⁰⁰ using log₁₀ 2 ≈ 0.30103.
Show solution
Answers: (a) P(D ≥ 5) = log₁₀(10/5) = log₁₀ 2 ≈ 0.3010. (b) Let 2ⁿ have significand s ∈ [1, 10). If s < 5, then 2ⁿ⁺¹ has significand 2s, and ⌊2s⌋ ≥ ⌊s + 1⌋ = ⌊s⌋ + 1 because s ≥ 1, so the leading digit increases. If s ≥ 5, then 2ⁿ⁺¹ has significand 2s/10 ∈ [1, 2), with leading digit 1, while 2ⁿ has leading digit at least 5. (c) 100 log₁₀ 2 ≈ 30.103, so 2¹⁰⁰ = 10³⁰·100.103 ≈ 1.27 × 10³⁰, leading digit 1. (Indeed 2¹⁰⁰ = 1.2676506… × 10³⁰.)