Skip to contents

Separates development from calendar-year effects (inflation) in an incremental triangle (Taylor 1977; issue #979, design note docs/design/reserving-inflation.md). Increments over a normaliser n_i are r_j * lambda_(i+j): development proportions r_j (summing to 1) times an index lambda_h per calendar period. Python's Separation.

Usage

separation_fit(
  origins,
  ages,
  normaliser,
  proportions,
  calendar,
  indices,
  future_indices,
  fitted,
  future,
  reserves,
  log_variance = NULL
)

separation(
  triangle,
  column = NULL,
  kind = "arithmetic",
  normaliser = NULL,
  future_rate = NULL,
  future_index = NULL,
  trend_periods = NULL,
  segment = NULL
)

separation_glm(
  triangle,
  column = NULL,
  normaliser = NULL,
  future_rate = NULL,
  future_index = NULL,
  trend_periods = NULL
)

Arguments

origins, ages, proportions, calendar, indices, future_indices, fitted, future, reserves, log_variance

The fields of a separation_fit, as described under Value. A fit is made by separation(); the separation_fit() constructor only holds its fields.

normaliser

n_i, one per origin: finite and positive (claim counts, premium, exposure). NULL (the default) is 1 for every origin.

triangle

A triangle().

column

The column to fit; NULL for the triangle's only one.

kind

"arithmetic" (the default), "geometric" or "geometric_lognormal".

future_rate

A constant annual rate from the last fitted index, compounded by months: above -1.

future_index

A calendar_index(): its relative changes from the triangle's last calendar period, read at the last sub-period of each period.

trend_periods

The exponential trend of the last trend_periods fitted indices, continued from the last: at least 2, at most the number of calendar periods.

segment

The key values of the one segment of a triangle with several, as a named list or character vector (c(lob = "auto")); the default needs a triangle of one segment.

Value

A separation_fit with the properties origins, ages (months), normaliser (per origin), proportions (per age, summing to 1), calendar (the triangle's calendar periods), indices (per calendar period), future_indices (a data frame of the periods after the triangle's last, up to the last future cell's, and their index), fitted (a matrix of n_i r_j lambda_(i+j) on the observed cells, origins by ages, NA on the future ones), future (the future cells as future_cells(), with no tail past the oldest age), reserves (the sum of each origin's future cells; the first origin's is 0), log_variance (the geometric methods' residual variance on the log scale; NULL for the arithmetic method and with no degrees of freedom left) and total_reserve. separation_glm() returns an odp_glm_fit.

Details

  • "arithmetic" solves Taylor's equations on the column and diagonal sums (the marginal equations of a Poisson GLM on development and calendar factors).

  • "geometric" is least squares on the logarithms, taken back to amounts by the geometric means; "geometric_lognormal" by the lognormal means (a factor exp(sigma^2 / 2) on every index, which needs at least 3 origins). The geometric methods need every increment positive.

The triangle must be full: as many ages as origins, the origin grain equal to the development grain, no hole. The indices after the triangle's last calendar period are not fitted: give exactly one of future_rate, future_index and trend_periods. On a triangle already restated by an economic index (restate()) the indices measure superimposed inflation.

separation_glm() is the arithmetic method as a Poisson GLM, s ~ C(development) + C(calendar) on the increments with the future indices in its future rows: an odp_glm_fit whose reserves equal separation()'s and whose prediction_error is the delta method's. A future_rate or future_index is a fixed growth from the last fitted index, so the error is that of the last index, the growth taken as given; a trend_periods future is linear in the fitted calendar effects, so its uncertainty is included. The dispersion is Pearson's. It needs a triangle of one segment, and it fails with a normaliser (the variance of n_i s_ij is not an over-dispersed Poisson's: divide the triangle by the normaliser and fit it without one). The geometric methods have no GLM form.

Examples

# Taylor (1977), Example 1: claims per claim incurred, cumulative.
rows <- list(c(50.4, 78.6, 87.6, 92.4), c(58.0, 87.2, 96.9), c(59.5, 92.7), 66.2)
long <- data.frame(
  year = rep(2001:2004, lengths(rows)),
  age = 12 * unlist(lapply(rows, seq_along)),
  s = unlist(rows)
)
fit <- separation(triangle(long, "year", "age", "s"), future_rate = 0.10)
round(fit@proportions, 4)
#>     12     24     36     48 
#> 0.5835 0.2878 0.0866 0.0421 
round(fit@indices, 1)
#>  2001  2002  2003  2004 
#>  86.4  98.9 102.0 113.9 
glm <- separation_glm(triangle(long, "year", "age", "s"), future_rate = 0.10)
glm@prediction_error
#>   origin  reserve process_se parameter_se     rmsep         cv
#> 1   2001  0.00000  0.0000000    0.0000000 0.0000000         NA
#> 2   2002  5.28000  0.1729306    0.1813712 0.2506003 0.04746218
#> 3   2003 16.65997  0.3071794    0.2799293 0.4155955 0.02494575
#> 4   2004 54.38035  0.5549782    0.4912982 0.7411982 0.01362989
#> 5  Total 76.32032  0.6574687    0.8343814 1.0622887 0.01391882