关于「差异易感性:兰花、蒲公英与交叉点检验」,《表观遗传与代际传递》给出的定量结论是什么?
结论:当真实的交互作用为 0.10 时,100 名儿童的研究只有约 18% 的机会检出交互项,满足完整模式的只有约 6%;300 名儿童分别为 43% 与 23%;1,000 名儿童才达到 89% 与 69%。按正态近似,要以 90% 的把握度检出这样的交互作用,约需 1,051 名儿童。第二部分更值得警惕:在 10 个完全无效的候选标记中,约 43% 的研究会至少找到一个「显著」的交互作用,而这些「显著」交互作用的平均大小约为 0.17,比上面那个真实存在的交互作用还大。
数据口径:书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序,全部核对)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.10, 0.17, 10, 100, 1000, 1051
| true b3 | 0.10 (DS, crossover at 0): 300 simulated studies per size |
| n | b3 significant | full DS pattern | |
| 100 | | 18% | 6% |
| 300 | | 43% | 23% |
| 1000 | | 89% | 69% |
| normal approximation: about 1051 children for 90 % power | |
| 10 null markers, n | 200: a 'significant' interaction in 43% of studies; |
| these average |b3| | 0.17, though every true b3 is 0 |
查看完整验算程序
# Power for E x S interactions, and the cost of testing many candidate markers.
# Part 1: true DS with a SMALL interaction, b3 = 0.10 (b1 = 0.30, b2 = 0). How
# often does a study (a) find p < .05 for b3, (b) meet the full DS pattern:
# significant b3, crossover 95 % CI inside -2..+2 SD, and significant
# effects of S of opposite sign at E = -2 and E = +2?
# Part 2: 10 candidate markers, none of which moderates anything, n = 200.
# Coefficients ILLUSTRATIVE; E, S standard normal; residual SD 1.
import math, random
rng = random.Random(1993)
def fit(E, S, Y): # OLS via Gauss-Jordan: b and covariance
X = [(1.0, e, s, e * s) for e, s in zip(E, S)]
M = [[sum(x[i] * x[j] for x in X) for j in range(4)]
+ [sum(x[i] * y for x, y in zip(X, Y))]
+ [float(i == j) for j in range(4)] for i in range(4)]
for c in range(4):
p = max(range(c, 4), key=lambda r: abs(M[r][c])); M[c], M[p] = M[p], M[c]
M[c] = [v / M[c][c] for v in M[c]]
for r in (r for r in range(4) if r != c):
M[r] = [a - M[r][c] * b for a, b in zip(M[r], M[c])]
b = [M[i][4] for i in range(4)]
s2 = sum((y - sum(u * w for u, w in zip(b, x))) ** 2
for x, y in zip(X, Y)) / (len(Y) - 4)
return b, [[s2 * M[i][5 + j] for j in range(4)] for i in range(4)]
def ds_pattern(b, V):
b2, b3 = b[2], b[3]
if abs(b3) / math.sqrt(V[3][3]) < 1.96: return False, False
ec = -b2 / b3
se = math.sqrt(V[2][2] + ec * ec * V[3][3] + 2 * ec * V[2][3]) / abs(b3)
z = lambda e: (b2 + b3 * e) / math.sqrt(V[2][2] + 2 * e * V[2][3]
+ e * e * V[3][3])
both = abs(z(-2)) > 1.96 and abs(z(2)) > 1.96 and z(-2) * z(2) < 0
return True, -2 < ec - 1.96 * se and ec + 1.96 * se < 2 and both
def study(n, b3):
E = [rng.gauss(0, 1) for _ in range(n)]; S = [rng.gauss(0, 1) for _ in range(n)]
Y = [0.30 * e + b3 * e * s + rng.gauss(0, 1) for e, s in zip(E, S)]
return ds_pattern(*fit(E, S, Y))
print("true b3 = 0.10 (DS, crossover at 0): 300 simulated studies per size")
print(" n | b3 significant | full DS pattern")
for n in (100, 300, 1000):
res = [study(n, 0.10) for _ in range(300)]
a = sum(x for x, _ in res) / 300; c = sum(y for _, y in res) / 300
print(f" {n:5d} | {a:14.0%} | {c:15.0%}")
need = math.ceil(((1.96 + 1.2816) / 0.10) ** 2) # se(b3) ~ 1/sqrt(n)
print(f"normal approximation: about {need} children for 90 % power")
hits, sizes = 0, []
for _ in range(300):
E = [rng.gauss(0, 1) for _ in range(200)]
Y = [0.30 * e + rng.gauss(0, 1) for e in E]
found = False
for m in range(10):
b, V = fit(E, [rng.gauss(0, 1) for _ in range(200)], Y)
if abs(b[3]) / math.sqrt(V[3][3]) > 1.96:
found = True; sizes.append(abs(b[3]))
hits += found
print(f"10 null markers, n = 200: a 'significant' interaction in {hits / 300:.0%}"
" of studies;")
print(f" these average |b3| = {sum(sizes) / len(sizes):.2f}, though every"
" true b3 is 0")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《早期经验、表观遗传甲基化与跨代行为先验的传递边界》第 5 章「差异易感性:兰花、蒲公英与交叉点检验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23761337
DOI: 10.5281/zenodo.23761337 · 阅读本章所在专著 · 5DL-B-022 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026022,
author = {Fan, Yafu},
title = {Early Experience, Epigenetic Methylation and the Limits of Intergenerational Transmission},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23761337},
url = {https://doi.org/10.5281/zenodo.23761337}
}