关于「相关校正:有效独立证据数、精确权重与一个数的斜率收缩」,《奢品多特征似然比初筛》给出的定量结论是什么?
结论:第三章给出有效独立证据数(示意矩阵下四个特征只相当于 2.007 份)与一个数的斜率收缩 0.571。
数据口径:书中全部概率只是外观概率参考,不是官方鉴定证书,不构成真伪结论,涉及争议或高价值货品须送品牌或专业鉴定机构;品牌一律以通称指代;书中参数为示意,全部计算由书中程序生成;本书是非个人化经营建议。 第二章是全书核心:示意参数下,朴素后验判到 0.99 以上、平均 0.996 的货,实际不符只有 0.756;放大倍数随类内相关升高,在相关系数 0.6 时达到 2.28;但排序并不吃亏,伤害集中在远离先验的边界上。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.571, 2.007
| illustrative R: n | 4, n_eff = 1' R^-1 1 = 2.007 |
| feature naive weight d exact weight (R^-1 d) | |
| stitch | 1.200 0.849 |
| hardware | 1.000 -0.111 |
| spectrum | 1.500 1.351 |
| grain | 0.900 0.227 |
| claimed D^2 | 5.500 true D^2 = 3.140 slope k = 0.571 |
| expected weight under N: naive claims 11.94 deciban, true 6.82 | |
| equal correlation: n_eff = n / (1 + (n - 1) rho) | |
| n rho | 0.2 rho=0.4 rho=0.6 rho=0.8 |
| 2 | 1.67 1.43 1.25 1.11 |
| 3 | 2.14 1.67 1.36 1.15 |
| 4 | 2.50 1.82 1.43 1.18 |
| 6 | 3.00 2.00 1.50 1.20 |
| 8 | 3.33 2.11 1.54 1.21 |
| limit as n grows | 1 / rho = 5.00, 2.50, 1.67, 1.25 |
查看完整验算程序
# Chapter 3. p31: the effective number of independent features. For a
# within-class correlation matrix R, n_eff = 1' R^-1 1 (Bayley and
# Hammersley's effective number, written for a mean of correlated
# scores); the exact separation is d' R^-1 d and the exact weights are
# R^-1 d. The 4 x 4 matrix below is illustrative: hardware weight and
# hardware spectrum share a supplier factor (0.6), stitch and grain share
# wear and lighting (0.5).
import math
NAMES = ["stitch", "hardware", "spectrum", "grain"]
D = [1.2, 1.0, 1.5, 0.9]
R = [[1.0, 0.3, 0.2, 0.5],
[0.3, 1.0, 0.6, 0.2],
[0.2, 0.6, 1.0, 0.2],
[0.5, 0.2, 0.2, 1.0]]
def solve(a, b):
# 高斯消元(部分主元),只用于小矩阵
n = len(b)
m = [row[:] + [b[i]] for i, row in enumerate(a)]
for c in range(n):
p = max(range(c, n), key=lambda r: abs(m[r][c]))
m[c], m[p] = m[p], m[c]
for r in range(c + 1, n):
f = m[r][c] / m[c][c]
m[r] = [x - f * y for x, y in zip(m[r], m[c])]
x = [0.0] * n
for r in range(n - 1, -1, -1):
x[r] = (m[r][n] - math.fsum(m[r][k] * x[k]
for k in range(r + 1, n))) / m[r][r]
return x
def dot(x, y):
return math.fsum(a * b for a, b in zip(x, y))
ones = [1.0] * 4
neff = dot(ones, solve(R, ones))
w = solve(R, D)
claim2, true2 = dot(D, D), dot(D, w)
print("illustrative R: n = 4, n_eff = 1' R^-1 1 = %.3f" % neff)
print("feature naive weight d exact weight (R^-1 d)")
for k in range(4):
print("%-9s %14.3f %20.3f" % (NAMES[k], D[k], w[k]))
print("claimed D^2 = %.3f true D^2 = %.3f slope k = %.3f"
% (claim2, true2, true2 / claim2))
print("expected weight under N: naive claims %.2f deciban, true %.2f"
% (10.0 / math.log(10.0) * claim2 / 2.0,
10.0 / math.log(10.0) * true2 / 2.0))
print("equal correlation: n_eff = n / (1 + (n - 1) rho)")
print(" n rho=0.2 rho=0.4 rho=0.6 rho=0.8")
for n in [2, 3, 4, 6, 8]:
print("%4d " % n + "".join("%9.2f" % (n / (1.0 + (n - 1) * r))
for r in (0.2, 0.4, 0.6, 0.8)))
print("limit as n grows: 1 / rho = 5.00, 2.50, 1.67, 1.25")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《奢品真伪多特征似然比鉴定、走线节距五金光谱皮质纹理融合与送检秒收贝叶斯边界母典》第 3 章「相关校正:有效独立证据数、精确权重与一个数的斜率收缩」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-281 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026281,
author = {Fan, Yafu},
title = {Multi-Feature Likelihood-Ratio Screening of Pre-Owned Luxury Goods: Fusing Stitch Pitch, Hardware Spectra and Leather Grain, and the Bayesian Boundary between Lab Referral and Instant Purchase},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}