What does Dyadic Coupling and Grid Games conclude, in numbers, about “A Four-Step Check and a Pre-Registered Test of Chart Matching”?
Answer: Chapter 8 gives a four-step check and a pre-registered test: picking among twenty conventions afterwards manufactures a "significant" effect in 0.517 of studies with no effect; a hazard ratio of 1.5 needs 191 separations from 764 couples. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Scope of the numbers: All data are synthetic, generated by its programs, and wherever physics or game theory is applied to people it is marked as an analogy. Chapter 7 reads the Tuan commentary on Xian and Heng, the Rhapsody of the Old Fisherman and Yang Hui's magic squares; that Xian upside down is Heng is read, as marked interpretation, as a transposed matrix.
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: 1.5, 191, 764
hazard ratio separations needed couples (25 % separate)
1.2 945 3,780
1.3 457 1,828
1.5 191 764
2.0 66 264
simulated power at HR 1.5 with 382 couples per half: 0.853
Reading: even a large effect (hazard ratio 1.5) needs about
190 separations and some 760 couples; a modest one needs several
thousand. The simulation gives a little more than the planned
80 %, because the high-risk half separates more often than 25 %
and so supplies extra events.Show the full program
# Chapter 8. Sizing a pre-registered test of a compatibility score.
# Design: one scoring convention, fixed and published before any data;
# couples split at the median score into a high and a low half; primary
# outcome the time to separation over five years, compared with a Cox
# model. Schoenfeld's formula gives the number of separations needed:
# d = (z_(1 - alpha/2) + z_power)^2 / (p (1 - p) ln(HR)^2), p = 0.5.
# Couples needed = d / (share separating within five years). Secondary
# outcome, from p02: EACH partner's own satisfaction, measured separately,
# so that a one-sided (antisymmetric) part can be estimated at all.
# The program also checks the formula by simulation for HR = 1.5:
# exponential times, 25 % five-year separation in the low half, 2,000
# simulated trials, a log-rank test at 0.05.
import math
import random
from statistics import NormalDist
Z = NormalDist()
def events_needed(hr, alpha=0.05, power=0.8):
z = Z.inv_cdf(1 - alpha / 2) + Z.inv_cdf(power)
return math.ceil(z * z / (0.25 * math.log(hr) ** 2))
def logrank(times, groups, horizon=5.0):
data = sorted(zip(times, groups))
at = [groups.count(0), groups.count(1)]
o1 = e1 = v = 0.0
for t, g in data:
if t > horizon:
break
n = at[0] + at[1]
e = at[1] / n
o1 += g
e1 += e
v += e * (1 - e)
at[g] -= 1
return (o1 - e1) / math.sqrt(v)
if __name__ == "__main__":
print(" hazard ratio separations needed couples (25 % separate)")
for hr in (1.2, 1.3, 1.5, 2.0):
d = events_needed(hr)
print(" {:3.1f} {:5d} {:6,d}".format(
hr, d, math.ceil(d / 0.25)))
rng = random.Random(62016)
hr, n_per = 1.5, math.ceil(events_needed(1.5) / 0.25 / 2)
lam0 = -math.log(0.75) / 5.0
hits = 0
for _ in range(2000):
times, groups = [], []
for g in (0, 1):
lam = lam0 * (hr if g else 1.0)
for _ in range(n_per):
times.append(rng.expovariate(lam))
groups.append(g)
if abs(logrank(times, groups)) > 1.96:
hits += 1
print("\n simulated power at HR 1.5 with {} couples per half:"
" {:.3f}".format(n_per, hits / 2000))
print("\nReading: even a large effect (hazard ratio 1.5) needs about")
print("190 separations and some 760 couples; a modest one needs several")
print("thousand. The simulation gives a little more than the planned")
print("80 %, because the high-risk half separates more often than 25 %")
print("and so supplies extra events.")Single source and citation
Fan, Y. (2026). Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games (Version 1.0.0), Chapter 8: A Four-Step Check and a Pre-Registered Test of Chart Matching. 5D Library. https://doi.org/10.5281/zenodo.24090172
DOI: 10.5281/zenodo.24090172 · Read the monograph · 5DL-B-062 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026062,
author = {Fan, Yafu},
title = {Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090172},
url = {https://doi.org/10.5281/zenodo.24090172}
}Other chapter answers in this book
- Chapter 1 · A Match Score Is a Bilinear Form
- Chapter 2 · Locking, Arnold Tongues and "Who Adapts to Whom"
- Chapter 3 · Amplitude, "Siphoning", and Pursuit Against Flight
- Chapter 4 · The Stopping Time of Separation and the "Danger Window"
- Chapter 5 · The Luoshu, the Eight Doors and Permutation Groups
- Chapter 6 · When and Where to Act on a Turning Grid