Skip to main content

pricing.DevelopmentPattern

Development factors to ultimate by age.

Usage

Source

pricing.DevelopmentPattern()

at(age) interpolates linearly in age between the given ages, takes the first factor at younger ages and the last at older ones. Use one to develop each known large loss to ultimate (IBNER) in LargeLossExperience.prepare, or as a count pattern for the claims not yet reported in PreparedLosses.burning_cost.

Parameters

ages: list of float

Strictly increasing ages, in years since the accident date.

factors: list of float
The factor to ultimate at each age.

Examples

>>> from prospicio.pricing import DevelopmentPattern
>>> p = DevelopmentPattern.from_history(
...     ["a", "a", "b", "b"], [1.0, 2.0, 1.0, 2.0], [100.0, 150.0, 50.0, 50.0], ages=[1.0, 2.0]
... )
>>> [round(f, 4) for f in p.factors]

[1.3333, 1.0]

>>> round(p.at(1.5), 4)

1.1667

Attributes

Name Description
age_to_age The age-to-age factors.
ages The ages.
factors The factors to ultimate at each age.

age_to_age

The age-to-age factors.

age_to_age: list[float]


ages

The ages.

ages: list[float]


factors

The factors to ultimate at each age.

factors: list[float]

Methods

Name Description
at() The factor to ultimate at age.
from_history() Estimated from each claim’s valuations.

at()

The factor to ultimate at age.

Usage

Source

at(age)
Parameters
age: float
Returns
float

from_history()

Estimated from each claim’s valuations.

Usage

Source

from_history(ids, age, amount, *, ages)

The age-to-age factor from ages[k] to ages[k + 1] is the sum of the amounts at the later age over the sum at the earlier, over the claims valued at both with a positive earlier amount (a claim first seen later is IBNR, not IBNER). The factor at the last age is 1. With every claim valued at every age up to its latest, this is the volume-weighted chain ladder on the summed triangle.

Parameters
ids: list of str

The claim of each valuation.

age: list of float

The claim’s age at each valuation, in years; valuations at an age not in ages are ignored.

amount: list of float

The claim’s amount at each valuation.

ages: list of float
The ages of the pattern.
Returns
DevelopmentPattern