What does Critical Fractiles for Pre-Season Buying conclude, in numbers, about “Closing the Loop: the Order Quantity Calculator, the Post-Season Bias Review and a Pre-Registered Test”?
Answer: Chapter 8 gives an order quantity calculator, a post-season bias review and a pre-registered test; if the pull is as strong as in the laboratory, 33 style-seasons suffice to detect it. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.
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: 33
| pull a sell-out p1 SKU-seasons needed (p0 | 0.1667) |
| 0.200 | 0.2195 418 |
| 0.400 | 0.2808 95 |
| 0.644 | 0.3653 33 |
| 0.800 | 0.4233 20 |
| 1.000 | 0.5000 12 |
| paired profit test (p22 luxury): diff 817.9, sd 2099.9 | |
| effect at 1.00 of model gap | 52 SKU-seasons |
| effect at 0.50 of model gap | 207 SKU-seasons |
| effect at 0.25 of model gap | 828 SKU-seasons |
Show the full program
# Chapter 8. p83: Sample sizes for the pre-registered test.
# H1 (book): buyers who order near the mean sell out of high-CF SKUs
# more often than 1 - CF. Test 1: one-sample binomial test of the
# sell-out rate of CF = 0.8333 SKUs against p0 = 1 - CF, when the
# true pull is a (sell-out p1 = 1 - Phi((1 - a) z*)). Two-sided 5 %,
# power 80 %: n = [z_a sqrt(p0 q0) + z_b sqrt(p1 q1)]^2 / (p1 - p0)^2.
# Test 2: paired SKU-season profit gain of the fractile rule over the
# mean rule, using the mean and s.d. of the difference from p22.
import math
from statistics import NormalDist
Z = NormalDist()
ZA, ZB = Z.inv_cdf(0.975), Z.inv_cdf(0.80)
CF = 75.0 / 90.0
ZS = Z.inv_cdf(CF)
P0 = 1.0 - CF
print("pull a sell-out p1 SKU-seasons needed (p0 = {:.4f})".format(P0))
for a in (0.2, 0.4, 0.644, 0.8, 1.0):
p1 = 1.0 - Z.cdf((1.0 - a) * ZS)
num = ZA * math.sqrt(P0 * (1.0 - P0)) + ZB * math.sqrt(p1 * (1.0 - p1))
n = (num / (p1 - P0)) ** 2
print("{:6.3f} {:11.4f} {:8d}".format(a, p1, math.ceil(n)))
print("paired profit test (p22 luxury): diff 817.9, sd 2099.9")
for share in (1.0, 0.5, 0.25):
md = 817.9 * share
n = ((ZA + ZB) * 2099.9 / md) ** 2
print(" effect at {:.2f} of model gap: {:5d} SKU-seasons"
.format(share, math.ceil(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 8: Closing the Loop: the Order Quantity Calculator, the Post-Season Bias Review and a Pre-Registered Test. 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 7 · Classical Sources Examined: Bai Gui's "Take What Others Discard" and Cantillon's "Buy at a Certain Price, Sell at an Uncertain One"