用 R 评估人寿保险产品
Katrien Antonio, Ph.D.
Professor, KU Leuven and University of Amsterdam
固定一个货币单位与时间单位:
在时点 $k$ 收到或支付的金额:

# Define the cash flows
cash_flows <- c(500, 400, 300, rep(200, 5))
length(cash_flows)
8

关键事实:
现金流的时点很重要!
货币的时间价值很重要!
利率决定资金增长。
累积

i <- 0.03
1 * (1 + i)
1.03
贴现

v <- 1 / (1 + i)
v
0.9708738
累积

i <- 0.03 ; v <- 1 / (1 + i) ; k <- 2
c((1 + i) ^ k, v ^ -k)
1.0609 1.0609
贴现

i <- 0.03 ; v <- 1 / (1 + i) ; k <- 2
c((1 + i) ^ -k, v ^ k)
0.9425959 0.9425959

该现金流向量在 $k=0$ 时的价值是多少?

该现金流向量在 $k=0$ 时的价值是多少?
即现值(PV)!
# Interest rate i <- 0.03# Discount factor v <- 1 / (1 + i)# Define the discount factors discount_factors <- v ^ (0:7)# Cash flow vector cash_flows <- c(500, 400, 300, rep(200, 5))
# Discounting cash flows
cash_flows * discount_factors
500.0000 388.3495 282.7788 183.0283
177.6974 172.5218 167.4969 162.6183
# Present value of cash flow vector
present_value <-
sum(cash_flows * discount_factors)
present_value
[1] 2034.491
用 R 评估人寿保险产品