What does Reactivation, Thresholds and Flash Clearance conclude, in numbers, about “Clearing Tail Stock: Finite-Horizon Pricing, Two-Hour Pulses and Regulars Who Wait”?
Answer: The price path for clearing tail stock depends on the units left and the time left: the fewer the units and the more the time, the higher the price. When stock is plentiful relative to the flow of buyers, a fixed price is already close to optimal, and even at the last moment the lot should not be dumped at a floor price. Under illustrative parameters a two-hour pulse sells 9.21 units and a half-hour pulse only 4.79: when the window is too short, too few people see it. When flash sales come too often, regulars learn to wait and full-price repurchases are eroded; if they learn quickly, one sale a month is the most a shop should run.
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: 4.79, 9.21
| price RM 60 | ||||
| hours | demand mean | P(sell out) | units sold | revenue RM |
| 0.5 | 4.80 | 0.025 | 4.79 | 328.93 |
| 1.0 | 7.82 | 0.261 | 7.44 | 466.99 |
| 2.0 | 11.20 | 0.681 | 9.21 | 559.11 |
| 4.0 | 13.76 | 0.879 | 9.75 | 586.82 |
| 8.0 | 14.65 | 0.918 | 9.84 | 591.49 |
| 2-hour window, by price | ||||
| price | demand mean | P(sell out) | units sold | revenue RM |
| 40 | 15.63 | 0.948 | 9.90 | 396.85 |
| 50 | 13.23 | 0.849 | 9.68 | 486.39 |
| 60 | 11.20 | 0.681 | 9.21 | 559.11 |
| 70 | 9.48 | 0.476 | 8.50 | 606.70 |
| 80 | 8.03 | 0.287 | 7.59 | 626.74 |
| revenue-best 2-hour price RM 85 (627.55) |
Show the full program
# Chapter 6. p62: a pulse flash sale of a real tail lot, by window length.
# A lot of 10 units, announced to a consenting group. Viewers in a
# window of h hours: Poisson with mean V(h) = 40 (1 - exp(-h / 1.5))
# (attention saturates). A viewer buys one unit at price p with chance
# exp(-p / 60) * (1 + 0.25 exp(-h)): a short, true deadline adds at most
# a quarter to conversion. Units sold = min(10, Poisson demand); unsold
# units go to the clearance channel at RM 8. Exact Poisson sums, no
# simulation. All parameters illustrative.
import math
LOT, VMAX, TAU, THETA, SALV = 10, 40.0, 1.5, 60.0, 8.0
def pois_pmf(k, mu):
return math.exp(-mu + k * math.log(mu) - math.lgamma(k + 1.0))
def flash(h, p, lot=LOT):
mu = VMAX * (1.0 - math.exp(-h / TAU)) * math.exp(-p / THETA) \
* (1.0 + 0.25 * math.exp(-h))
below = [pois_pmf(k, mu) for k in range(lot)]
p_out = 1.0 - math.fsum(below)
sold = math.fsum([k * below[k] for k in range(lot)]) + lot * p_out
rev = p * sold + SALV * (lot - sold)
return mu, p_out, sold, rev
if __name__ == "__main__":
print("price RM 60")
print("hours demand mean P(sell out) units sold revenue RM")
for h in (0.5, 1.0, 2.0, 4.0, 8.0):
mu, po, s, r = flash(h, 60.0)
print("{:>5} {:6.2f} {:.3f} {:5.2f} {:7.2f}"
.format(h, mu, po, s, r))
print("2-hour window, by price")
print("price demand mean P(sell out) units sold revenue RM")
for p in (40.0, 50.0, 60.0, 70.0, 80.0):
mu, po, s, r = flash(2.0, p)
print("{:>5.0f} {:6.2f} {:.3f} {:5.2f} {:7.2f}"
.format(p, mu, po, s, r))
best = max(range(20, 121, 5), key=lambda p: flash(2.0, float(p))[3])
print("revenue-best 2-hour price RM {} ({:.2f})".format(
best, flash(2.0, float(best))[3]))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 6: Clearing Tail Stock: Finite-Horizon Pricing, Two-Hour Pulses and Regulars Who Wait. 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
- Chapter 1 · Survival Curves of Purchase Gaps: Censoring, Kaplan–Meier and the Misreading of Dormancy
- Chapter 2 · Buy-Till-You-Die: the Probability of Being Alive and Next Quarter's Expected Orders
- Chapter 3 · The Incremental Ledger of a Reactivation Coupon: Survival, Leakage to Sure Returners and the Coupon Band
- Chapter 4 · Free-Shipping Thresholds: Piecewise Expected Margin and the Revenue Trap
- Chapter 5 · Margin Design of Spend-and-Save Ladders: Where the Savings Leak
- Chapter 7 · Ji Ran and Dupuit: the Reversal of Dear and Cheap and Tiered Tolls in the Classical Sources
- Chapter 8 · The Empirical Loop: the Regulars' Ledger and the Pricing and Closing Tool Specification