关于「数据可信度:自适应数据的负偏、样本比例失衡与护栏回滚」,《夜间自治漏斗》给出的定量结论是什么?

结论:第六章讲自适应数据负偏、样本比例失衡(日志故障可凭空造出 3.1% 的提升)与护栏回滚;

数据口径:书中参数为示意;全部计算由书中 23 段程序生成;本书是非个人化的经营分析,不构成经营、法律或财务建议,不宣称任何转化率提升的保证。

English version

对照数据表

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

critical chi-square 10.828; logged share of B 0.4924
logged visitorsfalse alarm (no fault)fault detected
2,0000.00100.004
10,0000.00180.037
50,0000.00060.559
200,0000.00081.000
null variant: true pay rate 0.050 on both arms; B measured 0.0515
phantom lift +3.1% from the fault alone
查看完整验算程序
# Chapter 6. p62: sample ratio mismatch (SRM) check.
# Planned split 50/50. A logging fault silently drops 3 percent of B's
# visitors, and those dropped are visitors who left before the page
# finished loading, so none of them would have paid. Chi-square test
# with 1 degree of freedom at alpha = 0.001 (Kohavi et al. 2020 treat
# SRM as a trust check that blocks the read-out). Counts use a normal
# approximation to the binomial; 5,000 runs per size.
import math
import random
from statistics import NormalDist

rng = random.Random(40562)
CRIT = NormalDist().inv_cdf(1 - 0.001 / 2) ** 2
LOSS, REPS = 0.03, 5000
Q = 0.5 * (1 - LOSS) / (0.5 + 0.5 * (1 - LOSS))


def chi2(na, nb):
    e = (na + nb) / 2
    return (na - e) ** 2 / e + (nb - e) ** 2 / e


def rate(n, q):
    hits = 0
    for _ in range(REPS):
        nb = round(n * q + math.sqrt(n * q * (1 - q)) * rng.gauss(0, 1))
        hits += 1 if chi2(n - nb, nb) > CRIT else 0
    return hits / REPS


print("critical chi-square {:.3f}; logged share of B {:.4f}".format(
    CRIT, Q))
print("logged visitors   false alarm (no fault)   fault detected")
for n in [2000, 10000, 50000, 200000]:
    print("{:>15,} {:>24.4f} {:>16.3f}".format(n, rate(n, 0.5), rate(n, Q)))
p_true = 0.050
print("null variant: true pay rate {:.3f} on both arms; B measured "
      "{:.4f}".format(p_true, p_true / (1 - LOSS)))
print("  phantom lift {:+.1%} from the fault alone".format(
    1 / (1 - LOSS) - 1))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《夜间自治漏斗微创调优、多臂赌博机流量自动倾斜与零人工转化率自举母典》第 6 章「数据可信度:自适应数据的负偏、样本比例失衡与护栏回滚」(版本 1.0.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026405,
  author    = {Fan, Yafu},
  title     = {Autonomous Nightly Funnel Micro-Surgery, Bandit Traffic Allocation and Zero-Touch Conversion Self-Improvement},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论