Skip to contents

A stochastic fit's unpaid claims discounted simulation by simulation, by origin and in total, and a risk adjustment for non-financial risk read off the discounted total with the confidence level it corresponds to (IFRS 17 para. 119; issue #553, design note docs/design/reserving-ifrs17.md).

Usage

discounted_reserves(
  fit,
  basis,
  rate = NULL,
  curve = NULL,
  timing = c("mid", "end"),
  paid_pattern = NULL,
  latest_paid = NULL
)

discounted_reserves_class(ptr)

segment_runoff(d, i)

risk_adjustment(
  d,
  method = c("confidence", "tvar", "cost_of_capital"),
  p = NULL,
  rate = NULL,
  capital = NULL,
  charge = c("end", "start")
)

Arguments

fit

A stochastic reserving fit (see Details).

basis

"paid" or "incurred": what the fit's column is.

rate

A flat annual effective rate. Give rate or curve.

curve

A discount_curve().

timing

"mid" (the default) or "end": payments at the middle or the end of each development period.

paid_pattern

For basis = "incurred": the cumulative paid share at each of the fit's pattern ages (with the tail's age when the fit has a tail), ending at 1.

latest_paid

For basis = "incurred": each origin's latest paid, one per component of the fit's reserves in their order (segment-major for a fit over segments).

d

A discounted_reserves result.

i

A segment, counted from 1 in the order of segment_labels.

method

"confidence", "tvar" or "cost_of_capital".

p

The level of "confidence" and "tvar", in [0, 1].

capital

K_0 of "cost_of_capital", with no default: c(var = q) (Q_q(X) - BE), c(tvar = q), or an amount (a number or c(amount = k)), such as the one-year view's capital, the mean claims development result less its 0.5% quantile (the 99.5% loss less the expected loss). An amount is the total's, so no segment results are reported for it.

charge

"end" (the default) or "start" of each year.

Value

discounted_reserves(): a discounted_reserves result. segment_runoff(): a numeric vector. risk_adjustment(): a list with amount, best_estimate, implied_confidence (the share of discounted draws at or below best_estimate + amount), capital (K_0, or NULL) and segments, a data frame of each segment's stand-alone result (no rows for a fit of one segment).

Details

  • discounted_reserves() spreads each simulation's unpaid over that simulation's development pattern (the rises of its running maximum after each origin's latest age; with a tail, the tail's share one period past the oldest age) and discounts every payment on the curve. A compartmental() fit is paid by its simulated paid cells instead. Quantiles of the discounted total come from the discounted draws, never from scaling undiscounted quantiles.

  • basis has no default (decision 4b): "paid" for a fit on paid claims, paid along its own patterns; "incurred" for a fit on incurred claims, where each reserve (the IBNR) plus the origin's case reserve (the fit's latest incurred less latest_paid) is paid along paid_pattern.

  • risk_adjustment() is "confidence", Q_p(X) - BE with the inverted-cdf quantile; "tvar", TVaR_p(X) - BE; or "cost_of_capital", rate times the capital held in each future year, discounted, the capital running off with the best estimate (K_t = K_0 runoff[t] / runoff[1]), charged at the end of each year (Solvency II's risk margin, the default) or at its start.

Supported fits: odp_bootstrap(), mack_bootstrap(), bayes_odp(), bayes_odp_segments() fits, bayes_bf(), bayes_bf_normalised(), meyers() and its fits over segments, compartmental() and compartmental_segments(). Analytic mack() (no simulations) and bayes_hierarchical_bf() (no pattern per simulation) raise a prospicio_not_supported error saying why.

A discounted_reserves result has the properties unpaid and discounted (predictive distributions on the fit's components and simulations), best_estimate (the mean discounted total), runoff (the best estimate outstanding at t = 0, 1, ... whole years, ending with 0), discount_factors (each component's mean present value over its mean unpaid; 1 where that is 0), curve, timing and segment_labels (one character vector per segment of a fit over segments). segment_runoff(d, i) is segment i's run-off, as runoff, with i counted from 1 in the order of segment_labels (a fit over two or more segments only).

Examples

long <- data.frame(year = rep(2019:2022, 4:1),
                   age = c(12, 24, 36, 48, 12, 24, 36, 12, 24, 12),
                   paid = c(100, 150, 170, 175, 110, 160, 185, 120, 185, 130))
fit <- mack_bootstrap(triangle(long, "year", "age", "paid"), n_sims = 1000, seed = 1)
d <- discounted_reserves(fit, basis = "paid", rate = 0.03)
d@best_estimate
#> [1] 135.3014
d@discount_factors
#>      2019      2020      2021      2022 
#> 1.0000000 0.9853293 0.9798723 0.9734432 
risk_adjustment(d, "confidence", p = 0.75)$amount
#> [1] 6.832234
risk_adjustment(d, "cost_of_capital", rate = 0.06, capital = c(var = 0.995))$amount
#> [1] 2.16442