Skip to contents

occurrence_exceedance() is the chance that a year's largest occurrence exceeds x, 1 - G_N(F(x)) with G_N the count's generating function (1 - exp(-lambda * S(x)) for a Poisson count). occurrence_pml() inverts it: the loss whose occurrence exceedance is the annual probability p, for any claim count (the Python package aggregate's oep covers Poisson counts). annual_maxima() is each simulated year's largest loss, whose survival function is the simulated OEP curve.

Usage

occurrence_pml(frequency, severity, p, tower = NULL, view = "ceded")

occurrence_exceedance(frequency, severity, x, tower = NULL, view = "ceded")

annual_maxima(events)

Arguments

frequency

A claim count, as for simulate_events().

severity

A severity, as for simulate_events().

p

Annual probabilities in (0, 1 - P(N = 0)).

tower

Optional reinsurance_tower(), an occurrence program on the loss basis.

view

"ceded" (default), "net" or "gross", with tower.

x

Losses.

events

An event_set.

Value

occurrence_exceedance(): probabilities. occurrence_pml(): a data frame with probability, loss, severity_survival, occurrence_return_period (1 / (E[N] S(loss)), which can be shorter than a year) and annual_return_period (1 / p). annual_maxima(): a predictive_distribution.

Details

With an occurrence program tower, both are of the program's view of an occurrence: "ceded", the tower's total ceded loss before annual terms, or "net", as aggregate 2.1.0's oep on an occurrence ceded to or net of clause. The PML is the program's function of the gross PML; where the view is flat (a layer placed in full, for the net), severity_survival is the gross survival at the end of that stretch and the achieved probability falls below p.

Examples

sev <- lognormal_from_mean_cv(100, 2)
occurrence_pml(poisson_count(2), sev, c(0.1, 0.01, 0.001))
#>   probability      loss severity_survival occurrence_return_period
#> 1       0.100  348.9348      0.0526802578                 9.491222
#> 2       0.010 1171.4979      0.0050251679                99.499162
#> 3       0.001 2906.6432      0.0005002502               999.499917
#>   annual_return_period
#> 1                   10
#> 2                  100
#> 3                 1000
occurrence_exceedance(negative_binomial_count(1.5, 2), sev, c(500, 1000))
#> [1] 0.07984951 0.02109079
tower <- reinsurance_tower(list(xol_layer("L", 400, 100)))
occurrence_pml(poisson_count(2), sev, c(0.1, 0.01), tower = tower, view = "net")
#>   probability     loss severity_survival occurrence_return_period
#> 1        0.10 100.0000       0.028523250                 17.52956
#> 2        0.01 771.4979       0.005025168                 99.49916
#>   annual_return_period
#> 1                   10
#> 2                  100
ev <- simulate_events(poisson_count(2), sev, 10000, seed = 1)
mean(annual_maxima(ev))
#> [1] 147.0064