关于「实践与预注册试验」,《行动的力学》给出的定量结论是什么?

结论:两个共同主要结局各以双侧 α = 0.025 检验,使总的一类错误率不超过 0.05。按完课率从 40% 提高到 52%、把握度 90% 计算,每组需要 426 人;B 组学员在三人辅导小组中互相影响,按组内相关 0.05 计入设计效应后为每组 469 人。测验成绩按 0.30 个标准差的差异计算需要的人数更少。方案计划每组随机分配 469 人,共 938 人。40% 的基线完课率与组内相关都是假设,将在前 100 名受试者的内部预试验中核对;如果基线完课率明显不同,正式试验前重新计算样本量。

数据口径:本书不是心理治疗或医疗建议,不作任何诊断或疗效声称。 书中以标注框区分已发表的证据、可运行的 Python 计算(15 段程序,全部运行核对)、原典与作者的假说。

English version

对照数据表

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

completion 40 %52 %: 426 per arm, 469 with design effect 1.10
completion 40 %55 %: 273 per arm, 301 with design effect 1.10
test score d0.30: 276 per arm, 304 with design effect
test score d0.35: 203 per arm, 224 with design effect
plan469 randomised per arm (938 in all); everyone is tested on day 30, finished or not
查看完整验算程序
# Sample size for two co-primary outcomes, each tested at two-sided alpha = 0.025 (so the pair keeps 0.05):
#   (1) completion of the 30-day course, a proportion;  (2) blind-marked final test score, standardised.
# Learners in the teach-to-unlock arm tutor each other in small groups, so their outcomes are correlated:
# inflate by the design effect 1 + (m - 1) * ICC.
import math
from statistics import NormalDist
N = NormalDist()

def n_two_props(p1, p2, alpha, power):
    za, zb = N.inv_cdf(1 - alpha / 2), N.inv_cdf(power)
    pbar = (p1 + p2) / 2
    num = za * math.sqrt(2 * pbar * (1 - pbar)) + zb * math.sqrt(p1 * (1 - p1) + p2 * (1 - p2))
    return math.ceil((num / (p2 - p1)) ** 2)

def n_two_means(d, alpha, power):
    za, zb = N.inv_cdf(1 - alpha / 2), N.inv_cdf(power)
    return math.ceil(2 * ((za + zb) / d) ** 2)

deff = 1 + (3 - 1) * 0.05            # groups of 3, intraclass correlation 0.05 (assumed)
for p1, p2 in ((0.40, 0.52), (0.40, 0.55)):
    n = n_two_props(p1, p2, 0.025, 0.90)
    print(f"completion {100 * p1:.0f} % -> {100 * p2:.0f} %: {n} per arm, {math.ceil(n * deff)} with design effect {deff:.2f}")
for d in (0.30, 0.35):
    n = n_two_means(d, 0.025, 0.90)
    print(f"test score d = {d:.2f}: {n} per arm, {math.ceil(n * deff)} with design effect")
need = max(math.ceil(n_two_props(0.40, 0.52, 0.025, 0.90) * deff), math.ceil(n_two_means(0.30, 0.025, 0.90) * deff))
print(f"plan: {need} randomised per arm ({2 * need} in all); everyone is tested on day 30, finished or not")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《行动的经典与统计力学》第 8 章「实践与预注册试验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23738774

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

BibTeX
@book{fan2026013,
  author    = {Fan, Yafu},
  title     = {Classical and Statistical Mechanics of Human Action},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23738774},
  url       = {https://doi.org/10.5281/zenodo.23738774}
}

本书其他章节结论