关于「基础率:推送越多,越不可信」,《手机指挥容器集群》给出的定量结论是什么?

结论:第一章用贝叶斯公式说明,每天九千多次检查、基础率 0.0005、误报率 0.001 时,单条推送为真的概率只有 0.3312;加入告警响应后,最优阈值下被处理的真故障份额为 0.807。

数据口径:书中参数为示意;全部计算由书中程序生成;本书是非个人化经营建议,不承诺任何可用性数字,只写书、不连接任何机器。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。

English version

对照数据表

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

evaluations per day: 9,216
base rateFPRPPVfalse/daytrue/day
0.010.010.500091.2491.24
0.010.0010.90919.1291.24
0.010.00010.99010.9191.24
0.0010.010.090292.079.12
0.0010.0010.49779.219.12
0.0010.00010.90830.929.12
0.00050.010.047292.114.56
0.00050.0010.33129.214.56
0.00050.00010.83200.924.56
0.00010.010.009892.150.91
0.00010.0010.09019.220.91
0.00010.00010.49750.920.91
FPR needed for PPV >= 0.5 (TPR 0.99):
base rate 0.001-> FPR <= 0.000991
base rate 0.0005-> FPR <= 0.000495
base rate 0.0001-> FPR <= 0.000099
查看完整验算程序
# Chapter 1. p11: positive predictive value of a push under low base rates
# Bayes' rule for one alert check: PPV = TPR*b / (TPR*b + FPR*(1-b)).
# The fleet size and check cadence are illustrative: 24 containers,
# 4 metrics each, one evaluation every 15 minutes (96 per day).
import math

CONTAINERS, METRICS, PER_DAY = 24, 4, 96
EVALS = CONTAINERS * METRICS * PER_DAY
TPR = 0.99


def ppv(b, fpr, tpr=TPR):
    hit = tpr * b
    return hit / math.fsum([hit, fpr * (1.0 - b)])


def false_pushes(b, fpr):
    return EVALS * fpr * (1.0 - b)


print("evaluations per day: {:,}".format(EVALS))
print("base rate   FPR      PPV     false/day  true/day")
for b in (0.01, 0.001, 0.0005, 0.0001):
    for fpr in (0.01, 0.001, 0.0001):
        print("{:<10} {:<8} {:.4f}  {:>8.2f}  {:>7.2f}".format(
            b, fpr, ppv(b, fpr), false_pushes(b, fpr), EVALS * b * TPR))
print("FPR needed for PPV >= 0.5 (TPR 0.99):")
for b in (0.001, 0.0005, 0.0001):
    need = TPR * b / (1.0 - b)
    print("  base rate {:<7} -> FPR <= {:.6f}".format(b, need))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《移动终端单手遥控多容器集群、异常中断推送滤波与离席零停摆指挥母典》第 1 章「基础率:推送越多,越不可信」(版本 1.0.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026416,
  author    = {Fan, Yafu},
  title     = {Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论