Tabulated exposure curve
tabulated_curve.RdAn exposure curve from a published table of points (x, G(x)) from
(0, 0) to (1, 1), interpolated linearly (or log-log): Salzmann's homeowners scale,
Ludwig's curves, ISO PSOLD tables or a reinsurer's own. The table must be
concave (its slopes never increase). Its destruction rate is discrete:
the points' x with probabilities from the drops in slope, and a total
loss with probability last slope over first. Its mean rate (curve@mean)
is the first chord's, x1 / G(x1), so a table needs fine first points
for the expected loss to be right.
Usage
tabulated_curve(x, g, interpolation = c("linear", "log-log"), ptr = NULL)
tabulated_curve_from_severity(severity, mpl, points = 200)Arguments
- x
Increasing from 0 to 1.
- g
G(x), from 0 to 1.- interpolation
"linear"(the default) or"log-log".- ptr
Internal.
- severity
A severity: lognormal, grid_distribution or a Pareto-family distribution.
- mpl
The maximum possible loss.
- points
Number of points, at least 4.
Details
With interpolation = "log-log" the curve runs as a power law between
points (straight on log-log axes), G(x) = G_k (x / x_k)^p_k, which
follows a curve's bend between sparse points better than a chord; the
first piece, from (0, 0), stays straight. The interpolated curve must be
concave, so the elasticities p_k may not rise from piece to piece: a
table with a total-loss mass at the top (the Swiss Re curves with c up
to 3, read at a few points) fails and keeps linear interpolation. The
destruction rate is then continuous within each piece past the first.
Works with exposure_curve(), exposure_layer_share() and
rate_quantile(), like an mbbefd curve.
tabulated_curve_from_severity() tabulates a severity's exposure curve
capped at the MPL (as severity_exposure_curve()) at points points,
half spaced geometrically from 1e-6 and half at equal steps of G,
so a risk profile's band can use it.
Examples
t <- tabulated_curve(c(0, 0.1, 0.5, 1), c(0, 0.4, 0.8, 1))
exposure_curve(t, 0.3)
#> [1] 0.6
t@mean
#> [1] 0.25
exposure_curve(tabulated_curve(c(0, 0.1, 0.5, 1), c(0, 0.4, 0.8, 1), "log-log"), 0.3)
#> [1] 0.6420146
s <- tabulated_curve_from_severity(lognormal_from_mean_cv(1e5, 2), 1e6)
exposure_curve(s, 0.5)
#> [1] 0.9233482