Capital modeling and portfolio pricing: CAS Monograph 15 reproduced
capital-modeling-monograph-15.RmdRendered from docs/guides/capital-modeling-monograph-15.qmd.
The code runs each time the site is built, so the output below is
current.
CAS Monograph 15 is Introduction to Capital Modeling and
Portfolio Management (John Major and Stephen Mildenhall, 2026). It
shows how an insurer prices its risk and splits the price over its
business units, from a distribution of outcomes alone. The monograph’s
examples run in Mildenhall’s Python package aggregate. This
guide runs them in prospicio from R and shows both sets of numbers.
This is the R twin of the Python guide capital-modeling-monograph-15.md,
with the same sections, examples and numbers. Both packages call the
same Rust code, so results agree to every digit printed, seeded samples
included.
Read the monograph for the reasoning (chapters 3 to 6 and 8) and this guide for the mechanics (chapter 9). Table numbers are the monograph’s. Money is in the units of its examples.
The text block after each R chunk is the output of that chunk.
R/prospicio/tests/test-guides.R runs the chunks in order
and checks that each chunk prints exactly that text. To render the page,
install the R package (remotes::install_github, see
R/prospicio/bootstrap.R) and run
quarto render docs/guides/capital-modeling-monograph-15.qmd.
library(prospicio)
# Thousands separators, as Python's {:,.0f}. Rounding first rounds a half to
# even, as Python does, on every platform's C library.
comma <- function(x, digits = 0) {
formatC(round(x, digits), format = "f", digits = digits, big.mark = ",")
}1. The example company
The running example, InsCo, has three units, A, B and C, and ten equally likely simulated years. Each row is a year, and each cell is the unit’s loss in that year. The first table is the last two rows of Table 9.1.
library(gt)
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) <- c("A", "B", "C")
insco <- capital_portfolio(ROWS)
totals <- rowSums(ROWS)
stats <- do.call(rbind, lapply(c("A", "B", "C", "Total"), function(name) {
losses <- if (name == "Total") totals else ROWS[, name]
s <- sampled(losses)
sd <- sqrt(variance(s)) # sampled() divides by n, as the monograph does
data.frame(unit = name, mean = mean(s), cv = sd / mean(s))
}))
gt(stats, rowname_col = "unit") |>
tab_header("InsCo: mean and CV of each unit's loss", "Table 9.1, last two rows") |>
fmt_number("mean", decimals = 2) |>
fmt_number("cv", decimals = 3)| InsCo: mean and CV of each unit's loss | ||
| Table 9.1, last two rows | ||
| mean | cv | |
|---|---|---|
| A | 13.40 | 0.453 |
| B | 18.30 | 0.412 |
| C | 14.90 | 1.324 |
| Total | 46.60 | 0.455 |
Unit C is the volatile one: a small mean and a loss of 64 in the worst year.
capital_portfolio() takes the matrix of rows directly,
with one named column per unit. There is no frequency-severity model, no
grid and no approximation.
Pricing works on the distinct totals, not on the years. Four years
each total 40, so the portfolio keeps one scenario at 40 with
probability 0.4. For each unit, it keeps the average loss at that total,
the conditional expectation kappa.
portfolio_kappa(port, unit) returns it, one value per
distinct total (Python’s Portfolio.kappa(unit)). Each row
of the table adds up to its total, so a split of the price by
kappa never creates or loses money. The row at 40 is Table
9.4.
kappa <- data.frame(total = sprintf("%.0f", insco@totals), probability = insco@probs)
for (unit in c("A", "B", "C")) kappa[[unit]] <- portfolio_kappa(insco, unit) # E[X_unit | X = total]
gt(kappa, rowname_col = "total") |>
tab_header("InsCo: expected loss of each unit at each total", "kappa, by distinct total") |>
fmt_number("probability", decimals = 1) |>
fmt_number(c("A", "B", "C"), decimals = 2)| InsCo: expected loss of each unit at each total | ||||
| kappa, by distinct total | ||||
| probability | A | B | C | |
|---|---|---|---|---|
| 22 | 0.1 | 15.00 | 7.00 | 0.00 |
| 28 | 0.1 | 15.00 | 13.00 | 0.00 |
| 36 | 0.1 | 5.00 | 20.00 | 11.00 |
| 40 | 0.4 | 10.00 | 24.00 | 6.00 |
| 55 | 0.1 | 26.00 | 19.00 | 10.00 |
| 65 | 0.1 | 17.00 | 8.00 | 40.00 |
| 100 | 0.1 | 16.00 | 20.00 | 64.00 |
library(ggplot2, exclude = "layer") # keeps prospicio's layer()
kappas <- do.call(rbind, lapply(c("A", "B", "C"), function(unit) {
data.frame(total = insco@totals, kappa = portfolio_kappa(insco, unit), unit = paste("unit", unit))
}))
ggplot(kappas, aes(total, kappa, colour = unit)) +
geom_line(linewidth = 0.8) +
geom_point() +
labs(x = "total loss of the book", y = "expected loss of the unit at that total",
colour = NULL, title = "InsCo: each unit's conditional expectation, kappa, by total") +
theme(legend.position = "top")2. The capital standard
A price needs a capital standard: the assets that stand behind the
book. Chapter 3 of the monograph defines value at risk (VaR, a quantile)
and tail value at risk (TVaR, the average above that quantile).
aggregate and prospicio read a standard of “p” as assets
equal to the p quantile of the total.
portfolio_assets(port, p) (Python’s
Portfolio.assets(p)) gives this level, and
natural_price(port, d, p = p) prices at it for any
distortion d. The table is Table 9.5:
total <- sampled(totals)
ps <- c(0.8, 0.85, 0.9, 1.0)
standards <- data.frame(
p = sprintf("%.2f", ps),
VaR = sapply(ps, function(p) quantile(total, p)),
TVaR = sapply(ps, function(p) TVaR(total, p)),
`assets at p` = sapply(ps, function(p) portfolio_assets(insco, p)),
check.names = FALSE
)
gt(standards, rowname_col = "p") |>
tab_header("InsCo: capital standards", "Table 9.5") |>
fmt_number(c("VaR", "assets at p"), decimals = 0) |>
fmt_number("TVaR", decimals = 3)| InsCo: capital standards | |||
| Table 9.5 | |||
| VaR | TVaR | assets at p | |
|---|---|---|---|
| 0.80 | 55 | 82.500 | 55 |
| 0.85 | 65 | 88.333 | 65 |
| 0.90 | 65 | 100.000 | 65 |
| 1.00 | 100 | 100.000 | 100 |
With ten years, the 100% standard is the worst year. The monograph’s main example uses it: assets of 100. A 99.5% standard gives the same assets.
3. Calibrating five distortions
The monograph prices with a distortion (a spectral
risk measure): a function g that increases the probability
of bad outcomes. The price is the expected loss under the increased
probabilities.
Here the whole book must earn 15% on capital, with assets of 100 and
an expected loss of 46.6. The premium P and the capital
Q = 100 - P satisfy P - 46.6 = 0.15 Q, so
P = 53.565.
Five families each have one parameter: constant cost of capital
(CCoC), proportional hazard (PH), Wang, dual power and TVaR.
calibrate_portfolio() finds the parameter that gives that
premium. The table compares it with Table 9.3:
FAMILIES <- c("ccoc", "ph", "wang", "dual", "tvar")
distortions <- lapply(stats::setNames(FAMILIES, FAMILIES), function(family) {
calibrate_portfolio(insco, family, assets = 100, return_on_capital = 0.15)
})
BOOK_PARAMS_9_3 <- c(ccoc = 0.150, ph = 0.720, wang = 0.343, dual = 1.595, tvar = 0.271)
params_9_3 <- do.call(rbind, lapply(FAMILIES, function(family) {
value <- distortions[[family]]@parameters
data.frame(distortion = family, parameter = names(value), prospicio = unname(value),
book = BOOK_PARAMS_9_3[[family]])
}))
gt(params_9_3, rowname_col = "distortion") |>
tab_header("InsCo: calibrated distortion parameters", "Table 9.3") |>
fmt_number(c("prospicio", "book"), decimals = 3)| InsCo: calibrated distortion parameters | |||
| Table 9.3 | |||
| parameter | prospicio | book | |
|---|---|---|---|
| ccoc | r | 0.150 | 0.150 |
| ph | rho | 0.720 | 0.720 |
| wang | lambda | 0.343 | 0.343 |
| dual | beta | 1.595 | 1.595 |
| tvar | p | 0.271 | 0.271 |
The CCoC parameter differs in meaning: aggregate uses a
risk discount d = 0.15 / 1.15, prospicio the cost of
capital r = 0.15. distortion("ccoc", 0.15) is
the same function.
Each distortion is a curve g(s). The figure draws the
five curves that the calibration found. The grey line is
g(s) = s, which gives no risk load. The price rises with
the area between a curve and this line:
s_grid <- seq(0, 1, length.out = 101)
curves <- do.call(rbind, lapply(FAMILIES, function(family) {
data.frame(s = s_grid, g = sapply(s_grid, function(x) distortion_g(distortions[[family]], x)),
family = family,
panel = ifelse(family %in% c("ccoc", "ph", "wang"),
"Distortions fitted to InsCo (1 of 2)",
"Distortions fitted to InsCo (2 of 2)"))
}))
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 = "probability of exceedance, s", y = "distorted probability, g(s)", colour = NULL) +
theme(legend.position = "top")4. The price and its allocation to units
After calibration, natural_price() returns the premium
of the loss capped at the assets. It also returns the natural
allocation of that premium, as a data frame with one row per
unit and a "total" row: each unit pays the distorted
average of its own loss in the bad years, so a unit that loses most when
the total is large pays more. With allocation = "linear",
natural_price() also splits the assets by expected shares
above the asset level. This is Table 9.6, the “industry standard” CCoC
pricing:
priced <- natural_price(insco, distortions$ccoc, assets = 100, allocation = "linear")
table_9_6 <- data.frame(
unit = ifelse(priced$unit == "total", "Total", priced$unit),
L = priced$loss, a = priced$assets, Q = priced$capital, P = priced$premium,
M = priced$premium - priced$loss
)
table_9_6$COC <- table_9_6$M / table_9_6$Q
gt(table_9_6, rowname_col = "unit") |>
tab_header("InsCo: CCoC pricing at 15%", "Table 9.6; L loss, a assets, Q capital, P premium, M margin, COC margin over capital") |>
fmt_number(c("L", "a", "Q", "P", "M", "COC"), decimals = 3)| InsCo: CCoC pricing at 15% | ||||||
| Table 9.6; L loss, a assets, Q capital, P premium, M margin, COC margin over capital | ||||||
| L | a | Q | P | M | COC | |
|---|---|---|---|---|---|---|
| A | 13.400 | 16.000 | 2.261 | 13.739 | 0.339 | 0.150 |
| B | 18.300 | 20.000 | 1.478 | 18.522 | 0.222 | 0.150 |
| C | 14.900 | 64.000 | 42.696 | 21.304 | 6.404 | 0.150 |
| Total | 46.600 | 100.000 | 46.435 | 53.565 | 6.965 | 0.150 |
Every unit earns 15% on its allocated capital, because this allocation defines capital that way. Unit C takes 64 of the 100 of assets and most of the margin (6.4 of 7.0).
The five distortions give the same total premium, because calibration sets it. They differ in which unit pays. Rows alternate prospicio and Table 9.8:
with_book <- function(got, book, columns) {
m <- do.call(rbind, lapply(names(got), function(f) rbind(got[[f]], book[[f]])))
out <- as.data.frame(m)
names(out) <- columns
out$distortion <- as.vector(rbind(names(got), paste0(names(got), ", book")))
out[c("distortion", columns)]
}
BOOK_P <- list( # Table 9.8, premium by unit (A, B, C)
ccoc = c(13.739, 18.522, 21.304),
ph = c(14.060, 18.349, 21.156),
wang = c(14.109, 18.637, 20.819),
dual = c(14.127, 19.117, 20.322),
tvar = c(13.783, 20.412, 19.371)
)
units_only <- function(priced) priced[priced$unit != "total", ]
got <- sapply(FAMILIES, function(family) {
units_only(natural_price(insco, distortions[[family]], assets = 100))$premium
}, simplify = FALSE)
gt(with_book(got, BOOK_P, c("A", "B", "C")), rowname_col = "distortion") |>
tab_header("InsCo: premium by unit under five distortions", "Table 9.8") |>
fmt_number(c("A", "B", "C"), decimals = 3)| InsCo: premium by unit under five distortions | |||
| Table 9.8 | |||
| A | B | C | |
|---|---|---|---|
| ccoc | 13.739 | 18.522 | 21.304 |
| ccoc, book | 13.739 | 18.522 | 21.304 |
| ph | 14.060 | 18.349 | 21.156 |
| ph, book | 14.060 | 18.349 | 21.156 |
| wang | 14.109 | 18.637 | 20.819 |
| wang, book | 14.109 | 18.637 | 20.819 |
| dual | 14.127 | 19.117 | 20.322 |
| dual, book | 14.127 | 19.117 | 20.322 |
| tvar | 13.783 | 20.412 | 19.371 |
| tvar, book | 13.783 | 20.412 | 19.371 |
All fifteen premiums match. CCoC charges for the capital each unit uses, and C uses 64 of the 100, so C pays most. TVaR charges only for the worst years, where B’s 20 is a larger share of the total than its average share, so B pays more. Neither distortion is right: it states what you are paid to bear (see Risk loads and distortions).
5. Capital by unit, if you must
Section 8.3 of the monograph advises against capital allocation,
because layers of capital cost different amounts. It allocates margin
instead. To state the capital that each unit uses, it allocates each
layer of the asset range by the units’ shares of that layer’s margin,
and adds the layers. In prospicio this is
allocation = "lifted":
BOOK_Q <- list( # Table 9.8, capital by unit (A, B, C)
ccoc = c(4.874, 5.288, 36.273),
ph = c(7.074, 6.565, 32.796),
wang = c(8.411, 8.691, 29.333),
dual = c(8.873, 9.143, 28.419),
tvar = c(9.034, 9.247, 28.154)
)
got <- sapply(FAMILIES, function(family) {
units_only(natural_price(insco, distortions[[family]], assets = 100, allocation = "lifted"))$capital
}, simplify = FALSE)
gt(with_book(got, BOOK_Q, c("A", "B", "C")), rowname_col = "distortion") |>
tab_header("InsCo: capital by unit, lifted allocation", "Table 9.8; the assets are 100") |>
fmt_number(c("A", "B", "C"), decimals = 3)| InsCo: capital by unit, lifted allocation | |||
| Table 9.8; the assets are 100 | |||
| A | B | C | |
|---|---|---|---|
| ccoc | 2.261 | 1.478 | 42.696 |
| ccoc, book | 4.874 | 5.288 | 36.273 |
| ph | 6.481 | 5.597 | 34.356 |
| ph, book | 7.074 | 6.565 | 32.796 |
| wang | 8.411 | 8.691 | 29.333 |
| wang, book | 8.411 | 8.691 | 29.333 |
| dual | 8.873 | 9.143 | 28.419 |
| dual, book | 8.873 | 9.143 | 28.419 |
| tvar | 9.034 | 9.247 | 28.154 |
| tvar, book | 9.034 | 9.247 | 28.154 |
Wang, dual power and TVaR agree with the monograph to three decimals. CCoC and PH do not. For CCoC, prospicio gives the same split as the linear allocation. The premiums and margins are the same as the monograph’s. Only the split of capital between units differs.
The cause is the aggregate version. The monograph’s code
ran on 0.24.0, and 0.30.1 prints its values. 1.0.1 gives prospicio’s,
and CI checks prospicio against 1.0.1 on InsCo at 1e-10, for both
allocations and all five distortions. The monograph’s own argument also
gives prospicio’s CCoC value: every layer of capital earns 15%, so a
unit’s capital is its margin over 0.15 (unit A: 0.339 / 0.15 = 2.261).
Use the premiums and margins, which agree in all versions.
6. The reinsurance decision
Chapter 5 asks how a reinsurance cover changes the price of the book. The example is an aggregate stop loss of 35 excess of 65: the reinsurer pays the amount by which the year’s total exceeds 65, up to 35. On these ten years it pays in the year of 100 only, so the recovery is 35 with probability 0.1, a mean of 3.5.
Make the net loss and the recovery two units of a new portfolio. It prices the cover and shows what the retained book needs:
stop_loss <- function(total, attach = 65, limit = 35) pmin(pmax(total - attach, 0), limit)
split <- cbind(Net = totals - stop_loss(totals), Ceded = stop_loss(totals))
reinsured <- capital_portfolio(split)
cat("means", reinsured@expected, " (book: net 43.1, ceded 3.5)\n")## means 43.1 3.5 (book: net 43.1, ceded 3.5)
Rows alternate prospicio and Table 9.10:
BOOK_RE <- list( # Table 9.10, premium and margin of ceded and net, (ceded, net)
ccoc = c(7.609, 4.109, 45.957, 2.857),
ph = c(6.662, 3.162, 46.903, 3.803),
wang = c(6.087, 2.587, 47.478, 4.378),
dual = c(5.415, 1.915, 48.151, 5.051),
tvar = c(4.803, 1.303, 48.762, 5.662)
)
got <- sapply(FAMILIES, function(family) {
r <- natural_price(reinsured, distortions[[family]], assets = 100)
ceded <- r[r$unit == "Ceded", ]
net <- r[r$unit == "Net", ]
c(ceded$premium, ceded$premium - ceded$loss, net$premium, net$premium - net$loss)
}, simplify = FALSE)
columns <- c("ceded premium", "ceded margin", "net premium", "net margin")
gt(with_book(got, BOOK_RE, columns), rowname_col = "distortion") |>
tab_header("Stop loss 35 xs 65: ceded and net price", "Table 9.10") |>
fmt_number(columns, decimals = 3)| Stop loss 35 xs 65: ceded and net price | ||||
| Table 9.10 | ||||
| ceded premium | ceded margin | net premium | net margin | |
|---|---|---|---|---|
| ccoc | 7.609 | 4.109 | 45.957 | 2.857 |
| ccoc, book | 7.609 | 4.109 | 45.957 | 2.857 |
| ph | 6.662 | 3.162 | 46.903 | 3.803 |
| ph, book | 6.662 | 3.162 | 46.903 | 3.803 |
| wang | 6.087 | 2.587 | 47.478 | 4.378 |
| wang, book | 6.087 | 2.587 | 47.478 | 4.378 |
| dual | 5.415 | 1.915 | 48.151 | 5.051 |
| dual, book | 5.415 | 1.915 | 48.151 | 5.051 |
| tvar | 4.803 | 1.303 | 48.762 | 5.662 |
| tvar, book | 4.803 | 1.303 | 48.762 | 5.662 |
The cover protects only against the worst year, so its risk load is all tail and its price depends strongly on the distortion. The two margins add up to the book’s 6.965 under every distortion, so a dearer cover leaves less margin to the retained book. Chapter 6 asks which distortion is right for the reinsurer’s price or the buyer’s willingness to pay. The table gives the answer for each.
7. A more realistic example
The last section of chapter 9 builds a book from frequency and severity. It has three units, Auto, GL and WC. Each has a lognormal severity with a per-claim limit and a gamma-mixed Poisson count, compounded by FFT. Iman-Conover rank correlation then ties the units together. The monograph prices the book at a 99.5% standard and a 15% return.
In R, a unit uses these functions:
-
discretize()with the local moment method. -
map_grid()for the per-claim limit. -
mixed_poisson_count()for the count. -
compound_distribution(..., method = "fft"), whose grid keeps the FFT’s checks in itsreport.
compound_unit <- function(loss, limit, mean, cv, mixing_cv, step, points) {
# A unit: expected loss, a per-claim limit, a lognormal, a gamma mixed count.
severity <- discretize(lognormal_from_mean_cv(mean, cv), step, points, "local_moment")
claim <- map_grid(severity, function(x) pmin(x, limit))$grid
claims <- loss / mean(claim)
annual <- compound_distribution(mixed_poisson_count(claims, mixing_cv), claim, points,
method = "fft")
list(claims = claims, claim_mean = mean(claim), annual = annual, report = annual@report)
}
UNITS <- list(
Auto = list(5000, 5000, 50, 2.0, 0.2, 0.25, 2^16),
GL = list(3000, 2500, 75, 3.0, 0.3, 0.25, 2^16),
WC = list(7000, 25000, 5, 10.0, 0.25, 0.25, 2^17)
)
annual <- list()
units_table <- do.call(rbind, lapply(names(UNITS), function(name) {
unit <- do.call(compound_unit, UNITS[[name]])
a <- annual[[name]] <<- unit$annual
data.frame(unit = name, claims = unit$claims, `claim mean` = unit$claim_mean, `agg mean` = mean(a),
`agg cv` = sqrt(variance(a)) / mean(a), `tail mass` = sprintf("%.1e", unit$report$tail_mass),
check.names = FALSE)
}))
gt(units_table, rowname_col = "unit") |>
tab_header("The three compound units", "Table 9.11") |>
fmt_number("claims", decimals = 1, use_seps = FALSE) |>
fmt_number("claim mean", decimals = 3) |>
fmt_number("agg mean", decimals = 1, use_seps = FALSE) |>
fmt_number("agg cv", decimals = 3)| The three compound units | |||||
| Table 9.11 | |||||
| claims | claim mean | agg mean | agg cv | tail mass | |
|---|---|---|---|---|---|
| Auto | 100.0 | 49.982 | 5000.0 | 0.298 | 2.3e-06 |
| GL | 41.0 | 73.156 | 3000.0 | 0.502 | 4.4e-07 |
| WC | 1401.1 | 4.996 | 6999.7 | 0.349 | 1.6e-04 |
Table 9.11 prints the same values (41.008 claims for GL, and 4.945 for WC’s claim mean on its grid). Unit WC drives the tail, with a thick-tailed severity and a high limit.
Iman-Conover pairs the units’ draws so that their rank correlations match a target, and leaves each unit’s distribution unchanged. Three steps:
- Draw each unit at evenly spaced quantiles.
- Tie the draws with the monograph’s matrix (Table 9.12).
iman_conover()does this on apredictive_distribution()with one component per unit. - Build a portfolio from the result with
capital_portfolio(). It reads each simulation as an equally likely scenario (Python’sPortfolio.from_predictive).
TARGET <- rbind(c(1.0, 0.5, 0.4), c(0.5, 1.0, 0.1), c(0.4, 0.1, 1.0))
correlated_portfolio <- function(n_sims, seed) {
q <- (seq_len(n_sims) - 0.5) / n_sims
draws <- sapply(annual, function(g) quantile(g, q)) # n_sims rows, one column per unit
keys <- data.frame(unit = names(annual))
joint <- iman_conover(predictive_distribution(draws, keys), TARGET, seed)
capital_portfolio(joint)
}
book <- correlated_portfolio(50000, 4817)
cat("units", book@units, " means", sprintf("%.1f", book@expected), "\n")## units Auto GL WC means 5000.0 3000.0 6999.7
Now calibrate the five distortions to a 15% return at the 99.5% standard and price each unit:
BOOK_PARAMS <- c(ccoc = 0.150, ph = 0.654, wang = 0.437, dual = 1.756, tvar = 0.299)
priced_book <- list()
params <- c()
for (family in FAMILIES) {
d <- calibrate_portfolio(book, family, p = 0.995, return_on_capital = 0.15)
priced_book[[family]] <- natural_price(book, d, p = 0.995)
params[[family]] <- d@parameters
}
cat(sprintf("assets at 99.5%%: %s (book 28,898)\n", comma(portfolio_assets(book, 0.995))))## assets at 99.5%: 28,448 (book 28,898)
The table is Tables 9.16 (parameters) and 9.17 (premiums):
tables_9_16 <- do.call(rbind, lapply(FAMILIES, function(family) {
pb <- priced_book[[family]]
premiums <- units_only(pb)$premium
data.frame(distortion = family, parameter = params[[family]], `book parameter` = BOOK_PARAMS[[family]],
Auto = premiums[1], GL = premiums[2], WC = premiums[3],
total = pb$premium[pb$unit == "total"], check.names = FALSE)
}))
gt(tables_9_16, rowname_col = "distortion") |>
tab_header("The correlated book at 99.5%, 15% return", "Premium by unit") |>
fmt_number(c("parameter", "book parameter"), decimals = 3) |>
fmt_number(c("Auto", "GL", "WC"), decimals = 1, use_seps = FALSE) |>
fmt_number("total", decimals = 1)| The correlated book at 99.5%, 15% return | ||||||
| Premium by unit | ||||||
| parameter | book parameter | Auto | GL | WC | total | |
|---|---|---|---|---|---|---|
| ccoc | 0.150 | 0.150 | 5351.0 | 3230.1 | 8154.6 | 16,735.8 |
| ph | 0.654 | 0.654 | 5483.4 | 3377.8 | 7874.6 | 16,735.8 |
| wang | 0.434 | 0.437 | 5511.0 | 3405.1 | 7819.6 | 16,735.8 |
| dual | 1.740 | 1.756 | 5529.0 | 3421.1 | 7785.6 | 16,735.8 |
| tvar | 0.291 | 0.299 | 5536.0 | 3423.9 | 7776.0 | 16,735.8 |
The parameters are within about 0.01 of the monograph’s, and the total premium of about 16,740 is close to its 16,800.3. Exact agreement is not expected: the monograph’s 1,000 simulations put its 99.5% quantile on five points, and the draws here are 50,000 and evenly spaced. The table repeats the CCoC calculation on other sample sizes:
sizes <- do.call(rbind, lapply(list(c(1000, 11), c(1000, 12), c(10000, 11), c(50000, 11)), function(run) {
pf <- correlated_portfolio(run[1], run[2])
d <- calibrate_portfolio(pf, "ccoc", p = 0.995, return_on_capital = 0.15)
p <- natural_price(pf, d, p = 0.995)
tot <- p[p$unit == "total", ]
# round() rounds a half to even, as Python does (see the note below)
data.frame(simulations = sprintf("%d, seed %d", run[1], run[2]), assets = round(tot$assets),
premium = tot$premium)
}))
gt(sizes, rowname_col = "simulations") |>
tab_header("CCoC price of the correlated book by sample size", "99.5% standard, 15% return") |>
fmt_number("assets", decimals = 0) |>
fmt_number("premium", decimals = 1)| CCoC price of the correlated book by sample size | ||
| 99.5% standard, 15% return | ||
| assets | premium | |
|---|---|---|
| 1000, seed 11 | 27,850 | 16,657.6 |
| 1000, seed 12 | 29,368 | 16,855.1 |
| 10000, seed 11 | 28,692 | 16,771.1 |
| 50000, seed 11 | 28,520 | 16,744.9 |
The premium moves by one or two percent between two samples of 1,000. Do not quote a small sample to four digits; use more simulations and a capital standard that you can defend.
This table equals the Python guide’s. The assets of the second sample
are exactly 29,368.5. R’s round() and the
comma() helper round that half to even, as Python does. R’s
sprintf("%.0f", 29368.5) prints 29369 on Windows and 29368
on Linux.
8. Related guides
- Chapters 1, 2 and 7: the charter of a capital model, business operations, reinsurance, capital structure, pro formas and the evaluation of models.
- Chapters 3 and 4 and chapters 5 and 6, table by table: capital adequacy, pricing and allocation, applications and the choice of a distortion.
-
Chapter
8: uncertainty, Iman-Conover, capital by layer and Bodoff’s
allocation (Table 8.12 from
bodoff_allocation()).
The guides below are in Python. The R functions named above do the same work.
- Risk loads and distortions: which distortion to use, and how to calibrate it to a quote.
- Aggregate distributions: the compound distributions of section 7.
- prospicio for aggregate users: the package behind the monograph’s code.