关于「东西方原典考辨:《晋书·刘毅传》的九品之弊与高尔顿的《民意》」,《星级自选择与贝叶斯排序》给出的定量结论是什么?

结论:第七章考辨《晋书·刘毅传》对九品中正制「上品无寒门,下品无势族」的批评(示意模型中门第权重约为才能的三倍时,上品寒门比例为 0.072)与高尔顿 1907 年的《民意》(两段正态重建的众人平均为 1197.5 磅)。

数据口径:书中的顾客、商品与参数均为示意模型;全部计算由书中程序生成;本书是非个人化的经营参考,不是针对具体店铺的经营建议,也不是法律意见,书中提到的法规以上架前人工复核为准;本书反对一切刷单、购买评论与筛选式求评。 第一章用「购买偏差加少报偏差」的两段筛子解释评论星级的 J 型分布,示意参数下购买偏差使均值上移 +0.532 星。

English version

对照数据表

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

A. fixed quotas, upper grades = 0.10 of candidates
wcommoner upclan in lowrho(T)
0.00.8430.45320.861
1.00.5890.17490.817
2.00.2810.04250.730
3.00.0720.00300.668
B. w = 2, the upper quota grows (grade inflation)
uppercommoner uprho(T) talent of up
0.100.2810.7301.088
0.250.5260.7360.864
0.400.6620.7360.717
0.550.7400.7200.560
查看完整验算程序
# Chapter 7. p71: when the grader weighs family, the top grades fill up.
# Toy Nine-Rank model (illustrative, not a reconstruction of Jin data):
# 20000 candidates, talent T ~ N(0, 1); 15 percent belong to powerful
# clans (S = 1). The rectifier's score is T + w S + e, e ~ N(0, 0.5).
# Candidates are cut into nine grades by fixed quotas, grade 1 highest.
# "Upper" = grades 1-3, "lower" = grades 7-9. Reported: share of commoner
# (S = 0) candidates in the upper grades, share of clan candidates in the
# lower grades, and the rank correlation of grade with talent; in part
# two also the mean talent (in sd units) of those graded upper.
# Part two keeps w = 2 and lets the upper quota grow (grade inflation).
import math
import random

N, CLAN = 20000, 0.15
rng = random.Random(20261112)
PEOPLE = [(rng.gauss(0, 1), 1 if rng.random() < CLAN else 0,
           rng.gauss(0, 0.5)) for _ in range(N)]


def grades(w, quotas):
    order = sorted(range(N), key=lambda i: -(PEOPLE[i][0]
                                             + w * PEOPLE[i][1]
                                             + PEOPLE[i][2]))
    g = [0] * N
    cuts, acc = [], 0.0
    for q in quotas:
        acc += q          # running float total of nine quota shares
        cuts.append(int(round(acc * N)))
    k = 0
    for pos, i in enumerate(order):
        while k < 8 and pos >= cuts[k]:
            k += 1
        g[i] = k + 1
    return g


def spearman(xs, ys):
    def ranks(v):
        o = sorted(range(len(v)), key=lambda i: (v[i], i))
        r = [0.0] * len(v)
        for pos, i in enumerate(o):
            r[i] = float(pos)
        return r
    a, b = ranks(xs), ranks(ys)
    ma, mb = math.fsum(a) / N, math.fsum(b) / N
    cov = math.fsum((x - ma) * (y - mb) for x, y in zip(a, b))
    va = math.fsum((x - ma) ** 2 for x in a)
    vb = math.fsum((y - mb) ** 2 for y in b)
    return cov / math.sqrt(va * vb)


def report(w, quotas):
    g = grades(w, quotas)
    up = [i for i in range(N) if g[i] <= 3]
    low = [i for i in range(N) if g[i] >= 7]
    com_up = len([i for i in up if PEOPLE[i][1] == 0]) / len(up)
    clan = [i for i in range(N) if PEOPLE[i][1] == 1]
    clan_low = len([i for i in clan if g[i] >= 7]) / len(clan)
    rho = -spearman([float(x) for x in g], [p[0] for p in PEOPLE])
    t_up = math.fsum(PEOPLE[i][0] for i in up) / len(up)
    return len(up) / N, com_up, clan_low, rho, t_up


BASE = (0.01, 0.03, 0.06, 0.10, 0.15, 0.20, 0.20, 0.15, 0.10)
print("A. fixed quotas, upper grades = %.2f of candidates" % 0.10)
print("%5s %12s %12s %10s" % ("w", "commoner up", "clan in low",
                               "rho(T)"))
for w in (0.0, 1.0, 2.0, 3.0):
    _, cu, cl, rho, _ = report(w, BASE)
    print("%5.1f %12.3f %12.4f %10.3f" % (w, cu, cl, rho))
print("B. w = 2, the upper quota grows (grade inflation)")
print("%6s %12s %10s %12s" % ("upper", "commoner up", "rho(T)",
                              "talent of up"))
for up in (0.10, 0.25, 0.40, 0.55):
    rest = 1.0 - up
    q = (up * 0.1, up * 0.3, up * 0.6) + tuple(
        rest * x / 0.90 for x in BASE[3:])
    share, cu, _, rho, t_up = report(2.0, q)
    print("%6.2f %12.3f %10.3f %12.3f" % (share, cu, rho, t_up))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《评论星级J型自选择偏差、贝叶斯平均排序与九品中正评级通胀母典》第 7 章「东西方原典考辨:《晋书·刘毅传》的九品之弊与高尔顿的《民意》」(版本 1.0.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026212,
  author    = {Fan, Yafu},
  title     = {J-Shaped Self-Selection in Star Ratings, Bayesian-Average Ranking and Rating Inflation from the Nine-Rank System to Online Marketplaces},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论