Blog posts

Life annuities

A life annuity is a series of payments while a given life survives.

Life annuities play a major role in life insurance. Life insurances are usually purchased by a life annuity of premiums rather than by a single premium. The amount payable at the time of claim may be converted through a settlement option into some form of life annuity for the beneficiary.

Annuities are also central in pension systems as our retirements have a form of an annuity. They also have a role in disability and workers' compensation insurances.

A life annuity may be termporary, that is, limited to …

Life insurance

Life insurance aims to reduce the financial impact of the event of untimely death. The life insurances are long-term in nature which provides a significant element of uncertainty.

The size and time of payment in life insurance depend on the time of death of the insured. The actuarial cash flow models are built as a function of the t variable.

We usually consider life insurance as insurance on human lives, but the same idea can apply to objects, such as: equipment, machines or loans.

There are multiple types of life insurance. We will build simple models in Python using the …

Model variables

The core of a financial cash flow model lies in its model variables. In this blog post, we will delve into the intricacies of different types of model variables and demonstrate how to create them using the cashflower package.


List of content:

  1. Defining model variables
  2. Time-dependent variable
  3. Constant variable

Defining model variables

To define a model variable, follow these steps:

  1. define a function with the t parameter (or without any parameters),
  2. decorate the function with @variable().

Model variables can produce results per time and model point. While most are time-dependent, some remain constant throughout. Let's explore both types. …

Monthly mortality rates

Mortality rates are one of the most critical assumptions in life insurance. Actuaries often rely on the mortality rates published by Statistics Offices. Typically, these rates are provided on a yearly basis. However, actuarial cash flow models operate on a monthly scale. In this post, we will explore two common methods for transforming yearly rates into monthly ones: the constant rate and uniform distribution of deaths.


List of content:

  1. Transformation methods
  2. Practical applications

Transformation methods

When it comes to transforming yearly mortality rates into monthly ones, actuaries commonly employ two methods:

  • Constant Rate

The …

Speed of model

Runtime is an important aspect of actuarial cash flow models. With the tight reporting deadlines, actuaries are keen to have results as fast as possible. In this post, we will discuss how to measure and improve the runtime of actuarial cash flow models.


List of content:

  1. How to improve speed of model?
  2. How to measure runtime?

How to improve speed of model?

Firstly, we will discuss how to improve the speed of the actuarial cash flow models. In particular, we will discuss the following aspects:

  • multiprocessing,
  • indexing assumptions,
  • maximal calculation …