## aggregate.occurrence_exceedance()


The chance that the year's largest occurrence exceeds [x](distributions.Ogive.md#prospicio.distributions.Ogive.x),


Usage


``` python
aggregate.occurrence_exceedance(
    frequency, severity, x, tower=None, view="ceded"
)
```


`1 - G_N(F(x))` with `G_N` the count's generating function: the occurrence exceedance (OEP) curve.


## Parameters


`frequency: a claim count`  

`severity: a severity`  

`x: float`  
A loss of the view.

`tower: Tower = None`  
An occurrence program; with it the curve is of [view](reserving.Triangle.md#prospicio.reserving.Triangle.view).

`view: str = ``"ceded"`  
`"gross"`, `"ceded"` (the tower's total ceded loss of an occurrence, before annual terms) or `"net"`.


## Returns


`float`  


## Examples

``` python
>>> import math
>>> from prospicio.aggregate import occurrence_exceedance
>>> from prospicio.distributions import Lognormal, Poisson
>>> sev = Lognormal.from_mean_cv(100.0, 2.0)
>>> oep = occurrence_exceedance(Poisson(2.0), sev, 500.0)
>>> abs(oep - (1 - math.exp(-2 * (1 - sev.cdf(500.0))))) < 1e-12
```

True
