| name | actuarial-tables |
| description | 生命表构建工具,实现死亡率平滑、q_x序列与精算换算函数计算。适用于精算教学示例与生命表演示;基于简化死亡率模型,不适用于正式精算定价或准备金评估。 |
| version | 1.0.0 |
| author | wangyi |
actuarial-tables
生命表与精算表工具,计算死亡率、生存概率、生命期望及精算换算函数。
📌 说明:本工具基于简化模型实现,仅使用 Python 标准库。结果仅供学习参考,不构成投资建议或交易依据。
脚本API
build_life_table(q_table, radix=100000, max_age=110)
构建生命表。
必填: q_table
commutation_functions(lx, interest_rate, max_age=110)
计算精算换算函数。
必填: lx, interest_rate
annuity_present_value(comm, age, n=None)
计算生存年金精算现值。
必填: comm, age
insurance_present_value(comm, age, n=None)
计算寿险精算现值。
必填: comm, age
调用示例
python scripts/main.py \
--comm <comm> \
--age <age> \
--n <n> \