What does Optimal Transport for Luxury Stock Transfers conclude, in numbers, about “Closing the Loop: The Weekly Transfer Sheet, the Shadow Price Table and Human Release”?
Answer: Chapter 8 gives the weekly transfer procedure, the Cross-Store Rebalancing Optimiser and a pre-registered test plan: the cost test needs 197 pairs of weeks, about 34 weeks across twelve regions. Marked boxes separate published evidence, runnable Python calculations (18 programs), classical sources and the author's hypotheses.
Scope of the numbers: Chapter 5 applies optimal transport to client migration: in an illustrative matrix, gross movement is 13.43 times what the net change requires, so goods follow net flows and people follow gross flows. Chapter 7 examines equitable transport in the Treatise on the Balanced Standard of the Shiji (lateral transfers save 0.721 of freight in an illustrative model) and Monge's cuttings and fillings.
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: 197, 34
| z(0.975) | 1.9600, z(0.80) = 0.8416 |
| test 1: paired weeks needed (baseline 10,000 yuan/week) | |
| sd_d \ delta | 300 500 800 1200 |
| 1500 | 197 71 28 13 |
| 2500 | 546 197 77 35 |
| 4000 | 1396 503 197 88 |
| test 2: received units needed to detect correlation r | |
| r | 0.15 n = 347 |
| r | 0.20 n = 194 |
| r | 0.30 n = 85 |
| r | 0.40 n = 47 |
| plan: sd_d 2500, delta 500 | 197 pairs; 12 regions -> 17 cycles |
| of two weeks each | 34 weeks, 204 pairs |
Show the full program
# Chapter 8. p82: sample sizes for the pre-registered tests.
# Test 1 (cost): alternate weeks, region by region, between the
# shortage-first rule and the optimiser; outcome = weekly freight plus
# realised lost margin; paired difference per region-pair of weeks.
# n = ((z_{1-a/2} + z_{1-b}) * sd_d / delta)^2, two-sided a = 0.05,
# power 0.80; sd_d and delta are illustrative, in yuan per week.
# Test 2 (prices): does the shadow value predict the realised gross
# margin of a received unit? Fisher z: n = ((z_a + z_b) / atanh r)^2 + 3.
import math
from statistics import NormalDist
Z = NormalDist()
za = Z.inv_cdf(1 - 0.05 / 2)
zb = Z.inv_cdf(0.80)
print("z(0.975) = %.4f, z(0.80) = %.4f" % (za, zb))
print("test 1: paired weeks needed (baseline 10,000 yuan/week)")
print("sd_d \ delta 300 500 800 1200")
for sd in (1500, 2500, 4000):
row = [math.ceil(((za + zb) * sd / dl) ** 2)
for dl in (300, 500, 800, 1200)]
print("%6d " % sd + "".join("%6d" % n for n in row))
print("test 2: received units needed to detect correlation r")
for r in (0.15, 0.2, 0.3, 0.4):
n = math.ceil(((za + zb) / math.atanh(r)) ** 2 + 3)
print(" r = %.2f n = %d" % (r, n))
need = math.ceil(((za + zb) * 2500 / 500) ** 2)
cyc = math.ceil(need / 12)
print("plan: sd_d 2500, delta 500 -> %d pairs; 12 regions -> %d cycles"
% (need, cyc))
print(" of two weeks each = %d weeks, %d pairs" % (2 * cyc, 12 * cyc))Single source and citation
Fan, Y. (2026). Optimal Transport and Kantorovich Duality: Minimum-Cost Rebalancing of Luxury Stock across Regions and Client-Migration Matrices (Version 1.0.0), Chapter 8: Closing the Loop: The Weekly Transfer Sheet, the Shadow Price Table and Human Release. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-233 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026233,
author = {Fan, Yafu},
title = {Optimal Transport and Kantorovich Duality: Minimum-Cost Rebalancing of Luxury Stock across Regions and Client-Migration Matrices},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Price of Serving the Emptiest Shelf First: Greedy Transfers against the Transportation Optimum
- Chapter 2 · The Potential Method: Northwest-Corner Starts, Closed Loops and an Exact MODI Solution
- Chapter 3 · Kantorovich Duality: Potentials Are the Shadow Prices of Stores
- Chapter 4 · Entropic Regularisation and Sinkhorn: Faster, but Blurred
- Chapter 5 · Client-Migration Matrices: Measuring Real Movement by the Least Movement Required
- Chapter 6 · Whole Units, Fees per Shipment and Moving Rates: From a Linear Optimum to an Executable Transfer Sheet
- Chapter 7 · East and West in the Sources: Sang Hongyang's Equitable Transport and Monge's Cuttings and Fillings