What does Diamond Magic Sizes and the Lab-Grown Slide conclude, in numbers, about “Piecewise Power Laws and Breakpoint Scans: Finding the Steps in a Price List”?
Answer: Chapter 2 shows that a smooth fit ignoring the steps overstates the elasticity by 0.227 and that a blind scan for steps must raise its bar to 3.47.
Scope of the numbers: Chapter 3 uses a model of the cutter to show how a step leaves a hole and a pile in the weight distribution, with 0.650 of the 1.00 ct class pushed up in the illustrative model, and compares left-digit attention with focal-size conformity. Marked boxes separate published evidence, the author's hypotheses and classical sources, and the book contains 20 programs.
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.227
| (a) single power law: e = 2.167 (se 0.007), resid sd 0.127 | ||||
| (b) power law + steps: e = 1.914 (se 0.037), resid sd 0.123 | ||||
| step at | true | estimate | se | 95% interval |
| 0.50 | 0.150 | +0.169 | 0.023 | +0.124 to +0.214 |
| 0.70 | 0.030 | +0.042 | 0.018 | +0.007 to +0.077 |
| 0.90 | 0.040 | +0.025 | 0.020 | -0.014 to +0.064 |
| 1.00 | 0.070 | +0.097 | 0.019 | +0.059 to +0.135 |
| 1.50 | 0.060 | +0.061 | 0.016 | +0.029 to +0.092 |
| 2.00 | 0.080 | +0.112 | 0.015 | +0.082 to +0.142 |
| bias of the smooth fit in e: +0.227 |
Show the full program
# Chapter 2. p21: Piecewise power law: fit steps at known focal weights.
# Synthetic listing (fixed seed): 1200 stones, carat uniform on 0.30 to
# 2.20 and rounded to 0.01; log price = ln 5000 + e * ln w + steps + noise.
# True e = 1.94 (Vaillant-Wolff, 112,080 stones); steps in log points
# at 0.50/0.70/0.90/1.00/1.50/2.00 and noise sd 0.12 are illustrative.
# Two OLS fits: (a) a single power law; (b) power law plus step dummies.
# Shows how a smooth fit misreads the elasticity when steps exist.
import math
import random
rng = random.Random(20261112)
STEPS = ((0.50, 0.15), (0.70, 0.03), (0.90, 0.04),
(1.00, 0.07), (1.50, 0.06), (2.00, 0.08))
E_TRUE, SD, N = 1.94, 0.12, 1200
def draw():
w = round(rng.uniform(0.30, 2.20), 2)
y = math.log(5000.0) + E_TRUE * math.log(w)
y += math.fsum(d for c, d in STEPS if w >= c - 1e-9)
return w, y + rng.gauss(0.0, SD)
def ols(rows, ys):
k = len(rows[0])
xtx = [[math.fsum(r[i] * r[j] for r in rows) for j in range(k)]
for i in range(k)]
xty = [math.fsum(r[i] * y for r, y in zip(rows, ys)) for i in range(k)]
a = [xtx[i][:] + [1.0 if i == j else 0.0 for j in range(k)]
for i in range(k)]
for c in range(k):
p = max(range(c, k), key=lambda r: abs(a[r][c]))
a[c], a[p] = a[p], a[c]
piv = a[c][c]
a[c] = [v / piv for v in a[c]]
for r in range(k):
if r != c:
f = a[r][c]
a[r] = [vr - f * vc for vr, vc in zip(a[r], a[c])]
inv = [row[k:] for row in a]
b = [math.fsum(inv[i][j] * xty[j] for j in range(k)) for i in range(k)]
res = [y - math.fsum(bi * xi for bi, xi in zip(b, r))
for r, y in zip(rows, ys)]
s2 = math.fsum(e * e for e in res) / (len(ys) - k)
se = [math.sqrt(s2 * inv[i][i]) for i in range(k)]
return b, se, math.sqrt(s2)
data = [draw() for _ in range(N)]
ys = [y for _, y in data]
smooth = [[1.0, math.log(w)] for w, _ in data]
b0, se0, s0 = ols(smooth, ys)
print("(a) single power law: e = {:.3f} (se {:.3f}), resid sd {:.3f}"
.format(b0[1], se0[1], s0))
full = [[1.0, math.log(w)] + [1.0 if w >= c - 1e-9 else 0.0
for c, _ in STEPS] for w, _ in data]
b1, se1, s1 = ols(full, ys)
print("(b) power law + steps: e = {:.3f} (se {:.3f}), resid sd {:.3f}"
.format(b1[1], se1[1], s1))
print("step at true estimate se 95% interval")
for i, (c, d) in enumerate(STEPS):
est, s = b1[2 + i], se1[2 + i]
print(" {:.2f} {:.3f} {:+.3f} {:.3f} {:+.3f} to {:+.3f}"
.format(c, d, est, s, est - 1.96 * s, est + 1.96 * s))
gap = b0[1] - E_TRUE
print("bias of the smooth fit in e: {:+.3f}".format(gap))Single source and citation
Fan, Y. (2026). Diamond Magic-Size Price Jumps, the Lab-Grown Learning-Curve Slide and Supply-Cartel Signalling (Version 1.0.0), Chapter 2: Piecewise Power Laws and Breakpoint Scans: Finding the Steps in a Price List. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-209 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026209,
author = {Fan, Yafu},
title = {Diamond Magic-Size Price Jumps, the Lab-Grown Learning-Curve Slide and Supply-Cartel Signalling},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Magic Sizes: an Invisible Hundredth of a Carat and a Price Step
- Chapter 3 · The Cutter's Arithmetic: Bunching, Holes and Left-Digit Attention
- Chapter 4 · The Lab-Grown Learning Curve: How Fast Prices Fall and Where the Floor Is
- Chapter 5 · The Value Ledger: Consumer Good or Asset?
- Chapter 6 · Cartels, Cournot and Noisy Price Signals
- Chapter 7 · Sources East and West: Cao Zhao's Gegu yaolun and Tavernier's Six Voyages
- Chapter 8 · Closing the Loop: a Jewellery Quoting Tool, Twin-Track Copy and a Pre-Registered Test