Skip to contents

The member of a family of distortions whose risk measure of x equals premium. With assets, x is capped at the assets first, so the premium prices min(X, assets). The premium must lie strictly between the (capped) mean and maximum. CCoC is solved in closed form; the other families by bisection to full precision.

Usage

calibrate_distortion(family, x, premium, assets = NULL, r0 = 0)

Arguments

family

One of "ccoc", "proportional_hazard" ("ph"), "wang", "tsallis", "dual_power" ("dual"), "tvar", "exponential", "capped_linear", "capped_log_linear", "lep" and "linear_yield".

x

A sampled, grid_distribution or predictive_distribution (its total).

premium

The target price.

assets

Optional assets at which to cap the loss.

r0

The fixed r0 of the families that have one.

Value

A distortion.

Examples

x <- sampled(c(22, 28, 36, 40, 40, 40, 40, 55, 65, 100))
calibrate_distortion("ccoc", x, (46.6 + 15) / 1.15) # r = 0.15
#> <distortion> ccoc(0.15)
calibrate_distortion("proportional_hazard", x, (46.6 + 15) / 1.15)
#> <distortion> proportional_hazard(0.7204793)