src.data_sources.annuity.policyholder_behaviors.base_lapse.BaseLapse

class src.data_sources.annuity.policyholder_behaviors.base_lapse.BaseLapse(path: str)

Data source for the base lapse table.

Inheritance Diagram

Inheritance diagram of BaseLapse

Variables & Properties

Methods

__init__(path)

Constructor method.

base_lapse_rate(policy_year)

Returns a base lapse rate.

Details

__init__(path: str)

Constructor method. Loads data from the base lapse table into cache.

Relative path to the base lapse table:

resource/annuity/policyholder_behaviors/base_lapse_rate.csv

Parameters:

path – Path to the base lapse table.

base_lapse_rate(policy_year: int) float

Returns a base lapse rate.

Parameters:

policy_year – Policy year.

Returns:

Base lapse rate.

cache: DataFrame

Internal cache, populated at runtime.