Skip to main content

reserving.CalendarYearTest

Mack’s test for calendar-year effects (Mack 1994, appendix H; R

Usage

Source

reserving.CalendarYearTest()

ChainLadder’s cyEffTest), from calendar_year_effect or MackFit.calendar_year_effect.

At each age the link ratios are split at their median into small and large ones (one equal to the median is in neither); each calendar diagonal counts its small ones S_j and large ones L_j, and z, the sum of min(S_j, L_j), is compared with the normal interval expected ± q sqrt(variance), q the standard normal’s (1 + ci) / 2 quantile. A diagonal where small (or large) factors prevail lowers z.

Attributes

Name Description
ci The interval’s confidence level.
diagonals Every calendar diagonal with at least two link ratios, oldest
expected E[Z] under no calendar-year effect.
lower The interval’s lower end.
passes Whether z lies within the interval (ends included): no
upper The interval’s upper end.
variance Var[Z] under no calendar-year effect.
z Z, the sum of each diagonal’s min(S_j, L_j).

ci

The interval’s confidence level.

ci: float


diagonals

Every calendar diagonal with at least two link ratios, oldest

diagonals: list[dict]

first, as a list of dicts with valuation (the year and month of its later cells, as "1983-12"), small, large, z, n (small + large), m ((n - 1) // 2), expected and variance: R’s test_table.


expected

E[Z] under no calendar-year effect.

expected: float


lower

The interval’s lower end.

lower: float


passes

Whether z lies within the interval (ends included): no

passes: bool

calendar-year effect is detected. R prints the opposite as “Calendar Year Effect: TRUE”.


upper

The interval’s upper end.

upper: float


variance

Var[Z] under no calendar-year effect.

variance: float


z

Z, the sum of each diagonal’s min(S_j, L_j).

z: float

Methods

Name Description
to_frame() diagonals as a table, one row per diagonal. Needs pandas.

to_frame()

diagonals as a table, one row per diagonal. Needs pandas.

Usage

Source

to_frame()
Returns
pandas.DataFrame