Skip to contents

Maximum likelihood fit of a severity to large losses, each conditioned on exceeding its reporting threshold (left truncation), with losses capped by a policy limit censored: the same data as pareto_fit(). The standard errors and covariance come from the observed information. A Burr fit on little data can drift towards a boundary where it mimics a Weibull or a Pareto; check converged and the standard errors. The Lomax, S(x) = (1 + x / scale)^(-alpha) (Bahnemann's Pareto), is fitted as a Burr with gamma = 1, the loglogistic as the Burr with alpha = 1. With truncated_above, each loss is also conditioned on not exceeding its bound (the body families only).

Usage

severity_fit(
  family,
  losses,
  reporting_thresholds = NULL,
  censored = NULL,
  weights = NULL,
  truncated_above = NULL,
  t = NULL
)

Arguments

family

"lognormal", "gamma", "weibull", "loglogistic", "exponential", "burr", "lomax", "pareto" or "gen_pareto".

losses

Numeric vector of losses at or above t (t[1]).

reporting_thresholds

Per-loss reporting thresholds, or NULL.

censored

Logical vector, TRUE where a loss was capped, or NULL.

weights

Per-loss weights, or NULL.

truncated_above

Per-loss bounds from above, or NULL: a loss is conditioned on not exceeding its bound (a study of claims up to 50,000); Inf means none.

t

The threshold of "pareto" and "gen_pareto", required for them; NULL for the others.

Value

A list: distribution (the fitted severity), parameters and standard_errors (named), covariance (a matrix), log_likelihood, aic, bic and converged.

Details

"pareto" and "gen_pareto" (Riegel's generalized Pareto, a generalized_pareto at location t with xi = 1 / alpha_tail and beta = t / alpha_ini) are fitted from the threshold t by their own estimators and scored on the same likelihood, t among the parameters but not counted in the AIC. They condition each loss on max(r, t) where the body families condition on r: compare their AIC with a body family's only when every reporting threshold is at least t.

Examples

y <- c(120, 300, 450, 800, 1500, 2600, 4000)
fit <- severity_fit("lognormal", y)
fit$parameters
#>  meanlog    sdlog 
#> 6.679381 1.150566 
severity_fit("weibull", y, reporting_thresholds = rep(100, 7))$aic
#> [1] 117.919
severity_fit("pareto", y, reporting_thresholds = rep(100, 7), t = 100)$aic
#> [1] 119.7255