Mack's development-factor correlation test
development_correlation_test.RdMack's (1994, appendix G) test for correlation between adjacent
development factors, as R ChainLadder's dfCorTest(): T is the
weighted mean of Spearman's rank correlations T_k of each pair of
adjacent link-ratio columns over the origins they share (ties take
average ranks), with weight n - 1 (Mack's I - k - 1) and variance
1 / sum(weights), Mack's 1 / ((I - 2)(I - 3) / 2) on a full
triangle, compared with +- q sqrt(Var[T]), q = qnorm((1 + ci) / 2).
Details
On a triangle the test reads every observed link ratio of column;
on a single-segment mack_fit the link ratios the fit averaged, as
calendar_year_effect() does.
Properties: t (R's T_stat), variance, ci, range (lower and
upper), passes (TRUE when t lies within the range, ends included:
no correlation is detected) and pairs, one row per pair of adjacent
link columns with two origins in common: age (the age at the start of
the first link, in months), n (the origins in common), T_k (NaN
if a column's ranks are all tied) and weight (n - 1, or 0 where
T_k is NaN). summary() gives R's list of Results and Range,
with Table, the pairs.
See also
calendar_year_effect() for the other assumption test.
Examples
long <- data.frame(year = rep(2016:2021, 6:1),
age = sequence(6:1) * 12,
paid = c(100, 160, 180, 186, 188, 189, 110, 170, 195, 200, 202,
120, 200, 220, 224, 130, 205, 225, 140, 215, 150))
tri <- triangle(long, "year", "age", "paid")
dc <- development_correlation(tri)
dc
#> <development_correlation_test> Mack's development-factor correlation test
#> T = 0.1333333333, Var[T] = 0.1666666667
#> 50%-range = (-0.2753592875; 0.2753592875)
#> Development factor correlation: not detected
dc@pairs
#> age n T_k weight
#> 1 12 4 -0.4 3
#> 2 24 3 0.5 2
#> 3 36 2 1.0 1
summary(dc)
#> $Results
#> Value
#> T 0.1333333
#> E[T] 0.0000000
#> Var[T] 0.1666667
#>
#> $Range
#> Value
#> Lower -0.2753593
#> Upper 0.2753593
#>
#> $Table
#> age n T_k weight
#> 1 12 4 -0.4 3
#> 2 24 3 0.5 2
#> 3 36 2 1.0 1
#>