关于「三模态快速筛查作为贝叶斯反问题」,《自主神经、六经状态空间与多模态反演》给出的定量结论是什么?

结论:第五章把三模态筛查写成贝叶斯反问题:误判率从单用问卷的 0.532 降到 0.298,但模态相关时朴素贝叶斯报出 0.707 的把握,实际只对 0.655。

数据口径:本书不是医疗建议,也不是诊断工具;书中的生理参数、证候映射与人群设定均为示意或合成模型,全部数据由书中程序生成;中医证候与自主神经状态的对应一律作为假说处理。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。

English version

对照数据表

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

rhonaive errorcorrect errornaive claimsnaive right
0.00.2980.2980.6990.702
0.30.3330.3210.7040.667
0.60.3450.2900.7070.655
查看完整验算程序
# Chapter 5. p10: When the three modalities share a cause. General
# arousal (sleep, caffeine, the stress of being measured) moves all three
# scores of p09 together: each score = class mean + shared factor + own
# noise, with correlation rho between scores and sd still 1. Compared:
# the naive rule that multiplies likelihoods as if independent, and the
# correct rule using the equicorrelated covariance, whose inverse is
# (I - rho/(1 + 2 rho) J) / (1 - rho). Reported: error, and how sure the
# naive rule claims to be (mean top posterior) against how often it is
# right. 30,000 people per rho, seed 86.
import importlib.util
import random
from math import exp

def load(name):
    spec = importlib.util.spec_from_file_location(name, name + ".py")
    m = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(m)
    return m

p09 = load("p09_three_modes")

def post_corr(x, rho):
    a = rho / (1 + 2 * rho)
    w = {}
    for c, m in p09.MEANS.items():
        d = [x[i] - m[i] for i in range(3)]
        q = (sum(v * v for v in d) - a * sum(d) ** 2) / (1 - rho)
        w[c] = exp(-0.5 * q)
    z = sum(w.values())
    return {c: v / z for c, v in w.items()}

if __name__ == "__main__":
    rng = random.Random(86)
    print("   rho   naive error  correct error  naive claims  naive right")
    for rho in (0.0, 0.3, 0.6):
        e1 = e2 = claim = 0.0
        n = 0
        for _ in range(10000):
            for c in "ABC":
                x = p09.draw(rng, c, rho)
                pn = p09.post(x, (0, 1, 2))
                pc = post_corr(x, rho)
                top = max(pn, key=pn.get)
                e1 += top != c
                e2 += max(pc, key=pc.get) != c
                claim += pn[top]
                n += 1
        print("   {:.1f}  {:11.3f}  {:13.3f}  {:12.3f}  {:11.3f}".format(
            rho, e1 / n, e2 / n, claim / n, 1 - e1 / n))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《自主神经交感迷走平衡、六经辨证状态空间与多模态标志物反演》第 5 章「三模态快速筛查作为贝叶斯反问题」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090227

DOI: 10.5281/zenodo.24090227 · 阅读本章所在专著 · 5DL-B-086 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026086,
  author    = {Fan, Yafu},
  title     = {Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090227},
  url       = {https://doi.org/10.5281/zenodo.24090227}
}

本书其他章节结论