A Bayesian Bornhuetter-Ferguson prior for an excess layer
layer_share_prior.RdThe 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.
The layer share, one number or one per origin.
- apriori_cv
The loss ratio's coefficient of variation (
Infis flat).The share's coefficient of variation, the same at every origin.
The standard error of a single share, instead of
share_cv; the coefficient of variation isshare_se / shares."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()(orbayes_bf_normalised_one_year()):development_sd,process,chains,tune,draws,n_sims,seed,target_accept,max_depthand, for the one-year view,k_threshold,refit,max_refitsandone_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
layer_share_prior()builds the prior.sharesis the layer share, a severity'slayer_share()or an exposure curve'sexposure_layer_share(), one for all origins or one per origin, each in(0, 1].share_cvis its coefficient of variation, or give the standard errorshare_seof a single share instead.bayes_bf_layer()fits the layer lossescolumnof a triangle that also holds the ground-upexposurecolumn:layer_exposure()with the shares, thenbayes_bf_normalised()withaprioriand the prior'scv. The other arguments are those ofbayes_bf_normalised(). The result is a bayes_bf_normalised_fit.bayes_bf_layer_one_year()is the one-year view of the same fit, asbayes_bf_normalised_one_year().
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.