What does Mental Simulation versus Enactment conclude, in numbers, about “Prediction Error: Why Mental Simulation Is Never Corrected Downwards”?
Answer: Chapter 1 uses learning rules to show that a fully predictable imagining stops producing positive errors once learned; the real problem is the absence of negative errors, so an illustrative estimate driven by simulation ends 0.600 above the truth and is never corrected.
Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; it is not psychological, clinical or relationship counselling, and not personalised business advice. Chapter 4 audits the oxytocin evidence: typical samples have a power of about 0.165, and significant results overstate effects by a factor of 2.62 on average, so "behaviour triggers oxytocin bonding" stands only as a falsifiable hypothesis.
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: 0.600
| A. value estimate V after t trials (alpha 0.15, V0 0.70, p_true 0.40) | |
| trial real R sim S echo B | |
| 0 | 0.700 0.700 0.700 |
| 5 | 0.666 0.867 0.722 |
| 10 | 0.538 0.941 0.745 |
| 20 | 0.466 0.988 0.790 |
| 40 | 0.372 1.000 0.880 |
| 80 | 0.507 1.000 0.999 |
| B. negative prediction errors in 80 trials | |
| real R negative 48 mean delta 1-10 -0.1081 | 71-80 +0.0906 |
| sim S negative | 0 mean delta 1-10 +0.1606 71-80 +0.0000 |
| echo B negative | 0 mean delta 1-10 +0.0300 71-80 +0.0032 |
| C. final gap sim S minus truth +0.600; real R error +0.107 |
Show the full program
# Chapter 1. p11: Rescorla-Wagner value tracks, real feedback vs simulation.
# Model: V <- V + alpha * (r - V), delta = r - V is the prediction error.
# Track R (real): outcomes r are drawn from Bernoulli(p_true) with a fixed
# seed, so the estimate meets negative errors whenever r = 0.
# Track S (simulated): the imagined outcome is the wished outcome r = 1
# on every trial; nothing in the stream can ever fall short of it.
# Track B (biased echo): the imagined outcome is the current estimate
# plus a small optimistic bias b, capped at 1.
# All parameters are illustrative (alpha 0.15, p_true 0.40, V0 0.70).
import math
import random
ALPHA = 0.15
P_TRUE = 0.40
V0 = 0.70
BIAS = 0.03
TRIALS = 80
def run_real(rng):
v, vs, ds = V0, [V0], []
for _ in range(TRIALS):
r = 1.0 if rng.random() < P_TRUE else 0.0
d = r - v
v += ALPHA * d
vs.append(v)
ds.append(d)
return vs, ds
def run_sim(echo):
v, vs, ds = V0, [V0], []
for _ in range(TRIALS):
r = min(1.0, v + BIAS) if echo else 1.0
d = r - v
v += ALPHA * d
vs.append(v)
ds.append(d)
return vs, ds
def main():
rng = random.Random(43011)
vr, dr = run_real(rng)
vs, ds = run_sim(False)
vb, db = run_sim(True)
print("A. value estimate V after t trials (alpha {:.2f}, V0 {:.2f},"
" p_true {:.2f})".format(ALPHA, V0, P_TRUE))
print(" trial real R sim S echo B")
for t in (0, 5, 10, 20, 40, 80):
print(" {:>5} {:.3f} {:.3f} {:.3f}".format(
t, vr[t], vs[t], vb[t]))
print("B. negative prediction errors in {} trials".format(TRIALS))
for name, ds_ in (("real R", dr), ("sim S", ds), ("echo B", db)):
neg = 0
for d in ds_:
if d < 0:
neg += 1
early = math.fsum(ds_[:10]) / 10
late = math.fsum(ds_[70:]) / 10
print(" {:<7} negative {:>2} mean delta 1-10 {:+.4f}"
" 71-80 {:+.4f}".format(name, neg, early, late))
gap = vs[TRIALS] - P_TRUE
print("C. final gap sim S minus truth {:+.3f}; real R error {:+.3f}"
.format(gap, vr[TRIALS] - P_TRUE))
if __name__ == "__main__":
main()Single source and citation
Fan, Y. (2026). Mental Simulation versus Behavioural Enactment in Intimacy: Dopaminergic Fantasy Loops, Oxytocin Bonding Costs and Commitment Asymmetries (Version 1.0.0), Chapter 1: Prediction Error: Why Mental Simulation Is Never Corrected Downwards. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-430 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026430,
author = {Fan, Yafu},
title = {Mental Simulation versus Behavioural Enactment in Intimacy: Dopaminergic Fantasy Loops, Oxytocin Bonding Costs and Commitment Asymmetries},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · Wanting and Liking: Why Two Channels Can Come Apart
- Chapter 3 · The Cost of Positive Fantasy and the Exit through Implementation Intentions
- Chapter 4 · Oxytocin Bonding: How Strong Is the Chain of Evidence?
- Chapter 5 · Reputation and Commitment: What One Observable Broken Promise Costs
- Chapter 6 · Sex Differences in Jealousy: Effect Sizes, Overlap and Measurement
- Chapter 7 · Eastern and Western Classical Sources: Knowing and Doing, Within and Without, the Thought in the Heart
- Chapter 8 · Closing the Loop: Field Tools and Checker Specifications