What does Reactivation, Thresholds and Flash Clearance conclude, in numbers, about “Ji Ran and Dupuit: the Reversal of Dear and Cheap and Tiered Tolls in the Classical Sources”?

Answer: Chapter 7 examines Ji Ran's reversal of dear and cheap in the Shiji and Dupuit's tiered bridge tolls of 1844.

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 only

PHI 0.90: half-life of a premium 6.58 weeks
  sell-dear 1.0326  plain 1.0140  edge +0.0186 (se 0.0015)
PHI 1.00: no half-life (random walk)
  sell-dear 1.0297  plain 1.0346  edge -0.0049 (se 0.0022)
C. OLS estimate of PHI from 52 weekly points (1,000 runs)
  true 0.90: mean 0.867, 5th 0.719, 95th 0.961
  true 1.00: mean 0.968, 5th 0.848, 95th 1.025
Show the full program
# Chapter 7. p71: Ji Ran's "dear at the top turns cheap" as a testable
# mean-reversion claim. The resale premium x_t of a hot item (log scale)
# follows x_t = PHI x_{t-1} + 0.10 e_t weekly. PHI = 0.90 is reversion,
# PHI = 1.00 a random walk (no reversion). A lot of 12 units over 26
# weeks. Rule "sell dear like dung": sell 4 units in any week with
# x_t > +0.15, otherwise 1 a week; plain rule: 1 unit a week, the rest in
# week 26. Score: mean realised exp(x) per unit. 2,000 paths per world,
# seed 20261120. Part C: OLS estimate of PHI from 52 weekly points.
import math
import random
import statistics

rng = random.Random(20261120)
LOT, WEEKS, SIG, HOT = 12, 26, 0.10, 0.15


def path(phi, n):
    x, out = 0.0, []
    for _ in range(n):
        x = phi * x + SIG * rng.gauss(0.0, 1.0)
        out.append(x)
    return out


def realise(xs, rule):
    left, got = LOT, []
    for t, x in enumerate(xs):
        if left == 0:
            break
        k = 1
        if rule == "dear" and x > HOT:
            k = 4
        if t == len(xs) - 1:
            k = left
        k = min(k, left)
        got.extend([math.exp(x)] * k)
        left -= k
    return math.fsum(got) / len(got)


if __name__ == "__main__":
    for phi in (0.90, 1.00):
        if phi < 1.0:
            hl = math.log(0.5) / math.log(phi)
            print("PHI {:.2f}: half-life of a premium {:.2f} weeks".format(
                phi, hl))
        else:
            print("PHI 1.00: no half-life (random walk)")
        dear, plain = [], []
        for _ in range(2000):
            xs = path(phi, WEEKS)
            dear.append(realise(xs, "dear"))
            plain.append(realise(xs, "plain"))
        diff = [a - b for a, b in zip(dear, plain)]
        print("  sell-dear {:.4f}  plain {:.4f}  edge {:+.4f} (se {:.4f})"
              .format(statistics.fmean(dear), statistics.fmean(plain),
                      statistics.fmean(diff),
                      statistics.stdev(diff) / math.sqrt(len(diff))))
    print("C. OLS estimate of PHI from 52 weekly points (1,000 runs)")
    for phi in (0.90, 1.00):
        est = []
        for _ in range(1000):
            xs = path(phi, 53)
            num = math.fsum(a * b for a, b in zip(xs[:-1], xs[1:]))
            den = math.fsum(a * a for a in xs[:-1])
            est.append(num / den)
        est.sort()
        print("  true {:.2f}: mean {:.3f}, 5th {:.3f}, 95th {:.3f}".format(
            phi, statistics.fmean(est), est[49], est[949]))

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 7: Ji Ran and Dupuit: the Reversal of Dear and Cheap and Tiered Tolls in the Classical Sources. 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