| name | loss-reserving |
| description | 损失准备金工具,实现链梯法、Bornhuetter-Ferguson法及准备金进展分析。适用于精算教学示例与准备金方法演示;基于简化算法,不适用于正式准备金评估或监管报告。 |
| version | 1.0.0 |
| author | wangyi |
loss-reserving
赔款准备金工具,实现链梯法(Chain Ladder)、Bornhuetter-Ferguson(BF)法及准备金进展法。
📌 说明:本工具基于简化模型实现,仅使用 Python 标准库。结果仅供学习参考,不构成投资建议或交易依据。
脚本API
chain_ladder(triangle, tail_factor=1.0)
链梯法计算未决赔款准备金。
必填: triangle
bornhuetter_ferguson(triangle, earned_premium, expected_loss_ratios, tail_factor=1.0)
Bornhuetter-Ferguson法计算未决赔款准备金。
必填: triangle, earned_premium, expected_loss_ratios
reserve_progression(historical_reserves)
准备金进展分析,评估准备金估计随时间的变动。
必填: historical_reserves
调用示例
python scripts/main.py \
--triangle <triangle> \
--earned-premium <earned_premium> \
--expected-loss-ratios <expected_loss_ratios> \
--tail-factor <tail_factor>