关于「四步核查、一致性研究与一项预注册的配对检验」,《四柱排盘的计算》给出的定量结论是什么?
结论:第八章给出四步核查、一致性研究的样本量(255 张盘把 kappa 定在 0.100 之内)与一项预注册的配对检验(359 名纳入分析的参与者)。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
数据口径:书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.100, 255
planning values: p_o 0.768, kappa 0.553, p_e 0.481 half-width 0.100: 255 charts half-width 0.050: 1,017 charts half-width 0.025: 4,066 charts Reading: a few hundred charts pin kappa down to within 0.1, about a thousand to within 0.05. Agreement between engines can be measured cheaply and should be published before any claim about what a strong or weak chart means.
查看完整验算程序
# Chapter 8. How many charts a concordance study needs.
# A concordance study gives the same charts, blind, to several engines
# or practitioners and measures agreement with Cohen's kappa. It tests
# reproducibility, not validity. With observed agreement p_o and chance
# agreement p_e, the large-sample standard error of kappa is about
# se = sqrt(p_o (1 - p_o) / n) / (1 - p_e),
# so the n needed for a 95 % interval of half-width h follows. The
# planning values come from conventions A and B of p10.
import math
PO, KAPPA = 0.768, 0.553 # A vs B in p10
PE = (PO - KAPPA) / (1 - KAPPA)
def n_for(h, po=PO, pe=PE, z=1.959964):
return math.ceil(z * z * po * (1 - po) / ((1 - pe) ** 2 * h * h))
if __name__ == "__main__":
print(" planning values: p_o {:.3f}, kappa {:.3f}, p_e {:.3f}".format(
PO, KAPPA, PE))
for h in (0.10, 0.05, 0.025):
print(" half-width {:.3f}: {:,d} charts".format(h, n_for(h)))
print("\nReading: a few hundred charts pin kappa down to within 0.1,")
print("about a thousand to within 0.05. Agreement between engines can")
print("be measured cheaply and should be published before any claim")
print("about what a strong or weak chart means.")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《四柱排盘的历法计算与规则引擎》第 8 章「四步核查、一致性研究与一项预注册的配对检验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090180
DOI: 10.5281/zenodo.24090180 · 阅读本章所在专著 · 5DL-B-066 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026066,
author = {Fan, Yafu},
title = {Four-Pillar Calendrical Computation and Formal Rule Engines},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090180},
url = {https://doi.org/10.5281/zenodo.24090180}
}