What does Reactivation, Thresholds and Flash Clearance conclude, in numbers, about “The Empirical Loop: the Regulars' Ledger and the Pricing and Closing Tool Specification”?

Answer: The regulars' ledger has four tables: exported on Monday, acted on during the week, filled in at the end of the week, tested every quarter. The distilled tool combines the formulas of p31 in Chapter 3, p41 in Chapter 4 and p62 in Chapter 6. With its illustrative defaults it says: send a coupon of RM 6 only to regulars with gap ratios between 0.85 and 11.37, set the free-shipping threshold at RM 170, price a 10-unit tail lot at RM 85 for a two-hour flash sale, and run at most 1 flash sale a month. The three pre-registered tests need 3,100 regulars, 9,588 visitors and 3,551 regulars per group respectively, and their results are recorded whether positive or negative.

Scope of the numbers: Parameters are illustrative and correspond to no real customer, order or supplier of HOMIE-X, every price in the book is illustrative, and all calculations are generated by the book's programs. This is general business analysis, not personalised business, tax or legal advice.

中文版

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: 170, 3100, 3551, 9588

z_a + z_b = 2.8016
T1 coupon holdout: delta RM 0.451, sd 6.00 / 6.67
   buyers per arm 3,100
T2 threshold 170 vs none: delta RM 0.772, sd 18.09 / 20.04
   visitors per arm 9,588
T3 flash erosion 0.30 vs 0.27: regulars per arm 3,551
T1 with a 2,000-buyer test (1,000 per arm): power 0.356
Show the full program
# Chapter 8. p82: sample sizes for the three pre-registered tests.
# Two-sided alpha 0.05, power 0.80; n per arm = (z_a + z_b)^2 (v1 + v2)
# / delta^2. Inputs come from the book's own programs (illustrative):
# T1 coupon holdout in the band (p33 cell: P_alive 0.515, anyway 0.199,
#    lift 0.120, RHO 0.01; margin RM 22, coupon RM 6): delta = the true
#    incremental margin per buyer, variances of a two-point outcome.
# T2 free-shipping threshold RM 170 against no free shipping (p41
#    model): delta and per-visitor variance by quadrature.
# T3 flash erosion: 30-day full-price repurchase among regulars 0.30
#    without flashes against 0.27 with weekly flashes (two proportions).
import math
from statistics import NormalDist

ZA = NormalDist().inv_cdf(0.975)
ZB = NormalDist().inv_cdf(0.80)
K = (ZA + ZB) ** 2


def n_arm(v1, v2, delta):
    return int(math.ceil(K * (v1 + v2) / delta ** 2))


def coupon_test():
    pa, b, u, rho, m, c = 0.515, 0.199, 0.120, 0.01, 22.0, 6.0
    pt = pa * (b + u) + (1.0 - pa) * rho
    ph = pa * b
    vt = (m - c) ** 2 * pt * (1.0 - pt)
    vh = m ** 2 * ph * (1.0 - ph)
    delta = pt * (m - c) - ph * m
    return delta, vt, vh


MED, SD, MU, MUF, S, F, ALPHA, DELTA, OVER = (
    85.0, 0.55, 0.30, 0.15, 12.0, 12.0, 0.25, 25.0, 4.0)
Z = [i / 100.0 for i in range(-600, 601)]
WZ = [math.exp(-z * z / 2.0) / math.sqrt(2.0 * math.pi) / 100.0 for z in Z]


def moments(t):
    """Mean and variance of margin per visitor under threshold t."""
    m1, m2 = [], []
    for w, z in zip(WZ, Z):
        b = MED * math.exp(SD * z)
        if b >= t:
            outs = [(1.0, MU * b - S)]
        else:
            d = t - b
            tau = math.exp(-d / DELTA)
            stay = (1.0 - tau) * (1.0 - ALPHA)
            outs = [(tau, MU * b + MUF * (d + OVER) - S),
                    (stay, MU * b + F - S), (1.0 - tau - stay, 0.0)]
        for pr, v in outs:
            m1.append(w * pr * v)
            m2.append(w * pr * v * v)
    mean = math.fsum(m1)
    return mean, math.fsum(m2) - mean * mean


if __name__ == "__main__":
    print("z_a + z_b = {:.4f}".format(ZA + ZB))
    d, vt, vh = coupon_test()
    print("T1 coupon holdout: delta RM {:.3f}, sd {:.2f} / {:.2f}".format(
        d, math.sqrt(vt), math.sqrt(vh)))
    print("   buyers per arm {:,}".format(n_arm(vt, vh, d)))
    m_t, v_t = moments(170.0)
    m_0, v_0 = moments(400.0)
    print("T2 threshold 170 vs none: delta RM {:.3f}, sd {:.2f} / {:.2f}"
          .format(m_t - m_0, math.sqrt(v_t), math.sqrt(v_0)))
    print("   visitors per arm {:,}".format(n_arm(v_t, v_0, m_t - m_0)))
    p0, p1 = 0.30, 0.27
    print("T3 flash erosion 0.30 vs 0.27: regulars per arm {:,}".format(
        n_arm(p0 * (1 - p0), p1 * (1 - p1), p0 - p1)))
    print("T1 with a 2,000-buyer test (1,000 per arm): power {:.3f}".format(
        NormalDist().cdf(d / math.sqrt((vt + vh) / 1000.0) - ZA)))

Single source and citation

Fan, Y. (2026). Repeat-Buyer Reactivation in Private-Channel Commerce, Threshold Bundle Margin Design and Flash-Clearance Dynamics (Version 1.0.0), Chapter 8: The Empirical Loop: the Regulars' Ledger and the Pricing and Closing Tool Specification. 5D Library. DOI pending

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

BibTeX
@book{fan2026353,
  author    = {Fan, Yafu},
  title     = {Repeat-Buyer Reactivation in Private-Channel Commerce, Threshold Bundle Margin Design and Flash-Clearance Dynamics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book