Priority ladder
priority_ladder.Rdpriority_ladder() is each unit's recovery from the assets a when it
ranks ahead of the other units pooled (senior, E[X_i ∧ a]), pro rata
(equal, E[X_i min(1, a / X)]), or behind them (junior,
E[min(X_i, (a - X_{-i})^+)]), with its expected policyholder deficit
ratio under each, as aggregate's priority_epd_df. Each rule reads one
unit against the rest pooled, so on three or more units only the equal
recoveries add up to E[X ∧ a]. Exact under any dependence for a
portfolio built from scenarios.
Usage
priority_ladder(port, assets = NULL, p = NULL)
priority_kappa(port, unit, assets = NULL, p = NULL)Arguments
Value
priority_ladder(): a data frame with one row per unit and a
last total row: unit, mean, the recoveries senior, equal,
junior, and the EPD ratios senior_epd, equal_epd, junior_epd;
the assets in attr(, "assets"). priority_kappa(): a data frame with
total, junior and senior.
Details
priority_kappa() says where in the total the shortfall (X - a)^+
falls when unit is junior: at each total x, the junior unit's
expected part E[min((X - a)^+, X_i) | X = x] and the senior pool's,
which add up to (x - a)^+.
Examples
port <- capital_portfolio(cbind(A = c(15, 5, 26, 17), B = c(7, 20, 19, 48)))
priority_ladder(port, assets = 50)
#> unit mean senior equal junior senior_epd equal_epd junior_epd
#> 1 A 15.75 15.75 14.76923 12.00 0.0000000 0.06227106 0.2380952
#> 2 B 23.50 23.50 20.73077 19.75 0.0000000 0.11783961 0.1595745
#> 3 total 39.25 35.50 35.50000 35.50 0.0955414 0.09554140 0.0955414
priority_kappa(port, "A", assets = 50)
#> total junior senior
#> 1 22 0 0
#> 2 25 0 0
#> 3 45 0 0
#> 4 65 15 0