## Building a Life Table

After writing my previous post, Mortality by Year and Age, I’ve become progressively more interested in the mortality data. Perhaps those actuaries are onto something? I found this report, which has a wealth of pertinent information. On p. 13 the report gives details on constructing a Life Table, which is one of the fundamental tools in Actuarial Science. The lifespan package has all of the data required to construct a Life Table, so I created a `lifetable`

data frame which has those data broken down by gender.

The columns in the data above should be interpreted as follows:

`lx`

is the number of people who have survive to age`x`

, based on an initial cohort of 100 000 people;`dx`

is the expected number of people in the cohort who die aged`x`

on their last birthday; and`qx`

is the probability that someone aged`x`

will die before reaching age`x+1`

.

A plot gives a high level overview of the data. Below `lx`

is plotted as a function of age. Click on the image to access an interactive Plotly version. The cohort size has been renormalised so that `lx`

is expressed as a percent. It’s readily apparent that the attrition rate is much higher for males than females, and that very few people survive beyond the age of 105.

Using these data we can also calculate some related conditional probabilities. For example, what is the probability that a person aged 70 will live for at least another 5 years?

Another example, what is the probability that a person aged 70 will live for at least another 5 years but then die in the 10 years after that?

Interesting stuff! Everything indicates that in terms of longevity, females have the upper hand.

Somebody made the following witty comment on LinkedIn in response to my previous post:

> Just good to know that death risk visibly decreases after 100y/o. This helps.

Well, yes and no. In an absolute sense your risk of dying after the age of 100 is relatively low. But the reason for this is that the probability of you actually making it to the age of 100 is low. If, however, you do manage to achieve this monumental age, then your risk of dying is rather high.

So men aged 100 have 39% probability of dying before reaching the age of 101, while the probability for women is 34%.

Note that there are also life table data in the babynames package.