## reserving.PaaGroup


A group of insurance contracts under IFRS 17's premium allocation


Usage

``` python
reserving.PaaGroup()
```


approach: the LRC from premiums less revenue on a pattern, and the LIC at its fulfilment cash flows.


## Parameters


`expected_premiums: float`  
The premium receipts expected over the coverage.

`acquisition: float`  
The acquisition cash flows expected.

`revenue_pattern: list of float`  
The weights of the revenue by period of coverage.

`expense_acquisition: bool = ``False`  
Expense acquisition cash flows when paid instead of amortising them.

`lic_curve: DiscountCurve`  
The curve that discounts the LIC; undiscounted by default.

`period_years: float = ``1.0`  


## Examples

``` python
>>> from prospicio.reserving import PaaGroup
>>> g = PaaGroup(1_000.0, 100.0, [1.0, 1.0])
>>> year = g.roll_forward(1_000.0, 100.0, 300.0, 200.0, 100.0, 10.0)
>>> year["insurance_revenue"], year["insurance_service_expenses"]
```

(500.0, 360.0)


## Attributes

| Name | Description |
|----|----|
| [balances](#balances) | The balances after the last period: the LRC excluding and including |

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


#### balances


The balances after the last period: the LRC excluding and including


`balances: dict`


the loss component, the LIC's present value and RA, the liability.


## Methods

| Name | Description |
|----|----|
| [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 `risk_rs.ifrs17_paa_group`). |

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


#### 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(
    premiums_received,
    acquisition_paid,
    claims_incurred,
    claims_paid,
    lic_present_value,
    lic_risk_adjustment,
    expected_premiums=None,
    remaining_fulfilment=None
)
```


##### Parameters


`premiums_received: float`  

`acquisition_paid: float`  

`claims_incurred: float`  

`claims_paid: float`  

`lic_present_value: float`  
The LIC at the period end.

`lic_risk_adjustment: float`  
The LIC at the period end.

`expected_premiums: float = None`  
The premium receipts expected over the whole coverage, revised.

`remaining_fulfilment: float = None`  
The GMM fulfilment cash flows of the remaining coverage, for the onerous test.


##### Returns


`dict`  
The profit or loss lines, `by_coverage` and `closing`.


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


#### to_json()


The state as a JSON document (format `risk_rs.ifrs17_paa_group`).


Usage

``` python
to_json()
```
