Skip to contents

Allocate an exogenous total (a premium, a capital amount) by each component's stand-alone measure at one level (Pricing Insurance Risk, sections 12.2.3 and 12.2.4). haircut_allocation() takes the level and scales the stand-alone measures to total; equal_risk_allocation() finds the one level at which they add up to total (for VaR and TVaR, the components priced as if comonotonic; for EPD, the same EPD ratio for each). A VaR of draws moves in steps: where no level adds up exactly, the level is the lowest that reaches total and its VaRs are scaled to it.

Usage

haircut_allocation(x, total, measure = c("tvar", "var", "epd"), level)

equal_risk_allocation(x, total, measure = c("tvar", "var", "epd"))

Arguments

x

A predictive_distribution.

total

The amount to allocate.

measure

"var", "tvar" (level a probability) or "epd" (level the EPD ratio r: the assets at which E[(X - a)+] = r E[X]).

level

The level of the stand-alone measures.

Value

A list with level, total and by_component, the keys data frame of x with columns standalone (the measure at level) and allocated (summing to total).

Examples

pd <- predictive_distribution(
  matrix(c(1, 4, 2, 3, 2, 1, 5, 6), ncol = 2),
  data.frame(lob = c("motor", "property"))
)
haircut_allocation(pd, 18, "tvar", 0.5)$by_component
#>        lob standalone allocated
#> 1    motor        3.5         7
#> 2 property        5.5        11
equal_risk_allocation(pd, 9, "tvar")$level
#> [1] 0.5