关于「全年账本、压力测试与预注册实验」,《支付路由、拒付与现金储备》给出的定量结论是什么?
结论:第八章给出全年账本、压力测试与一项预注册实验。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
数据口径:书中的订单量、事件率、毛利、退款率、冻结频率与胜诉概率均为示意或合成模型;全部数据由书中程序生成;卡组织规则以写作时的公开资料为准;本书不是法律、财务或合规意见。 第三章把友好欺诈写成威慑博弈:胜诉概率达到 0.75 时虚假争议在示意模型中完全消失;证据包中「理性消费勾选」的分量最小。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库
| setup | margin RM | friendly | season | alerts | net RM | ratio | cash RM |
|---|---|---|---|---|---|---|---|
| A | 18,567,559 | 432,000 | 10,298 | 0 | 18,125,260 | 0.94% | 3,115,772 |
| B | 18,468,285 | 16,385 | 0 | 0 | 18,451,900 | 0.86% | 3,175,855 |
| C | 18,468,285 | 16,385 | 0 | 8,331 | 18,443,569 | 0.60% | 1,467,058 |
查看完整验算程序
# Chapter 8. p14: A year's ledger for 144,000 orders (12,000 a month),
# putting the pieces together. Setups:
# A all on cards, evidence prepared by hand (win 0.35, RM 60 a case),
# refunds paid in 7 days, no alert service, one gateway;
# B the 0.90% routing of p01, automatic evidence package (win 0.711,
# RM 15 a case), refunds within 1 day;
# C as B, plus alerts that catch 30% of disputes, and three gateways.
# Margin from p01, friendly fraud from p05, the refund season from p04
# (one peak month a year), alerts from p08, the cash buffer from p12.
import importlib.util
def load(name):
spec = importlib.util.spec_from_file_location(name, name + ".py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
p01, p04 = load("p01_routing"), load("p04_refund_speed")
p05, p12 = load("p05_deterrence"), load("p12_gateways")
YEAR = 144000 / 10000 # units of 10,000 orders
def setup(x, w, prep, days, caught, k, rng):
ratio, paid, m = p01.evaluate(x)
margin = 1e4 * m * YEAR
ff = p05.loss(w, prep)[2] * YEAR
peak = p04.month(days)[2] - p04.month(1)[2]
counted = ratio * (1 - caught)
alert = caught * ratio * 0.9 * 144000 * 25
need = sorted(p12.path(rng, k)[0] for _ in range(300))[296]
return margin, ff, peak, alert, margin - ff - peak - alert, counted, need
if __name__ == "__main__":
import random
rng = random.Random(85)
rows = {"A": ((1.0,) * 5, 0.35, 60.0, 7, 0.0, 1),
"B": (p01.best(0.009), 0.711, 15.0, 1, 0.0, 1),
"C": (p01.best(0.009), 0.711, 15.0, 1, 0.3, 3)}
print(" setup margin RM friendly season alerts net RM"
" ratio cash RM")
for name, args in rows.items():
mg, ff, pk, al, net, r, need = setup(*args, rng)
print(" {:<5} {:10,.0f} {:8,.0f} {:6,.0f} {:6,.0f} {:10,.0f}"
" {:5.2%} {:9,.0f}".format(name, mg, ff, pk, al, net, r,
need))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《跨境支付智能路由、拒付抗辩博弈与资金池破产边界》第 8 章「全年账本、压力测试与预注册实验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090225
DOI: 10.5281/zenodo.24090225 · 阅读本章所在专著 · 5DL-B-085 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026085,
author = {Fan, Yafu},
title = {Cross-Border Payment Routing, Chargeback Defense Games and Treasury Ruin Bounds},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090225},
url = {https://doi.org/10.5281/zenodo.24090225}
}