## reserving.MunichChainLadder


The Munich chain ladder (Quarg and Mack 2004): paid and incurred


Usage

``` python
reserving.MunichChainLadder()
```


developed together, each factor corrected by how far the origin's paid-to-incurred ratio sits from its average at that age, as R ChainLadder's [MunichChainLadder](reserving.MunichChainLadder.md#prospicio.reserving.MunichChainLadder) and chainladder-python's `MunichAdjustment` (`docs/design/reserving-v02.md`, decision 33).

Each column has Mack's volume-weighted model; the slopes [lambda_paid](reserving.MunichFit.md#prospicio.reserving.MunichFit.lambda_paid) and [lambda_incurred](reserving.MunichFit.md#prospicio.reserving.MunichFit.lambda_incurred) of its link-ratio residuals on the ratio residuals set the correction. With both 0 the projections are the two separate chain ladders.


## Parameters


`sigma_interpolation_paid: str = ``"log-linear"`  
How the paid column's unestimable sigma is filled in (R's `est.sigmaP`): `"log-linear"` or `"mack"`. R's default call falls back to `"mack"` with a warning when its log-linear model is poor (as on its `MCLpaid`); prospicio does not, so give `"mack"` to match it there.

`sigma_interpolation_incurred: str = ``"log-linear"`  
The same for incurred (R's `est.sigmaI`).

`tail_paid: float or tail estimator`  
The paid tail (R's `tailP`), as [Mack](reserving.Mack.md#prospicio.reserving.Mack)'s [tail](reserving.Mack.md#prospicio.reserving.Mack.tail); none by default.

`tail_incurred: float or tail estimator`  
The incurred tail (R's `tailI`).


## Examples

``` python
>>> from prospicio.reserving import MunichChainLadder, Triangle
>>> tri = Triangle.from_long(
...     [2020] * 4 + [2021] * 3 + [2022] * 2 + [2023],
...     [12, 24, 36, 48, 12, 24, 36, 12, 24, 12],
...     {
...         "paid": [100.0, 150.0, 165.0, 170.0, 110.0, 170.0, 180.0, 120.0, 175.0, 130.0],
...         "incurred": [160.0, 175.0, 172.0, 171.0, 150.0, 190.0, 185.0, 200.0, 185.0, 210.0],
...     },
... )
>>> fit = MunichChainLadder().fit(tri, "paid", "incurred")
>>> fit.ultimate_paid[0]
```

170.0


## Attributes

| Name | Description |
|----|----|
| [sigma_interpolation_incurred](#sigma_interpolation_incurred) | How the incurred column's unestimable sigma is filled in. |
| [sigma_interpolation_paid](#sigma_interpolation_paid) | How the paid column's unestimable sigma is filled in. |
| [tail_incurred](#tail_incurred) | The incurred tail. |
| [tail_paid](#tail_paid) | The paid tail: a constant factor as a number, otherwise its |

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


#### sigma_interpolation_incurred


How the incurred column's unestimable sigma is filled in.


`sigma_interpolation_incurred: str`


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


#### sigma_interpolation_paid


How the paid column's unestimable sigma is filled in.


`sigma_interpolation_paid: str`


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


#### tail_incurred


The incurred tail.


`tail_incurred: Any`


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


#### tail_paid


The paid tail: a constant factor as a number, otherwise its


`tail_paid: Any`


estimator.


## Methods

| Name | Description |
|----|----|
| [fit()](#fit) | Fits the paid and incurred columns of a triangle, in every segment |

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


#### fit()


Fits the paid and incurred columns of a triangle, in every segment


Usage

``` python
fit(triangle, paid, incurred)
```


on its own.


##### Parameters


`triangle: Triangle`  
Holds both columns, observed at the same cells.

`paid: str`  
The paid column.

`incurred: str`  
The incurred column.


##### Returns


`MunichFit`  


##### Raises


`ValueError`  
If the two columns are not observed at the same cells (a missing incurred cell, say), a cell is not positive, or either column fails as in [Mack.fit](reserving.Mack.md#prospicio.reserving.Mack.fit).
