## reinsurance.aggregate_layer_statistics()


The statistics of [share](reinsurance.Layer.md#prospicio.reinsurance.Layer.share) of [limit](pricing.Quote.md#prospicio.pricing.Quote.limit) xs [attachment](reinsurance.Layer.md#prospicio.reinsurance.Layer.attachment) on an annual


Usage


``` python
reinsurance.aggregate_layer_statistics(
    annual,
    share,
    limit,
    attachment,
)
```


total, an aggregate cover such as a stop loss, as [aggregate](aggregate.Clash.md#prospicio.aggregate.Clash.aggregate)'s `reins_stats_df` for its `agg` layers: the chances of reaching and exhausting the cover, the loss on line and the ceded loss's first three cumulants, exact for the grid.


## Parameters


`annual: Grid`  
The annual total the cover sees: a compound grid, or a tower's net.

`share: float`  

`limit: float`  
May be `inf`.

`attachment: float`  


## Returns


`AggregateLayerStatistics`  


## Examples

``` python
>>> from prospicio.reinsurance import aggregate_layer_statistics
>>> from prospicio.distributions import Grid
>>> s = aggregate_layer_statistics(Grid(1.0, [0.2, 0.3, 0.3, 0.2]), 1.0, 1.0, 1.0)
>>> round(s.pr_attach, 12), round(s.aggregate.mean, 12)
```

(0.5, 0.5)
