Pyliferisk - joint and survival functions

74 views
Skip to first unread message

Gustavo da Costa Morais

unread,
Aug 20, 2022, 8:19:31 PM8/20/22
to openactuarial
Hi,

I would like to know if there are joint and survival annuity functions in pyliferisk.

Thanks in advance.

Francisco Gárate

unread,
Aug 22, 2022, 6:26:14 PM8/22/22
to openactuarial
Hi, Gustavo.

Try annuity() function (see section "2.3 Annuity formula" in documentation". Example:

Premium calculation: A Life Temporal insurance for a male, 30 years-old and a horizon of 10 years, fixed annual premium (GKM95, interest 6%):

import pyliferisk as lf
from pyliferisk.mortalitytables import GKM95

nt = lf.Actuarial(nt=GKM95, i=0.06)
x = 30
n = 10
C = 1000

print(C * (lf.Axn(nt, x, n) / lf.annuity(nt, x, n, 0)))

In case of whole-life annuity use x=nt.w
Kind regards,
F.

Gustavo da Costa Morais

unread,
Aug 22, 2022, 8:16:58 PM8/22/22
to Francisco Gárate, openactuarial
Hi Francisco, thank you.

I was referring to axy annuity (joint or last survival).

Thanks in advance.



--
You received this message because you are subscribed to a topic in the Google Groups "openactuarial" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openactuarial/QYXoB4MOlNc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openactuaria...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openactuarial/35ca1bd4-0ba2-4509-abe5-ad7cf72b413cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages