## reinsurance.Reinsurer


A reinsurer on a [Panel](reinsurance.Panel.md#prospicio.reinsurance.Panel): its one-year probability of default,


Usage

``` python
reinsurance.Reinsurer()
```


the recovery rate on what it owes when it defaults, the collateral held against it and its loading on the systematic factor (`docs/design/reinsurer-default.md`).


## Parameters


`name: str`  
Unique on a panel.

`probability: float`  
One-year probability of default, in `[0, 1]`.

`recovery: float`  
Share of the uncollateralised exposure recovered on default, in `[0, 1]`.

`collateral: float = ``0.0`  
Collateral held against this reinsurer (a trust fund or letter of credit), netted once across all its layers: finite and non-negative.

`correlation: float = ``0.0`  
The loading [rho](aggregate.Ruin.md#prospicio.aggregate.Ruin.rho) on the systematic factor, in `[0, 1)`: 0 is independent default, and a larger [rho](aggregate.Ruin.md#prospicio.aggregate.Ruin.rho) moves the defaults into the years with the largest driver without changing how often the reinsurer defaults.


## Raises


`ValueError`  
If a field is out of range.


## Examples

``` python
>>> from prospicio.reinsurance import Reinsurer
>>> r = Reinsurer("Re A", 0.002, 0.4, collateral=1e6, correlation=0.3)
>>> r.probability, r.collateral
```

(0.002, 1000000.0)


## Attributes

| Name | Description |
|----|----|
| [collateral](#collateral) | Collateral held against this reinsurer, across all its layers. |
| [correlation](#correlation) | Loading on the systematic factor; 0 is independent default. |
| [name](#name) | The reinsurer's name. |
| [probability](#probability) | One-year probability of default. |
| [recovery](#recovery) | Share of the uncollateralised exposure recovered on default. |

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


#### collateral


Collateral held against this reinsurer, across all its layers.


`collateral: float`


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


#### correlation


Loading on the systematic factor; 0 is independent default.


`correlation: float`


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


#### name


The reinsurer's name.


`name: str`


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


#### probability


One-year probability of default.


`probability: float`


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


#### recovery


Share of the uncollateralised exposure recovered on default.


`recovery: float`
