Basic ratemaking: Werner and Modlin's worked indications
ratemaking-werner-modlin-indications.RmdRendered from docs/guides/ratemaking-werner-modlin-indications.qmd.
The code runs each time the site is built, so the output below is
current.
This guide is the second part of the Werner and Modlin series. The
first part, ratemaking-werner-modlin.qmd,
shows the steps of Basic Ratemaking (5th edition, CAS, 2016)
one at a time. This part runs the book’s three overall indications end
to end, then chapter 11’s increased limits and deductibles:
- Appendix A: auto property damage, by the loss ratio method.
- Appendix B: homeowners, by the pure premium method.
- Appendix C: medical malpractice, by the loss ratio method with a net trend.
This is the R twin of the Python guide ratemaking-werner-modlin-indications.md,
with the same sections, examples and numbers. The R package calls the
same Rust code as the Python package.
R/prospicio/tests/test-guides.R runs the chunks in order
and requires each table to print exactly the text that follows its
chunk. half_up() in the first chunk is the book’s half-up
rounding.
The book’s exhibits are the authors’, and the text here is new. Each
table sets the book’s numbers beside prospicio’s, and money is in
dollars. Where the book rounds a cell before the next step, the code
does the same by hand (half_up);
knowledge/references/werner-modlin-ratemaking.md lists the
rules and validation/tests/pricing.rs is the parity
suite.
1. The factors, recomputed
This block recomputes the first guide’s factors and rounds them to four places, as the exhibits print them. Appendix A needs four sets:
- on-level factors, from the book’s cumulative rate level indices
- the two-step premium trend
- development factors: the straight average of link ratios without the
highest and lowest
(
chain_ladder(average = "simple", drop_high = 1, drop_low = 1)), rounded to four places before it is chained to ultimate, as section 4 of the first guide explains - the two-step loss trend
Appendix C needs the on-level factors and the net trend (8.9% over trend lengths that the book rounds to two places). Each pair of rows is prospicio, then the book. The columns run from the oldest year to the newest (A: 2011 to 2015, C: 2010 to 2014).
library(prospicio)
library(gt)
# Round half up to dp places, as the book's exhibits do (after clearing binary noise at 10 places).
half_up <- function(x, dp) {
y <- round(x, 10) * 10^dp
sign(y) * floor(abs(y) + 0.5 + 1e-9) / 10^dp
}
# One line of a comparison: prospicio at d decimals, the book at bd, an optional unrounded value at ad.
row <- function(item, ours, d, book, bd = d, alt = NA_real_, ad = d) {
list(item = item, ours = as.numeric(ours), d = d, book = book, bd = bd, alt = as.numeric(alt), ad = ad)
}
# A table of prospicio against the book; `alt` names an extra column for an unrounded value.
compare <- function(rows, title, subtitle, alt = NULL) {
frame <- data.frame(item = vapply(rows, function(r) r$item, ""),
prospicio = vapply(rows, function(r) r$ours, 0),
book = vapply(rows, function(r) r$book, 0),
alt = vapply(rows, function(r) r$alt, 0))
if (is.null(alt)) frame$alt <- NULL
table <- gt(frame, rowname_col = "item") |> tab_header(title, subtitle)
for (k in seq_along(rows)) {
r <- rows[[k]]
table <- table |>
fmt_number(columns = "prospicio", rows = k, decimals = r$d) |>
fmt_number(columns = "book", rows = k, decimals = r$bd)
if (!is.null(alt)) table <- fmt_number(table, columns = "alt", rows = k, decimals = r$ad)
}
if (is.null(alt)) table else table |> sub_missing(missing_text = "") |> cols_label(alt = alt)
}
# Premium, losses and loss ratio by year with a total row, prospicio beside the book.
year_table <- function(years, fit, book, total, title, subtitle, total_decimals) {
n <- length(years)
frame <- data.frame(
year = c(as.character(years), "total"),
premium = c(fit$by_year$projected_premium, fit$projected_premium),
book_premium = c(book[[1]], total[[1]]),
losses = c(fit$by_year$projected_losses, fit$projected_losses),
book_losses = c(book[[2]], total[[2]]),
ratio = 100 * c(fit$by_year$loss_ratio, fit$loss_ratio),
book_ratio = c(book[[3]], total[[3]])
)
gt(frame, rowname_col = "year") |>
tab_header(title, subtitle) |>
fmt_number(columns = c(premium, losses), rows = 1:n, decimals = 0) |>
fmt_number(columns = premium, rows = n + 1, decimals = total_decimals) |>
fmt_number(columns = losses, rows = n + 1, decimals = 0) |>
fmt_integer(columns = c(book_premium, book_losses)) |>
fmt_number(columns = ratio, rows = 1:n, decimals = 1) |>
fmt_number(columns = ratio, rows = n + 1, decimals = 2) |>
fmt_number(columns = book_ratio, decimals = 1) |>
tab_spanner("premium", id = "sp_premium", columns = c(premium, book_premium)) |>
tab_spanner("losses", id = "sp_losses", columns = c(losses, book_losses)) |>
tab_spanner("loss ratio (%)", id = "sp_ratio", columns = c(ratio, book_ratio)) |>
cols_label(premium = "prospicio", book_premium = "book", losses = "prospicio", book_losses = "book",
ratio = "prospicio", book_ratio = "book")
}
# Appendix A, Current Rate Level: six-month policies, the book's cumulative indices.
eff <- c(2011.25, 2012.5, 2013.75, 2014.5, 2015.75, 2016)
book_index <- c(0.9500, 1.0450, 1.0973, 1.0754, 1.1292, 1.1857)
a_on_level <- sapply(2011:2015, function(y) {
avg <- rate_level(eff, level = book_index, start = y, end = y + 1, term = 0.5)$average_level
half_up(1.1857 / half_up(avg, 4), 4)
})
# Premium Trend-3: to the latest average written premium of 115.35, then 2% for 2 years.
ep_crl <- c(1364916.59, 1405728.94, 1448424.45, 1492177.86, 1536267.03)
exposures <- c(12900, 13020, 13130, 13258, 13380)
projected <- half_up(trend_factor(0.02, 2.0), 4)
a_premium_trend <- half_up(half_up(115.35 / half_up(ep_crl / exposures, 2), 4) * projected, 4)
# Loss Development: reported losses and paid ALAE, accident years 2009 to 2015.
columns <- list(
c(705088, 712475, 714196, 764101, 774384, 785068, 797866),
c(725592, 753295, 763913, 861114, 846167, 821509),
c(738686, 782248, 855150, 884498, 835120),
c(753027, 800258, 874106, 867184),
c(732239, 813949, 856495)
)
ages <- c(15, 27, 39, 51, 63)
long <- do.call(rbind, Map(function(a, col) {
data.frame(origin = 2009 + seq_along(col) - 1, age = a, reported = as.double(col))
}, ages, columns))
tri <- triangle(long, "origin", "age", "reported")
# The straight average excluding the highest and lowest link ratio, selected to 4 places.
hi_lo <- half_up(chain_ladder(tri, average = "simple", drop_high = 1, drop_low = 1)@ldf, 4)
cdf <- chain_ladder(tri, ldf = stats::setNames(hi_lo, ages[1:4]), ldf_kind = "ldf")@cdf
a_development <- rev(half_up(cdf, 4))
# Loss Trend-5: -0.5% to 6/30/2015, then +0.5% for 2.25 years to 9/30/2017.
a_loss_trend <- half_up(half_up(trend_factor(-0.005, 2015 - 2011:2015), 4) *
half_up(trend_factor(0.005, 2.25), 4), 4)
# Appendix C: annual policies, and the net trend over lengths rounded to 2 places.
c_on_level <- sapply(2010:2014, function(y) {
lv <- rate_level(c(2011.75, 2014 + 2 / 12, 2015.5), c(-0.076, 0.146, 0.136),
start = y, end = y + 1, term = 1)
half_up(half_up(lv$current_level, 4) / half_up(lv$average_level, 4), 4)
})
c_net_trend <- half_up(trend_factor(0.089, c(6.83, 5.83, 4.83, 3.83, 2.83)), 4)
book <- c(
"A on-level" = "1.2161 1.2176 1.1311 1.0892 1.0991",
"A premium trend" = "1.1342 1.1116 1.0879 1.0663 1.0452",
"A development" = "1.0000 0.9799 1.0003 1.0282 1.0966",
"A loss trend" = "0.9912 0.9962 1.0012 1.0062 1.0113",
"C on-level" = "1.2029 1.2058 1.2724 1.3018 1.2391",
"C net trend" = "1.7902 1.6439 1.5095 1.3862 1.2729"
)
ours <- list(a_on_level, a_premium_trend, a_development, a_loss_trend, c_on_level, c_net_trend)
rows <- do.call(rbind, lapply(seq_along(book), function(k) {
data.frame(factor = c(names(book)[k], paste0(names(book)[k], ", book")),
rbind(as.numeric(ours[[k]]), as.numeric(strsplit(book[[k]], " ")[[1]])))
}))
names(rows)[-1] <- paste0("y", 1:5)
gt(rows, rowname_col = "factor") |>
tab_header("The indications' factors, recomputed", "Rounded to four places; each pair is prospicio, then the book") |>
fmt_number(columns = starts_with("y"), decimals = 4) |>
cols_label(y1 = "year 1", y2 = "year 2", y3 = "year 3", y4 = "year 4", y5 = "year 5")| The indications' factors, recomputed | |||||
| Rounded to four places; each pair is prospicio, then the book | |||||
| year 1 | year 2 | year 3 | year 4 | year 5 | |
|---|---|---|---|---|---|
| A on-level | 1.2161 | 1.2176 | 1.1311 | 1.0892 | 1.0991 |
| A on-level, book | 1.2161 | 1.2176 | 1.1311 | 1.0892 | 1.0991 |
| A premium trend | 1.1342 | 1.1116 | 1.0879 | 1.0663 | 1.0452 |
| A premium trend, book | 1.1342 | 1.1116 | 1.0879 | 1.0663 | 1.0452 |
| A development | 1.0000 | 0.9799 | 1.0003 | 1.0282 | 1.0966 |
| A development, book | 1.0000 | 0.9799 | 1.0003 | 1.0282 | 1.0966 |
| A loss trend | 0.9912 | 0.9962 | 1.0012 | 1.0062 | 1.0113 |
| A loss trend, book | 0.9912 | 0.9962 | 1.0012 | 1.0062 | 1.0113 |
| C on-level | 1.2029 | 1.2058 | 1.2724 | 1.3018 | 1.2391 |
| C on-level, book | 1.2029 | 1.2058 | 1.2724 | 1.3018 | 1.2391 |
| C net trend | 1.7902 | 1.6439 | 1.5095 | 1.3862 | 1.2729 |
| C net trend, book | 1.7902 | 1.6439 | 1.5095 | 1.3862 | 1.2729 |
2. Appendix A: auto property damage by the loss ratio method
Appendix A (LR Indication exhibit) covers five accident years of
private passenger auto property damage. Premium goes to the current rate
level and is trended. Reported losses and paid ALAE are developed,
trended and loaded for ULAE (factor 1.143, from the ULAE Ratio exhibit).
The indicated loss ratio is the ratio of the totals.
loss_ratio_experience() takes each factor as a vector with
one value per year, or one number for all years:
a <- loss_ratio_experience(
earned_premium = c(1122372, 1154508, 1280545, 1369976, 1397750),
losses = c(856495, 867184, 835120, 821509, 797866),
on_level_factor = a_on_level,
premium_trend = a_premium_trend,
development = a_development,
loss_trend = a_loss_trend,
lae_factor = 1.143
)
year_table(2011:2015, a,
list(c(1548088, 1562608, 1575741, 1591109, 1605706),
c(970359, 967578, 955974, 971450, 1011357), c(62.7, 61.9, 60.7, 61.1, 63.0)),
list(7883252, 4876718, 61.9),
"Appendix A: auto property damage, loss ratio method",
"Projected premium and losses in dollars (losses include ALAE and ULAE)", 2)| Appendix A: auto property damage, loss ratio method | ||||||
| Projected premium and losses in dollars (losses include ALAE and ULAE) | ||||||
|
premium
|
losses
|
loss ratio (%)
|
||||
|---|---|---|---|---|---|---|
| prospicio | book | prospicio | book | prospicio | book | |
| 2011 | 1,548,088 | 1,548,088 | 970,359 | 970,359 | 62.7 | 62.7 |
| 2012 | 1,562,608 | 1,562,608 | 967,578 | 967,578 | 61.9 | 61.9 |
| 2013 | 1,575,741 | 1,575,741 | 955,974 | 955,974 | 60.7 | 60.7 |
| 2014 | 1,591,109 | 1,591,109 | 971,450 | 971,450 | 61.1 | 61.1 |
| 2015 | 1,605,706 | 1,605,706 | 1,011,357 | 1,011,357 | 63.0 | 63.0 |
| total | 7,883,253.19 | 7,883,252 | 4,876,718 | 4,876,718 | 61.86 | 61.9 |
The book’s total premium is the sum of its rounded rows, a dollar below the exact total.
The Expense exhibit splits five selected expense ratios into fixed and variable parts: general 6.3% and other acquisition 8.5% (each 75% fixed), licenses and fees 0.2% (all fixed), commission and brokerage 11.2% and taxes 2.1% (all variable). The book rounds each part to a tenth before it adds the parts. The indicated change follows from the selected 61.9% loss and LAE ratio:
ratios <- c(0.063, 0.085, 0.002, 0.112, 0.021)
shares <- c(0.75, 0.75, 1.00, 0.00, 0.00)
parts <- Map(premium_based_expenses, ratios, shares)
fixed <- sum(sapply(parts, function(p) half_up(100 * p[["fixed"]], 1)))
variable <- sum(sapply(parts, function(p) half_up(100 * p[["variable"]], 1)))
exact <- premium_based_expenses(ratios, shares)
change <- indicated_change(0.619, variable / 100, 0.05, fixed_ratio = fixed / 100)
compare(list(
row("fixed expense (%)", fixed, 1, 11.3, alt = 100 * exact[["fixed"]], ad = 2),
row("variable expense (%)", variable, 1, 17.0, alt = 100 * exact[["variable"]], ad = 2),
row("variable permissible loss ratio (%)", 100 * permissible_loss_ratio(variable / 100, 0.05), 1, 78.0),
row("indicated change (%)", 100 * change, 2, -6.2, bd = 1,
alt = 100 * indicated_change(a$loss_ratio, variable / 100, 0.05, fixed_ratio = fixed / 100), ad = 2)
), "Appendix A: expenses and the indicated change",
"Percent; unrounded: before the parts are rounded, and from the unrounded loss ratio", alt = "unrounded")| Appendix A: expenses and the indicated change | |||
| Percent; unrounded: before the parts are rounded, and from the unrounded loss ratio | |||
| prospicio | book | unrounded | |
|---|---|---|---|
| fixed expense (%) | 11.3 | 11.3 | 11.30 |
| variable expense (%) | 17.0 | 17.0 | 17.00 |
| variable permissible loss ratio (%) | 78.0 | 78.0 | |
| indicated change (%) | −6.15 | −6.2 | −6.20 |
The book starts from the rounded 61.9%. The exact 61.86% gives the same tenth.
With 3,612 claims against a standard of 1,082, the indication is fully credible. The exhibit still computes the complement, trended present rates (last indication 13.2%, rate taken 5.0%, net trend 0.5% loss over 2.0% premium, one year):
za <- limited_fluctuation_credibility(3612, 1082)
complement <- trended_present_rates(0.132, 0.05, 1.005 / 1.02)
final <- credibility_weighted(half_up(change, 3), za, complement)
compare(list(
row("credibility Z", za, 3, 1.0),
row("complement (%)", 100 * complement, 2, 6.2, bd = 1),
row("credibility-weighted change (%)", 100 * final, 1, -6.2)
), "Appendix A: credibility", "Z is a fraction; the rest in percent")| Appendix A: credibility | ||
| Z is a fraction; the rest in percent | ||
| prospicio | book | |
|---|---|---|
| credibility Z | 1.000 | 1.000 |
| complement (%) | 6.22 | 6.2 |
| credibility-weighted change (%) | −6.2 | −6.2 |
3. Appendix B: homeowners by the pure premium method
Appendix B prices homeowners per exposure.
pure_premium_experience() develops and trends the
non-catastrophe losses, loads them for ULAE and divides them by earned
exposures. Catastrophes enter separately, as a non-modelled load (from a
long history of catastrophe losses to amount of insurance) and a
modelled load (from a hurricane model). Reinsurance and fixed expenses
are amounts per exposure, and the rate follows from the fundamental
insurance equation. The development and trend factors are the exhibit’s
printed values:
b <- pure_premium_experience(
exposure = c(12760, 12766, 12805, 12834, 13411),
losses = c(5161624, 4820968, 4112172, 5052052, 6559224),
development = c(1.0000, 1.0012, 1.0055, 1.0186, 1.0555),
loss_trend = c(1.1939, 1.1705, 1.1476, 1.1251, 1.1030),
lae_factor = 1.012
)
exposures_b <- c(12760, 12766, 12805, 12834, 13411)
frame_b <- data.frame(
year = c(as.character(2011:2015), "total"),
exposures = c(exposures_b, sum(exposures_b)),
losses = c(b$by_year$projected_losses, b$projected_losses),
book_losses = c(6236412, 5717511, 4802025, 5859265, 7727993, 30343206),
pure_premium = c(b$by_year$pure_premium, b$pure_premium),
book_pp = c(488.75, 447.87, 375.01, 456.54, 576.24, 469.88)
)
gt(frame_b, rowname_col = "year") |>
tab_header("Appendix B: homeowners non-catastrophe pure premium",
"Projected losses in dollars, pure premium in dollars per exposure") |>
fmt_integer(columns = c(exposures, losses, book_losses)) |>
fmt_number(columns = c(pure_premium, book_pp), decimals = 2) |>
tab_spanner("losses", id = "sp_losses", columns = c(losses, book_losses)) |>
tab_spanner("pure premium", id = "sp_pp", columns = c(pure_premium, book_pp)) |>
cols_label(losses = "prospicio", book_losses = "book", pure_premium = "prospicio", book_pp = "book")| Appendix B: homeowners non-catastrophe pure premium | |||||
| Projected losses in dollars, pure premium in dollars per exposure | |||||
| exposures |
losses
|
pure premium
|
|||
|---|---|---|---|---|---|
| prospicio | book | prospicio | book | ||
| 2011 | 12,760 | 6,236,412 | 6,236,412 | 488.75 | 488.75 |
| 2012 | 12,766 | 5,717,511 | 5,717,511 | 447.87 | 447.87 |
| 2013 | 12,805 | 4,802,025 | 4,802,025 | 375.01 | 375.01 |
| 2014 | 12,834 | 5,859,265 | 5,859,265 | 456.54 | 456.54 |
| 2015 | 13,411 | 7,727,993 | 7,727,993 | 576.24 | 576.24 |
| total | 64,576 | 30,343,206 | 30,343,206 | 469.88 | 469.88 |
The credibility is 683 claims against 1,082. The book rounds it to 79.5% before it weights with the regional pure premium of $585.75. Reinsurance is the net cost of $214,575 over the exposures grown 1% a year for two years, rounded to whole exposures. The fixed expense of $72.79 trends at 3.4% a year for two years, with the factor rounded to four places:
zb <- limited_fluctuation_credibility(683, 1082)
weighted <- credibility_weighted(469.88, half_up(zb, 3), 585.75)
reinsurance <- 214575 / half_up(13411 * trend_factor(0.01, 2.0), 0)
fixed_pp <- 72.79 * half_up(trend_factor(0.034, 2.0), 4)
total_pp <- weighted + 29.11 + 74.57 # non-modelled and modelled catastrophe loads, as printed
rate <- indicated_rate(half_up(total_pp, 2) + half_up(reinsurance, 2), 0.138, 0.05,
fixed_per_exposure = half_up(fixed_pp, 2))
compare(list(
row("credibility Z", zb, 4, 0.795, bd = 3),
row("weighted pure premium", weighted, 2, 493.63, alt = credibility_weighted(b$pure_premium, zb, 585.75)),
row("reinsurance per exposure", reinsurance, 2, 15.68),
row("fixed expense per exposure", fixed_pp, 2, 77.83),
row("total pure premium", total_pp, 2, 597.31),
row("variable permissible loss ratio (%)", 100 * permissible_loss_ratio(0.138, 0.05), 1, 81.2),
row("indicated rate", rate, 2, 850.76)
), "Appendix B: from the pure premium to the indicated rate",
"Dollars per exposure unless marked; unrounded: the weighting with the unrounded Z", alt = "unrounded")| Appendix B: from the pure premium to the indicated rate | |||
| Dollars per exposure unless marked; unrounded: the weighting with the unrounded Z | |||
| prospicio | book | unrounded | |
|---|---|---|---|
| credibility Z | 0.7945 | 0.795 | |
| weighted pure premium | 493.63 | 493.63 | 493.69 |
| reinsurance per exposure | 15.68 | 15.68 | |
| fixed expense per exposure | 77.83 | 77.83 | |
| total pure premium | 597.31 | 597.31 | |
| variable permissible loss ratio (%) | 81.2 | 81.2 | |
| indicated rate | 850.76 | 850.76 | |
The code takes the $29.11 non-modelled catastrophe load as printed: the Non-Modeled Cat exhibit rounds its ratios to three places at each step, and the unrounded chain gives $29.28. The $74.57 modelled load comes from a hurricane model, not from the book’s data, so the code takes it as printed too.
4. Appendix C: medical malpractice with a net trend
Appendix C is a small, long-tailed book of occurrence policies. The inputs are the selected ultimate losses and ALAE (the appendix develops them by several methods), premium at current rate level and one net trend of 8.9%. The net trend applies to losses, with no separate premium trend. ULAE is part of the expenses, so the losses have no LAE factor:
cc <- loss_ratio_experience(
earned_premium = c(14904664, 14494543, 14442449, 14834605, 18265093),
losses = c(11673500, 11200835, 6290368, 18254793, 23371444),
on_level_factor = c_on_level,
loss_trend = c_net_trend
)
year_table(2010:2014, cc,
list(c(17928820, 17477520, 18376572, 19311689, 22632277),
c(20897900, 18413053, 9495310, 25304794, 29749511), c(116.6, 105.4, 51.7, 131.0, 131.4)),
list(95726878, 103860568, 108.5),
"Appendix C: medical malpractice, loss ratio method with a net trend",
"Projected premium and losses in dollars (losses include ALAE)", 0)| Appendix C: medical malpractice, loss ratio method with a net trend | ||||||
| Projected premium and losses in dollars (losses include ALAE) | ||||||
|
premium
|
losses
|
loss ratio (%)
|
||||
|---|---|---|---|---|---|---|
| prospicio | book | prospicio | book | prospicio | book | |
| 2010 | 17,928,820 | 17,928,820 | 20,897,900 | 20,897,900 | 116.6 | 116.6 |
| 2011 | 17,477,520 | 17,477,520 | 18,413,053 | 18,413,053 | 105.4 | 105.4 |
| 2012 | 18,376,572 | 18,376,572 | 9,495,310 | 9,495,310 | 51.7 | 51.7 |
| 2013 | 19,311,689 | 19,311,689 | 25,304,794 | 25,304,794 | 131.0 | 131.0 |
| 2014 | 22,632,277 | 22,632,277 | 29,749,511 | 29,749,511 | 131.4 | 131.4 |
| total | 95,726,878 | 95,726,878 | 103,860,568 | 103,860,568 | 108.50 | 108.5 |
library(ggplot2, exclude = "layer") # keeps prospicio's layer()
fig_c <- data.frame(year = factor(2010:2014), ratio = 100 * cc$by_year$loss_ratio)
ggplot(fig_c, aes(year, ratio)) +
geom_col(aes(fill = "loss and ALAE ratio by year")) +
geom_hline(aes(yintercept = 100 * cc$loss_ratio, linetype = "total, all five years"),
colour = "grey50") +
labs(x = "accident year", y = "projected loss and ALAE ratio (%)", fill = NULL, linetype = NULL,
title = "Appendix C: projected loss ratio by year") +
coord_cartesian(ylim = c(0, 160)) +
theme(legend.position = "top")All expenses are variable here: general 6.4%, other acquisition 2.6%, taxes, licenses and fees 2.1%, commission and brokerage 21.2%, and ULAE 2.4%. The underwriting profit provision is -5%, because the investment income of this long-tailed line covers the target return. The credibility standard is stricter than Appendix A’s: within 7.5% with 95% probability, 683 claims. The complement is the countrywide indication of +18.5%. The book rounds the indication and the credibility to a tenth of a percent before it weights them:
variable <- premium_based_expenses(c(0.064, 0.026, 0.021, 0.212, 0.024), 0)[["variable"]]
indicated <- indicated_change(1.085, variable, -0.05)
standard <- credibility_standard(0.95, 0.075)[["frequency"]]
zc <- limited_fluctuation_credibility(283, round(standard))
weighted <- credibility_weighted(half_up(indicated, 3), half_up(zc, 3), 0.185)
compare(list(
row("expenses (%)", 100 * variable, 1, 34.7),
row("permissible loss ratio (%)", 100 * permissible_loss_ratio(variable, -0.05), 1, 70.3),
row("indicated change (%)", 100 * indicated, 2, 54.3, bd = 1),
row("credibility standard (claims)", standard, 2, 683, bd = 0),
row("credibility Z (%)", 100 * zc, 2, 64.4, bd = 1),
row("credibility-weighted change (%)", 100 * weighted, 2, 41.6, bd = 1,
alt = 100 * credibility_weighted(indicated, zc, 0.185))
), "Appendix C: from the loss ratio to the credibility-weighted change",
"Percent unless marked; unrounded: the weighting without the rounding", alt = "unrounded")| Appendix C: from the loss ratio to the credibility-weighted change | |||
| Percent unless marked; unrounded: the weighting without the rounding | |||
| prospicio | book | unrounded | |
|---|---|---|---|
| expenses (%) | 34.7 | 34.7 | |
| permissible loss ratio (%) | 70.3 | 70.3 | |
| indicated change (%) | 54.34 | 54.3 | |
| credibility standard (claims) | 682.93 | 683 | |
| credibility Z (%) | 64.37 | 64.4 | |
| credibility-weighted change (%) | 41.56 | 41.6 | 41.57 |
The selected loss and ALAE ratio, 108.5%, is the rounded total above. The book’s earned premium table also lists 2008 with the same figure as 2014 (18,265,093), probably a copy error outside the indication.
5. Increased limits and deductibles
Chapter 11 prices limits and deductibles from a size-of-loss table.
The increased limit factor (ILF) is the limited average severity (LAS)
at the limit over the LAS at the basic limit. The loss elimination ratio
(LER) of a deductible is the share of losses below it. For a fitted or
assumed severity, ilf() and
loss_elimination_ratio() calculate both exactly (see distributions-for-actuaries-claim-size.md).
The book’s tables give claim counts and loss totals for each size
band. size_of_loss() reads such a table as a severity. It
puts each band’s claims at the band’s average, so its limited expected
value is exact at each band edge, and ilf(),
loss_elimination_ratio() and the layer functions take it as
any other severity. censored_las() applies the censored
method of Table 11.6, with one table for each policy limit:
# Table 11.3: 5,000 uncensored claims, (count, losses) by band up to 100K, 250K, 500K, 1M.
table <- size_of_loss(c(0, 100e3, 250e3, 500e3, 1e6), c(2324, 1923, 680, 73),
c(117629223, 307599929, 222793514, 43047470))
# Table 11.6: the same claims censored at policy limits of 100K, 250K and 500K.
by_limit <- list(
size_of_loss(c(0, 100e3), 2019, 156657898),
size_of_loss(c(0, 100e3, 250e3), c(690, 773), c(34903214, 142767479)),
size_of_loss(c(0, 100e3, 250e3, 500e3), c(712, 574, 232), c(35768111, 90009422, 81092725))
)
layers <- censored_las(by_limit)
l <- half_up(layers$severity, 0) # the book adds rounded layers
# Table 11.8: loss elimination ratio of a 250 deductible, ground-up homeowners losses.
# Only the edge at 250 matters; the other edges are chosen to hold each band's average.
homeowners <- size_of_loss(c(0, 100, 250, 500, 1000, Inf), c(3200, 1225, 1187, 1845, 2543),
c(240365, 207588, 463954, 1551938, 11140545))
compare(list(
row("uncensored LAS(100K)", lev(table, 100e3), 0, 77046),
row("uncensored LAS(250K)", lev(table, 250e3), 0, 122696),
row("ILF at 250K", ilf(table, 250e3, 100e3), 2, 1.59),
row("censored layer 1", l[1], 0, 77046),
row("censored layer 2", l[2], 0, 44575),
row("censored layer 3", l[3], 0, 15213),
row("censored LAS(250K)", l[1] + l[2], 0, 121621, alt = layers$las[2], ad = 1),
row("censored LAS(500K)", sum(l), 0, 136834, alt = layers$las[3], ad = 1),
row("LER of a 250 deductible", loss_elimination_ratio(homeowners, 250), 3, 0.135)
), "Chapter 11: increased limits and a deductible",
"Dollars, except the factor and the ratio; unrounded: the layers added without rounding", alt = "unrounded")| Chapter 11: increased limits and a deductible | |||
| Dollars, except the factor and the ratio; unrounded: the layers added without rounding | |||
| prospicio | book | unrounded | |
|---|---|---|---|
| uncensored LAS(100K) | 77,046 | 77,046 | |
| uncensored LAS(250K) | 122,696 | 122,696 | |
| ILF at 250K | 1.59 | 1.59 | |
| censored layer 1 | 77,046 | 77,046 | |
| censored layer 2 | 44,575 | 44,575 | |
| censored layer 3 | 15,213 | 15,213 | |
| censored LAS(250K) | 121,621 | 121,621 | 121,620.5 |
| censored LAS(500K) | 136,834 | 136,834 | 136,833.0 |
| LER of a 250 deductible | 0.135 | 0.135 | |
limits <- c(100, 250, 500, 1000)
fig_ilf <- rbind(
data.frame(limit = limits, ilf = sapply(limits, function(m) ilf(table, 1e3 * m, 100e3)),
method = "uncensored table (Table 11.3)"),
data.frame(limit = limits[1:3], ilf = layers$las / layers$las[1],
method = "censored method (Table 11.6)")
)
ggplot(fig_ilf, aes(limit, ilf, colour = method)) +
geom_line(linewidth = 0.8) +
geom_point(size = 2) +
labs(x = "policy limit (thousands of dollars)", y = "increased limit factor", colour = NULL,
title = "Increased limit factors, basic limit 100K") +
theme(legend.position = "top")The censored method builds each layer only from policies whose limit is at least the top of the layer, and scales the layer by the share of those policies’ claims that reach it. It gives a slightly lower factor at 250K and 500K than the uncensored table.
Where the book’s printed numbers differ from exact arithmetic
Each difference comes from the book rounding a cell before the next step. With that rounding, as above, the code reproduces each printed figure:
| Where | Book | Exact | Cause |
|---|---|---|---|
| Table 5.19, cumulative level | 1.1435 | 1.14345 | index rounded to 4 places |
| Table 5.21, policy-year average | 1.1464 | 1.14634 | uses the rounded 1.1435 |
| Appendix A, 2012 on-level factor | 1.2176 | 1.2175 | indices rounded at each step |
| Table 6.12, 27-39 arithmetic average | 1.30 | 1.2932 | average of link ratios rounded to 2 places |
| Table 6.13, ultimate losses | 14,095 | 14,093.7 | factors to ultimate rounded to 2 places |
| Appendix A, 15-27 all-year average | 1.0704 | 1.0703 | link ratios rounded to 4 places |
| Appendix A, 15-ultimate development factor | 1.0966 | 1.0965 | selected factors rounded to 4 places before chaining |
| Appendix C, 2010 net trend factor | 1.7902 | 1.7907 | trend length rounded to 6.83 |
| Table 12.1, 5% and 99% standard | 2,652 | 2,654 | z rounded to 2.575 |
| Appendix A, total projected premium | 7,883,252 | 7,883,253.19 | sum of rounded rows |
| Appendix B, weighted pure premium | 493.63 | 493.69 | credibility rounded to 79.5% |
| Appendix B, non-modelled cat load | 29.11 | 29.28 | ratios rounded to 3 places |
| Appendix C, credibility-weighted change | 41.6% | 41.57% | indication and Z rounded first (same printed tenth) |
| Table 11.6, censored LAS(250K) | 121,621 | 121,620.5 | layers rounded to the dollar before adding |
The book also has three slips. None of them changes an indication:
- Appendix A’s Premium Trend-3 footnote gives the trend period as 6/30/2017 to 6/30/2017. The period starts at 6/30/2015.
- Table 7.5 uses 2015 earned premium of 545,250,000, where Table 7.4 has 530,000,000.
- Appendix C lists the same earned premium for 2008 and 2014.