Capital adequacy and the natural allocation: CAS Monograph 15, chapters 3 and 4
capital-modeling-monograph-15-theory.RmdRendered from docs/guides/capital-modeling-monograph-15-theory.qmd.
The code runs each time the site is built, so the output below is
current.
CAS Monograph 15, Introduction to Capital Modeling and Portfolio Management (John Major and Stephen Mildenhall, 2026), builds its theory on one small company, InsCo. This guide recomputes the tables of chapter 3 (capital adequacy) and chapter 4 (pricing and allocation), the monograph’s value beside prospicio’s. Table numbers are the monograph’s. Money is in its units.
This is the R twin of the Python guide capital-modeling-monograph-15-theory.md,
with the same sections, examples and numbers.
R/prospicio/tests/test-guides.R checks that each chunk
prints the text under it.
For the theory, read Mildenhall and Major’s Pricing Insurance Risk. The case studies guide runs its examples.
1. InsCo and the four adjustments
InsCo writes units A, B and C. Its capital model is ten equally likely years (Table 2.1), each cell a unit’s loss. Plan premiums are 13.9, 18.7 and 19.6:
library(prospicio)
library(gt)
UNITS <- c("A", "B", "C")
ROWS <- rbind(
c(5, 20, 11), c(7, 33, 0), c(15, 13, 0), c(15, 7, 0), c(13, 20, 7),
c(5, 27, 8), c(15, 16, 9), c(26, 19, 10), c(17, 8, 40), c(16, 20, 64)
)
colnames(ROWS) <- UNITS
PLAN <- c(13.9, 18.7, 19.6)
insco <- capital_portfolio(ROWS)
totals <- rowSums(ROWS)
total <- sampled(totals)
kappa <- sapply(UNITS, function(u) portfolio_kappa(insco, u)) # one row per total
kappa_table <- data.frame(
total = c(sprintf("%.0f", insco@totals), "E[X]"),
p = c(insco@probs, NA),
rbind(kappa, insco@expected)
)
gt(kappa_table, rowname_col = "total") |>
tab_header("Table 4.2 without its zero row: InsCo's seven totals",
"p is the probability of the total; A, B, C are each unit's expected loss given it") |>
fmt_number(columns = c(p, A, B, C), decimals = 1) |>
sub_missing(missing_text = "")| Table 4.2 without its zero row: InsCo's seven totals | ||||
| p is the probability of the total; A, B, C are each unit's expected loss given it | ||||
| p | A | B | C | |
|---|---|---|---|---|
| 22 | 0.1 | 15.0 | 7.0 | 0.0 |
| 28 | 0.1 | 15.0 | 13.0 | 0.0 |
| 36 | 0.1 | 5.0 | 20.0 | 11.0 |
| 40 | 0.4 | 10.0 | 24.0 | 6.0 |
| 55 | 0.1 | 26.0 | 19.0 | 10.0 |
| 65 | 0.1 | 17.0 | 8.0 | 40.0 |
| 100 | 0.1 | 16.0 | 20.0 | 64.0 |
| E[X] | 13.4 | 18.3 | 14.9 | |
Section 4.3 changes the raw simulation output four ways before pricing:
- Sort the years by total.
- Start from a total of zero.
- Cap the losses at the assets.
- Make the totals distinct.
capital_portfolio() makes all four changes when you
build it. It needs no zero row, which only starts the layer sums.
Nothing is capped, because the assets of 100 cover the worst year. The
four years that total 40 become one scenario of probability 0.4, each
unit at its average over those years (the conditional expectation
kappa), so the allocation does not depend on the order of
years with an equal total.
Algorithm 3.4.1 gives the expected loss two ways: the probability-weighted sum of the totals, and the sum of the layers between totals, each weighted by the probability that the total reaches it (the survival function).
xs <- c(0, insco@totals) # pad with a zero outcome
ps <- c(0, insco@probs)
survival <- 1 - cumsum(ps)
by_outcome <- sum(xs * ps)
by_layer <- sum(survival[-length(xs)] * diff(xs))
cat(sprintf("E[X] by outcomes %.1f, by layers %.1f\n", by_outcome, by_layer))## E[X] by outcomes 46.6, by layers 46.6
2. Capital adequacy: what a loss level means
Section 3.1 reads the balance sheet as a ladder of thresholds. The plan premium is 52.2 and the assets are 100: 27.8 of equity and 20 of debt with 0.6 of coupon due (Table 3.1):
LEVELS <- data.frame( # event, loss at which it happens, the book's probability
event = c("zero profit", "shareholders wiped out", "coupon not paid", "bonds not redeemed"),
level = c(52.2, 52.2 + 27.8, 52.2 + 27.8 + 0.6, 100),
book = c(0.30, 0.10, 0.10, 0.10)
)
LEVELS$prospicio <- sapply(LEVELS$level, function(l) mean(totals >= l))
gt(LEVELS[, c("event", "level", "prospicio", "book")], rowname_col = "event") |>
tab_header("Table 3.1: the thresholds of InsCo's balance sheet",
"Loss at which each happens; probability that a year reaches it") |>
cols_label(level = "loss level") |>
fmt_number(columns = level, decimals = 1) |>
fmt_percent(columns = c(prospicio, book), decimals = 0)| Table 3.1: the thresholds of InsCo's balance sheet | |||
| Loss at which each happens; probability that a year reaches it | |||
| loss level | prospicio | book | |
|---|---|---|---|
| zero profit | 52.2 | 30% | 30% |
| shareholders wiped out | 80.0 | 10% | 10% |
| coupon not paid | 80.6 | 10% | 10% |
| bonds not redeemed | 100.0 | 10% | 10% |
## TVaR at 99%: 100.0 (book 100.0)
Each threshold is a possible VaR standard. Every standard above 90% gives the worst year, so the monograph calls the assets of 100 a TVaR 99% standard, or full collateral. No default occurs.
3. VaR and TVaR
VaR at level p is the smallest loss not exceeded with probability
p. TVaR is the average of the worst 1 - p of outcomes, with a fraction
of the boundary outcome when 1 - p of the years is not a whole number.
Algorithms 3.4.2 and 3.4.3 compute them by sorting and counting. They
match quantile() and TVaR() on a
sampled() distribution at all but two levels:
var_sorted <- function(xs, p) {
# Algorithm 3.4.2: the floor(n p)-th smallest outcome, counting from 0.
xs <- sort(xs)
xs[min(floor(length(xs) * p), length(xs) - 1) + 1]
}
tvar_sorted <- function(xs, p) {
# Algorithm 3.4.3: the average of the largest n (1 - p) outcomes.
xs <- sort(xs)
n <- length(xs)
k <- floor(n * p)
if (k + 1 >= n) return(xs[n])
whole <- sum(xs[(k + 2):n])
part <- xs[k + 1] * ((k + 1) - n * p)
(whole + part) / (n * (1 - p))
}
levels_p <- c(0, 0.25, 0.5, 0.7, 0.75, 0.85, 0.9, 0.95)
var_tvar <- data.frame(
p = sprintf("%.2f", levels_p),
var_alg = sapply(levels_p, function(p) var_sorted(totals, p)),
var_sampled = sapply(levels_p, function(p) quantile(total, p)),
tvar_alg = sapply(levels_p, function(p) tvar_sorted(totals, p)),
tvar_sampled = sapply(levels_p, function(p) TVaR(total, p))
)
gt(var_tvar, rowname_col = "p") |>
tab_header("VaR and TVaR of InsCo's total: the algorithms against sampled()") |>
cols_label(var_alg = "VaR, algorithm", var_sampled = "VaR, sampled",
tvar_alg = "TVaR, algorithm", tvar_sampled = "TVaR, sampled") |>
fmt_number(columns = c(var_alg, var_sampled), decimals = 1) |>
fmt_number(columns = c(tvar_alg, tvar_sampled), decimals = 3)| VaR and TVaR of InsCo's total: the algorithms against sampled() | ||||
| VaR, algorithm | VaR, sampled | TVaR, algorithm | TVaR, sampled | |
|---|---|---|---|---|
| 0.00 | 22.0 | 22.0 | 46.600 | 46.600 |
| 0.25 | 36.0 | 36.0 | 53.067 | 53.067 |
| 0.50 | 40.0 | 40.0 | 60.000 | 60.000 |
| 0.70 | 55.0 | 40.0 | 73.333 | 73.333 |
| 0.75 | 55.0 | 55.0 | 77.000 | 77.000 |
| 0.85 | 65.0 | 65.0 | 88.333 | 88.333 |
| 0.90 | 100.0 | 65.0 | 100.000 | 100.000 |
| 0.95 | 100.0 | 100.0 | 100.000 | 100.000 |
They differ at p = 0.7 and 0.9, where n p is a whole
number and falls on a jump of the distribution (the total is at most 40
in exactly 70% of the years). The monograph’s text defines VaR as the
smallest p quantile (40 at 0.7, 65 at 0.9), which
quantile() returns. The algorithm, read literally, takes
the next outcome up. TVaR is the same under both.
TVaR at 0 is the mean, and TVaR at 1 is the largest outcome. The monograph prefers TVaR because it is subadditive (the TVaR of a sum is at most the sum of the TVaRs) and VaR is not. Its examples: a discrete one with outcome probabilities 0.9, 0.05 and 0.05 (here twenty equally likely years) and two independent standard exponentials at p = 0.7.
unit1 <- c(rep(0, 18), 0, 10)
unit2 <- c(rep(0, 18), 10, 0)
cases <- list(unit1, unit2, unit1 + unit2)
discrete <- data.frame(
case = c("unit 1", "unit 2", "sum"),
var90 = sapply(cases, function(v) quantile(sampled(v), 0.9)),
alg90 = sapply(cases, function(v) var_sorted(v, 0.9)),
var91 = sapply(cases, function(v) quantile(sampled(v), 0.91)),
tvar90 = sapply(cases, function(v) TVaR(sampled(v), 0.9))
)
gt(discrete, rowname_col = "case") |>
tab_header("The discrete example: VaR is not subadditive, TVaR is") |>
cols_label(var90 = "VaR(0.9)", alg90 = "VaR(0.9), algorithm 3.4.2", var91 = "VaR(0.91)",
tvar90 = "TVaR(0.9)") |>
fmt_number(columns = c(var90, alg90, var91, tvar90), decimals = 1)| The discrete example: VaR is not subadditive, TVaR is | ||||
| VaR(0.9) | VaR(0.9), algorithm 3.4.2 | VaR(0.91) | TVaR(0.9) | |
|---|---|---|---|---|
| unit 1 | 0.0 | 0.0 | 0.0 | 5.0 |
| unit 2 | 0.0 | 0.0 | 0.0 | 5.0 |
| sum | 0.0 | 10.0 | 10.0 | 10.0 |
one <- quantile(gamma_distribution(1, 1), 0.7)
two <- quantile(gamma_distribution(2, 1), 0.7)
exponentials <- data.frame(
case = c("one exponential", "twice that", "sum of two"),
prospicio = c(one, 2 * one, two),
book = c(1.204, 2.408, 2.439)
)
gt(exponentials, rowname_col = "case") |>
tab_header("VaR(0.7) of independent standard exponentials") |>
fmt_number(columns = c(prospicio, book), decimals = 3)| VaR(0.7) of independent standard exponentials | ||
| prospicio | book | |
|---|---|---|
| one exponential | 1.204 | 1.204 |
| twice that | 2.408 | 2.408 |
| sum of two | 2.439 | 2.439 |
In both examples, the VaR of the sum exceeds the sum of the VaRs. In the discrete example the total is zero in 90% of the years, so the smallest 90% quantile of the sum is 0. The monograph’s failure case (0 for each unit, 10 in total) is the algorithm’s reading at 0.9, and every definition gives it just above 0.9. TVaR adds up exactly in the first example and is less than the sum in the second. The two authors disagree on which measure to use. For the rest of the monograph, the capital standard sets the assets.
4. Risk analysis: marginal assets
Section 3.3 asks how each unit drives the assets. For a TVaR standard, the coTVaR (the derivative of the assets with respect to a unit’s volume) is the unit’s average loss in the tail that defines the TVaR. At 99% that tail is the worst year, so the coTVaRs are the unit losses in that year, and the linear natural allocation gives the same split. Capital on plan is the coTVaR less the plan premium (Table 3.2). The VaR(0.85) rows are Table 3.3, the marginal split of the 85% VaR of 65:
co_tvar <- as.numeric(kappa[nrow(kappa), ])
co_all <- c(co_tvar, sum(co_tvar))
plan_all <- c(PLAN, sum(PLAN))
var85 <- c(as.numeric(kappa[6, ]), 65)
BOOK_CAPITAL <- c(2.1, 1.3, 44.4, 47.8)
BOOK_VAR85 <- c(17, 8, 40, 65)
unit_names <- c(UNITS, "total")
capital <- do.call(rbind, lapply(1:4, function(i) {
data.frame(
unit = c(unit_names[i], paste0(unit_names[i], ", book")),
co_tvar = c(co_all[i], NA),
plan = c(plan_all[i], NA),
capital = c(co_all[i] - plan_all[i], BOOK_CAPITAL[i]),
var85 = c(var85[i], BOOK_VAR85[i])
)
}))
gt(capital, rowname_col = "unit") |>
tab_header("Tables 3.2 and 3.3: capital on plan and the 85% VaR split", "Monograph units") |>
cols_label(co_tvar = "coTVaR", plan = "plan premium", capital = "capital on plan",
var85 = "VaR(0.85)") |>
fmt_number(columns = c(co_tvar, plan, capital), decimals = 1) |>
fmt_number(columns = var85, rows = c(1, 3, 5, 7), decimals = 1) |>
fmt_number(columns = var85, rows = c(2, 4, 6, 8), decimals = 0) |>
sub_missing(missing_text = "")| Tables 3.2 and 3.3: capital on plan and the 85% VaR split | ||||
| Monograph units | ||||
| coTVaR | plan premium | capital on plan | VaR(0.85) | |
|---|---|---|---|---|
| A | 16.0 | 13.9 | 2.1 | 17.0 |
| A, book | 2.1 | 17 | ||
| B | 20.0 | 18.7 | 1.3 | 8.0 |
| B, book | 1.3 | 8 | ||
| C | 64.0 | 19.6 | 44.4 | 40.0 |
| C, book | 44.4 | 40 | ||
| total | 100.0 | 52.2 | 47.8 | 65.0 |
| total, book | 47.8 | 65 | ||
The 85% VaR split is one simulated year and is fragile: unit B loses 8 in that year but 19 and 20 in the years on each side. The monograph’s remedies are the conditional expectations of section 1 and a range VaR (an average between two levels). Chapter 4 takes another way out: risk-adjusted probabilities.
5. Pricing the whole
Chapter 4 prices from the top down. Investors want 15% on their
capital. With assets of 100 and an expected loss of 46.6, that sets the
premium. The monograph’s pentagon of loss, margin, premium, capital and
assets (Table 4.1) is pentagon(), which finds it from any
three quantities. The chunk takes the risk discount as the margin over
the unfunded liability a - L (#365):
whole <- pentagon(loss = 46.6, assets = 100, return_on_capital = 0.15)
d <- 0.15 / 1.15
discount <- whole[["margin"]] / (whole[["assets"]] - whole[["loss"]])
pentagon_table <- data.frame(
quantity = c("premium", "margin", "capital", "risk discount d", "(1 - d) L + d a",
"loss ratio", "premium to capital", "plan premium less premium"),
prospicio = c(whole[["premium"]], whole[["margin"]], whole[["capital"]], discount,
(1 - d) * 46.6 + d * 100, whole[["loss_ratio"]],
whole[["premium_to_capital"]], 52.2 - whole[["premium"]]),
book = c(53.565, NA, NA, 0.13043, NA, NA, NA, -1.4)
)
gt(pentagon_table, rowname_col = "quantity") |>
tab_header("Table 4.1: InsCo's pentagon at a 15% return",
"Loss 46.6, assets 100; monograph units, ratios as shown") |>
fmt_number(columns = prospicio, rows = c(1, 2, 3, 5, 6, 7, 8), decimals = 3) |>
fmt_number(columns = prospicio, rows = 4, decimals = 5) |>
fmt_number(columns = book, decimals = 5, drop_trailing_zeros = TRUE) |>
sub_missing(missing_text = "")| Table 4.1: InsCo's pentagon at a 15% return | ||
| Loss 46.6, assets 100; monograph units, ratios as shown | ||
| prospicio | book | |
|---|---|---|
| premium | 53.565 | 53.565 |
| margin | 6.965 | |
| capital | 46.435 | |
| risk discount d | 0.13043 | 0.13043 |
| (1 - d) L + d a | 53.565 | |
| loss ratio | 0.870 | |
| premium to capital | 1.154 | |
| plan premium less premium | −1.365 | −1.4 |
The premium is a weighted average of the expected loss and the
assets, with the risk discount d = r / (1 + r) as the
weight on the assets. The plan is 1.365 short of what investors need;
the companion guide finds the units that cause it.
6. Pricing layers in total
Section 4.4 splits the 100 of assets into layers between consecutive
totals. A layer pays in full when the total exceeds its bottom, so it is
a bet with one parameter, the exceedance probability S.
With a rate on line g(S) for a distortion g,
the premium is the sum of g(S) times the layer width, the
distorted form of the layer sum in section 1. For the constant cost of
capital (CCoC) at 15%, g(s) = d + (1 - d) s for any
s > 0 (Table 4.4):
ccoc <- distortion("ccoc", 0.15)
widths <- diff(xs)
s_layer <- survival[seq_along(widths)]
g_layer <- distortion_g(ccoc, s_layer)
layers <- data.frame(
from = c(sprintf("%.0f", xs[-length(xs)]), "total", "total, book"),
width = c(widths, NA, NA),
S = c(s_layer, NA, NA),
gS = c(g_layer, NA, NA),
loss = c(s_layer * widths, sum(s_layer * widths), 46.6),
premium = c(g_layer * widths, sum(g_layer * widths), 53.565)
)
gt(layers, rowname_col = "from") |>
tab_header("Table 4.4: InsCo's layers priced by CCoC at 15%",
"A layer starts at its bottom total; monograph units") |>
cols_label(gS = "g(S)") |>
fmt_number(columns = width, decimals = 0) |>
fmt_number(columns = S, decimals = 1) |>
fmt_number(columns = c(gS, loss, premium), decimals = 3) |>
sub_missing(missing_text = "")| Table 4.4: InsCo's layers priced by CCoC at 15% | |||||
| A layer starts at its bottom total; monograph units | |||||
| width | S | g(S) | loss | premium | |
|---|---|---|---|---|---|
| 0 | 22 | 1.0 | 1.000 | 22.000 | 22.000 |
| 22 | 6 | 0.9 | 0.913 | 5.400 | 5.478 |
| 28 | 8 | 0.8 | 0.826 | 6.400 | 6.609 |
| 36 | 4 | 0.7 | 0.739 | 2.800 | 2.957 |
| 40 | 15 | 0.3 | 0.391 | 4.500 | 5.870 |
| 55 | 10 | 0.2 | 0.304 | 2.000 | 3.043 |
| 65 | 35 | 0.1 | 0.217 | 3.500 | 7.609 |
| total | 46.600 | 53.565 | |||
| total, book | 46.600 | 53.565 | |||
Grey bars are each layer’s expected loss, the others its CCoC premium:
library(ggplot2, exclude = "layer") # keeps prospicio's layer()
layer_names <- sprintf("%.0f to %.0f", xs[-length(xs)], xs[-1])
layer_bars <- data.frame(
layer = factor(rep(layer_names, 2), levels = layer_names),
what = rep(c("expected loss", "premium under CCoC 15%"), each = length(widths)),
value = c(s_layer * widths, g_layer * widths)
)
ggplot(layer_bars, aes(layer, value, fill = what)) +
geom_col(position = "dodge", width = 0.8) +
scale_fill_manual(values = c("expected loss" = "grey75",
"premium under CCoC 15%" = scales::hue_pal()(1))) +
labs(x = "layer of the total loss (monograph units)",
y = "expected loss or premium (monograph units)", fill = NULL,
title = "Table 4.4: the premium exceeds the loss most in the top layer") +
theme(legend.position = "top")Under CCoC, every layer earns the same 15% on its capital, so the layer sum gives the premium of the pentagon.
By outcome, the differences of the distorted survival are the
risk-adjusted probabilities q, and the premium is the
q-weighted average of the totals. The ratio
Z = q / p is the likelihood ratio (Table 4.10):
distorted_probs <- function(g, probs) {
# Algorithm 4.10.1, steps 4 to 6: decumulate, distort, difference.
s <- 1 - cumsum(probs)
gs <- c(1, ifelse(s > 1e-12, distortion_g(g, pmax(s, 0)), 0)) # nothing exceeds the largest total
-diff(gs)
}
q <- distorted_probs(ccoc, insco@probs)
likelihood <- data.frame(
total = sprintf("%.0f", insco@totals),
p = insco@probs,
q = q,
Z = q / insco@probs
)
gt(likelihood, rowname_col = "total") |>
tab_header("Table 4.10: risk-adjusted probabilities under CCoC at 15%") |>
fmt_number(columns = p, decimals = 1) |>
fmt_number(columns = c(q, Z), decimals = 3)| Table 4.10: risk-adjusted probabilities under CCoC at 15% | |||
| p | q | Z | |
|---|---|---|---|
| 22 | 0.1 | 0.087 | 0.870 |
| 28 | 0.1 | 0.087 | 0.870 |
| 36 | 0.1 | 0.087 | 0.870 |
| 40 | 0.4 | 0.348 | 0.870 |
| 55 | 0.1 | 0.087 | 0.870 |
| 65 | 0.1 | 0.087 | 0.870 |
| 100 | 0.1 | 0.217 | 2.174 |
## sum of q x = 53.565 (book 53.565)
CCoC multiplies the probability of every year by
1 - d = 0.870 and gives the remaining weight to the worst
year alone.
7. Pricing units via layers
Section 4.5 prices each unit with the same risk-adjusted
probabilities: P_i = sum of q_j kappa_i(x_j). The
conditional expectations add up to the total, so the unit premiums add
up to the portfolio’s premium. This is algorithm 4.10.2;
natural_price() gives the same values:
natural_allocation <- function(rows, g) {
# Algorithm 4.10.2: group by total, average units, distort, sum-product.
x <- rowSums(rows)
xs <- sort(unique(x))
probs <- as.numeric(table(factor(x, levels = xs))) / nrow(rows)
kappa <- t(sapply(xs, function(v) colMeans(rows[x == v, , drop = FALSE])))
colSums(distorted_probs(g, probs) * kappa)
}
units_only <- function(priced) priced[priced$unit != "total", ]
priced <- natural_price(insco, ccoc, assets = 100)
by_hand <- data.frame(
unit = UNITS,
by_hand = natural_allocation(ROWS, ccoc),
portfolio = units_only(priced)$premium
)
gt(by_hand, rowname_col = "unit") |>
tab_header("Unit premiums under CCoC at 15%: algorithm 4.10.2 against natural_price()") |>
cols_label(by_hand = "by hand", portfolio = "portfolio") |>
fmt_number(columns = c(by_hand, portfolio), decimals = 3)| Unit premiums under CCoC at 15%: algorithm 4.10.2 against natural_price() | ||
| by hand | portfolio | |
|---|---|---|
| A | 13.739 | 13.739 |
| B | 18.522 | 18.522 |
| C | 21.304 | 21.304 |
Two properties make this allocation the natural one:
- With distinct totals, it is the derivative of the portfolio premium with respect to each unit’s volume (Delbaen’s result), hence the four adjustments.
- It is the expected loss plus a covariance,
P_i = E[X_i] + cov(X_i, Z): a unit pays margin in proportion to how its losses align with the years that the distortion weights up.
zs <- q / insco@probs
mean_i <- sapply(1:3, function(i) sum(insco@probs * kappa[, i]))
cov_i <- sapply(1:3, function(i) sum(insco@probs * kappa[, i] * zs) - mean_i[i])
split <- data.frame(unit = UNITS, mean = mean_i, cov = cov_i, premium = mean_i + cov_i)
gt(split, rowname_col = "unit") |>
tab_header("The natural allocation as expected loss plus covariance") |>
cols_label(mean = "E[X]", cov = "cov(X, Z)") |>
fmt_number(columns = mean, decimals = 2) |>
fmt_number(columns = c(cov, premium), decimals = 3)| The natural allocation as expected loss plus covariance | |||
| E[X] | cov(X, Z) | premium | |
|---|---|---|---|
| A | 13.40 | 0.339 | 13.739 |
| B | 18.30 | 0.222 | 18.522 |
| C | 14.90 | 6.404 | 21.304 |
8. Five representative distortions
Section 4.6 introduces the five one-parameter families used throughout: CCoC, proportional hazard (PH), Wang, dual power and TVaR. Calibrated to a 15% return on the whole book at assets of 100, they give Table 4.5:
FAMILIES <- c("ccoc", "ph", "wang", "dual", "tvar")
BOOK_PARAMETER <- c(ccoc = 0.1500, ph = 0.7205, wang = 0.3427, dual = 1.5951, tvar = 0.2713)
distortions <- lapply(stats::setNames(FAMILIES, FAMILIES), function(f) {
calibrate_portfolio(insco, f, assets = 100, return_on_capital = 0.15)
})
total_premium <- function(g) {
premium <- natural_price(insco, g, assets = 100)
premium$premium[premium$unit == "total"]
}
calibration <- data.frame(
family = FAMILIES,
parameter = sapply(FAMILIES, function(f) names(distortions[[f]]@parameters)),
value = sapply(FAMILIES, function(f) distortions[[f]]@parameters[[1]]),
book = BOOK_PARAMETER[FAMILIES],
premium = sapply(FAMILIES, function(f) total_premium(distortions[[f]]))
)
gt(calibration, rowname_col = "family") |>
tab_header("Table 4.5: the five distortions calibrated to a 15% return",
"Assets of 100; every family reaches the same premium") |>
cols_label(book = "value, book") |>
fmt_number(columns = c(value, book), decimals = 4) |>
fmt_number(columns = premium, decimals = 3)| Table 4.5: the five distortions calibrated to a 15% return | ||||
| Assets of 100; every family reaches the same premium | ||||
| parameter | value | value, book | premium | |
|---|---|---|---|---|
| ccoc | r | 0.1500 | 0.1500 | 53.565 |
| ph | rho | 0.7205 | 0.7205 | 53.565 |
| wang | lambda | 0.3427 | 0.3427 | 53.565 |
| dual | beta | 1.5952 | 1.5951 | 53.565 |
| tvar | p | 0.2713 | 0.2713 | 53.565 |
Each family is a function g(s) that lifts the survival
probability s; the grey line g(s) = s has no
margin. The curves cross because all five give the premium 53.565:
grid <- (0:100) / 100
curves <- do.call(rbind, lapply(FAMILIES, function(f) {
data.frame(panel = if (f %in% c("ccoc", "ph", "wang")) "ccoc, ph, wang" else "dual, tvar",
family = f, s = grid, g = distortion_g(distortions[[f]], grid))
}))
ggplot(curves, aes(s, g)) +
geom_abline(slope = 1, intercept = 0, colour = "grey75") +
geom_line(aes(colour = family), linewidth = 0.8) +
facet_wrap(~panel) +
labs(x = "survival probability s", y = "distorted probability g(s)", colour = NULL,
title = "The five calibrated distortions (Table 4.5; grey: no margin)") +
theme(legend.position = "top")The families differ in where they put the probability weight. This table recomputes the last two of Tables 4.6 to 4.8 (q and Z) for the median year (total 40) and the worst year (total 100):
BOOK_Z <- list( # Table 4.8, likelihood ratio Z at the totals 40 and 100
ccoc = c(0.8696, 2.1739), ph = c(0.8834, 1.9033), wang = c(0.9479, 1.7391),
dual = c(1.0490, 1.5470), tvar = c(1.3723, 1.3723)
)
qs <- lapply(distortions, distorted_probs, probs = insco@probs)
ratios <- do.call(rbind, lapply(FAMILIES, function(f) {
data.frame(
family = c(f, paste0(f, ", book")),
q40 = c(qs[[f]][4], NA),
q100 = c(qs[[f]][7], NA),
z40 = c(qs[[f]][4] / 0.4, BOOK_Z[[f]][1]),
z100 = c(qs[[f]][7] / 0.1, BOOK_Z[[f]][2])
)
}))
gt(ratios, rowname_col = "family") |>
tab_header("Tables 4.7 and 4.8: risk-adjusted probability q and likelihood ratio Z",
"At the median year (total 40) and the worst year (total 100)") |>
cols_label(q40 = "q(40)", q100 = "q(100)", z40 = "Z(40)", z100 = "Z(100)") |>
fmt_number(columns = c(q40, q100, z40, z100), decimals = 4) |>
sub_missing(missing_text = "")| Tables 4.7 and 4.8: risk-adjusted probability q and likelihood ratio Z | ||||
| At the median year (total 40) and the worst year (total 100) | ||||
| q(40) | q(100) | Z(40) | Z(100) | |
|---|---|---|---|---|
| ccoc | 0.3478 | 0.2174 | 0.8696 | 2.1739 |
| ccoc, book | 0.8696 | 2.1739 | ||
| ph | 0.3534 | 0.1903 | 0.8834 | 1.9034 |
| ph, book | 0.8834 | 1.9033 | ||
| wang | 0.3791 | 0.1739 | 0.9479 | 1.7391 |
| wang, book | 0.9479 | 1.7391 | ||
| dual | 0.4196 | 0.1547 | 1.0490 | 1.5470 |
| dual, book | 1.0490 | 1.5470 | ||
| tvar | 0.5489 | 0.1372 | 1.3723 | 1.3723 |
| tvar, book | 1.3723 | 1.3723 | ||
CCoC puts the most weight on the worst year and the least on the median year. TVaR does the reverse, and the other three lie between, in the order listed. This ranking from tail-centric to body-centric decides, in chapter 6, which unit pays. The other entries of Tables 4.6 to 4.8 agree to the four decimals printed, except the PH ratio for the worst year (1.9034 here, 1.9033 in the book) and the TVaR ratio for the total 36 (0.3940 here, 0.3941).
These digits, like the dual power parameter (1.5952 here, 1.5951 in Table 4.5), show where each program’s calibration stopped, not a different method. prospicio solves for the premium of 53.565217 to about 1e-8, and its TVaR level, 0.27128713, is exact. A parameter a few millionths away prints the same and gives the book’s digits:
p_tvar <- distortions$tvar@parameters[["p"]]
rho <- distortions$ph@parameters[["rho"]]
digit_cases <- list(
list("tvar, calibrated", distortion("tvar", p_tvar), 0.7),
list("tvar, rounded", distortion("tvar", 0.271283), 0.7),
list("ph, calibrated", distortion("proportional_hazard", rho), 0.1),
list("ph, rounded", distortion("proportional_hazard", 0.7205), 0.1)
)
digits <- data.frame(
case = sapply(digit_cases, function(x) x[[1]]),
parameter = sapply(digit_cases, function(x) x[[2]]@parameters[[1]]),
ratio = sapply(digit_cases, function(x) {
g <- x[[2]]
if (startsWith(x[[1]], "tvar")) (1 - distortion_g(g, 0.7)) / 0.1 else distortion_g(g, 0.1) / 0.1
}),
premium = sapply(digit_cases, function(x) total_premium(x[[2]]))
)
gt(digits, rowname_col = "case") |>
tab_header("The last digits of Tables 4.5 and 4.8",
"TVaR ratio at the total 36 and PH ratio at the total 100") |>
fmt_number(columns = parameter, decimals = 8) |>
fmt_number(columns = ratio, decimals = 5) |>
fmt_number(columns = premium, decimals = 4)| The last digits of Tables 4.5 and 4.8 | |||
| TVaR ratio at the total 36 and PH ratio at the total 100 | |||
| parameter | ratio | premium | |
|---|---|---|---|
| tvar, calibrated | 0.27128713 | 0.39402 | 53.5652 |
| tvar, rounded | 0.27128300 | 0.39408 | 53.5651 |
| ph, calibrated | 0.72047928 | 1.90336 | 53.5652 |
| ph, rounded | 0.72050000 | 1.90327 | 53.5646 |
Table 4.9 allocates the premium to units under the Wang distortion, the middle of the five:
wang <- natural_price(insco, distortions$wang, assets = 100)
wang_units <- units_only(wang)
wang_total <- wang[wang$unit == "total", ]
BOOK_WANG <- rbind(c(14.109, 0.709, 0.102), c(18.637, 0.337, 0.048), c(20.818, 5.918, 0.850))
table_49 <- do.call(rbind, c(
lapply(1:3, function(i) {
data.frame(
unit = c(UNITS[i], paste0(UNITS[i], ", book")),
premium = c(wang_units$premium[i], BOOK_WANG[i, 1]),
margin = c(wang_units$margin[i], BOOK_WANG[i, 2]),
share = c(wang_units$margin[i] / wang_total$margin, BOOK_WANG[i, 3])
)
}),
list(data.frame(unit = c("total", "total, book"),
premium = c(wang_total$premium, 53.565),
margin = c(wang_total$margin, 6.965), share = NA))
))
gt(table_49, rowname_col = "unit") |>
tab_header("Table 4.9: the natural allocation under the Wang distortion") |>
cols_label(share = "margin share") |>
fmt_number(columns = c(premium, margin, share), decimals = 3) |>
sub_missing(missing_text = "")| Table 4.9: the natural allocation under the Wang distortion | |||
| premium | margin | margin share | |
|---|---|---|---|
| A | 14.109 | 0.709 | 0.102 |
| A, book | 14.109 | 0.709 | 0.102 |
| B | 18.637 | 0.337 | 0.048 |
| B, book | 18.637 | 0.337 | 0.048 |
| C | 20.819 | 5.919 | 0.850 |
| C, book | 20.818 | 5.918 | 0.850 |
| total | 53.565 | 6.965 | |
| total, book | 53.565 | 6.965 | |
Unit C’s premium is 20.81858, so Table 4.9’s 20.818 and Tables 5.1 and 5.2’s 20.819 are the same number, rounded two ways.
9. The industry standard approach
Section 4.7 shows that the 1990s practice of a constant cost of
capital across units is the CCoC distortion in the layer view. Each
unit’s margin is 15% of its capital, and the marginal TVaR allocates the
capital. The premium is the expected loss plus d times the
excess of the maximum over it (Table 4.11, the book’s row under each
unit’s):
BOOK_ISA <- rbind(c(16, 2.261, 13.739, 0.339, 0.049), c(20, 1.478, 18.522, 0.222, 0.032),
c(64, 42.696, 21.304, 6.404, 0.919))
isa <- units_only(priced)
isa_margin <- priced$margin[priced$unit == "total"]
isa_rows <- do.call(rbind, lapply(1:3, function(i) {
u <- isa[i, ]
data.frame(
unit = c(UNITS[i], paste0(UNITS[i], ", book")),
a = c(u$assets, BOOK_ISA[i, 1]),
Q = c(u$capital, BOOK_ISA[i, 2]),
P = c(u$premium, BOOK_ISA[i, 3]),
M = c(u$margin, BOOK_ISA[i, 4]),
share = c(u$margin / isa_margin, BOOK_ISA[i, 5]),
ROC = c(u$return_on_capital, NA)
)
}))
gt(isa_rows, rowname_col = "unit") |>
tab_header("Table 4.11: the industry standard approach",
"Assets a, capital Q, premium P, margin M, margin share and return on capital") |>
fmt_number(columns = a, decimals = 0) |>
fmt_number(columns = c(Q, P, M, share, ROC), decimals = 3) |>
sub_missing(missing_text = "")| Table 4.11: the industry standard approach | ||||||
| Assets a, capital Q, premium P, margin M, margin share and return on capital | ||||||
| a | Q | P | M | share | ROC | |
|---|---|---|---|---|---|---|
| A | 16 | 2.261 | 13.739 | 0.339 | 0.049 | 0.150 |
| A, book | 16 | 2.261 | 13.739 | 0.339 | 0.049 | |
| B | 20 | 1.478 | 18.522 | 0.222 | 0.032 | 0.150 |
| B, book | 20 | 1.478 | 18.522 | 0.222 | 0.032 | |
| C | 64 | 42.696 | 21.304 | 6.404 | 0.919 | 0.150 |
| C, book | 64 | 42.696 | 21.304 | 6.404 | 0.919 | |
The choice of distortion moves the premium between units:
compare <- data.frame(
unit = UNITS,
expected_loss = insco@expected,
CCoC = units_only(priced)$premium,
Wang = wang_units$premium
)
gt(compare, rowname_col = "unit") |>
tab_header("Premium by unit at a 15% return (monograph units)",
"Natural allocation under CCoC and under the Wang distortion") |>
cols_label(expected_loss = "expected loss") |>
tab_spanner("premium", columns = c(CCoC, Wang)) |>
fmt_number(columns = c(expected_loss, CCoC, Wang), decimals = 2)| Premium by unit at a 15% return (monograph units) | |||
| Natural allocation under CCoC and under the Wang distortion | |||
| expected loss |
premium
|
||
|---|---|---|---|
| CCoC | Wang | ||
| A | 13.40 | 13.74 | 14.11 |
| B | 18.30 | 18.52 | 18.64 |
| C | 14.90 | 21.30 | 20.82 |
Unit C takes 91.9% of the margin, against 85.0% under Wang. Under the industry standard, a thick-tailed unit gets almost all the capital and margin. The monograph makes three objections to the industry standard:
- Capital does not cost the same in every layer (bond spreads fall with seniority).
- CCoC weights only the worst outcome.
- CCoC gives no credit for diversification. For independent risks, the price is additive, because the mean and the maximum are additive.
Two independent coin flips, one that pays 10 and one that pays 6:
flip1 <- c(0, 0, 10, 10)
flip2 <- c(0, 6, 0, 6)
for (name in c("ccoc", "wang")) {
g <- if (name == "ccoc") ccoc else distortions$wang
alone <- risk_measure(sampled(flip1), g) + risk_measure(sampled(flip2), g)
cat(sprintf("%s: priced apart %.3f, pooled %.3f\n", name, alone,
risk_measure(sampled(flip1 + flip2), g)))
}## ccoc: priced apart 9.043, pooled 9.043
## wang: priced apart 10.146, pooled 9.829
10. Pricing events
Section 4.8 warns against reading q as the prices of the
years themselves (prices of events are not unique; see Pricing
Insurance Risk). But q prices consistently anything
that moves with the total: a layer gets the same price from
q as from the distortion applied to the layer alone. A
unit’s allocation is at most its stand-alone price. For the Wang
distortion:
gw <- distortions$wang
qw <- qs$wang
layer <- pmin(pmax(insco@totals - 55, 0), 10) # the 55 to 65 layer
alone <- risk_measure(sampled(pmin(pmax(totals - 55, 0), 10)), gw)
cat(sprintf("layer 55 to 65: by q %.3f, alone %.3f\n", sum(qw * layer), alone))## layer 55 to 65: by q 3.089, alone 3.089
stand_alone <- data.frame(
unit = UNITS,
allocated = wang_units$premium,
stand_alone = sapply(1:3, function(i) risk_measure(sampled(ROWS[, i]), gw))
)
gt(stand_alone, rowname_col = "unit") |>
tab_header("Wang premium by unit: allocated against stand-alone") |>
cols_label(stand_alone = "stand-alone") |>
fmt_number(columns = c(allocated, stand_alone), decimals = 3)| Wang premium by unit: allocated against stand-alone | ||
| allocated | stand-alone | |
|---|---|---|
| A | 14.109 | 15.357 |
| B | 18.637 | 20.792 |
| C | 20.819 | 21.104 |
The stand-alone prices add up to more than 53.565. The difference is the diversification that pooling buys. The natural allocation shares it out and depends on the whole book, so a unit’s price moves when the book does (chapter 5).
11. Related guides
- Chapters 5 and 6: the applications and the choice of a distortion.
- Section 5 of the chapter 9 guide: capital by unit (section 8.3 of the monograph).
- The Python guide Risk loads and distortions: which distortion to use, and how to calibrate it to quotes.
-
payment_pattern(): payment patterns and discounting. The examples of the monograph ignore the time value of money.