Skip to main content

reserving.Mack

Mack’s distribution-free chain ladder: the chain-ladder projection plus

Usage

Source

reserving.Mack()

the standard error of each origin’s reserve and of the total, split into process and parameter risk (Mack 1993, 1999).

A tail other than 1 is one more development step, from the oldest age to ultimate, with its own sigma and standard error, as R ChainLadder’s MackChainLadder(tail = ...); unless given, both are extrapolated log-linearly. Every origin, the oldest included, carries the tail’s risk. A tail below 1 follows chainladder-python: it scales the ultimates and carries the risk read where a tail of 1.001 would be. R’s MackChainLadder ignores a tail below 1 altogether.

Parameters

average: (volume, simple, regression, geometric) = "volume"
sigma_interpolation: (log - linear, mack) = "log-linear"
n_periods: optional

As ChainLadder. Mack’s standard errors follow the link ratios that are kept (R’s MackChainLadder(weights = ...)).

drop_high: optional

As ChainLadder. Mack’s standard errors follow the link ratios that are kept (R’s MackChainLadder(weights = ...)).

drop_low: optional

As ChainLadder. Mack’s standard errors follow the link ratios that are kept (R’s MackChainLadder(weights = ...)).

tail: (float, TailConstant, TailCurve, TailBondy or TailLogLinear)

As ChainLadder; no tail by default.

tail_sigma: float

The tail’s sigma (R’s tail.sigma); extrapolated if not given. Unused when the tail factor is 1.

tail_std_err: float

The tail factor’s standard error (R’s tail.se); extrapolated if not given. Unused when the tail factor is 1.

ldf: optional

A selected development pattern, as in ChainLadder. A selected factor is taken as known: it has no parameter error, and a blended one (1 - w) times the estimate’s standard error, so the parameter risk is (1 - w) times Mack’s on those links (none for a fully selected pattern). The process risk keeps the triangle’s sigmas, around the factors used. A supplied pattern therefore lowers the reported standard errors, and a wrong benchmark is not reflected in them. claims_development_result() takes the pattern too. With no tail, a cumulative pattern to the oldest age implies a constant tail (ChainLadderFit.pattern_tail) with no parameter error (tail_std_err 0 unless given) and its sigma extrapolated, as a constant tail without tail_sigma.

ldf_kind: optional

A selected development pattern, as in ChainLadder. A selected factor is taken as known: it has no parameter error, and a blended one (1 - w) times the estimate’s standard error, so the parameter risk is (1 - w) times Mack’s on those links (none for a fully selected pattern). The process risk keeps the triangle’s sigmas, around the factors used. A supplied pattern therefore lowers the reported standard errors, and a wrong benchmark is not reflected in them. claims_development_result() takes the pattern too. With no tail, a cumulative pattern to the oldest age implies a constant tail (ChainLadderFit.pattern_tail) with no parameter error (tail_std_err 0 unless given) and its sigma extrapolated, as a constant tail without tail_sigma.

ldf_weight: optional

A selected development pattern, as in ChainLadder. A selected factor is taken as known: it has no parameter error, and a blended one (1 - w) times the estimate’s standard error, so the parameter risk is (1 - w) times Mack’s on those links (none for a fully selected pattern). The process risk keeps the triangle’s sigmas, around the factors used. A supplied pattern therefore lowers the reported standard errors, and a wrong benchmark is not reflected in them. claims_development_result() takes the pattern too. With no tail, a cumulative pattern to the oldest age implies a constant tail (ChainLadderFit.pattern_tail) with no parameter error (tail_std_err 0 unless given) and its sigma extrapolated, as a constant tail without tail_sigma.

ldf_origin: optional

A selected development pattern, as in ChainLadder. A selected factor is taken as known: it has no parameter error, and a blended one (1 - w) times the estimate’s standard error, so the parameter risk is (1 - w) times Mack’s on those links (none for a fully selected pattern). The process risk keeps the triangle’s sigmas, around the factors used. A supplied pattern therefore lowers the reported standard errors, and a wrong benchmark is not reflected in them. claims_development_result() takes the pattern too. With no tail, a cumulative pattern to the oldest age implies a constant tail (ChainLadderFit.pattern_tail) with no parameter error (tail_std_err 0 unless given) and its sigma extrapolated, as a constant tail without tail_sigma.

