关于「实证闭环:每日现金总控台、试算工具与风控表」,《现金纪律与止血红绿灯》给出的定量结论是什么?

结论:第八章给出每日现金总控台的台账字段表、红黄绿判据与触发动作、蒸馏小工具「七十二小时止血红绿灯与重投比例试算器」与预注册检验。书中以标注框区分已发表的证据、可运行的 Python 计算(19 段程序)、原典与作者的假说。

数据口径:北极星指标换成每日落袋净现金,即当日到账减当日真实付出再减退款准备计提;固定种子合成账本里,营收涨了 4.05 倍,落袋净现金却一路走低。 书中参数为示意,全部计算由书中程序生成。

English version

对照数据表

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

A. day received outlays reserve net cash
12,400 1,876 40 484
21,900 1,166 32 702
33,100 2,624 51 425
42,600 1,254 44 1,302
51,500 1,850 25 -375
63,300 1,652 55 1,593
72,800 2,302 47 451
7-day mean net cash 654.6; cushion 4.00 months; week YELLOW
B. test hour clicks orders llr running loss light
T124 600 19 4.254 -420 GREEN
T248 1,200 26 0.006 -120 YELLOW
T360 1,500 18 -10.265 720 RED
T424 600 11 3.671 60 GREEN
C. cushion gap 6,000: fill in 4 months at 1,500 a month
Kelly 0.6250, cap 0.3125, allowed now 0 until the cushion is full
查看完整验算程序
# Chapter 8. p81: one week of the daily cash control desk, end to end.
# Same core as distill/tool.py (SPRT bounds of p31, 72-hour cap of p32,
# Beta(1, 49) payback probability of p41, lag-weighted exposure of
# p42, stop-loss 900 of p43; cushion rule of p51; half-Kelly cap of p61).
# Part A: a synthetic 7-day ledger (illustrative units, no real account)
# for the three income lines; daily net cash = received - real outlays
# - refund reserve. Week light: GREEN if the 7-day mean is at least the
# daily essential need (3,000 / 30) and the cushion is full; RED if the
# 7-day mean is negative or the cushion covers under 3 months; YELLOW
# otherwise. Part B: four tests. Part C: cushion and reinvestment share.
# The cushion holds 12,000 against a target of 18,000 (illustrative).
import math

E, CUSHION = 3000.0, 12000.0
LEDGER = [  # received, ads, purchase advances, fees, delivery, reserve
    (2400.0, 300.0, 1360.0, 96.0, 120.0, 40.0),
    (1900.0, 300.0, 680.0, 76.0, 110.0, 32.0),
    (3100.0, 320.0, 2040.0, 124.0, 140.0, 51.0),
    (2600.0, 320.0, 680.0, 104.0, 150.0, 44.0),
    (1500.0, 340.0, 1360.0, 60.0, 90.0, 25.0),
    (3300.0, 340.0, 1020.0, 132.0, 160.0, 55.0),
    (2800.0, 360.0, 1700.0, 112.0, 130.0, 47.0),
]


def seen_share(hours, tau):
    if tau <= 0.0:
        return 1.0
    return 1.0 - tau / hours * (1.0 - math.exp(-hours / tau))


def test_light(hours, clicks, k, tau=0.0):
    la, lb = math.log(0.90 / 0.05), math.log(0.10 / 0.95)
    n = clicks * seen_share(hours, tau)
    llr = math.fsum([k * math.log(2.0), (n - k) * math.log(0.97 / 0.985)])
    loss = clicks * 1.2 - k * 60.0
    if llr >= la:
        return llr, loss, "GREEN"
    if llr <= lb or loss >= 900.0 or hours >= 72:
        return llr, loss, "RED"
    return llr, loss, "YELLOW"


if __name__ == "__main__":
    print("A. day  received   outlays  reserve  net cash")
    nets = []
    for d, row in enumerate(LEDGER, 1):
        out = math.fsum(row[1:5])
        net = row[0] - out - row[5]
        nets.append(net)
        print("   {:>3} {:>9,.0f} {:>9,.0f} {:>8,.0f} {:>9,.0f}".format(
            d, row[0], out, row[5], net))
    mean = math.fsum(nets) / len(nets)
    months = CUSHION / E
    if mean < 0.0 or months < 3.0:
        wk = "RED"
    elif mean >= E / 30.0 and months >= 6.0:
        wk = "GREEN"
    else:
        wk = "YELLOW"
    print("   7-day mean net cash {:,.1f}; cushion {:.2f} months; week {}"
          .format(mean, months, wk))
    print("B. test hour clicks orders     llr  running loss  light")
    for name, h, n, k, tau in (("T1", 24, 600, 19, 0.0),
                               ("T2", 48, 1200, 26, 0.0),
                               ("T3", 60, 1500, 18, 0.0),
                               ("T4", 24, 600, 11, 18.0)):
        llr, loss, c = test_light(h, n, k, tau)
        print("   {:<3} {:>4} {:>6,} {:>6} {:>7.3f} {:>13,.0f}  {}".format(
            name, h, n, k, llr, loss, c))
    kelly = 0.55 / 0.4 - 0.45 / 0.6
    gap = 6.0 * E - CUSHION
    print("C. cushion gap {:,.0f}: fill in {} months at 1,500 a month".format(
        gap, math.ceil(gap / 1500.0)))
    print("   Kelly {:.4f}, cap {:.4f}, allowed now 0 until the cushion"
          " is full".format(kelly, kelly / 2.0))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《翻身战现金流铁血纪律、七十二小时止血红绿灯与日进五千复利重投母典》第 8 章「实证闭环:每日现金总控台、试算工具与风控表」(版本 1.0.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026372,
  author    = {Fan, Yafu},
  title     = {Bootstrap Cashflow Discipline, Seventy-Two-Hour Kill-Switch Dashboards and Reinvestment Compounding to Five Thousand Daily},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论