What does Benford's Law and Ledger Audits conclude, in numbers, about “Where the First-Digit Law Comes From: Uniform Mantissae, Scale Invariance and Multiplicative Chains”?
Answer: Chapter 1 explains the law through uniform mantissae, scale invariance and multiplicative chains; the expected share of a leading 1 is 0.30103.
Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book is not legal advice and not personalised business advice, and test results are only signals for review. Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.30103
| digit | P(first) | x uniform | P(second) |
|---|---|---|---|
| 0 | - | - | 0.11968 |
| 1 | 0.30103 | 2.709 | 0.11389 |
| 2 | 0.17609 | 1.585 | 0.10882 |
| 3 | 0.12494 | 1.124 | 0.10433 |
| 4 | 0.09691 | 0.872 | 0.10031 |
| 5 | 0.07918 | 0.713 | 0.09668 |
| 6 | 0.06695 | 0.603 | 0.09337 |
| 7 | 0.05799 | 0.522 | 0.09035 |
| 8 | 0.05115 | 0.460 | 0.08757 |
| 9 | 0.04576 | 0.412 | 0.08500 |
| mean first digit 3.440 (uniform 5.000); mean second 4.187 (4.500) | |||
| P(first digit is 1 or 2) = 0.47712; P(7, 8 or 9) = 0.15490 | |||
| first-two digits: P(10) = 0.04139, P(99) = 0.00436, ratio 9.48 | |||
| second digit: P(0)/P(9) = 1.408; first digit: P(1)/P(9) = 6.579 | |||
| check: totals 1.000000000 1.000000000 1.000000000 |
Show the full program
# Chapter 1. p11: what Benford's law expects of the first two digits.
# Model: P(D1 = d) = log10(1 + 1/d) for d = 1..9;
# P(D2 = k) = sum over j = 1..9 of log10(1 + 1/(10 j + k)), k = 0..9;
# P(D1D2 = n) = log10(1 + 1/n) for n = 10..99. Exact formulas, no data.
# Only the law's own expectations; no ledger is involved.
import math
P1 = [math.log10(1 + 1 / d) for d in range(1, 10)]
P2 = [math.fsum(math.log10(1 + 1 / (10 * j + k)) for j in range(1, 10))
for k in range(10)]
P12 = {n: math.log10(1 + 1 / n) for n in range(10, 100)}
print("digit P(first) x uniform P(second)")
print(" 0 - - %.5f" % P2[0])
for d in range(1, 10):
print(" %d %.5f %.3f %.5f"
% (d, P1[d - 1], P1[d - 1] * 9, P2[d]))
m1 = math.fsum(d * p for d, p in zip(range(1, 10), P1))
m2 = math.fsum(k * p for k, p in zip(range(10), P2))
print("mean first digit %.3f (uniform 5.000); mean second %.3f (4.500)"
% (m1, m2))
print("P(first digit is 1 or 2) = %.5f; P(7, 8 or 9) = %.5f"
% (P1[0] + P1[1], math.fsum(P1[6:])))
print("first-two digits: P(10) = %.5f, P(99) = %.5f, ratio %.2f"
% (P12[10], P12[99], P12[10] / P12[99]))
print("second digit: P(0)/P(9) = %.3f; first digit: P(1)/P(9) = %.3f"
% (P2[0] / P2[9], P1[0] / P1[8]))
print("check: totals %.9f %.9f %.9f"
% (math.fsum(P1), math.fsum(P2), math.fsum(P12.values())))Single source and citation
Fan, Y. (2026). Benford's First-Digit Law, Ledger Fraud Detection and Chi-Square Audits of Buying-Agent Cash Flows and Expense Claims (Version 1.0.0), Chapter 1: Where the First-Digit Law Comes From: Uniform Mantissae, Scale Invariance and Multiplicative Chains. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-216 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026216,
author = {Fan, Yafu},
title = {Benford's First-Digit Law, Ledger Fraud Detection and Chi-Square Audits of Buying-Agent Cash Flows and Expense Claims},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · The Counterintuitive Claim: Invented Numbers Are Too Clean, and the Law Wrongs Honest Fixed-Price Shops
- Chapter 3 · The Chi-Square Test: the Critical Value 15.507, the False Alarms of Nine z Tests and Certain Rejection in Large Samples
- Chapter 4 · The Mean Absolute Deviation: the Noise Floor, Nigrini's Bands and the First-Two-Digit Test
- Chapter 5 · The Precondition: How Many Decades, Fixed Prices and the Mixing of Price Points
- Chapter 6 · Beyond the First Digit: Last Digits, Repeated Amounts and Piling Up Below an Approval Limit
- Chapter 7 · Chinese and European Sources Weighed: the Four-Pillar Settlement, Newcomb's Logarithm Tables and Pacioli's Trial Balance
- Chapter 8 · Closing the Loop: Self-Audit of Buying-Agent Flows and Expense Claims, Red-Light Review and a Pre-Registered Plan