开始使用免费开始使用

Saving for university

Cynthia's parents anticipate her graduation from high school and start saving money to finance her studies. For each study year at a Belgian university, they will need 3500 EUR.

In the timeline printed below, the red cash flows denote the saving deposits by Cynthia's parents and the blue cash flows denote the study expenses.

Assume a constant interest rate of 3%. Can you compute the value of the savings amount \(K\) using the notion of actuarial equivalence of cash flows?

本练习是课程的一部分

Life Insurance Products Valuation in R

查看课程

练习说明

  • Define the discount_factors at times 0 through 9 for the assumed interest rate of 3%.
  • Create the vector deposits, representing the deposit pattern corresponding to all 10 time points. Since deposits are only made at time points 1 to 4, the vector deposits should start with a 0, then four times a 1 and then 5 times 0 again.
  • Define payments, representing the expenses at the university. This vector should contain 0 five times, followed by 3500 (five times, again).

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Define the discount factors
discount_factors <- (___ + ___) ^ - (___)

# Define the deposit pattern
deposits <- c(___, ___(___, ___), ___(___, ___))

# Define the university expenses
payments <- c(___(___, ___), ___(___, ___))
编辑并运行代码