MunichAdjustment#
- class chainladder.MunichAdjustment(paid_to_incurred=None, fillna=False)[source]#
- Applies the Munich Chainladder adjustment to a set of paid/incurred
ldfs. The Munich method heavily relies on the ratio of paid/incurred and its inverse.
- Parameters:
- paid_to_incurred: tuple or list of tuples
A tuple representing the paid and incurred
columnsof the triangles such as('paid', 'incurred')- fillna: boolean
The MunichAdjustment will fail when P/I or I/P ratios cannot be calculated. Setting fillna to True will fill the triangle with expected amounts using the simple chainladder.
- Attributes:
- basic_cdf_: Triangle
The univariate cumulative development patterns
- basic_sigma_: Triangle
Sigma of the univariate ldf regression
- resids_: Triangle
Residuals of the univariate ldf regression
- q_: Triangle
chainladder age-to-age factors of the paid/incurred triangle and its inverse. For paid measures it is (P/I) and for incurred measures it is (I/P).
- q_resids_: Triangle
Residuals of q regression.
- rho_: Triangle
Estimated conditional deviation around
q_- lambda_: Series or DataFrame
Dependency coefficient between univariate chainladder link ratios and
q_resids_- ldf_: Triangle
The estimated bivariate loss development patterns
- cdf_: Triangle
The estimated bivariate cumulative development patterns
Examples
fillna=Trueimputes missing paid/incurred amounts with simple chainladder expectations so the bivariate regression can still run.mcl = cl.load_sample("mcl").copy() arr = np.asarray(mcl.values, dtype=float, copy=True) arr[0, 1, 0, 2] = np.nan mcl.values = arr dev = cl.Development().fit_transform(mcl) try: cl.MunichAdjustment(("paid", "incurred"), fillna=False).fit(dev) print("no_error") except ValueError: print("ValueError") filled = cl.MunichAdjustment(("paid", "incurred"), fillna=True).fit(dev) print(round(float(filled.ldf_.values[0, 0, 0, 0]), 6))
ValueError 2.151329
Inherited Methods
|
Fit to data, then transform it. |
|
Get metadata routing of this object. |
|
Get parameters for this estimator. |
|
Apply |
|
Converts triangle array_backend. |
|
Set output container. |
|
Set the parameters of this estimator. |
|
Serializes triangle object to json format |
|
Serializes triangle object to pickle. |