Last active
August 24, 2023 09:00
-
-
Save acturtle/a3cd1b2596d2bde7b4a1511c69324d3f to your computer and use it in GitHub Desktop.
actuaries_digital_03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cashflower import variable | |
from input import assumption, main | |
from settings import settings | |
@variable() | |
def survival_rate(t): | |
if t == 0: | |
return 1 | |
return survival_rate(t-1) * (1-assumption["DEATH_PROB"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment