Skip to content

做什么(One-liner)

基于 GDP 增长 vs 通胀相对 2.5% 中性锚的位置,把宏观环境分为 goldilocks / reflation / stagflation / deflationary_recession_risk 四象限之一。Bridgewater All-Weather 经典框架的简化实现。

怎么用

Canvas 拖 b0_all_weather_v1,填 gdp_growth_yoy(如 3.5)+ cpi_yoy(如 1.5)。输出 quadrant + normalized coords。

核心公式

g_up = (gdp_growth_yoy >= 2.5)
i_up = (cpi_yoy >= 2.5)

g_up AND !i_up → goldilocks              (增长高 + 通胀低)
g_up AND i_up → reflation                (增长高 + 通胀高)
!g_up AND i_up → stagflation             (增长低 + 通胀高)
!g_up AND !i_up → deflationary_recession_risk  (两低)

normalized coords:

growth_norm = clamp((gdp - 2.5) / 2.5, -1, 1)
inflation_norm = clamp((cpi - 2.5) / 2.5, -1, 1)

假设与适用场景

假设:美国 potential growth + target inflation 近似 2.5%;GDP/CPI YoY 是 regime 有效 proxy;4 象限是经验离散。

适用:美国宏观 regime 分类;中长期资产配置权重切换触发。

不适用:小型 / 新兴市场(阈值需本地化);高通胀环境(>10% CPI);日 / 月级 nowcast。

输入 / 输出契约

{gdp_growth_yoy: float, cpi_yoy: float}{gdp_growth_yoy, cpi_yoy, neutral_anchors, quadrant, coords, _assumption}。详见 frontmatter。

已知局限

  1. 阈值 2.5% 是美国 stylized
  2. 离散象限 → 边界 flip-flop(e.g. 2.51 vs 2.49)
  3. 未考虑流动性 / 资产泡沫等其他维度
  4. Bridgewater 原参数不公开 → 本实现是 open-source 近似

参考文献

Dalio / Bridgewater All-Weather framework (1996-)。详见 frontmatter。

Golden Test

tests/golden/fixtures/tier1/b0_all_weather/,1e-12 tolerance,4 tests(4 quadrants 全覆盖 + boundary + coord clamp)。2026-04-20 passing。

Changelog

  • 1.0.0 (2026-04-20) — Initial Active release

Verifiable intelligence for the decisions that demand scrutiny.