关于「残值的精算边界与花掉浮存金的代价」,《无人空间计价、储值浮存金与平台收编》给出的定量结论是什么?
结论:第四章说明十二个月后估出的残值是 0.2358,真值是 0.3409;以现金保留负债的 0.7 时有 0.2225 的路径付不出款。
数据口径:书中的客人、需求、费率与参数均为示意模型;全部计算由书中程序生成;本书不是法律、财务、会计或税务方面的建议。 第七章读《新唐书》的飞钱、宋代出租官房的店宅务与双边市场理论:利特尔定律给出 17500,模拟为 17554。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.2358, 0.3409
| true breakage: 0.3409 | ||||||
| months | passes | D | p | h | breakage | 95% interval |
| 6 | 600 | 0.20 | 0.30 | 0.0000 | 0.2000 | 0.1300 to 0.2600 |
| 12 | 1200 | 0.14 | 0.28 | 0.0125 | 0.2358 | 0.1803 to 0.2850 |
| 24 | 2400 | 0.16 | 0.30 | 0.0250 | 0.3218 | 0.2996 to 0.3380 |
查看完整验算程序
# Chapter 4. p07: How soon can breakage be known? A pass holds 5 visits.
# True model: 0.15 of buyers never come (D); the others visit in a month
# with chance p = 0.30 and, after each month, lapse for good with chance
# h = 0.03. 100 passes are sold each month. After W months of sales the
# platform fits D, p, h by maximum likelihood to every pass's history and
# reads off breakage (credit never used) with a 95% profile interval
# (log-likelihood within 1.92 of the best). Seed 113.
import math
import random
TRUE, CAP, PER = (0.15, 0.30, 0.03), 5, 100
def breakage(d, p, h):
"""Expected share of the 5 visits never used."""
unused = 0.0
for m in range(1, 600):
pm = (1 - h) ** (m - 1) * h
for x in range(CAP):
unused += pm * math.comb(m, x) * p ** x * (1 - p) ** (m - x) * \
(CAP - x) if x <= m else 0.0
return d + (1 - d) * unused / CAP
def simulate(rng, window):
hist = {}
for month in range(window):
n = window - month # months observed
for _ in range(PER):
dormant = rng.random() < TRUE[0]
x, last, alive = 0, 0, True
for t in range(1, n + 1):
if dormant or not alive or x == CAP:
break
if rng.random() < TRUE[1]:
x, last = x + 1, t
if rng.random() < TRUE[2]:
alive = False
key = (n, x, last)
hist[key] = hist.get(key, 0) + 1
return hist
def loglik(hist, d, p, h):
ll = []
for (n, x, last), c in hist.items():
if x == CAP:
l = (1 - d) * p ** x * (1 - p) ** (last - x) * \
(1 - h) ** (last - 1)
else:
l = p ** x * (1 - p) ** (n - x) * (1 - h) ** n
for i in range(max(last, 1), n):
l += p ** x * (1 - p) ** (i - x) * (1 - h) ** (i - 1) * h
l = (1 - d) * l + (d if x == 0 else 0.0)
ll.append(c * math.log(l))
return math.fsum(ll)
if __name__ == "__main__":
print("true breakage: {:.4f}".format(breakage(*TRUE)))
print("months passes D p h breakage 95% interval")
grid = [(d / 100, p / 100, h / 400) for d in range(5, 31)
for p in range(20, 41, 2) for h in range(0, 25)]
memo = {}
for window in (6, 12, 24):
hist = simulate(random.Random(113), window)
scored = [(loglik(hist, *g), g) for g in grid]
top, g = max(scored)
near = []
for s, q in scored:
if s >= top - 1.92:
if q not in memo:
memo[q] = breakage(*q)
near.append(memo[q])
print("{:6d} {:6d} {:.2f} {:.2f} {:.4f} {:8.4f} {:.4f} to "
"{:.4f}".format(window, window * PER, g[0], g[1], g[2],
breakage(*g), min(near), max(near)))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《无人共享空间收益管理、跨店储值浮存金与木马收编博弈》第 4 章「残值的精算边界与花掉浮存金的代价」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-113 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026113,
author = {Fan, Yafu},
title = {Unmanned Shared-Space Revenue Management, Cross-Venue Prepaid Float and Zero-Take-Rate Trojan Onboarding},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}