Created
August 24, 2023 08:25
-
-
Save acturtle/2119a4ecdf21caedb056d3a7b032972b to your computer and use it in GitHub Desktop.
actuaries_digital_04
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
@variable() | |
def expected_benefit(t): | |
if t == 0: | |
return 0 | |
if t > main.get("remaining_term"): | |
return 0 | |
return survival_rate(t-1) * assumption["DEATH_PROB"] * main.get("sum_assured") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment