关于「东西方原典考辨:墨子的三表与 Fisher 的一杯茶」,《A/B 测试的偷看与小流量》给出的定量结论是什么?

结论:第七章考辨《墨子·非命上》的立仪与三表,以及 Fisher 的女士品茶(纯猜四杯全对的概率 0.0143);三表写成贝叶斯公式后,偷看的小站上线的改动只有 0.133 是真的。

数据口径:书中的站点、流量、转化率与提升幅度均为示意参数;全部计算由书中程序生成;本书不是个人化的经营、法律或理财建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(19 段程序)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 与结论吻合的打印值: 0.133

ship B when 'significant and ahead'; per 100 tests
regimepireal winsnull shipsshare real
big, planned0.108.02.20.780
big, planned0.3024.01.80.932
big, peeking0.108.912.60.414
big, peeking0.3026.89.80.732
small, planned0.100.52.20.175
small, planned0.301.41.80.450
small, peeking0.101.912.30.133
small, peeking0.305.79.60.371
查看完整验算程序
# Chapter 7. p72: Mozi's three tests written as one Bayes formula
# Model: "basis" (ben) = the prior share pi of tested ideas that truly
# help, read from the shop's own history; "verification" (yuan) = what
# the eyes and ears of the data say, the chance a real win is shipped
# (power, right sign) and a null one is shipped (false ship rate);
# "application" (yong) = what 100 tests actually deliver.
# Rates are copied from earlier programs: planned big site alpha/2 =
# 0.025 with power 0.80 (p21); peeking for 28 days 0.2802/2 = 0.1401
# (p11) with power 0.8925 (p61 naive, H1); small site planned 0.025
# with right-sign power 0.0477 (p23); small site peeking 0.2743/2
# (p12) with right-sign power 0.2855 * (1 - 0.339) (p32). pi values
# are illustrative.
REGIMES = (
    ("big, planned", 0.025, 0.80),
    ("big, peeking", 0.2802 / 2, 0.8925),
    ("small, planned", 0.025, 0.0477),
    ("small, peeking", 0.2743 / 2, 0.2855 * (1 - 0.339)),
)


def main():
    print("ship B when 'significant and ahead'; per 100 tests")
    print("regime          pi    real wins  null ships  share real")
    for name, fp, pw in REGIMES:
        for pi in (0.10, 0.30):
            real = 100 * pi * pw
            null = 100 * (1 - pi) * fp
            print("{:14}  {:.2f}  {:9.1f}  {:10.1f}  {:10.3f}".format(
                name, pi, real, null, real / (real + null)))


main()

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《A/B测试偷看早停假阳性膨胀、序贯概率比检验与小流量站点最小样本母典》第 7 章「东西方原典考辨:墨子的三表与 Fisher 的一杯茶」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-217 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026217,
  author    = {Fan, Yafu},
  title     = {Peeking-Inflated False Positives in A/B Tests, Sequential Probability Ratio Tests and Minimum Samples for Low-Traffic Sites},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论