Counts, the Pareto sweep and the count test for casualty exposure
casualty_occurrences.Rdcasualty_occurrences() gives each policy's expected ground-up
occurrences above t a year from its own curve,
premium * elr / (share * [LEV(a + l) - LEV(a)]) * S(t), a table's S
its slope just above t. casualty_sweep() runs the frequency form at
each alpha of a Pareto from threshold, the counts held fixed; the
central alpha and its source are yours to state, since prospicio ships
no benchmark. casualty_expected_claims() is the number of claims a year
recorded at or above the ground-up size t (a policy records an
occurrence once it passes its attachment and caps it at a + l), and
casualty_count_test() sets the expected count over the experience
period beside the observed one at each size, with the Poisson
probability of a count at least as extreme in the direction observed
(poisson_tail()).
Usage
casualty_occurrences(profile, t)
casualty_sweep(
profile,
limit,
attachment,
alae,
threshold,
counts,
alphas,
loading = NULL
)
casualty_expected_claims(profile, t, threshold, counts, excess)
casualty_count_test(
profile,
sizes,
threshold,
counts,
excess,
exposure_years,
observed
)Arguments
- profile
- t
A ground-up size.
- limit, attachment
The per-policy treaty,
limitxsattachment.- alae
"pro_rata","on_top"or"in_severity".- threshold
The size the counts start at.
- counts
Each policy's expected occurrences above
thresholda year.- alphas
Pareto alphas.
- loading
The ALAE loading
e, required with"pro_rata"and"on_top".- excess
A severity of the losses above
threshold.- sizes
Ground-up sizes, at or above
threshold.- exposure_years
The experience period in the profile's years: each year's on-level premium over the profile's, summed.
- observed
The trended ground-up losses, a claim closed at its limit at the limit.
Value
casualty_occurrences(): one count per policy.
casualty_sweep(): a data frame of alpha, ceded, loss_cost.
casualty_expected_claims(): a number. casualty_count_test(): a
data frame of size, expected, observed, p_value.
Examples
book <- casualty_profile(list(pareto(1e6, 1.5)), limit = 10e6, premium = 1e6, elr = 0.6)
n <- casualty_occurrences(book, 1e6)
casualty_sweep(book, 5e6, 5e6, alae = "in_severity", threshold = 1e6, counts = n,
alphas = c(1, 1.5, 2))
#> alpha ceded loss_cost
#> 1 1.0 175662.30 0.17566230
#> 2 1.5 66390.73 0.06639073
#> 3 2.0 25342.71 0.02534271
casualty_count_test(book, c(1e6, 2e6), threshold = 1e6, counts = n,
excess = pareto(1e6, 1.5), exposure_years = 5,
observed = c(1.2e6, 2.5e6))
#> size expected observed p_value
#> 1 1e+06 1.2671357 2 0.3614903
#> 2 2e+06 0.4480001 1 0.3610954