What does Critical Fractiles for Pre-Season Buying conclude, in numbers, about “Classical Sources Examined: Bai Gui's "Take What Others Discard" and Cantillon's "Buy at a Certain Price, Sell at an Uncertain One"”?
Answer: Chapter 7 examines Bai Gui's "what others cast off I take up" in the Records of the Grand Historian and Cantillon's account of the undertaker's risk in his Essai; the model shows that when free entry stops, the marginal shop loses money in a season with probability 0.4385.
Scope of the numbers: Its goods, stores and demand parameters are illustrative; all calculations are generated by its programs; the book is not individual business advice. Chapter 1 derives the critical fractile from marginal arithmetic; under illustrative parameters the optimal order equals the mean only at a margin of exactly 0.3750, and ordering the mean for an eight-tenths-margin item loses 6.96 % of expected profit.
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.4385
| shops | q/shop | E[profit]/shop | sd | P(loss) | street profit |
|---|---|---|---|---|---|
| 1 | 730.5 | 24815.3 | 14186 | 0.0592 | 24815.3 |
| 2 | 365.3 | 10385.9 | 7068 | 0.0964 | 20771.8 |
| 3 | 242.9 | 5574.4 | 4706 | 0.1491 | 16723.3 |
| 4 | 182.2 | 3179.8 | 3527 | 0.2097 | 12719.3 |
| 5 | 145.6 | 1744.0 | 2824 | 0.2813 | 8720.0 |
| 6 | 121.5 | 784.6 | 2350 | 0.3621 | 4707.8 |
| 7 | 104.4 | 115.9 | 2019 | 0.4385 | 811.6 |
| 8 | 91.0 | -416.7 | 1766 | 0.5222 | -3333.4 |
Show the full program
# Chapter 7. p72: Cantillon's undertakers - free entry of newsvendors.
# A street's season demand D ~ Normal(600, 180). With n shops each gets
# D / n times an idiosyncratic factor with mean 1 and sd 0.25; the
# shop's demand distribution is simulated, not assumed normal.
# Each shop buys its own newsvendor quantity (price 100, cost 40,
# outlet 15, CF 0.7059) and pays a fixed season cost of 4000.
# Expected shop profit and the share of shop-seasons that lose money
# are estimated from 40000 fixed-seed seasons. Values illustrative.
import math
import random
from statistics import NormalDist, fmean, stdev
Z = NormalDist()
P, C, V, F, REPS = 100.0, 40.0, 15.0, 4000.0, 40000
CF = (P - C) / (P - V)
print("shops q/shop E[profit]/shop sd P(loss) street profit")
for n in range(1, 9):
rng = random.Random(20261112 + n)
draws = []
for _ in range(REPS):
d = max(0.0, rng.gauss(600.0, 180.0))
draws.append(max(0.0, d / n * rng.gauss(1.0, 0.25)))
mu, sd = fmean(draws), stdev(draws)
q = mu + sd * Z.inv_cdf(CF)
prof = [P * min(q, x) + V * (q - min(q, x)) - C * q - F for x in draws]
ep = math.fsum(prof) / REPS
loss = len([x for x in prof if x < 0.0]) / REPS
print("{:5d} {:6.1f} {:14.1f} {:5.0f} {:.4f} {:13.1f}".format(
n, q, ep, stdev(prof), loss, ep * n))Single source and citation
Fan, Y. (2026). Newsvendor Critical Fractiles for Pre-Season Buying, Dirichlet Size-Curve Priors and Dynamic-Programming End-of-Season Markdowns (Version 1.0.0), Chapter 7: Classical Sources Examined: Bai Gui's "Take What Others Discard" and Cantillon's "Buy at a Certain Price, Sell at an Uncertain One". 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-211 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026211,
author = {Fan, Yafu},
title = {Newsvendor Critical Fractiles for Pre-Season Buying, Dirichlet Size-Curve Priors and Dynamic-Programming End-of-Season Markdowns},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Critical Fractile: Cost Ratios, Not Averages, Set the Buy
- Chapter 2 · Skewed Demand, Salvage and Goodwill: Three Forces on the Fractile, and Why Experience Fails to Correct the Bias
- Chapter 3 · Dirichlet-Multinomial Priors for the Size Curve: Weighing Head-Office Experience Against the Store's Own Sample
- Chapter 4 · From the Total to the Sizes: Per-Size Newsvendors, the Fragmentation Premium and Broken Assortments
- Chapter 5 · A Finite-Horizon Dynamic Programme for End-of-Season Markdowns: When to Cut and by How Much
- Chapter 6 · Folding Markdowns and Reorders Back into the Pre-Season Buy: Effective Salvage and Quick Response
- Chapter 8 · Closing the Loop: the Order Quantity Calculator, the Post-Season Bias Review and a Pre-Registered Test