关于「首位数定律从哪里来:对数均匀、尺度不变与乘法链」,《本福特定律与流水报销审计》给出的定量结论是什么?
结论:第一章从尾数均匀、尺度不变与乘法链解释定律,首位数为 1 的期望是 0.30103。
数据口径:书中参数为示意;全部计算由书中程序生成;本书不是法律意见,也不是个人化经营建议,检验结果只是复核信号。 书中以标注框区分已发表的证据、可运行的 Python 计算(20 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 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 |
查看完整验算程序
# 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())))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《本福特首位数定律、账目舞弊检测与代购流水报销卡方审计母典》第 1 章「首位数定律从哪里来:对数均匀、尺度不变与乘法链」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}