What does Attribution, Bandits and Customer Lifetime Value conclude, in numbers, about “Diffusion and Spend: the Bass Model, the Dorfman–Steiner Condition and Whole-Life Budgets”?

Answer: The Bass equation \(dF/dt = (p+qF)(1-F)\) checks out, with peak time \(\ln(q/p)/(p+q)\); before the peak, market size and the imitation coefficient are hard to separate, and early forecasts can be off by a factor of two or more. The Dorfman–Steiner condition (advertising/sales = advertising elasticity/price elasticity) checks out, but it is a static condition and cannot by itself give a whole-life allocation. The author's whole-life model shows that with concave response and word-of-mouth diffusion the optimal spend is front-loaded and earns 8.3 % more than even spending of the same budget, while a fixed share of sales does worst of the three policies with that budget (though still better than no advertising); under the concave response pulsing is always worse than even spending, and under the example's S-shaped response pulsing helps only at relatively low monthly budgets (up to 30 thousand in this example), with a switch that does not coincide with the inflection point.

Scope of the numbers: Which advertising channel should a sale be credited to? When may an A/B test stop? What is a customer still worth? This book presents mathematical models for teaching and research and is not marketing, investment or legal advice. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; all data in the book are fictional or simulated.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only

A. Bass p 0.01, q 0.4, market 100,000: peak adoption at month 9.00,
F(peak) 0.4875 (formula 1/2 - p/(2q) = 0.4875); sales with 15 % noise
fitted onpqmarket Mpeak month
(truth)0.01000.400100,0009.00
months 1-60.01650.43366,3597.27
months 1-90.00670.294219,28612.58
months 1-120.01220.39096,0038.62
months 1-360.01260.364102,2858.93
B. Dorfman-Steiner: Q = k P^-eta A^beta, unit cost c = 10, k = 1e6
etabetaoptimal A/(PQ) by searchbeta/etaoptimal price
2.00.100.04970.050020.00 (eta/(eta-1) c = 20.00)
3.00.100.03330.033315.00 (eta/(eta-1) c = 15.00)
2.00.250.12400.125020.00 (eta/(eta-1) c = 20.00)

Key formula

\[\frac{dF}{dt} = (p + qF)(1 - F).\]
Show the full program
# A: Bass (1969) diffusion dF/dt = (p + qF)(1 - F): closed form, peak time
#    ln(q/p)/(p+q) and F at the peak (1/2 - p/(2q)); p, q and market size M refitted
#    by least squares to a FICTIONAL noisy monthly series, before and after the peak.
# B: Dorfman-Steiner (1954). With demand Q = k P^(-eta) A^beta and unit cost c, profit
#    (P - c)Q - A is maximised at A/(PQ) = beta/eta (advertising elasticity over price
#    elasticity); checked by a direct numerical search. The rule is STATIC: it says
#    nothing about how to spread spend over a product's life (see p12).
import math, random

def bass_F(t, p, q):
    e = math.exp(-(p + q) * t)
    return (1 - e) / (1 + q / p * e)

def fit(sales):
    """Least squares over p, q (grid, then local search); the market size M enters
    linearly, so for each (p, q) it is profiled out in closed form."""
    def sse(pq):
        g = [bass_F(t + 1, *pq) - bass_F(t, *pq) for t in range(len(sales))]
        M = sum(a * b for a, b in zip(g, sales)) / sum(a * a for a in g)
        return sum((M * a - b) ** 2 for a, b in zip(g, sales)), M
    best = min(((sse((i / 2000, j / 100))[0], (i / 2000, j / 100))
                for i in range(1, 60) for j in range(1, 150)))
    (p, q), step = best[1], 0.0005
    for _ in range(60):
        cand = [(max(p + dp, 1e-5), max(q + dq, 1e-4)) for dp in (-step, 0, step)
                for dq in (-10 * step, 0, 10 * step)]
        p, q = min(cand, key=lambda pq: sse(pq)[0]); step *= 0.8
    return p, q, sse((p, q))[1]

if __name__ == "__main__":
    p, q, M = 0.01, 0.40, 100_000
    tp = math.log(q / p) / (p + q)
    print(f"A. Bass p {p}, q {q}, market {M:,}: peak adoption at month {tp:.2f},")
    fp = 0.5 - p / (2 * q)
    print(f"   F(peak) {bass_F(tp, p, q):.4f} (formula 1/2 - p/(2q) = {fp:.4f});"
          f" sales with 15 % noise")
    rng = random.Random(1969)
    sales = [max(0.0, M * (bass_F(t + 1, p, q) - bass_F(t, p, q))
                 * (1 + rng.gauss(0, 0.15))) for t in range(36)]
    print("   fitted on        p        q      market M   peak month")
    print(f"   (truth)       {p:.4f}   {q:.3f}   {M:9,.0f}      {tp:5.2f}")
    for n in (6, 9, 12, 36):
        pp, qq, MM = fit(sales[:n])
        print(f"   months 1-{n:<3d}   {pp:.4f}   {qq:.3f}   {MM:9,.0f}"
              f"      {math.log(qq / pp) / (pp + qq):5.2f}")
    print("B. Dorfman-Steiner: Q = k P^-eta A^beta, unit cost c = 10, k = 1e6")
    print("   eta   beta   optimal A/(PQ) by search   beta/eta   optimal price")
    for eta, beta in ((2.0, 0.10), (3.0, 0.10), (2.0, 0.25)):
        k, c = 1e6, 10.0
        prof = lambda P, A: (P - c) * k * P ** -eta * A ** beta - A
        best = max(((prof(P, A), P, A) for P in [10 + 0.05 * i for i in range(1, 600)]
                    for A in [10 * 1.03 ** j for j in range(500)]))
        _, P, A = best; R = P * k * P ** -eta * A ** beta
        print(f"   {eta:3.1f}   {beta:4.2f}          {A / R:6.4f}"
              f"               {beta / eta:6.4f}"
              f"     {P:6.2f} (eta/(eta-1) c = {eta / (eta - 1) * c:.2f})")

Single source and citation

Fan, Y. (2026). Algorithmic Marketing, Multi-Touch Shapley Attribution and Stochastic Control of Acquisition Funnels (Version 1.0.0), Chapter 6: Diffusion and Spend: the Bass Model, the Dorfman–Steiner Condition and Whole-Life Budgets. 5D Library. https://doi.org/10.5281/zenodo.23836264

DOI: 10.5281/zenodo.23836264 · Read the monograph · 5DL-B-048 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026048,
  author    = {Fan, Yafu},
  title     = {Algorithmic Marketing, Multi-Touch Shapley Attribution and Stochastic Control of Acquisition Funnels},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23836264},
  url       = {https://doi.org/10.5281/zenodo.23836264}
}

Other chapter answers in this book