Skip to contents

The Bayesian Bornhuetter-Ferguson of England, Verrall and Wuthrich (2012, Model 3.1): the over-dispersed Poisson model of a cumulative triangle's incremental values with mean mu[w] * gamma[d], an informative gamma prior on each origin's row parameter mu[w] with mean apriori times the origin's exposure and coefficient of variation cv, a vague normal prior on each log gamma[d] (the pattern is not normalised), and the chain ladder's Pearson scale phi (the scale of odp_bootstrap()) plugged in. The posterior is sampled with NUTS, and each draw projects the future cells up to the oldest observed age (no tail) with the process error of process, as bayes_odp() does.

Usage

bayes_bf_fit(ptr)

bayes_bf(
  triangle,
  column,
  exposure,
  apriori = 1,
  cv = 0.1,
  development_sd = 10,
  process = c("gamma", "none"),
  chains = 4,
  tune = 1000,
  draws = 1000,
  n_sims = 10000,
  seed = 0,
  target_accept = 0.95,
  max_depth = 10
)

Arguments

ptr

A BayesBfFit pointer; used internally.

triangle

A cumulative triangle with one segment, every origin observed from the first age up to its latest.

column

Name of the loss column to fit.

exposure

Name of the exposure column; each origin's latest observed value is its exposure, as for bornhuetter_ferguson().

apriori

Prior mean of each origin's mu[w] per unit of exposure. It is the expected loss ratio only when the pattern gamma sums to 1 (Details).

cv

Coefficient of variation of the gamma prior on each mu[w] (shape 1 / cv^2, EVW's a); Inf for a flat prior.

development_sd

Standard deviation of the normal prior on each log gamma[d], centred on 0. With cv = Inf, a much vaguer prior (1,000, say) leaves divergent transitions.

process

Process error on each simulated future increment: "gamma" (mean mu, variance phi * mu) or "none" for parameter error only.

chains, tune, draws

NUTS chains, warm-up draws per chain and kept draws per chain.

n_sims

Number of predictive simulations, independent of the number of posterior draws; positive.

seed

Seed of the chains and of the simulations, a non-negative whole number.

target_accept

Target mean acceptance rate of the step-size adaptation.

max_depth

Largest NUTS tree depth.

Value

A bayes_bf_fit object.

Details

The prior's strength moves the reserve between two limits. With cv = Inf (a flat prior on log mu[w]) the model is the Bayesian chain ladder, and the reserves agree with bayes_odp()'s within Monte Carlo error. As cv falls to 0, mu[w] is fixed at the prior ultimate m[w] and each origin's mean reserve tends to m[w] times the sum of the future S[d] / M[d] (S[d] the observed increments of column d, M[d] the prior ultimates of the origins observed there): EVW's strong-prior limit, Mack's (2008) Bornhuetter-Ferguson with the raw pattern. That equals the classical bornhuetter_ferguson() reserve (1 - 1 / cdf) * m[w] only when the prior ultimates are the chain ladder's.

mu[w] is EVW's row parameter, not the origin's expected ultimate: that is mu[w] times the sum of the gamma[d], which under a tight prior is m[w] times the sum of S[d] / M[d] over all columns. On EVW's triangle that sum is 0.885, so the implied ultimate loss ratio is about 11.5% below apriori.

Every development column's observed increments must sum to more than zero, and every origin's to more than -phi / cv^2; negative cells are allowed. One seed replays a fit exactly, whatever the number of threads. Failed MCMC diagnostics (R-hat above 1.01, bulk or tail ESS below 100 per chain, any divergent transition) do not fail the fit: bayes_bf() raises one warning() listing them, and they stay in the fit's diagnostics.

Properties of the fit: as bayes_odp_fit's (chain_ladder, origins, development, scale, reserves, diagnostics, summary, draws), with exposure and prior_ultimate (apriori * exposure, the prior mean of mu[w], not of the expected ultimate) per origin; the posterior draws are of alpha[1], ..., alpha[n] (log mu[w]) and beta[1], ..., beta[m] (log gamma[d]). bayes_loo() gives the PSIS-LOO of the observed increments, comparable with bayes_odp()'s on the same column. as.data.frame(), totals_frame(), development_frame() and segment() work as for bayes_odp(), with the exposure, prior_ultimate and ulr (the chain ladder's ultimate over the exposure, a loss ratio only when the exposure is premium), and after the mean and std_dev the ultimate_mean (latest plus mean, the posterior mean ultimate) and ulr_mean (ultimate_mean over the exposure).

Errors: as bayes_odp(); if an origin has no observed, finite, positive exposure; if apriori is not positive and finite, cv is not positive or development_sd is not positive and finite; if a development column's increments do not sum to more than zero; or if an origin's sum to -phi / cv^2 or less.

Examples

long <- data.frame(year = rep(2018:2021, 4:1),
                   age = c(12, 24, 36, 48, 12, 24, 36, 12, 24, 12),
                   paid = c(100, 150, 165, 170, 110, 170, 180, 120, 175, 130),
                   premium = rep(c(200, 220, 240, 260), 4:1))
tri <- triangle(long, "year", "age", c("paid", "premium"))
fit <- bayes_bf(tri, "paid", "premium", apriori = 0.85, cv = 0.1, n_sims = 2000,
                seed = 1)
fit@prior_ultimate
#> [1] 170 187 204 221
mean(fit@reserves)
#> [1] 112.3278
quantile(fit@reserves, 0.995)
#> [1] 154.502