关于「实证闭环:台北式与吉隆坡式租买计算器、预注册方案与证伪条件」,《租售比与典权回赎期权》给出的定量结论是什么?

结论:第八章给出蒸馏小工具「租买对比计算器」,在吉隆坡式示意参数下租房领先的概率只有 0.2116,并写下预注册检验方案与推翻本书的条件。书中以标注框区分已发表的证据、可运行的 Python 计算(20 段程序)、原典摘述与作者的假说。

数据口径:书中参数为示意;全部计算由书中程序生成;本书是非个人化的分析,不构成法律或理财建议,涉及古代法条之处只述大意,以上架前人工复核为准。 第一章用用户成本说明,在租金回报率为 0.016 的示意城市里,房租连房东的利息与税费都付不清,结论最敏感的参数是资金的机会成本。

English version

对照数据表

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

20 yearsTaipei-likeKL-like
w_buy110.02137.49
w_rent168.0974.76
lead58.07-62.73
g_star0.03590.0157
user_cost0.04600.0380
p_rent0.69780.2116
p10-57.66-171.88
median40.29-61.40
p90187.4441.23
g_star: house growth at which buying and renting tie
lead, p10, median, p90: renter minus buyer, Monte Carlo
查看完整验算程序
# Chapter 8. p81: The rent-or-buy calculator on two illustrative cities.
# Model: the ledger of p21, the break-even search of p22, the user cost
# of p11 (k = index-fund return) and the Monte Carlo of p31, run on a
# "Taipei-like" and a "Kuala-Lumpur-like" parameter set. The sets are
# demonstration values chosen to show the mechanics, not estimates of
# either market; taxes and rates are illustrative. 5000 paths, fixed
# seed. distill/tool.py runs the same functions.
import math
import random
import statistics

BASE = {"price": 100.0, "yield": 0.016, "rate": 0.022, "ltv": 0.8,
        "term": 30, "buy_cost": 0.02, "sell_cost": 0.04, "hold": 0.006,
        "g": 0.02, "equity": 0.06}


def annuity(principal, rate, years):
    if rate == 0:
        return principal / years
    return principal * rate / (1.0 - (1.0 + rate) ** -years)


def run_path(p, gh, gs):
    """gh, gs: yearly gross factors of house price and index fund."""
    price = p["price"]
    loan = p["ltv"] * price
    pay = annuity(loan, p["rate"], p["term"])
    bal = loan
    port_b = 0.0
    port_r = (1.0 - p["ltv"] + p["buy_cost"]) * price
    for t in range(len(gh)):
        c_b = math.fsum([pay if t < p["term"] else 0.0,
                         p["hold"] * price])
        c_r = p["yield"] * price
        port_b = (port_b + max(c_r - c_b, 0.0)) * gs[t]
        port_r = (port_r + max(c_b - c_r, 0.0)) * gs[t]
        if t < p["term"]:
            bal = bal * (1.0 + p["rate"]) - pay
        price = price * gh[t]
    w_b = price * (1.0 - p["sell_cost"]) - max(bal, 0.0) + port_b
    return w_b, port_r


def deterministic(p, years):
    return run_path(p, [1.0 + p["g"]] * years, [1.0 + p["equity"]] * years)




VOL = {"hvol": 0.08, "svol": 0.16, "corr": 0.2}


def draw_factors(p, v, rng, years):
    mh = math.log(1.0 + p["g"]) - 0.5 * v["hvol"] ** 2
    ms = math.log(1.0 + p["equity"]) - 0.5 * v["svol"] ** 2
    c = v["corr"]
    s = math.sqrt(1.0 - c * c)
    gh, gs = [], []
    for _ in range(years):
        z1 = rng.gauss(0.0, 1.0)
        z2 = rng.gauss(0.0, 1.0)
        gh.append(math.exp(mh + v["hvol"] * z1))
        gs.append(math.exp(ms + v["svol"] * (c * z1 + s * z2)))
    return gh, gs


def simulate(p, v, n, years):
    rng = random.Random(20261112)
    out = []
    for _ in range(n):
        gh, gs = draw_factors(p, v, rng, years)
        out.append(run_path(p, gh, gs))
    return out


def pct(xs, q):
    xs = sorted(xs)
    return xs[min(len(xs) - 1, int(q * len(xs)))]


CITIES = {
    "Taipei-like": dict(BASE),
    "KL-like": dict(BASE, **{"yield": 0.045, "rate": 0.042, "ltv": 0.9,
                             "buy_cost": 0.04, "sell_cost": 0.03,
                             "hold": 0.008, "g": 0.03}),
}
VOLS = {"Taipei-like": dict(VOL), "KL-like": dict(VOL, hvol=0.07)}


def breakeven(p, years):
    lo, hi = -0.10, 0.20
    for _ in range(60):
        mid = 0.5 * (lo + hi)
        wb, wr = deterministic(dict(p, g=mid), years)
        if wr - wb > 0:
            lo = mid
        else:
            hi = mid
    return 0.5 * (lo + hi)


def report(p, v, years=20, n=5000):
    wb, wr = deterministic(p, years)
    uc = math.fsum([p["equity"], p["hold"], -p["g"]])
    d = [b - a for a, b in simulate(p, v, n, years)]
    return {"w_buy": wb, "w_rent": wr, "lead": wr - wb,
            "g_star": breakeven(p, years), "user_cost": uc,
            "p_rent": len([x for x in d if x > 0]) / len(d),
            "p10": pct(d, 0.1), "median": statistics.median(d),
            "p90": pct(d, 0.9)}


if __name__ == "__main__":
    rows = {c: report(CITIES[c], VOLS[c]) for c in CITIES}
    print("20 years           Taipei-like    KL-like")
    for key in ("w_buy", "w_rent", "lead", "g_star", "user_cost",
                "p_rent", "p10", "median", "p90"):
        a, b = rows["Taipei-like"][key], rows["KL-like"][key]
        small = abs(a) < 1 and abs(b) < 1
        fmt = "{:<12}   {:12.4f} {:12.4f}"
        if not small:
            fmt = "{:<12}   {:12.2f} {:12.2f}"
        print(fmt.format(key, a, b))
    print("g_star: house growth at which buying and renting tie")
    print("lead, p10, median, p90: renter minus buyer, Monte Carlo")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《租售比与持有成本净现值、杠杆购房非遍历性与典权回赎期权母典》第 8 章「实证闭环:台北式与吉隆坡式租买计算器、预注册方案与证伪条件」(版本 1.0.0). 5D Library. DOI 待发布

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

BibTeX
@book{fan2026219,
  author    = {Fan, Yafu},
  title     = {Price-to-Rent Ratios and Holding-Cost NPV, Non-Ergodic Leveraged Home Buying and the Redemption Option in Chinese Dian Tenure},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论