Skip to content

Commit

Permalink
[docs] formula missed (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv authored Jun 11, 2024
1 parent d9b33ff commit dd47104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ L = Life(slopop[:male], 7000, 1990*365.241)

Due to the constance of the hazard rates on each cell of the lifetable, the life expectation can be computed through the following formula:

$$ \mathbf{E}(P) = \int_0^\inf S_p (t) dt = \sum_{j=0}^\inf \frac{S_p(t_j)}{\lambda_p(t_j)(1 - exp(-\lambda_p(t_j)(t_{j+1}-t_j)))} $$
$$\mathbf{E}(P) = \int_0^\inf S_p (t) dt = \sum_{j=0}^\inf \frac{S_p(t_j)}{\lambda_p(t_j)(1 - exp(-\lambda_p(t_j)(t_{j+1}-t_j)))}$$

Implemented in the function `Distributions.expectation`:

Expand Down

0 comments on commit dd47104

Please sign in to comment.