Skip to contents

The stitched peel of the Python package aggregate (xpnl ... peel with two or more occurrence layers). The joint of occurrence_source() carries only the occurrence tier's total cession, so every row is its own exact marginal: each occurrence layer's recovery, each running net and the tier's total is the compound of a per-claim map of the severity under the claim count (by FFT on twice points), and each aggregate layer's a pushforward of the net-of-occurrence aggregate. The mean column foots; the other statistics are each row's own, and the sheet has no scenario columns (ledger_is_stitched() is TRUE); the Impact row is the difference of the grand and gross results' statistics, with no distribution of its own; a loss-basis expense is booked at the expected gross loss.

Usage

book_occurrence_peel(
  book,
  frequency,
  severity,
  occurrence,
  aggregate = NULL,
  face = "peel-top-down",
  points = 1024
)

ledger_is_stitched(ledger)

Arguments

book

A pnl_book().

frequency

A claim count, as poisson_count().

severity

A grid_distribution of one claim.

occurrence

A reinsurance_tower of occurrence layers with fixed terms.

aggregate

NULL or a reinsurance_tower of aggregate covers without loss-sensitive terms.

face

"peel-top-down" or "peel-bottom-up".

points

The number of grid points.

ledger

A pnl_ledger().

Value

book_occurrence_peel() a pnl_ledger(); ledger_is_stitched() whether every row is its own marginal.

Examples

sev <- grid_distribution(1, c(0, 0.4, 0.3, 0, 0.2, 0, 0.1))
occ <- reinsurance_tower(list(
  with_deposit_premium(xol_layer("occ 1 xs 1", 1, 1), 1),
  with_deposit_premium(xol_layer("occ 2 xs 2", 2, 2), 1)))
book <- pnl_book("S", 20, list(pnl_expense("premium", 0.1)))
peel <- book_occurrence_peel(book, poisson_count(2), sev, occ, points = 64)
ledger_sheet(peel)[, c("step", "label", "EX", "SD")]
#>              step               label   EX        SD
#> 1           Gross             Premium 20.0  0.000000
#> 2           Gross                Loss -4.8  4.098780
#> 3           Gross             expense -2.0  0.000000
#> 4           Gross               Total -6.8  4.098780
#> 5           Gross               Gross 13.2  4.098780
#> 6      occ 2 xs 2  occ 2 xs 2 premium -1.0  0.000000
#> 7      occ 2 xs 2 occ 2 xs 2 recovery  1.2  1.549193
#> 8      occ 2 xs 2               Total  0.2  1.549193
#> 9      occ 2 xs 2                 Net 13.4  2.828427
#> 10     occ 1 xs 1  occ 1 xs 1 premium -1.0  0.000000
#> 11     occ 1 xs 1 occ 1 xs 1 recovery  1.2  1.095445
#> 12     occ 1 xs 1               Total  0.2  1.095445
#> 13     occ 1 xs 1                 Net 13.6  1.897367
#> 14 All occurrence               Total -2.0  0.000000
#> 15 All occurrence               Total  2.4  2.449490
#> 16 All occurrence               Total  0.4  2.449490
#> 17            All                 Net 18.0  0.000000
#> 18            All                 Net -4.4  1.897367
#> 19            All                 Net 13.6  1.897367
#> 20            All              Impact  0.4 -2.201414