What does Critical Transitions and Resilience conclude, in numbers, about “Practice and a Pre-registered Trial”?

Answer: Chapter 8 gives a four-step resilience and early-warning checklist (with a fictional water system as example) and a pre-registered trial randomised by individual: in a simulated resource-management task with a hidden fold, it compares an added dashboard of rolling recovery time and variance with current stock and profit only (single primary outcome: the share of irreversible collapses; 203 analysable and 226 recruited per arm, 452 in all; decision rule written as code). Marked boxes separate published evidence, runnable Python calculations (15 programs, all checked), classical sources and the author's hypotheses. The book is not medical advice and makes no investment or financial forecasts; its business and physiological examples are analogies. The author's interests are disclosed in the book.

Scope of the numbers: The book is not medical advice and makes no investment or financial forecasts; its business and physiological examples are analogies. Marked boxes separate published evidence, runnable Python calculations (15 programs, all checked), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 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.400.25 203
0.400.28 326
0.500.35 227
0.300.18 265
chosen 0.400.25: 203 per arm; allowing 10 % incomplete sessions,
recruit 226 per arm, 452 in all
simulation check of power with 203 per arm0.90
Show the full program
# 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}")

Single source and citation

Fan, Y. (2026). Phase Transitions, Critical Slowing Down and Resilience in Complex Dynamical Systems (Version 1.0.0), Chapter 8: Practice and a Pre-registered Trial. 5D Library. https://doi.org/10.5281/zenodo.23770082

DOI: 10.5281/zenodo.23770082 · Read the monograph · 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}
}

Other chapter answers in this book