Skip to contents

For a policyholder with Poisson claims of mean lambda: bonus_malus_transition() is the one-year transition matrix (row l + 1, column j + 1 the probability of moving from level l to j); bonus_malus_stationary() the stationary distribution of the levels; bonus_malus_after() the distribution after years years from the start level; bonus_malus_years() the years from the start level until that distribution is within tolerance of the stationary one in total variation (NA past 100,000 years); bonus_malus_efficiency() Loimaranta's efficiency d ln r(lambda) / d ln lambda of the scale with relativities, exact, and bonus_malus_mean_relativity() that r(lambda), the stationary mean relativity. The last two take a vector of frequencies.

Usage

bonus_malus_transition(scale, lambda)

bonus_malus_stationary(scale, lambda)

bonus_malus_after(scale, lambda, years)

bonus_malus_years(scale, lambda, tolerance = 0.01)

bonus_malus_efficiency(scale, lambda, relativities)

bonus_malus_mean_relativity(scale, lambda, relativities)

Arguments

scale

A bonus_malus() scale.

lambda

The expected claim frequency.

years

Years from the start level.

tolerance

The total variation distance to reach, in (0, 1).

relativities

One relativity per level.

Value

A matrix, a vector over the levels, a number of years or a vector over lambda.

Examples

scale <- bonus_malus(10, start = 6, up_per_claim = 2)
bonus_malus_stationary(scale, 0.1)
#>  [1] 0.7791130033 0.0819400298 0.0905577380 0.0221704781 0.0163081647
#>  [6] 0.0050719705 0.0029786463 0.0010784560 0.0005601721 0.0002213412
bonus_malus_years(scale, 0.1, 0.01)
#> [1] 18
r <- bonus_malus_portfolio(scale, 0.1, cv = 1)$relativity
bonus_malus_efficiency(scale, c(0.05, 0.1, 0.2), r)
#> [1] 0.1179900 0.2928009 0.8092421