关于「反方证据:估计量、样本量与时隐时现的效应」,《通勤悖论与迁居决策》给出的定量结论是什么?
结论:第二章并陈反方证据,说明检测每小时 0.20 分的效应需要 13,440 人次的组内变化。
数据口径:书中的团队、地点、租金、薪酬与概率均为示意参数;全部计算由书中程序生成;本书不是个人化的经营、法律或理财建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(19 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 13440
| z(0.975) + z(0.80) | 2.8016 |
| n SE/hour MDE/hour | |
| 2,000 | 0.1851 0.5184 |
| 5,000 | 0.1170 0.3279 |
| 20,000 | 0.0585 0.1639 |
| 103,270 | 0.0258 0.0721 |
| detect -0.20/hour: n | 13,440 (s_x 8.7 min) |
| detect -0.10/hour: n | 53,757 (s_x 8.7 min) |
| if s_x were 4.0 min: n | 254,304 for -0.10/hour |
| a null in a small panel is weak evidence of no effect |
查看完整验算程序
# Chapter 2. p22: Can a panel see the commuting effect at all? In a
# fixed-effects regression only within-person changes in the commute
# identify the slope. With within-person SD of commuting s_x (8.7 min in
# Stutzer and Frey 2008), residual within-person SD of satisfaction
# s_e (illustrative 1.2 points) and n person-waves of within variation,
# SE(beta per hour) = s_e / (s_x / 60 * sqrt(n)). We print the minimum
# detectable effect (two-sided 5 %, 80 % power) and the person-waves
# needed to detect -0.20 and -0.10 per hour. 103,270 is the size of
# Stutzer and Frey's main sample; the smaller sizes are illustrative.
# (103,270 person-waves from 25,171 people in their table 2; Clark et
# al. 2020 follow over 26,000 workers in England for six waves.)
import math
from statistics import NormalDist
SX, SE_RES = 8.7, 1.2
Z = NormalDist().inv_cdf(0.975) + NormalDist().inv_cdf(0.80)
def se_beta(n, sx=SX):
return SE_RES / (sx / 60.0 * math.sqrt(n))
def n_needed(beta, sx=SX):
return math.ceil((Z * SE_RES / (beta * sx / 60.0)) ** 2)
print("z(0.975) + z(0.80) = {:.4f}".format(Z))
print("{:>9} {:>10} {:>12}".format("n", "SE/hour", "MDE/hour"))
for n in (2000, 5000, 20000, 103270):
s = se_beta(n)
print("{:>9,} {:>10.4f} {:>12.4f}".format(n, s, Z * s))
for beta in (0.20, 0.10):
print("detect -{:.2f}/hour: n = {:,} (s_x 8.7 min)".format(
beta, n_needed(beta)))
print("if s_x were 4.0 min: n = {:,} for -0.10/hour".format(
n_needed(0.10, 4.0)))
print("a null in a small panel is weak evidence of no effect")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《通勤悖论补偿收入方程、远程工作选址与愚公移山迁居决策母典》第 2 章「反方证据:估计量、样本量与时隐时现的效应」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-204 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026204,
author = {Fan, Yafu},
title = {The Commuting Paradox, Compensating-Income Equations, Remote-Work Location Choice and the Foolish Old Man's Relocation Decision},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}