关于「实践与预注册试验」,《临界转变与韧性》给出的定量结论是什么?
结论:第八章给出「四步韧性与早期预警核查表」(以虚构的供水系统为例),以及一项以个人为单位随机化的预注册试验方案:在含隐藏折叠点的模拟资源管理任务中,比较「另加滚动恢复时间与方差仪表盘」与「只看当前存量与当期收益」,唯一主要结局为资源不可逆崩溃的比例,每组 203 名可分析、招募 226 名,共 452 人,判定规则写成代码。书中以标注框区分已发表的证据、可运行的 Python 计算(15 段程序,全部核对)、原典与作者的假说。本书不是医疗建议,也不作投资或金融预测;企业与生理的例子都是类比。作者的利益关系已在书中披露。
数据口径:本书不是医疗建议,也不作投资或金融预测;企业与生理的例子都是类比。 书中以标注框区分已发表的证据、可运行的 Python 计算(15 段程序,全部核对)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 203, 226, 452
| bots, stock and profit only : collapse in 40% of games; mean profit 42.3 | |
| bots, plus recovery dashboard : collapse in 7% of games; mean profit 35.3 | |
| assumed collapse share: control -> dashboard analysable per arm (90 % power) | |
| 0.40 | 0.25 203 |
| 0.40 | 0.28 326 |
| 0.50 | 0.35 227 |
| 0.30 | 0.18 265 |
| chosen 0.40 | 0.25: 203 per arm; allowing 10 % incomplete sessions, |
| recruit 226 per arm, 452 in all | |
| simulation check of power with 203 per arm | 0.90 |
查看完整验算程序
# Chapter 8 trial. Part 1: the simulated resource game, played by two simple rule-following
# bots (a MODEL of the hypothesis, not data about people). Part 2: sample size.
# Hidden stock dynamics per round (participants are not told the model or its fold):
# x <- x + 0.5 [x (1 - x/10) - E x^2/(x^2 + 1)] + 0.1 N(0,1); fold at E = 2.604.
# Profit per round = catch - 0.2 E. Collapse (primary outcome): x < 2.0 in any round; by the
# game's rules the fishery is then closed for good. 80 rounds; effort E reviewed every 4 rounds.
import math, random
from statistics import NormalDist
rng = random.Random(16)
def play(dashboard, rounds=80, heed=0.3):
"""A bot that nudges effort up or down by its own step, reversing when the block's profit
falls, and stops exploring once profit per round reaches its own aspiration. The dashboard
bot also looks at lag-1 autocorrelation of the last 20 stock values (with probability heed
at each review) and cuts effort by 0.3 if it exceeds 0.6."""
x, E, step = 8.9, rng.uniform(0.5, 2.0), rng.uniform(0.05, 0.3)
asp, stopped, last, hold = rng.uniform(0.6, 0.9), False, None, 0
xs, block, total = [], 0.0, 0.0
for t in range(1, rounds + 1):
catch = 0.5 * E * x * x / (x * x + 1)
x += 0.5 * (x * (1 - x / 10)) - catch + 0.1 * rng.gauss(0, 1)
xs.append(x); block += catch - 0.2 * E; total += catch - 0.2 * E
if x < 2.0: return True, total
if t % 4: continue
if not stopped and block / 4 >= asp: stopped = True
if last is not None and block < last: step = -step # profit fell: reverse
last, block = block, 0.0
if dashboard and len(xs) >= 20 and rng.random() < heed:
w = xs[-20:]; m = sum(w) / 20; v = sum((u - m) ** 2 for u in w)
a = sum((w[i] - m) * (w[i + 1] - m) for i in range(19)) / v
if a > 0.6: E, step, hold = max(0.0, E - 0.3), -abs(step), 3
if hold: hold -= 1; continue
if not stopped: E = max(0.0, E + step)
return False, total
for dash, lab in ((False, "stock and profit only"), (True, "plus recovery dashboard")):
res = [play(dash) for _ in range(2000)]
print(f"bots, {lab:24s}: collapse in {sum(c for c, _ in res) / 2000:.0%} of games;"
f" mean profit {sum(p for _, p in res) / 2000:.1f}")
def n_per_arm(p1, p2, alpha=0.05, power=0.90):
z = NormalDist().inv_cdf; pb = (p1 + p2) / 2
num = (z(1 - alpha / 2) * math.sqrt(2 * pb * (1 - pb))
+ z(power) * math.sqrt(p1 * (1 - p1) + p2 * (1 - p2)))
return math.ceil(num ** 2 / (p1 - p2) ** 2)
print("assumed collapse share: control -> dashboard analysable per arm (90 % power)")
for p1, p2 in ((0.40, 0.25), (0.40, 0.28), (0.50, 0.35), (0.30, 0.18)):
print(f" {p1:.2f} -> {p2:.2f} {n_per_arm(p1, p2)}")
n = n_per_arm(0.40, 0.25); rec = math.ceil(n / 0.9)
print(f"chosen 0.40 -> 0.25: {n} per arm; allowing 10 % incomplete sessions,")
print(f" recruit {rec} per arm, {2 * rec} in all")
hits = 0
for _ in range(4000):
a = sum(rng.random() < 0.40 for _ in range(n)); b = sum(rng.random() < 0.25 for _ in range(n))
pa, pb = a / n, b / n; pp = (a + b) / (2 * n)
hits += abs(pa - pb) / math.sqrt(pp * (1 - pp) * 2 / n) > 1.96
print(f"simulation check of power with {n} per arm: {hits / 4000:.2f}")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《复杂系统相变、临界慢化与生态韧性的非线性动力学》第 8 章「实践与预注册试验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23770082
DOI: 10.5281/zenodo.23770082 · 阅读本章所在专著 · 5DL-B-028 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026028,
author = {Fan, Yafu},
title = {Phase Transitions, Critical Slowing Down and Resilience in Complex Dynamical Systems},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23770082},
url = {https://doi.org/10.5281/zenodo.23770082}
}