ldf_underwriting: optional
A selected development pattern, as in ChainLadder. A selected factor is taken as known: it has no parameter error, and a blended one (1 - w) times the estimate’s standard error, so the parameter risk is (1 - w) times Mack’s on those links (none for a fully selected pattern). The process risk keeps the triangle’s sigmas, around the factors used. A supplied pattern therefore lowers the reported standard errors, and a wrong benchmark is not reflected in them. claims_development_result() takes the pattern too. With no tail, a cumulative pattern to the oldest age implies a constant tail (ChainLadderFit.pattern_tail) with no parameter error (tail_std_err 0 unless given) and its sigma extrapolated, as a constant tail without tail_sigma.

Examples

>>> from prospicio.reserving import Mack, Triangle
>>> tri = Triangle.from_long(
...     [2020] * 4 + [2021] * 3 + [2022] * 2 + [2023],
...     [12, 24, 36, 48, 12, 24, 36, 12, 24, 12],
...     [100.0, 150.0, 165.0, 170.0, 110.0, 170.0, 180.0, 120.0, 175.0, 130.0],
... )
>>> fit = Mack().fit(tri, "values")
>>> fit.total_standard_error > 0 and fit.standard_error[0] == 0

True

Attributes

Name Description
average How link ratios are averaged.
drop_high Highest link ratios left out at each age.
drop_low Lowest link ratios left out at each age.
ldf The selected pattern by age, as given; None without one.
ldf_kind How ldf is expressed: "ldf", "cdf" or
ldf_origin The origin grain ldf was measured on, averaged over the fitted
ldf_underwriting The underwriting basis ldf is converted to at fit time
ldf_weight The weight on the selected factors: a number, a dict by age, or
n_periods Number of latest diagonals averaged; None uses every link ratio.
sigma_interpolation How unestimable variance parameters are filled in.
tail The tail: a constant factor as a number, otherwise its estimator.
tail_sigma The given tail sigma, or None to extrapolate it.
tail_std_err The given standard error of the tail factor, or None to

average

How link ratios are averaged.

average: str


drop_high

Highest link ratios left out at each age.

drop_high: int


drop_low

Lowest link ratios left out at each age.

drop_low: int


ldf

The selected pattern by age, as given; None without one.

ldf: dict | None


ldf_kind

How ldf is expressed: "ldf", "cdf" or

ldf_kind: str | None

"percent_developed"; None without a pattern.


ldf_origin

The origin grain ldf was measured on, averaged over the fitted

ldf_origin: str | None

origins’ periods at fit time; None reads it at the origin’s age.


ldf_underwriting

The underwriting basis ldf is converted to at fit time

ldf_underwriting: UnderwritingBasis | None

(UnderwritingBasis), or None.


ldf_weight

The weight on the selected factors: a number, a dict by age, or

ldf_weight: Any | None

None without a pattern.


n_periods

Number of latest diagonals averaged; None uses every link ratio.

n_periods: int | None


sigma_interpolation

How unestimable variance parameters are filled in.

sigma_interpolation: str


tail

The tail: a constant factor as a number, otherwise its estimator.

tail: Any


tail_sigma

The given tail sigma, or None to extrapolate it.

tail_sigma: float | None


tail_std_err

The given standard error of the tail factor, or None to

tail_std_err: float | None

extrapolate it.

Methods

Name Description
fit() Fits one measure column in every segment of a triangle, each on its

fit()

Fits one measure column in every segment of a triangle, each on its

Usage

Source

fit(triangle, column)

own.

Parameters
triangle: Triangle
column: str
Returns
MackFit
Raises
ValueError
As ChainLadder.fit, and if the triangle has fewer than three ages, a variance parameter can be neither estimated nor interpolated, or the tail’s sigma or standard error can neither be extrapolated nor is given.