src.data_sources.annuity.mortality.mortality_improvement_dates.MortalityImprovementDates

class src.data_sources.annuity.mortality.mortality_improvement_dates.MortalityImprovementDates(path: str)

Scale G2 mortality improvement assumptions. Scale G2 is based on time elapsed since the table was created. These assumptions are required to calculate the final mortality improvement rate.

Inheritance Diagram

Inheritance diagram of MortalityImprovementDates

Variables & Properties

mortality_improvement_end_date

Returns the mortality improvement end date, which is used to adjust the Scale G2 mortality table.

mortality_improvement_start_date

Returns the mortality improvement start date, which is used to adjust the Scale G2 mortality table.

Methods

__init__(path)

Constructor method.

Details

__init__(path: str)

Constructor method. Loads data from the assumption table into cache.

Relative path to the assumption table:

resource/annuity/mortality/mortality_improvement_projection_scale_g2_dates.csv

Parameters:

path – Path to assumption table.

cache: DataFrame

Internal cache, populated at runtime.

property mortality_improvement_end_date: date

Returns the mortality improvement end date, which is used to adjust the Scale G2 mortality table.

Returns:

Mortality improvement end date.

property mortality_improvement_start_date: date

Returns the mortality improvement start date, which is used to adjust the Scale G2 mortality table.

Returns:

Mortality improvement start date.