5D Library › 关系断裂生存分析、断联期记忆衰减与复联博弈窗口 · English

第八章 实践:一年的三种过法、测量自己,以及样本太少

一年的三种过法

p14 比较想复合的一方在分手后一年里的三种过法。复合的价值设为 10,每天在等待与期盼中度过要付 0.01 的代价,对方平均 120 天会另有新生活。

推导

# Chapter 8. p14: Three ways to spend the year after a rupture, valued
# for the person who wants to reconcile. Reconciling is worth 10;
# every day spent waiting and hoping costs 0.01 (a life on hold); the
# other person moves on with hazard 1 / 120 a day. Welcome chances come
# from the p05 model.
#   A: no contact; let go on day 0 (value 0).
#   B: one calm message on the best day of p06 (day 29); stop if not
#      welcomed.
#   C: contact 3 times a week in days 0 to 30, then one message on day
#      60 (the p05 chance), still waiting until then.
from math import exp

def welcome(d, extra=0.0):
    n, p = 1.5 * exp(-d / 17.5), exp(-d / 75)
    return 1 / (1 + exp(-6 * (p - n - extra) + 1))

if __name__ == "__main__":
    b = welcome(29) * exp(-29 / 120) * 10 - 0.01 * 29
    c = 0.017 * exp(-60 / 120) * 10 - 0.01 * 60
    print("   A  let go on day 0           value {:+.3f}".format(0.0))
    print("   B  one message on day 29      value {:+.3f}".format(b))
    print("   C  pursue, then ask day 60    value {:+.3f}".format(c))
    for cost in (0.02, 0.05):
        v = welcome(29) * exp(-29 / 120) * 10 - cost * 29
        print("   B with waiting cost {:.2f} a day: {:+.3f}".format(cost, v))
#    A  let go on day 0           value +0.000
#    B  one message on day 29      value +5.959
#    C  pursue, then ask day 60    value -0.497
#    B with waiting cost 0.02 a day: +5.669
#    B with waiting cost 0.05 a day: +4.799

立刻放下按定义值 0。在第 29 天发一条平静的消息、不被接受就停止,在模型里值 +5.959;第一个月每周联系三次、第 60 天再开口,值 -0.497,还不如放下。如果等待的代价更高,每天 0.02 或 0.05,那条单独的消息仍值 +5.669 或 +4.799。这个比较取决于 10 这个价值,它属于当事人自己,冷静地想过这段关系之后可能低得多;但第二种与第三种过法的先后顺序不取决于它。一次尊重的尝试胜过追逐。

一个人能测出自己的时间常数吗?

第二、三章的模型使用因人而异的时间常数。p15 问:一个人能否从十二周、每周一次的「有多生气」与「回忆有多温暖」的自评,估计出自己的时间常数。

推导

# Chapter 8. p15: Can a person measure their own time constants? Twelve
# weekly self-ratings of anger N follow N = 1.5 exp(-t / 17.5) with
# rating noise (sd 0.15, ratings rounded to the nearest 0.1 and floored
# at 0.05). Fit log N against t by least squares; tn = -1 / slope.
# Repeat 2,000 times. Then the same for a slow memory P with tp = 75
# observed for only 12 weeks. Seed 92.
import random
from math import exp, log

def fit(rng, a, tau, sd=0.15):
    xs, ys = [], []
    for w in range(1, 13):
        t = 7 * w
        y = a * exp(-t / tau) + rng.gauss(0, sd)
        y = max(0.05, round(y, 1))
        xs.append(t)
        ys.append(log(y))
    mx, my = sum(xs) / 12, sum(ys) / 12
    b = sum((x - mx) * (y - my) for x, y in zip(xs, ys)) / \
        sum((x - mx) ** 2 for x in xs)
    return -1 / b if b < 0 else float("inf")

if __name__ == "__main__":
    rng = random.Random(92)
    for lab, a, tau in (("tn", 1.5, 17.5), ("tp", 1.0, 75.0)):
        est = sorted(fit(rng, a, tau) for _ in range(2000))
        q = lambda p: est[int(p * (len(est) - 1))]
        print("   true {} {:5.1f}: median fit {:6.1f}; 10% {:6.1f};"
              " 90% {:6.1f}".format(lab, tau, q(0.5), q(0.1), q(0.9)))
#    true tn  17.5: median fit   29.4; 10%   24.7; 90%   39.3
#    true tp  75.0: median fit   70.9; 10%   47.3; 90%  110.8

愤怒的真实时间常数为 17.5 天时,拟合值的中位数是 29.4,范围从 24.7 到 39.3:估计偏高,因为五六周之后评分落到量表底部,不再携带信息。真实值为 75 天的慢速积极记忆,拟合的中位数是 70.9,但范围从 47.3 到 110.8。十二周的自评不足以精确知道自己的数字;它足以看出两个过程的速度不同。

几次分手能告诉人多少?

推导

# Chapter 8. p16: How much can a few break-ups teach one person? With a
# uniform prior on the chance r that a reunion of theirs lasts a year,
# k lasting reunions out of n give a Beta(k + 1, n - k + 1) posterior.
# Its 90% interval is found by simulation (40,000 draws, seed 92).
import random

def interval(rng, k, n, m=40000):
    xs = sorted(rng.betavariate(k + 1, n - k + 1) for _ in range(m))
    return xs[int(0.05 * m)], xs[int(0.5 * m)], xs[int(0.95 * m)]

if __name__ == "__main__":
    rng = random.Random(92)
    print("   lasting / reunions   5%      median   95%")
    for k, n in ((0, 1), (1, 3), (2, 3), (5, 15), (50, 150)):
        lo, md, hi = interval(rng, k, n)
        print("   {:>8} / {:<8}   {:.3f}   {:.3f}    {:.3f}".format(
            k, n, lo, md, hi))
#    lasting / reunions   5%      median   95%
#           0 / 1          0.026   0.293    0.779
#           1 / 3          0.097   0.385    0.755
#           2 / 3          0.249   0.614    0.903
#           5 / 15         0.176   0.347    0.549
#          50 / 150        0.274   0.335    0.399

在均匀先验下,一次没有维持的复合,让「这个人的复合能维持一年」的机会落在 0.026 至 0.779 之间(90%)。三次中有一次维持,范围是 0.097 至 0.755;十五次中五次,缩小到 0.176 至 0.549;只有一百五十次中五十次,一个谁也不会有的数字,才能把它定在 0.274 至 0.399 之间。一个人自己的经历太短,无法估计他的机会;它能显示的是第五章的模式:每次分手的原因是否重演。

利益披露

声明: 本书讨论分手、记忆、信号与复合的数学,不是心理咨询、治疗或感情建议,书中参数均为示意。分手后陷入困扰的人,或身处有暴力、威胁或控制的关系中的人,应寻求合格专业人员或当地支持机构的帮助。联系一个已经要求不要联系的人,不属于本书任何模型讨论的范围。

注

预先登记的检验: 第二章关于两种消退速度的假说,与第三章关于早期不受欢迎联系之代价的假说,都应在收集数据之前登记测量、样本与分析方法,结果不论正负都发表。任何这类研究都需要伦理审查,并且不得要求参与者联系前任。

小结

在模型里,愤怒消退之后的一条平静消息远比追逐值钱,而追逐还不如放下。人不能从几周的自评精确测出自己的时间常数,也不能从几段关系估计自己的机会。最可靠的指引是分手的原因及其是否改变,以及对方的回答。

Fan, Y. (2026). Relationship Rupture Survival Analysis, No-Contact Memory Decay and Reconciliation Game Windows: Negative-Affect Dissipation Rates, Dual-Process Nostalgia Peaks and Signaling Equilibria [关系断裂生存分析、断联期记忆衰减与复联博弈窗口] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090241 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).