## reserving.ReinsuranceHeld


A group of reinsurance contracts held under IFRS 17, measured as an


Usage

``` python
reserving.ReinsuranceHeld()
```


asset: the CSM a net cost or a net gain, the loss-recovery component on onerous underlying groups, and the reinsurer's non-performance.


## Parameters


`expected: dict`  
The expected ceded cash flows by future period: lists under [premiums](credibility.BuhlmannStraubFit.md#prospicio.credibility.BuhlmannStraubFit.premiums) (paid to the reinsurer) and `recoveries`, and optionally `premium_timing` and `recovery_timing`.

`risk_adjustment: float`  
The RA for the risk transferred.

`curve: DiscountCurve`  
The locked-in curve.

`underlying: list of (Ifrs17Group, float)`  
The underlying groups and the share of their claims recovered; a group not yet rolled forward that is onerous gives income at recognition.

`coverage_units: list of float`  

`period_years: float = ``1.0`  

`retroactive: bool = ``False`  
Expense a net cost at recognition (paragraph 65A).

`default_probability: float`  
The reinsurer's annual probability of default and the share of a recovery lost on default; no allowance by default.

`loss_given_default: float`  
The reinsurer's annual probability of default and the share of a recovery lost on default; no allowance by default.


## Examples

``` python
>>> from prospicio.reserving import DiscountCurve, ReinsuranceHeld
>>> held = ReinsuranceHeld({"premiums": [300.0, 0.0, 0.0], "recoveries": [90.0] * 3}, 15.0,
...                        DiscountCurve.flat(0.0))
>>> held.balances["csm"]
```

15.0

``` python
>>> year = held.roll_forward(held.as_expected(), {"recoveries": [90.0] * 2}, 10.0)
>>> year["allocation"], year["net_expense"]
```

(100.0, 10.0)


## Attributes

| Name | Description |
|----|----|
| [balances](#balances) | The balances after the last period: `present_value`, |
| [period](#period) | The periods rolled forward. |

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


#### balances


The balances after the last period: `present_value`,


`balances: dict`


`present_value_locked_in`, `non_performance`, [risk_adjustment](reserving.DiscountedReserves.md#prospicio.reserving.DiscountedReserves.risk_adjustment), `csm`, `loss_recovery` and `asset`.


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


#### period


The periods rolled forward.


`period: int`


## Methods

| Name | Description |
|----|----|
| [as_expected()](#as_expected) | The next period's ceded cash flows as expected, a dict for |
| [from_json()](#from_json) | The group a [to_json()](models.Terms.md#prospicio.models.Terms.to_json) document describes. |
| [roll_forward()](#roll_forward) | Roll the group forward over one period. |
| [to_json()](#to_json) | The state as a JSON document (format |

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


#### as_expected()


The next period's ceded cash flows as expected, a dict for


Usage

``` python
as_expected()
```


[roll_forward()](reserving.PaaGroup.md#prospicio.reserving.PaaGroup.roll_forward)'s `actual`.


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


#### from_json()


The group a [to_json()](models.Terms.md#prospicio.models.Terms.to_json) document describes.


Usage

``` python
from_json(text)
```


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


#### roll_forward()


Roll the group forward over one period.


Usage

``` python
roll_forward(
    actual,
    expected,
    risk_adjustment,
    underlying=None,
    risk_adjustment_released=None,
    future_coverage_units=None,
    current_curve=None,
    default_probability=None,
    loss_given_default=None
)
```


##### Parameters


`actual: dict`  
[premiums](credibility.BuhlmannStraubFit.md#prospicio.credibility.BuhlmannStraubFit.premiums), `premiums_for_future_service` and `recoveries` of the period (absent ones nil).

`expected: dict`  
The expected ceded cash flows as at the period end.

`risk_adjustment: float`  
The RA at the period end.

`underlying: list of Ifrs17Group = None`  
The underlying groups given at recognition, in their order, each already rolled forward over this period.

`risk_adjustment_released: float = None`  

`future_coverage_units: list of float = None`  

`current_curve: DiscountCurve = None`  

`default_probability: float = None`  
The reinsurer's risk of non-performance revised at the period end.

`loss_given_default: float = None`  
The reinsurer's risk of non-performance revised at the period end.


##### Returns


`dict`  
The allocation of premiums paid and its parts, the amounts recovered and their parts, `net_expense`, `finance_income`, [profit](pricing.Provisions.md#prospicio.pricing.Provisions.profit), the `loss_recovery` movement, `by_component` and `closing`.


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


#### to_json()


The state as a JSON document (format


Usage

``` python
to_json()
```


`risk_rs.ifrs17_reinsurance_held`).
