What does The Shrinking Marshmallow Effect conclude, in numbers, about “Rational Snacking: Not Waiting under a Prior on Environmental Reliability”?
Answer: Chapter 2 recomputes the "rational snacking" experiment of Kidd and colleagues, where mean waits differ by a ratio of 3.98, and shows that in a world where waiting has no causal effect, rational not-waiting alone produces an uncontrolled slope of 0.208.
Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book is not a psychological assessment or medical or parenting advice, and its suggestions for shops and communities are non-personalised business advice. Marked boxes separate published evidence, the author's hypotheses, classical sources and runnable Python calculations (18 programs).
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: 3.98
| mean wait reliable / unreliable: 722.43 s / 181.57 s | |
| ratio of mean waits | : 3.98 |
| full 15 min, reliable : 9/14 = 0.643 CI [0.388, 0.837] | |
| full 15 min, unreliable: 1/14 = 0.071 | CI [0.013, 0.315] |
| risk difference | : 0.571 |
| risk ratio | : 9.0 |
| odds ratio (+0.5 each cell) | : 15.5 |
| Fisher exact p, two-sided | : 0.0044 |
Show the full program
# Chapter 2. p21: the size of the "rational snacking" effect
# 数据(出处):Kidd, Palmeri & Aslin (2013),每组 14 名儿童;可靠组平均
# 等待 722.43 秒,不可靠组 181.57 秒;等满 15 分钟者 9/14 对 1/14。
# 计算:均值比、风险差与风险比、Wilson 95% 区间、Fisher 精确检验(双侧,
# 超几何枚举)、加 0.5 校正的比值比。全部为对公开数字的精确再计算。
import math
N = 14
MEAN_REL, MEAN_UNREL = 722.43, 181.57
FULL_REL, FULL_UNREL = 9, 1
Z95 = 1.959964
def wilson(k, n):
p = k / n
den = 1 + Z95 ** 2 / n
mid = (p + Z95 ** 2 / (2 * n)) / den
half = Z95 * math.sqrt(p * (1 - p) / n + Z95 ** 2 / (4 * n * n)) / den
return mid - half, mid + half
def fisher_two_sided(a, b, c, d):
r1, c1, n = a + b, a + c, a + b + c + d
def prob(x):
return math.comb(c1, x) * math.comb(n - c1, r1 - x) / math.comb(
n, r1)
p0 = prob(a)
lo, hi = max(0, r1 + c1 - n), min(r1, c1)
ps = [prob(x) for x in range(lo, hi + 1)]
return math.fsum(p for p in ps if p <= p0 * (1 + 1e-9))
def main():
print("mean wait reliable / unreliable: {:.2f} s / {:.2f} s".format(
MEAN_REL, MEAN_UNREL))
print("ratio of mean waits : {:.2f}".format(
MEAN_REL / MEAN_UNREL))
p1, p0 = FULL_REL / N, FULL_UNREL / N
for lab, k in (("reliable", FULL_REL), ("unreliable", FULL_UNREL)):
lo, hi = wilson(k, N)
print("full 15 min, {:<10}: {}/{} = {:.3f} CI [{:.3f}, {:.3f}]"
.format(lab, k, N, k / N, lo, hi))
print("risk difference : {:.3f}".format(p1 - p0))
print("risk ratio : {:.1f}".format(p1 / p0))
a, b = FULL_REL, N - FULL_REL
c, d = FULL_UNREL, N - FULL_UNREL
orr = (a + 0.5) * (d + 0.5) / ((b + 0.5) * (c + 0.5))
print("odds ratio (+0.5 each cell) : {:.1f}".format(orr))
print("Fisher exact p, two-sided : {:.4f}".format(
fisher_two_sided(a, b, c, d)))
if __name__ == "__main__":
main()Single source and citation
Fan, Y. (2026). The Shrinking Marshmallow Effect, Family-Resource Confounding and the Limits of Child Self-Control Interventions (Version 1.0.0), Chapter 2: Rational Snacking: Not Waiting under a Prior on Environmental Reliability. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-203 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026203,
author = {Fan, Yafu},
title = {The Shrinking Marshmallow Effect, Family-Resource Confounding and the Limits of Child Self-Control Interventions},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Two Thirds Gone: the Marshmallow Coefficient Meets Family Background
- Chapter 3 · How Long Is It Rational to Persist? Waiting-Time Distributions and the Optimal Give-Up Point
- Chapter 4 · Why the Coefficient Shrinks: Omitted Variables, Measurement Error and Bad Controls
- Chapter 5 · The Twenty-Second Threshold: Category Coefficients, Single-Trial Reliability and the Seven-Minute Ceiling
- Chapter 6 · The Ceiling on Intervention: Fadeout, an Optimistic Upper Bound and Two Levers
- Chapter 7 · Classics East and West: the Father's Fault in the Three Character Classic and Locke on Self-Denial
- Chapter 8 · Closing the Loop: the Toll-Booth Scenario Capsule, the Family Promise Ledger and Pre-Registration