Actual vs Estimated

Lapse assumption changes based on previous year experience.

../../_images/sphx_glr_plot_actest_001.png

Out:

Started loading data from 'input.xlsx'.
Loading PolicyData...Done. (0.50secs)
Loading MortalityTables...Done. (0.40secs)
Loading ProductSpec...Done. (0.26secs)
Loading OtherParam1...Done. (0.23secs)
Loading OtherParams2...Done. (0.23secs)
Loading Assumption...Done. (0.26secs)
Loading AssumptionTables...Done. (0.39secs)
Loading Scenarios...Done. (0.28secs)
Input space and its sub spaces are saved in '[project name].mx'.
You can load input data from the saved file instead of 'input.xlsx'
by passing 'load_saved=True' to simplelife.build function.

import modelx as mx

try:
    import nestedlife.nestedlife as nestedlife
except ImportError:
    import nestedlife

model = nestedlife.build()

# Policy point ID and aliases
polid = 171
outer = model.OuterProj[polid]
inner = outer.InnerProj

# Code block for overriding the default model

outer.SurrRateMult[1] = 2
outer.SurrRateMult[2] = 0.5
outer.SurrRateMult[3] = 1

inner[1].SurrRateMult[1] = 2
inner[2].SurrRateMult[2] = 0.5
inner[3].SurrRateMult[3] = 1

# Code block for drawing graphs

from draw_charts import draw_actest_pairs

draw_actest_pairs(outer, inner, ['PolsSurr', 'PolsIF_End'], 5, 10)

Total running time of the script: ( 0 minutes 4.019 seconds)

Gallery generated by Sphinx-Gallery