What does Survival Analysis for Livestream Retention conclude, in numbers, about “A Model of What a Hook Does: the Window, the Aftermath and Who Stays”?

Answer: Chapter 5 models what a hook does: a window covering the spike gains 693.4 audience-minutes, only 40.4 when kept viewers take and go, and those a hook keeps stay only 0.68 as long as those who would have stayed anyway.

Scope of the numbers: Its rooms, audiences, hazard parameters, hook effects and run sheets are illustrative; all calculations are generated by its programs; the book is not individual business advice. Marked boxes separate published evidence, runnable Python calculations (18 programs), classical sources and the author's hypotheses.

中文版

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: 40.4, 693.4

no hook: 15493.7 audience-minutes, 29.6 of 1000 left at the end
hook start | gain in audience-minutes(switch at 900 s)
(s)|pi=0pi=0.5pi=1
780|141.674.27.5
810|136.671.67.3
840|131.769.07.0
870|693.4349.224.0
900|688.9355.540.4
930|118.861.95.6
960|115.059.95.4
990|111.458.15.3
quiet 1500 |63.933.33.1
best start: pi=0 at 870 spi=0.5 at 900 spi=1 at 900 s
Show the full program
# Chapter 5. p51: where to put one hook around one switch spike.
# Exact audience curve of a closed group of 1000 settled viewers on the
# programme clock (1-second grid). Hazard per second: the two levels of
# M1 in p41 (rest 0.00072, switch windows 0.0069 for 30 s at each run-
# sheet switch). A hook is a real, pre-announced segment: for W = 60 s
# from its start the hazard is multiplied by 1 - rho (rho = 0.5, an
# illustrative effect, not a measured one); for E = 30 s after it ends,
# extra hazard returns pi * (hazard removed in the window), spread
# evenly: pi = 0 no exodus, pi = 1 everyone kept walks out right after.
import math

T_END = 3600
SWITCH = [180, 900, 1260, 1980, 2700]   # 环节切换秒数(示意)
SPIKE_LEN = 30
REST, SPIKE = 0.00072, 0.0069            # p41 的两档估计(示意数据)
W, E, RHO = 60, 30, 0.5                  # 钩子窗口、余波、风险降幅(示意)


def base_hazard():
    h = [REST] * T_END
    for s in SWITCH:
        for t in range(s, s + SPIKE_LEN):
            h[t] = SPIKE
    return h


def with_hooks(h, starts, pi):
    g = list(h)
    for a in starts:
        removed = math.fsum(RHO * h[t] for t in range(a, min(a + W,
                                                           T_END)))
        for t in range(a, min(a + W, T_END)):
            g[t] = h[t] * (1.0 - RHO)
        for t in range(a + W, min(a + W + E, T_END)):
            g[t] = g[t] + pi * removed / E
    return g


def audience_minutes(g, n0=1000.0):
    # 每秒风险常数:该秒内在场人秒 = N (1 - exp(-g)) / g
    n, parts = n0, []
    for x in g:
        parts.append(n * (1.0 - math.exp(-x)) / x)
        n *= math.exp(-x)
    return math.fsum(parts) / 60.0, n


h = base_hazard()
base, end_n = audience_minutes(h)
print("no hook: %.1f audience-minutes, %.1f of 1000 left at the end"
      % (base, end_n))
print("hook start | gain in audience-minutes   (switch at 900 s)")
print("  (s)      |  pi=0    pi=0.5   pi=1")
best = {}
for a in range(780, 991, 30):
    row = []
    for pi in (0.0, 0.5, 1.0):
        gain = audience_minutes(with_hooks(h, [a], pi))[0] - base
        row.append(gain)
        if pi not in best or gain > best[pi][0]:
            best[pi] = (gain, a)
    print("%8d   | %6.1f  %6.1f  %6.1f" % (a, row[0], row[1], row[2]))
quiet = [audience_minutes(with_hooks(h, [1500], pi))[0] - base
         for pi in (0.0, 0.5, 1.0)]
print("quiet 1500 | %6.1f  %6.1f  %6.1f" % tuple(quiet))
print("best start: " + "  ".join(
    "pi=%g at %d s" % (pi, best[pi][1]) for pi in (0.0, 0.5, 1.0)))

Single source and citation

Fan, Y. (2026). Kaplan-Meier Retention Curves for Livestream Rooms: Locating Swipe-Away Hazard Spikes and Timing the Insertion of Hooks (Version 1.0.0), Chapter 5: A Model of What a Hook Does: the Window, the Aftermath and Who Stays. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-277 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026277,
  author    = {Fan, Yafu},
  title     = {Kaplan-Meier Retention Curves for Livestream Rooms: Locating Swipe-Away Hazard Spikes and Timing the Insertion of Hooks},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book