关于「警报阈值:信号检测、ROC、代价矩阵与每屏警报上限」,《数据后台减负与防呆表单》给出的定量结论是什么?

结论:海桥 Harbourbridge 的对账后台每天进来约 1,200 行流水,按第一章定下的全书样本,其中 18 行是真异常:金额不符、重复入账、汇率错用、有款无单、已付未到账。系统给每一行算一个「异常分」,分数越过某条线,这一行就被标红。第三章讲了红色怎样被眼睛先看见、红色该分几层;本章讲那条线该画在哪里。

数据口径:本书不是会计、审计或法律意见。 书中以标注框区分已发表的证据、可运行的计算、原典与作者的假说,每条假说都写明什么结果会推翻它;原典考辨取唐代刘晏的报数制度,原文只转述大意。

English version

对照数据表

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

rows per day 1,200; true anomalies 18 (base rate 0.015); clean rows 1,182
rule with d' = 2.0
thitFAhitsmissesfalseflagsPPV
1.00.8410.158715.142.86187.5202.70.075
1.50.6910.066812.455.5579.091.40.136
2.00.5000.02289.009.0026.935.90.251
2.50.3090.00625.5512.457.312.90.431
3.00.1590.00132.8615.141.64.50.642
3.50.0670.00021.2016.800.31.50.814
rule with d' = 2.5
thitFAhitsmissesfalseflagsPPV
1.00.9330.158716.801.20187.5204.30.082
1.50.8410.066815.142.8679.094.10.161
2.00.6910.022812.455.5526.939.30.316
2.50.5000.00629.009.007.316.30.551
3.00.3090.00135.5512.451.67.10.777
3.50.1590.00022.8615.140.33.10.912
two operators on the same audit set (fictional labelled week)
operator A: hit 0.80 FA 0.10 -> d' = 2.123, criterion c = 0.220, beta = 1.595
operator B: hit 0.50 FA 0.02 -> d' = 2.054, criterion c = 1.027, beta = 8.240
查看完整验算程序
# Chapter 4. p40: The four cells of signal detection on one Harbourbridge reconciliation day, per threshold.
# Book-wide fictional sample (Chapter 1, p10): 1,200 ledger rows a day, 18 of them truly anomalous (0.015).
# Each row carries an anomaly score: N(0, 1) on clean rows and N(d', 1) on anomalous rows (the
# equal-variance Gaussian model of signal detection theory). Two rules: the book's working rule
# (d' = 2.0, as in p11) and a sharper reconciliation-gap score (d' = 2.5). No real data is used.
import math
from statistics import NormalDist

Z = NormalDist()
ROWS, ANOM = 1200, 18
CLEAN = ROWS - ANOM
print("rows per day {:,}; true anomalies {} (base rate {:.3f}); clean rows {:,}".format(
    ROWS, ANOM, ANOM / ROWS, CLEAN))
for d in (2.0, 2.5):
    print("rule with d' = {}".format(d))
    print("   t     hit    FA      hits   misses  false   flags   PPV")
    for t in (1.0, 1.5, 2.0, 2.5, 3.0, 3.5):
        hit = 1 - Z.cdf(t - d)
        fa = 1 - Z.cdf(t)
        hits, fas = ANOM * hit, CLEAN * fa
        flags = hits + fas
        print("   {:.1f}  {:.3f}  {:.4f}  {:5.2f}  {:6.2f}  {:6.1f}  {:6.1f}  {:.3f}".format(
            t, hit, fa, hits, ANOM - hits, fas, flags, hits / flags))

print("two operators on the same audit set (fictional labelled week)")
for name, h, f in (("operator A", 0.80, 0.10), ("operator B", 0.50, 0.02)):
    zh, zf = Z.inv_cdf(h), Z.inv_cdf(f)
    dp = zh - zf
    c = -(zh + zf) / 2
    print("   {}: hit {:.2f} FA {:.2f} -> d' = {:.3f}, criterion c = {:.3f}, beta = {:.3f}".format(
        name, h, f, dp, c, math.exp(c * dp)))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《高密度数据工作台视觉减负、条件格式显著性与零培训防呆表单工程》第 4 章「警报阈值:信号检测、ROC、代价矩阵与每屏警报上限」(版本 0.1.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026138,
  author    = {Fan, Yafu},
  title     = {Cognitive Unloading of Dense Data Workbenches, Conditional-Format Salience and Zero-Training Error-Proof Form Engineering},
  year      = {2026},
  publisher = {5D Library},
  edition   = {0.1.0},
  note      = {DOI pending}
}

本书其他章节结论