Appendix: Life Expectancy¶
Life expectancy is computed from a projected life table using the following standard actuarial definitions. It is used during calibration to evaluate how well a candidate \(\beta_{\text{sex}}\) reproduces Statistics Canada’s targets.
We first define some variables:
Variable |
Type |
Definition |
|---|---|---|
\(x\) |
|
age in years |
\(\Delta x\) |
|
the width of the age interval in years |
\(\ell(x, \Delta x, t)\) |
|
the number of people alive up to age \(x\) at timepoint \(t\) |
\(q(x, \Delta x, t)\) |
|
the probability of death between ages \([x, x + \Delta x)\) at timepoint \(t\) |
\(d(x, \Delta x, t)\) |
|
the number of deaths between ages \([x, x + \Delta x)\) at timepoint \(t\) |
\(a(x, \Delta x, t)\) |
|
the average fraction of the interval \([x, x + \Delta x)\) lived by those who die in the interval, for a given timepoint \(t\) and \(\Delta x\) |
\(L(x, \Delta x)\) |
|
the area under the survival curve between ages \([x, x + \Delta x)\) |
\(T(x, t)\) |
|
the total number of person-years lived after age \(x\) |
\(E(x, t)\) |
|
the number of years left to live at age \(x\) |
\(E(x=0, t)\) |
|
the number of years left to live at age \(0\) for someone born at timepoint \(t\),
i.e. |
Number of People Alive¶
First, we set the number of people alive at age \(0\) at timepoint \(t\):
Next, we calculate the number of people alive up to age \(x\):
Total Deaths¶
The number of deaths \(d(x, \Delta x, t)\) between ages \([x, x + \Delta x)\), is given by the number of people alive at age \(x\) multiplied by the probability of death between ages \([x, x + \Delta x)\):
Survival Curve¶
Formally, the area under the survival curve between ages \([x, x + \Delta x)\) is given by:
However, we can approximate this using the midpoint formula for numerical integration:
We can simplify the above equation to:
Math: \(L(x, \Delta x, t)\)
Assuming that deaths are uniform across the interval \([x, x + \Delta x)\), we have \(a(x) = 0.5\) for all \(x\). Thus, we have:
Because infant mortality is highest in the first few days of life, if \(\Delta x < 7 \text{days}\), we set \(a(x_0) = 0.1\).
For the final age group, since everyone dies, \(l(x_f + \Delta x, \Delta x, t) = 0\), and \(q(x_f, \Delta x, t) = 1\). Thus, we have:
Time Lived After Age \(x\)¶
\(T(x, t)\): calculate the total time lived after age \(x\) by all people alive at age \(x\)
where \(x + N \cdot \Delta x = 110\) is the maximum age in the life table, and \(t\) represents the current timepoint.
Number of Years Left to Live¶
The number of years left to live at age \(x\) is given by \(E(x, t)\):
Finally, to get the life expectancy, we calculate the number of years left to live at
age 0, i.e. \(E(0, t)\):