IncrementalAdditive#

class chainladder.IncrementalAdditive(trend=0.0, n_periods=-1, average='volume', future_trend=0, drop=None, drop_high=None, drop_low=None, drop_above=inf, drop_below=-inf, drop_valuation=None, preserve=1)[source]#

The Incremental Additive Method.

Parameters:
trend: float (default=0.0)

A multiplicative trend amount used to trend each incremental development period the valuation_date of the Triangle.

future_trend: float (default=None)

The trend to apply to the incremental development periods in the lower half of the completed Triangle. If None, then will be set to the value of the trend parameter.

n_periods: integer, optional (default=-1)

number of origin periods to be used in the ldf average calculation. For all origin periods, set n_periods=-1

average: str optional (default=’volume’)

type of averaging to use for average incremental factor calculation. Options include ‘regression’, ‘volume’ and ‘simple’.

drop: tuple or list of tuples

Drops specific origin/development combination(s)

drop_high: bool or list of bool (default=None)

Drops highest link ratio(s) from LDF calculation

drop_low: bool or list of bool (default=None)

Drops lowest link ratio(s) from LDF calculation

drop_above: float or list of floats (default = numpy.inf)

Drops all link ratio(s) above the given parameter from incremental factor calculation

drop_below: float or list of floats (default = -numpy.inf)

Drops all link ratio(s) below the given parameter from incremental factor calculation

preserve: int (default = 1)

The minimum number of incremental factor(s) required for incremental factor calculation

drop_valuation: str or list of str (default=None)

Drops specific valuation periods. str must be date convertible.

Attributes:
ldf_: Triangle

The estimated loss development patterns

cdf_: Triangle

The estimated cumulative development patterns

tri_zeta: Triangle

The raw incrementals as a percent of exposure trended to the valuation date of the Triangle.

fit_zeta: Triangle

The raw incrementals as a percent of exposure trended to the valuation date of the Triangle. Only those used in the fitting.

zeta_: Triangle

The fitted incrementals as a percent of exposure trended to the valuation date of the Triangle.

cum_zeta_: Triangle

The fitted cumulative percent of exposure trended to the valuation date of the Triangle

w_: ndarray

The weight used in the zeta fitting

w_tri_: Triangle

Triangle of w_

sample_weight: Triangle

The exposure used to obtain incremental factor

incremental_: Triangle

A triangle of full incremental values.

fit(X, y=None, sample_weight=None)[source]#

Fit the model with X.

Parameters:
XTriangle-like

Triangle to which the incremental method is applied. Triangle must be cumulative.

yNone

Ignored

sample_weight

Exposure used in the method.

Returns:
selfobject

Returns the instance itself.

transform(X)[source]#

If X and self are of different shapes, align self to X, else return self.

Parameters:
XTriangle

The triangle to be transformed

Returns:
X_newNew triangle with transformed attributes.

Inherited Methods

IncrementalAdditive.fit_transform

Fit to data, then transform it.

IncrementalAdditive.get_metadata_routing

Get metadata routing of this object.

IncrementalAdditive.get_params

Get parameters for this estimator.

IncrementalAdditive.pipe

IncrementalAdditive.set_backend

Converts triangle array_backend.

IncrementalAdditive.set_output

Set output container.

IncrementalAdditive.set_params

Set the parameters of this estimator.

IncrementalAdditive.to_json

Serializes triangle object to json format

IncrementalAdditive.to_pickle

Serializes triangle object to pickle.