## reserving.Disposal


The disposal rate method (Friedland, chapter 11): incremental closed


Usage

``` python
reserving.Disposal()
```


counts from selected disposal rates, each priced at a selected incremental severity brought to the origin's cost level.


## Parameters


`closed_counts: str`  
The cumulative closed count column.

`paid: str`  
The cumulative paid claims column.

`ultimate_counts`  
Numbers, one per origin; a column for the chain ladder on it; a pair `(column, ChainLadder)`; or a list of these for their mean.

`disposal_rates: optional`  
How the rate at each age is selected: `None` or `"all"` for the simple average of every origin, an integer for the latest n, `"latest_diagonal"`, a dict of values by age, or a dict of [n_periods](reserving.Mack.md#prospicio.reserving.Mack.n_periods), [drop_high](reserving.Mack.md#prospicio.reserving.Mack.drop_high) and [drop_low](reserving.Mack.md#prospicio.reserving.Mack.drop_low).

`severities: optional`  
How the incremental severity at each age is selected, as [disposal_rates](reserving.DisposalFit.md#prospicio.reserving.DisposalFit.disposal_rates), on severities at the base origin's level.

`tail_severity_from: int`  
The age from which the severities are pooled into one value, total trended paid over total counts, used to ultimate. By default the last selection carries on.

`trend: float = ``0.0`  
The annual severity trend.

`base: int or str`  
The origin of the common cost level; by default the latest origin.

`factors: sequence of float`  
One factor per origin that brings its severities to the base level besides the trend (tort reform factors).


## Examples

``` python
>>> from prospicio.reserving import Disposal, Triangle
>>> tri = Triangle.from_long([2020, 2020, 2021], [12, 24, 12],
...     {"closed": [5.0, 10.0, 6.0], "paid": [50.0, 100.0, 60.0]})
>>> fit = Disposal("closed", "paid", [10.0, 12.0]).fit(tri)
>>> round(fit.ultimate[1], 6)
```

120.0


## Methods

| Name | Description |
|----|----|
| [fit()](#fit) | Fit to a single-segment triangle holding the columns. |

------------------------------------------------------------------------


#### fit()


Fit to a single-segment triangle holding the columns.


Usage

``` python
fit(triangle)
```


##### Parameters


`triangle: Triangle`  


##### Returns


`DisposalFit`
