Pricing Insurance Risk: the case studies in prospicio
pricing-insurance-risk-case-studies.RmdRendered from docs/guides/pricing-insurance-risk-case-studies.qmd.
The code runs each time the site is built, so the output below is
current.
Stephen Mildenhall and John Major’s book Pricing Insurance Risk (Wiley, 2022) applies one method, in four steps, to four case studies:
- Build the distribution of the total of a book from its units.
- Select a capital standard.
- Price the total with a spectral risk measure calibrated to a target return.
- Split the price over the units by the natural allocation.
Mildenhall’s package aggregate made the book’s exhibits.
Version 0.30.1 still holds the code
(aggregate.extensions.case_studies) and the case studies as
DecL programs in its tests. This guide runs the case studies in
prospicio, with the value that aggregate 0.30.1 returns
beside each number. The settings are those of
case_studies.py: a 10% return on capital, and each case’s
capital standard and grid. If distortion, natural allocation or lifted
capital are new words, read CAS
Monograph 15 reproduced first.
This is the R twin of the Python guide pricing-insurance-risk-case-studies.md,
with the same sections, models and numbers. The R package calls the same
Rust code, so each number equals the one in the Python guide. The text
under each chunk is what it prints;
R/prospicio/tests/test-guides.R runs the chunks in order
and checks it. To render the page, install the R package
(remotes::install_github, see
R/prospicio/bootstrap.R), then run
quarto render docs/guides/pricing-insurance-risk-case-studies.qmd.
1. The method in one function
Each case study has two independent units on one grid.
capital_portfolio() on a named list of grids combines them
and keeps each unit’s expected loss given the total. The assets are the
quantile of the total at the capital standard p.
The constant cost of capital (CCoC) at 10% sets the premium of the
total, P = v E[min(X, a)] + d a, with
v = 1 / 1.1 and d = 1 - v; it earns exactly
10% on the capital a - P. The code calibrates the four
other distortions (proportional hazard (PH), Wang, dual power and TVaR)
to the same total premium. They differ only in how they split it.
library(prospicio)
library(gt)
FAMILIES <- c("ccoc", "ph", "wang", "dual", "tvar")
RETURN <- 0.10
# A severity on a grid, its mass above the top spread over the grid as aggregate does.
discretize_renormalized <- function(severity, step, points) {
probs <- discretize(severity, step, 2 * points, method = "rounding")@probs[seq_len(points)]
grid_distribution(step, probs / sum(probs))
}
# The total's assets at standard p, read from a price (R has no Portfolio.assets(p)).
assets_at <- function(book, p) {
priced <- natural_price(book, distortion("ccoc", RETURN), p = p)
priced$assets[priced$unit == "total"]
}
# The five distortions that price the book's total at a 10% return at standard p.
calibrate <- function(book, p) {
a <- assets_at(book, p)
capped <- capital_portfolio(cbind(total = pmin(book@totals, a)), probs = book@probs)
setNames(lapply(FAMILIES, function(f) {
calibrate_portfolio(capped, f, assets = a, return_on_capital = RETURN)
}), FAMILIES)
}
# Price the book under each distortion. Print the assets and the largest gap to aggregate 0.30.1.
# Returns the prices and a frame whose rows alternate prospicio and aggregate 0.30.1.
show <- function(book, p, distortions, aggregate_030) {
priced <- lapply(distortions, function(d) natural_price(book, d, p = p))
first <- priced$ccoc
units <- book@units
n <- length(units)
losses <- paste(sprintf("%s %.3f", units, first$loss[1:n]), collapse = ", ")
cat(sprintf("assets %.3f; loss within assets: %s, total %.3f\n",
first$assets[n + 1], losses, first$loss[n + 1]))
with_parameter <- length(aggregate_030$ccoc) == n + 2
rows <- list()
labels <- character()
largest <- 0
for (f in names(priced)) {
ref <- aggregate_030[[f]]
mine <- numeric()
theirs <- numeric()
if (with_parameter) {
mine <- distortions[[f]]@parameters[[1]]
theirs <- ref[1]
ref <- ref[-1]
}
got <- priced[[f]]$premium
largest <- max(largest, abs(got - ref))
rows <- c(rows, list(c(mine, got), c(theirs, ref)))
labels <- c(labels, f, paste0(f, ", aggregate"))
}
cat(sprintf("largest difference in a premium: %.4f\n", largest))
frame <- as.data.frame(do.call(rbind, rows))
names(frame) <- c(if (with_parameter) "parameter", units, "total")
invisible(list(priced = priced, frame = cbind(distortion = labels, frame)))
}
# The frame of `show` as a table: premiums at 3 decimals, the distortion's parameter at 4.
comparison <- function(frame, title, subtitle) {
premiums <- setdiff(names(frame)[-1], "parameter")
table <- gt(frame, rowname_col = "distortion") |>
tab_header(title, subtitle) |>
fmt_number(columns = all_of(premiums), decimals = 3, use_seps = FALSE)
if ("parameter" %in% names(frame)) table <- fmt_number(table, columns = "parameter", decimals = 4)
table
}The premium of the total depends only on the total capped at the
assets, so calibrate() fits the distortions on that capped
total, a one-unit portfolio. The parameters are the same, and on the
half million points of section 6 this is much faster.
discretize_renormalized() renormalizes as
aggregate does (normalize=True): it spreads
the probability above the top of the grid over the grid.
discretize(method = "rounding") keeps it on the last point.
Section 6 shows why this matters for a thick tail.
2. Discrete: a book you can price by hand
The first case study is two units with three outcomes each:
port Discrete
agg X1 1 claim dsev [0 8 10] [1/2 1/4 1/4] fixed
agg X2 1 claim dsev [0 1 90] [1/2 1/4 1/4] fixed
The nine joint outcomes have different totals, so you can check every
number with a pencil. The 90 of X2 makes the tail.
case_studies.py prices the book at p = 1, so
the assets are the largest total, 100, and no outcome defaults.
x1 <- grid_distribution(1, c(0.5, rep(0, 7), 0.25, 0, 0.25))
x2 <- grid_distribution(1, c(0.5, 0.25, rep(0, 88), 0.25))
discrete <- capital_portfolio(list(X1 = x1, X2 = x2))
outcomes <- data.frame(total = discrete@totals, probability = discrete@probs)
gt(outcomes) |>
tab_header("Discrete: the nine joint outcomes", "Total loss of X1 and X2 and its probability") |>
fmt_number(total, decimals = 0) |>
fmt_number(probability, decimals = 4, drop_trailing_zeros = TRUE)| Discrete: the nine joint outcomes | |
| Total loss of X1 and X2 and its probability | |
| total | probability |
|---|---|
| 0 | 0.25 |
| 1 | 0.125 |
| 8 | 0.125 |
| 9 | 0.0625 |
| 10 | 0.125 |
| 11 | 0.0625 |
| 90 | 0.125 |
| 98 | 0.0625 |
| 100 | 0.0625 |
DISCRETE_030 <- list( # aggregate 0.30.1: (parameter, P X1, P X2, P total)
ccoc = c(0.1000, 5.0000, 28.8636, 33.8636),
ph = c(0.8236, 4.8989, 28.9648, 33.8636),
wang = c(0.2014, 4.9954, 28.8682, 33.8636),
dual = c(1.3202, 5.1691, 28.6945, 33.8636),
tvar = c(0.1953, 5.5922, 28.2715, 33.8636)
)
discrete_d <- calibrate(discrete, 1)
discrete_r <- show(discrete, 1, discrete_d, DISCRETE_030)## assets 100.000; loss within assets: X1 4.500, X2 22.750, total 27.250
## largest difference in a premium: 0.0000
discrete_p <- discrete_r$priced
comparison(discrete_r$frame, "Discrete: premium by unit",
"Standard p = 1, 10% return; each distortion against aggregate 0.30.1")| Discrete: premium by unit | ||||
| Standard p = 1, 10% return; each distortion against aggregate 0.30.1 | ||||
| parameter | X1 | X2 | total | |
|---|---|---|---|---|
| ccoc | 0.1000 | 5.000 | 28.864 | 33.864 |
| ccoc, aggregate | 0.1000 | 5.000 | 28.864 | 33.864 |
| ph | 0.8236 | 4.899 | 28.965 | 33.864 |
| ph, aggregate | 0.8236 | 4.899 | 28.965 | 33.864 |
| wang | 0.2014 | 4.995 | 28.868 | 33.864 |
| wang, aggregate | 0.2014 | 4.995 | 28.868 | 33.864 |
| dual | 1.3202 | 5.169 | 28.695 | 33.864 |
| dual, aggregate | 1.3202 | 5.169 | 28.695 | 33.864 |
| tvar | 0.1953 | 5.592 | 28.271 | 33.864 |
| tvar, aggregate | 0.1953 | 5.592 | 28.271 | 33.864 |
The parameters and all fifteen premiums agree. The total premium is
27.25 / 1.1 + 100 / 11 = 33.864. The distortions disagree
about X1. The CCoC discounts each unit’s expected loss by v
and adds d times its share of the assets in the worst
outcome. There X1 loses 10 and X2 loses 90, so X1 pays
4.5 / 1.1 + 10 / 11 = 5.000. TVaR at 0.195 weights every
outcome above the 19.5% quantile equally, and X1 contributes to many of
them, so it pays 5.592.
3. Tame: when the choice hardly matters
Tame has two gamma units with mean 50 and small CVs, 0.10 and 0.15:
port Tame
agg A 1 claim sev gamma 50 cv 0.10 fixed
agg B 1 claim sev gamma 50 cv 0.15 fixed
aggregate’s tame.py sets the standard at
99.99%. This guide uses 99.9%, as in the other continuous cases, and ran
aggregate at 99.9% too. The grid has a step of 1/64 and
2^16 points:
STEP <- 1 / 64
POINTS <- 2^16
a_unit <- discretize_renormalized(gamma_from_mean_cv(50, 0.10), STEP, POINTS)
b_unit <- discretize_renormalized(gamma_from_mean_cv(50, 0.15), STEP, POINTS)
tame <- capital_portfolio(list(A = a_unit, B = b_unit))
TAME_030 <- list( # aggregate 0.30.1, linear allocation
ccoc = c(0.1000, 50.6820, 52.0950, 102.7770),
ph = c(0.7289, 50.8134, 51.9636, 102.7770),
wang = c(0.3062, 50.8437, 51.9333, 102.7770),
dual = c(1.4415, 50.8693, 51.9077, 102.7770),
tvar = c(0.1793, 50.8958, 51.8812, 102.7770)
)
tame_d <- calibrate(tame, 0.999)
tame_r <- show(tame, 0.999, tame_d, TAME_030)## assets 130.578; loss within assets: A 49.999, B 49.998, total 99.997
## largest difference in a premium: 0.0003
tame_p <- tame_r$priced
comparison(tame_r$frame, "Tame: premium by unit",
"Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1")| Tame: premium by unit | ||||
| Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1 | ||||
| parameter | A | B | total | |
|---|---|---|---|---|
| ccoc | 0.1000 | 50.682 | 52.095 | 102.777 |
| ccoc, aggregate | 0.1000 | 50.682 | 52.095 | 102.777 |
| ph | 0.7289 | 50.813 | 51.964 | 102.777 |
| ph, aggregate | 0.7289 | 50.813 | 51.964 | 102.777 |
| wang | 0.3062 | 50.844 | 51.933 | 102.777 |
| wang, aggregate | 0.3062 | 50.844 | 51.933 | 102.777 |
| dual | 1.4415 | 50.869 | 51.908 | 102.777 |
| dual, aggregate | 1.4415 | 50.869 | 51.908 | 102.777 |
| tvar | 0.1793 | 50.896 | 51.881 | 102.777 |
| tvar, aggregate | 0.1793 | 50.896 | 51.881 | 102.777 |
All values agree to the third decimal. B, the more volatile unit, pays the larger margin under each distortion. The distortions move A’s premium over a range of 0.21 and B’s by the same amount the other way. Thin, similar tails leave little to disagree about.
4. Cat and non-cat: who pays depends on the distortion
Cat/Non-Cat puts a large, steady unit next to a small, volatile one. NonCat is a gamma with mean 80 and CV 0.15, and Cat is a lognormal with mean 20 and CV 1. The total has mean 100, as in Tame, but a real tail:
port CNC.Gross
agg CNC.NonCat 1 claim sev gamma 80 cv 0.15 fixed
agg CNC.Cat 1 claim sev lognorm 20 cv 1.00 fixed
noncat <- discretize_renormalized(gamma_from_mean_cv(80, 0.15), STEP, POINTS)
cat_unit <- discretize_renormalized(lognormal_from_mean_cv(20, 1.0), STEP, POINTS)
cnc <- capital_portfolio(list(NonCat = noncat, Cat = cat_unit))
CNC_030 <- list( # aggregate 0.30.1, linear allocation
ccoc = c(0.1000, 79.2018, 35.9470, 115.1488),
ph = c(0.5965, 82.3610, 32.7897, 115.1507),
wang = c(0.6109, 83.8990, 31.2519, 115.1509),
dual = c(2.4634, 85.4756, 29.6755, 115.1510),
tvar = c(0.4816, 86.4562, 28.6948, 115.1511)
)
cnc_d <- calibrate(cnc, 0.999)
cnc_r <- show(cnc, 0.999, cnc_d, CNC_030)## assets 267.203; loss within assets: NonCat 79.988, Cat 19.958, total 99.946
## largest difference in a premium: 0.0025
cnc_p <- cnc_r$priced
comparison(cnc_r$frame, "Cat/Non-Cat: premium by unit",
"Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1")| Cat/Non-Cat: premium by unit | ||||
| Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1 | ||||
| parameter | NonCat | Cat | total | |
|---|---|---|---|---|
| ccoc | 0.1000 | 79.202 | 35.950 | 115.151 |
| ccoc, aggregate | 0.1000 | 79.202 | 35.947 | 115.149 |
| ph | 0.5965 | 82.361 | 32.790 | 115.151 |
| ph, aggregate | 0.5965 | 82.361 | 32.790 | 115.151 |
| wang | 0.6109 | 83.899 | 31.252 | 115.151 |
| wang, aggregate | 0.6109 | 83.899 | 31.252 | 115.151 |
| dual | 2.4634 | 85.476 | 29.676 | 115.151 |
| dual, aggregate | 2.4634 | 85.476 | 29.675 | 115.151 |
| tvar | 0.4816 | 86.456 | 28.695 | 115.151 |
| tvar, aggregate | 0.4816 | 86.456 | 28.695 | 115.151 |
The parameters agree and the premiums agree to within 0.003. The
largest difference is in the CCoC row, and aggregate causes
it: its linear allocation adds up to 115.149, 0.002 less than the
premium it calibrated (115.151, which its lifted allocation does reach).
The units of prospicio add up to the calibrated premium.
Now the split matters: the CCoC charges NonCat less than its expected loss. The margins and NonCat’s assets in the linear allocation show why:
margin_table <- data.frame(
distortion = FAMILIES,
`NonCat margin` = sapply(FAMILIES, function(f) cnc_p[[f]]$premium[1] - cnc_p[[f]]$loss[1]),
`Cat margin` = sapply(FAMILIES, function(f) cnc_p[[f]]$premium[2] - cnc_p[[f]]$loss[2]),
`NonCat assets` = sapply(FAMILIES, function(f) cnc_p[[f]]$assets[1]),
check.names = FALSE
)
gt(margin_table, rowname_col = "distortion") |>
tab_header("Cat/Non-Cat: margin and assets by unit", "Margin is premium minus expected loss; linear allocation") |>
fmt_number(columns = c("NonCat margin", "Cat margin", "NonCat assets"), decimals = 2)| Cat/Non-Cat: margin and assets by unit | |||
| Margin is premium minus expected loss; linear allocation | |||
| NonCat margin | Cat margin | NonCat assets | |
|---|---|---|---|
| ccoc | −0.79 | 15.99 | 71.34 |
| ph | 2.37 | 12.83 | 108.30 |
| wang | 3.91 | 11.29 | 124.54 |
| dual | 5.49 | 9.72 | 143.91 |
| tvar | 6.47 | 8.74 | 149.64 |
library(ggplot2, exclude = "layer") # keeps prospicio's layer()
margins <- do.call(rbind, lapply(FAMILIES, function(f) {
r <- cnc_p[[f]]
data.frame(distortion = f, unit = c("NonCat", "Cat"), margin = r$premium[1:2] - r$loss[1:2])
}))
margins$distortion <- factor(margins$distortion, levels = FAMILIES)
margins$unit <- factor(margins$unit, levels = c("NonCat", "Cat"))
ggplot(margins, aes(distortion, margin, fill = unit)) +
geom_col(position = "dodge", width = 0.7) +
geom_hline(yintercept = 0, colour = "grey75") +
labs(x = "distortion", y = "margin (premium minus expected loss)", fill = NULL,
title = "Cat/Non-Cat: the margin of each unit, by distortion") +
theme(legend.position = "top")Under the CCoC a unit pays v times its expected loss,
plus d times its share of the assets in the outcomes at or
above the assets. NonCat’s share there, 71.34, is below its mean of 80,
because a large cat loss causes the book’s 99.9% outcome. So the CCoC
gives almost all of the margin to Cat. The other distortions weight the
whole upper tail, where NonCat’s own variation counts. The right
distortion depends on what the capital providers get paid for, the
question of Risk
loads and distortions.
5. Cat and non-cat, net of an aggregate cover
The net version buys an aggregate stop loss on the cat unit, 79.64 excess of 41.11:
agg CNC.Net.Cat 1 claim sev lognorm 20 cv 1.00 fixed aggregate net of 79.64 xs 41.11
The cover attaches at the 90% quantile of the cat distribution and
exhausts at its 99.5% quantile, 120.75. As in
case_studies.py, the net book is priced with the
distortions calibrated on the gross book, at the net book’s 99.9%
assets.
cat(sprintf("cat quantiles: 90%% %.3f, 99.5%% %.3f\n", quantile(cat_unit, 0.9), quantile(cat_unit, 0.995)))## cat quantiles: 90% 41.109, 99.5% 120.750
cover <- tower_on_grid(
reinsurance_tower(list(aggregate_stop_loss("79.64 xs 41.11", 79.64, 41.11))),
fixed_count(1), cat_unit, POINTS
)
cat(sprintf("cat mean %.4f, ceded %.4f, net %.4f (aggregate 0.30.1: net 17.7870)\n",
mean(cat_unit), mean(cover$ceded[[1]]), mean(cover$net)))## cat mean 19.9998, ceded 2.2142, net 17.7856 (aggregate 0.30.1: net 17.7870)
cnc_net <- capital_portfolio(list(NonCat = noncat, Cat = cover$net))
CNC_NET_030 <- list( # aggregate 0.30.1, linear allocation, gross distortions: (P NonCat, P Cat, P total)
ccoc = c(78.8836, 27.0171, 105.9008),
ph = c(83.6084, 23.9472, 107.5556),
wang = c(84.9090, 23.8837, 108.7927),
dual = c(85.9201, 24.2165, 110.1366),
tvar = c(86.4892, 24.3973, 110.8865)
)
cnc_net_r <- show(cnc_net, 0.999, cnc_d, CNC_NET_030)## assets 187.578; loss within assets: NonCat 79.985, Cat 17.747, total 97.732
## largest difference in a premium: 0.0035
cnc_net_p <- cnc_net_r$priced
comparison(cnc_net_r$frame, "Cat/Non-Cat net of 79.64 xs 41.11: premium by unit",
"Standard p = 99.9%, gross distortions; each against aggregate 0.30.1")| Cat/Non-Cat net of 79.64 xs 41.11: premium by unit | |||
| Standard p = 99.9%, gross distortions; each against aggregate 0.30.1 | |||
| NonCat | Cat | total | |
|---|---|---|---|
| ccoc | 78.883 | 27.016 | 105.900 |
| ccoc, aggregate | 78.884 | 27.017 | 105.901 |
| ph | 83.609 | 23.944 | 107.553 |
| ph, aggregate | 83.608 | 23.947 | 107.556 |
| wang | 84.910 | 23.880 | 108.790 |
| wang, aggregate | 84.909 | 23.884 | 108.793 |
| dual | 85.921 | 24.213 | 110.134 |
| dual, aggregate | 85.920 | 24.216 | 110.137 |
| tvar | 86.489 | 24.394 | 110.884 |
| tvar, aggregate | 86.489 | 24.397 | 110.886 |
The attachment 41.11 lies between two grid points (41.109375 and
41.125). tower_on_grid() splits each recovery between
adjacent points, so the mean is exact on the grid.
aggregate places the cover differently, which moves the net
cat mean by 0.0014 and the net premiums by up to 0.004. The assets,
187.578, agree.
The cover removes 2.21 of expected loss and 79.6 of assets. With the distortions at their gross calibration, the premium falls by different amounts:
saving <- data.frame(
distortion = FAMILIES,
gross_P = sapply(FAMILIES, function(f) cnc_p[[f]]$premium[3]),
net_P = sapply(FAMILIES, function(f) cnc_net_p[[f]]$premium[3])
)
saving$saving <- saving$gross_P - saving$net_P
gt(saving, rowname_col = "distortion") |>
tab_header("Cat/Non-Cat: premium of the book gross and net of the cover",
"Each distortion at its gross calibration, 10% return, p = 99.9%") |>
cols_label(gross_P = "gross P", net_P = "net P") |>
fmt_number(columns = c(gross_P, net_P, saving), decimals = 2)| Cat/Non-Cat: premium of the book gross and net of the cover | |||
| Each distortion at its gross calibration, 10% return, p = 99.9% | |||
| gross P | net P | saving | |
|---|---|---|---|
| ccoc | 115.15 | 105.90 | 9.25 |
| ph | 115.15 | 107.55 | 7.60 |
| wang | 115.15 | 108.79 | 6.36 |
| dual | 115.15 | 110.13 | 5.02 |
| tvar | 115.15 | 110.88 | 4.27 |
Under the CCoC the saving is four times the expected recovery, because the CCoC prices the tail that the cover removes. Read each saving as the most that the cedent can pay for the cover under that measure: its expected loss plus the margin it releases. Which distortion the cedent uses is a business decision.
6. Hurricane and severe convective storm
Two catastrophe perils, each with a frequency and a severity. SCS (severe convective storm) has 70 Poisson events a year with a lognormal severity of mean 1 and shape 1.9. Hu (hurricane) has 2 Poisson events a year with a lognormal severity of mean 15 and shape 2.5, a much thicker tail. The grid has a step of 1/4 and 2^19 points:
port HuSCS.Gross
agg SCS 70 claims sev 0.16447 * lognorm 1.9 poisson
agg Hu 2 claims sev 0.65905 * lognorm 2.5 poisson
The scale of each lognormal is m exp(-sigma^2 / 2) for
its mean m. The DecL parser of 0.30.1 reads the test
suite’s exp(-1.9**2 / 2) with -1.9**2 as
(-1.9)**2, so that program gives SCS events a mean of
36.97, not 1. hs.py builds the program in Python and gets
1. The comparison here uses the numbers.
HU_STEP <- 0.25
HU_POINTS <- 2^19
scs_sev <- discretize_renormalized(lognormal(-(1.9^2) / 2, 1.9), HU_STEP, HU_POINTS)
hu_sev <- discretize_renormalized(lognormal(log(15) - 2.5^2 / 2, 2.5), HU_STEP, HU_POINTS)
scs <- compound_distribution(poisson_count(70), scs_sev, HU_POINTS, method = "fft")
hu <- compound_distribution(poisson_count(2), hu_sev, HU_POINTS, method = "fft")
cat(sprintf("annual means: SCS %.4f, Hu %.4f (aggregate 0.30.1: 69.1332, 29.7272)\n", mean(scs), mean(hu)))## annual means: SCS 69.1332, Hu 29.7273 (aggregate 0.30.1: 69.1332, 29.7272)
hs <- capital_portfolio(list(SCS = scs, Hu = hu))
HS_030 <- list( # aggregate 0.30.1, linear allocation
ccoc = c(0.1000, 69.9780, 251.3356, 321.3136),
ph = c(0.4492, 92.8223, 228.4915, 321.3138),
wang = c(1.1897, 107.3655, 213.9484, 321.3138),
dual = c(12.0290, 128.7668, 192.5471, 321.3139),
tvar = c(0.8990, 135.7558, 185.5581, 321.3139)
)
hs_d <- calibrate(hs, 0.999)
hs_r <- show(hs, 0.999, hs_d, HS_030)## assets 2583.000; loss within assets: SCS 69.087, Hu 26.058, total 95.145
## largest difference in a premium: 0.0012
hs_p <- hs_r$priced
comparison(hs_r$frame, "Hurricane/SCS: premium by unit",
"Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1")| Hurricane/SCS: premium by unit | ||||
| Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1 | ||||
| parameter | SCS | Hu | total | |
|---|---|---|---|---|
| ccoc | 0.1000 | 69.977 | 251.337 | 321.314 |
| ccoc, aggregate | 0.1000 | 69.978 | 251.336 | 321.314 |
| ph | 0.4492 | 92.822 | 228.492 | 321.314 |
| ph, aggregate | 0.4492 | 92.822 | 228.492 | 321.314 |
| wang | 1.1897 | 107.365 | 213.949 | 321.314 |
| wang, aggregate | 1.1897 | 107.365 | 213.948 | 321.314 |
| dual | 12.0290 | 128.767 | 192.547 | 321.314 |
| dual, aggregate | 12.0290 | 128.767 | 192.547 | 321.314 |
| tvar | 0.8990 | 135.756 | 185.558 | 321.314 |
| tvar, aggregate | 0.8990 | 135.756 | 185.558 | 321.314 |
The parameters agree, and the premiums agree to within 0.0012. This
difference is again aggregate’s CCoC total, below its
calibrated premium (321.3136 against 321.3140). The annual means are
below 70 and 30 because the grid stops at 131,072. Renormalizing the
severity, as aggregate does, makes Hu lose 0.27 of its mean
of 30.
The 99.9% assets, 2,583, are twenty-six times the expected loss, and
the premium of 321.31 is a loss ratio of 30%. The tail is so thick that
the top of the grid changes the answer. With
discretize(method = "rounding"), which keeps the
probability above the grid on its last point, the 99.9% assets move:
lumped <- discretize(lognormal(log(15) - 2.5^2 / 2, 2.5), HU_STEP, HU_POINTS, method = "rounding")
hu_lumped <- compound_distribution(poisson_count(2), lumped, HU_POINTS, method = "fft")
hs_lumped <- capital_portfolio(list(SCS = scs, Hu = hu_lumped))
cat(sprintf("Hu mean %.4f, assets at 99.9%% %.2f\n", mean(hu_lumped), assets_at(hs_lumped, 0.999)))## Hu mean 29.8662, assets at 99.9% 2584.75
Neither convention gives the true distribution. The first loses the hurricanes above 131,072, and the second puts them all at 131,072. For a severity this thick, check the answer against the grid before you quote it.
The net version buys a per-occurrence cover on hurricanes, 372.4 excess of 40.25, about the band between the 95% and 99.5% severity quantiles:
agg Net.Hu 2 claims sev 0.65905 * lognorm 2.5 occurrence net of 372.4 xs 40.25 poisson
cat(sprintf("Hu severity quantiles: 95%% %.2f, 99.5%% %.2f\n", quantile(hu_sev, 0.95), quantile(hu_sev, 0.995)))## Hu severity quantiles: 95% 40.25, 99.5% 412.50
hu_cover <- tower_on_grid(
reinsurance_tower(list(xol_layer("372.4 xs 40.25", 372.4, 40.25))),
poisson_count(2), hu_sev, HU_POINTS
)
cat(sprintf("net Hu mean %.4f (aggregate 0.30.1: 19.6066)\n", mean(hu_cover$net)))## net Hu mean 19.6066 (aggregate 0.30.1: 19.6066)
hs_net <- capital_portfolio(list(SCS = scs, Hu = hu_cover$net))
HS_NET_030 <- list( # aggregate 0.30.1, linear allocation, gross distortions: (P SCS, P Hu, P total)
ccoc = c(70.8172, 207.5519, 278.3692),
ph = c(103.5237, 157.0879, 260.6115),
wang = c(121.5553, 131.7081, 253.2635),
dual = c(148.2679, 92.9822, 241.2502),
tvar = c(155.4211, 83.3008, 238.7219)
)
hs_net_r <- show(hs_net, 0.999, hs_d, HS_NET_030)## assets 2211.750; loss within assets: SCS 69.079, Hu 15.952, total 85.031
## largest difference in a premium: 0.0012
hs_net_p <- hs_net_r$priced
comparison(hs_net_r$frame, "Hurricane/SCS net of 372.4 xs 40.25: premium by unit",
"Standard p = 99.9%, gross distortions; each against aggregate 0.30.1")| Hurricane/SCS net of 372.4 xs 40.25: premium by unit | |||
| Standard p = 99.9%, gross distortions; each against aggregate 0.30.1 | |||
| SCS | Hu | total | |
|---|---|---|---|
| ccoc | 70.816 | 207.553 | 278.369 |
| ccoc, aggregate | 70.817 | 207.552 | 278.369 |
| ph | 103.523 | 157.088 | 260.612 |
| ph, aggregate | 103.524 | 157.088 | 260.611 |
| wang | 121.555 | 131.708 | 253.263 |
| wang, aggregate | 121.555 | 131.708 | 253.263 |
| dual | 148.268 | 92.982 | 241.250 |
| dual, aggregate | 148.268 | 92.982 | 241.250 |
| tvar | 155.421 | 83.301 | 238.722 |
| tvar, aggregate | 155.421 | 83.301 | 238.722 |
hu_premium <- data.frame(
distortion = factor(rep(FAMILIES, 2), levels = FAMILIES),
book = rep(c("gross", "net of the cover"), each = length(FAMILIES)),
premium = c(sapply(FAMILIES, function(f) hs_p[[f]]$premium[2]),
sapply(FAMILIES, function(f) hs_net_p[[f]]$premium[2]))
)
ggplot(hu_premium, aes(distortion, premium, fill = book)) +
geom_col(position = "dodge", width = 0.7) +
labs(x = "distortion", y = "premium of Hu", fill = NULL,
title = "Hurricane/SCS: the premium of Hu, gross and net of 372.4 xs 40.25") +
theme(legend.position = "top")The net book also agrees to within 0.0012. The cover removes a third of the hurricane loss (10.1 of 29.7) but only 371 of the 2,583 of assets: hurricanes above the top of the cover, 412.65, cause the 99.9% outcome, and the cedent keeps them. Under the dual power and TVaR, which load SCS more, the Hu premium falls by more than half.
7. Lifted capital: the version difference again
The tables above use the linear allocation, the default. With
allocation = "lifted", the capital of each unit, and in one
case the premium, differ between aggregate 0.30.1 and
prospicio. CAS
Monograph 15 reproduced shows the same difference for InsCo and
traces it to a change in aggregate between 0.30.1 and
1.0.1; prospicio’s tests of the natural allocation use 1.0.1. The code
below compares the two on the gross Cat/Non-Cat book (P is the premium,
Q the capital):
LIFTED_030 <- list( # aggregate 0.30.1, lifted: (P NonCat, Q NonCat, P Cat, Q Cat)
ccoc = c(74.6401, -39.5909, 40.5110, 191.6431),
ph = c(82.2573, 48.5354, 32.8938, 103.5170),
wang = c(83.8865, 59.8745, 31.2646, 92.1783),
dual = c(85.4756, 63.0400, 29.6755, 89.0144),
tvar = c(86.4562, 63.1853, 28.6949, 88.8705)
)
rows <- list()
labels <- character()
for (f in names(cnc_d)) {
r <- natural_price(cnc, cnc_d[[f]], p = 0.999, allocation = "lifted")
rows <- c(rows, list(c(r$premium[1], r$capital[1], r$premium[2], r$capital[2]), LIFTED_030[[f]]))
labels <- c(labels, f, paste0(f, ", aggregate"))
}
lifted <- as.data.frame(do.call(rbind, rows))
names(lifted) <- c("NonCat P", "NonCat Q", "Cat P", "Cat Q")
lifted <- cbind(distortion = labels, lifted)
gt(lifted, rowname_col = "distortion") |>
tab_header("Cat/Non-Cat: premium and capital by unit, lifted allocation",
"Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1") |>
fmt_number(columns = c("NonCat P", "NonCat Q", "Cat P", "Cat Q"), decimals = 2, use_seps = FALSE)| Cat/Non-Cat: premium and capital by unit, lifted allocation | ||||
| Standard p = 99.9%, 10% return; each distortion against aggregate 0.30.1 | ||||
| NonCat P | NonCat Q | Cat P | Cat Q | |
|---|---|---|---|---|
| ccoc | 75.43 | −45.58 | 39.72 | 197.63 |
| ccoc, aggregate | 74.64 | −39.59 | 40.51 | 191.64 |
| ph | 82.26 | 48.80 | 32.89 | 103.25 |
| ph, aggregate | 82.26 | 48.54 | 32.89 | 103.52 |
| wang | 83.89 | 59.88 | 31.26 | 92.18 |
| wang, aggregate | 83.89 | 59.87 | 31.26 | 92.18 |
| dual | 85.48 | 63.04 | 29.68 | 89.01 |
| dual, aggregate | 85.48 | 63.04 | 29.68 | 89.01 |
| tvar | 86.46 | 63.18 | 28.69 | 88.87 |
| tvar, aggregate | 86.46 | 63.19 | 28.69 | 88.87 |
The table shows two decimals because the CCoC row is sensitive to
round-off: it moves in the fourth decimal when the CCoC’s r
changes in its last bit. Wang, dual power and TVaR agree to about 0.004.
Under PH the premiums agree and the capital does not (NonCat 48.80
against 48.54). Under the CCoC the premiums also differ (NonCat 75.43
against 74.64), and both programs give NonCat a negative capital. The
totals agree in each row. As in the monograph guide, use the premiums
and margins of the linear allocation, which agree, and treat capital by
unit under the CCoC and PH as dependent on the version.
Where to go next: prospicio for aggregate users for the DecL clauses used above. What a reinsurance price is for how a reinsurer prices the covers of sections 5 and 6.