What does Launch Ad Pulses and Word of Mouth conclude, in numbers, about “The Empirical Loop: Scheduling the First-Week Pulse, Judging the Switch Day and a Pre-Registered Test”?
Answer: Chapter 8 gives the first-week pulse schedule, the switch-day judgement, the Launch Ad-Pulse Switch-Day Calculator and a pre-registered protocol (simulated power 0.840 with 20 units per arm). Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.
Scope of the numbers: Chapter 8 gives the first-week pulse schedule, the switch-day judgement, the Launch Ad-Pulse Switch-Day Calculator and a pre-registered protocol (simulated power 0.840 with 20 units per arm). Marked boxes separate published evidence, runnable Python calculations (20 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: 0.840, 20
| pilot: mean gain 0.1007 of margin per buyer, pooled sd 0.1115 | |
| standardized effect d | 0.903 |
| units per arm for 80 % power, two-sided 5 % | 20 |
| simulated power with 20 per arm | 0.840 |
| simulated power with 40 per arm | 0.981 |
Show the full program
# Chapter 8. p83: How many launches does a fair test need?
# Units are separate launches or separate regional markets, randomized
# to a front pulse or to an even spread of the same budget. Each unit
# draws its own market size (lognormal, sd 0.3 on the log scale around
# 20000), q ~ U(0.05, 0.11), beta ~ U(2e-6, 6e-6), p = 0.001; budget
# 1.5 yuan and daily cap 0.25 yuan per potential buyer. The outcome is
# 60-day profit per potential buyer divided by the margin, plus
# measurement noise with sd 0.03 (all illustrative). Sample size from
# the normal approximation, then checked by simulation (fixed seed).
import math
import random
import statistics
MARGIN, P, T = 30.0, 0.001, 60
rng = random.Random(20261113)
Z = statistics.NormalDist()
def outcome(front):
m = 20000 * math.exp(rng.gauss(0, 0.3))
q = rng.uniform(0.05, 0.11)
b = rng.uniform(2e-6, 6e-6)
cap, budget = 0.25 * m, 1.5 * m
n = int(budget // cap)
us = [cap] * n + [0.0] * (T - n) if front else [budget / T] * T
x, cash = 0.0, []
for u in us:
x2 = x + (P + b * u * 20000 / m + q * x) * (1 - x)
cash.append(MARGIN * m * (x2 - x) - u)
x = x2
return math.fsum(cash) / (MARGIN * m) + rng.gauss(0, 0.03)
pilot_f = [outcome(True) for _ in range(2000)]
pilot_e = [outcome(False) for _ in range(2000)]
diff = statistics.fmean(pilot_f) - statistics.fmean(pilot_e)
sd = math.sqrt((statistics.variance(pilot_f)
+ statistics.variance(pilot_e)) / 2)
d = diff / sd
za, zb = Z.inv_cdf(0.975), Z.inv_cdf(0.80)
n = math.ceil(2 * (za + zb) ** 2 / d ** 2)
print("pilot: mean gain %.4f of margin per buyer, pooled sd %.4f"
% (diff, sd))
print("standardized effect d = %.3f" % d)
print("units per arm for 80 %% power, two-sided 5 %%: %d" % n)
for k in (n, 2 * n):
hits = 0
for _ in range(1000):
f = [outcome(True) for _ in range(k)]
e = [outcome(False) for _ in range(k)]
se = math.sqrt(statistics.variance(f) / k
+ statistics.variance(e) / k)
if (statistics.fmean(f) - statistics.fmean(e)) / se > za:
hits += 1
print("simulated power with %d per arm: %.3f" % (k, hits / 1000))Single source and citation
Fan, Y. (2026). Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth (Version 1.0.0), Chapter 8: The Empirical Loop: Scheduling the First-Week Pulse, Judging the Switch Day and a Pre-Registered Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-241 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026241,
author = {Fan, Yafu},
title = {Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Why Even Spending Loses: Equal Budgets on a Bass Curve
- Chapter 2 · Pricing Every Yuan: the Hamiltonian, the Co-State and the Switching Function
- Chapter 3 · Reasoning Back from the Last Day: Bellman's Induction, a Grid Check and a Hard Budget
- Chapter 4 · The Response Curve Sets the Shape: a Concave Glide, S-Shaped Pulses and a Multiplicative Counterexample
- Chapter 5 · Word of Mouth Takes the Baton: Splitting Buyers by Source, the Sensitivity of the Switch Day and Robustness under Uncertainty
- Chapter 6 · Burn Rate and Real Capacity: Daily Caps, the Impulse Limit and Orders That Cannot Be Filled
- Chapter 7 · Classical Sources East and West: the Sunzi on Momentum and Bernoulli's Brachistochrone