关于「品牌偏移的收缩估计:只量了两件衣服时该信几分」,《尺码体系与退货最小化》给出的定量结论是什么?

结论:第四章用经验贝叶斯收缩把品牌偏移的均方误差降到原始均值的 0.808,并说明只量一件衣服时页面上「最偏大」的品牌平均被高估 1.3922 厘米。

数据口径:书中的品牌、门店、价格与身体尺寸参数均为示意;全部计算由书中程序生成;本书是非个人化经营建议,只涉及服装尺寸的测量,不作任何健康判断。 第二章把一次选码的误差拆成五块:身体尺码表的退货概率是 0.2170,细尺码表 0.1760,完美尺码表也只有 0.1636,而品牌残差法的闭式解是 0.0302,如实模拟留存单品的筛选后是 0.0499。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.808

estimatorMSE (cm^2)RMSE (cm)ratio to raw
raw0.69370.83291.000
eb0.56040.74860.808
oracle0.55270.74340.797
n_bRMSE rawRMSE ebweight k at true tau
11.27381.08150.709
20.90610.83220.830
30.73090.69080.880
50.57400.55420.924
100.40150.39460.961
mean estimated tau: 1.967 (true 2.0)
查看完整验算程序
# Chapter 4. p41: Shrinking brand offsets. J = 30 brands, true offsets
# u_b ~ N(0, 2.0^2) cm; the store measures n_b garments of label M per
# brand (n_b cycles 1, 2, 3, 5, 10), each with sd 1.28 cm (style 0.8 and
# tape 1.0 combined). Raw mean versus empirical-Bayes shrinkage
#   u_hat = k_b * ybar_b,  k_b = t2 / (t2 + s2 / n_b),
# where t2 is estimated by moments, max(0, mean(ybar^2 - s2/n_b)).
# Mean squared error over 2,000 fixed-seed replications. Illustrative.
import math
import random

J, TAU, SD, REPS = 30, 2.0, 1.28, 2000
NS = [(1, 2, 3, 5, 10)[j % 5] for j in range(J)]
rng = random.Random(20261112)
err = {"raw": [], "eb": [], "oracle": []}
by_n = {n: {"raw": [], "eb": []} for n in (1, 2, 3, 5, 10)}
t2s = []
for _ in range(REPS):
    u = [rng.gauss(0.0, TAU) for _ in range(J)]
    yb = [u[j] + rng.gauss(0.0, SD / math.sqrt(NS[j])) for j in range(J)]
    t2 = max(0.0, math.fsum(yb[j] ** 2 - SD ** 2 / NS[j]
                            for j in range(J)) / J)
    t2s.append(t2)
    for j in range(J):
        v = SD ** 2 / NS[j]
        eb = t2 / (t2 + v) * yb[j] if t2 > 0 else 0.0
        orc = TAU ** 2 / (TAU ** 2 + v) * yb[j]
        err["raw"].append((yb[j] - u[j]) ** 2)
        err["eb"].append((eb - u[j]) ** 2)
        err["oracle"].append((orc - u[j]) ** 2)
        by_n[NS[j]]["raw"].append((yb[j] - u[j]) ** 2)
        by_n[NS[j]]["eb"].append((eb - u[j]) ** 2)
mse = {k: math.fsum(v) / len(v) for k, v in err.items()}
print("estimator  MSE (cm^2)  RMSE (cm)  ratio to raw")
for k in ("raw", "eb", "oracle"):
    print("%-9s  %.4f      %.4f     %.3f"
          % (k, mse[k], math.sqrt(mse[k]), mse[k] / mse["raw"]))
print("n_b  RMSE raw  RMSE eb   weight k at true tau")
for n in (1, 2, 3, 5, 10):
    r = math.sqrt(math.fsum(by_n[n]["raw"]) / len(by_n[n]["raw"]))
    e = math.sqrt(math.fsum(by_n[n]["eb"]) / len(by_n[n]["eb"]))
    k = TAU ** 2 / (TAU ** 2 + SD ** 2 / n)
    print("%3d  %.4f    %.4f    %.3f" % (n, r, e, k))
print("mean estimated tau: %.3f (true %.1f)"
      % (math.fsum(math.sqrt(t) for t in t2s) / REPS, TAU))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《人体测量主成分尺码体系、虚荣尺码漂移与跨境退货率最小化母典》第 4 章「品牌偏移的收缩估计:只量了两件衣服时该信几分」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-215 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026215,
  author    = {Fan, Yafu},
  title     = {Anthropometric Principal-Component Sizing, Vanity-Size Drift and Cross-Border Return-Rate Minimisation},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论