Skip to contents

A summary of each method's ultimate per origin beside the claims to date (Friedland, chapter 15, Exhibit I, sheets 1 to 6; Rust's UltimateExhibit, docs/design/reserving-v02.md, decision 34). Each method's IBNR is its ultimate less reported claims and its unpaid is its ultimate less paid claims. select_ultimates() weights the methods into a selected ultimate.

Usage

ultimate_exhibit_class(ptr)

ultimate_exhibit(
  x = NULL,
  reported = NULL,
  paid = NULL,
  methods = list(),
  origin = NULL,
  age = NULL,
  origin_grain = "Y"
)

Arguments

ptr

An UltimateExhibit pointer; used internally.

x

A triangle, or NULL to give the claims to date as vectors.

reported, paid

With a triangle, its columns of reported and paid claims (either may be NULL, not both); otherwise the claims to date per origin.

methods

A named list of fits or numeric vectors of ultimates.

origin

Without a triangle, the origin periods: Dates or whole-number years.

age

Without a triangle, each origin's age in months at the valuation date.

origin_grain

Without a triangle, the length of an origin period: "Y", "S", "Q" or "M".

Value

An ultimate_exhibit object.

Details

Build it from a triangle (reported and paid name its columns, and each origin's age is its latest over them) or from the claims to date (origin, age, reported and paid as vectors, one value per origin). A method is a fit of one segment with @origins and @ultimate (chain_ladder(), mack(), expected_loss(), bornhuetter_ferguson(), cape_cod() and the like), whose origins must be the exhibit's, or a numeric vector of ultimates per origin; NA where a method does not project (a blank cell of the book's summaries).

Properties: origins, ages, reported and paid (NULL when not given), methods, and data frames ultimate, ibnr and unpaid, one column per method (ibnr NULL without reported claims, unpaid without paid).

Examples

long <- data.frame(year = c(2020, 2020, 2021), age = c(12, 24, 12),
                   reported = c(100, 150, 120), paid = c(60, 140, 50))
tri <- triangle(long, "year", "age", c("reported", "paid"))
ex <- ultimate_exhibit(tri, reported = "reported", paid = "paid",
                       methods = list(reported = chain_ladder(tri, "reported"),
                                      paid = chain_ladder(tri, "paid")))
ex@ultimate
#>      reported     paid
#> 2020      150 140.0000
#> 2021      180 116.6667
ex@ibnr
#>      reported       paid
#> 2020        0 -10.000000
#> 2021       60  -3.333333

# From the claims to date, with a method given by its ultimates.
ultimate_exhibit(origin = 2020:2021, age = c(24, 12), reported = c(150, 120),
                 methods = list(selected = c(150, 190)))@ibnr
#>      selected
#> 2020        0
#> 2021       70