Skip to contents

The prior of a layer's expected ultimate for bayes_bf_normalised(), from the ground-up expected loss ratio and the layer share, each with an uncertainty (issue #192; design note docs/design/reserving-excess.md, PR 4). The layer's a-priori ultimate for origin i is the ground-up exposure times apriori times the share. The normalised BF puts a gamma prior on the layer's expected ultimate, centred there, whose coefficient of variation is that of a product of two independent variables, cv = sqrt((1 + apriori_cv^2) * (1 + share_cv^2) - 1): the moments are exact. One share error is common to all origins (the default, share_dependence = "common"): the model carries one more parameter, a gamma multiplier s with mean 1 and cv share_cv, sampled with the others and named log_share among the fit's draws, and each origin's prior ultimate is a gamma with mean exposure * apriori * share * s and cv apriori_cv. Every origin keeps the marginal cv above, the origins' priors are correlated and the data update the share for every origin at once. share_dependence = "per_origin" is the first version, an independent share error at each origin, which understates the total's interval. A known share (share_cv = 0) or a flat prior has nothing to share and is the per-origin model; a common share error needs a positive apriori_cv. The layer's development pattern is estimated from the layer's own triangle under the model's vague prior on the pattern; an excess_pattern() does not enter (open decision 22).

Usage

layer_share_prior(
  apriori,
  shares,
  apriori_cv = 0.1,
  share_cv = 0,
  share_se = NULL,
  share_dependence = c("common", "per_origin")
)

layer_prior_total(prior, exposure_values)

bayes_bf_layer(triangle, column, exposure, prior, ...)

bayes_bf_layer_one_year(triangle, column, exposure, prior, ...)

Arguments

apriori

The ground-up expected ultimate loss ratio.

shares

The layer share, one number or one per origin.

apriori_cv

The loss ratio's coefficient of variation (Inf is flat).

share_cv

The share's coefficient of variation, the same at every origin.

share_se

The standard error of a single share, instead of share_cv; the coefficient of variation is share_se / shares.

share_dependence

"common" (the default) for one share error common to all origins or "per_origin" for an independent one at each.

prior

A layer_share_prior().

exposure_values

The ground-up exposure of each origin, for layer_prior_total().

triangle, column, exposure

A single-segment cumulative triangle, the layer's losses and the ground-up exposure column.

...

The other arguments of bayes_bf_normalised() (or bayes_bf_normalised_one_year()): development_sd, process, chains, tune, draws, n_sims, seed, target_accept, max_depth and, for the one-year view, k_threshold, refit, max_refits and one_year_sims.

Value

layer_share_prior() a layer_share_prior; bayes_bf_layer() a bayes_bf_normalised_fit; bayes_bf_layer_one_year() a bayes_one_year_fit; layer_prior_total() c(mean = , sd = ).

Details

A layer_share_prior has the properties apriori, apriori_cv, shares, share_cv, share_dependence, cv (the marginal cv of each origin's prior ultimate), model_cv and common_cv (the cv and the common_cv of the bayes_bf_normalised() that bayes_bf_layer() fits; common_cv is 0 when there is no common multiplier) and has_common_factor. layer_prior_total() gives the mean and standard deviation of the prior of the layer's total expected ultimate over origins with a ground-up exposure, in closed form.

This is Python's LayerSharePrior.

Examples

prior <- layer_share_prior(0.65, 0.2, apriori_cv = 0.1, share_cv = 0.3)
prior@cv^2
#> [1] 0.1009
prior@apriori * prior@shares
#> [1] 0.13