## pricing.ParetoAnchor


The Pareto above a threshold fitted to trended losses, with claims


Usage

``` python
pricing.ParetoAnchor()
```


closed at their policy limit censored: `alpha = uncensored count / sum ln(y / t)`, its standard error `alpha / sqrt(n)`, and the number of exceedances it rests on.


## Examples

``` python
>>> from prospicio.pricing import ParetoAnchor
>>> a = ParetoAnchor.fit(1e6, [1.5e6, 2.5e6, 4e6, 2e6], censored=[False, False, False, True])
>>> (a.exceedances, a.censored)
```

(4, 1)


## Attributes

| Name | Description |
|----|----|
| [alpha](#alpha) | The censored maximum likelihood alpha. |
| [censored](#censored) | Of which censored at a policy limit. |
| [exceedances](#exceedances) | Losses at or above the threshold. |
| [standard_error](#standard_error) | Its standard error from the observed information, `alpha / sqrt(n)`. |
| [threshold](#threshold) | The Pareto's threshold. |

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


#### alpha


The censored maximum likelihood alpha.


`alpha: float`


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


#### censored


Of which censored at a policy limit.


`censored: int`


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


#### exceedances


Losses at or above the threshold.


`exceedances: int`


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


#### standard_error


Its standard error from the observed information, `alpha / sqrt(n)`.


`standard_error: float`


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


#### threshold


The Pareto's threshold.


`threshold: float`


## Methods

| Name | Description |
|----|----|
| [fit()](#fit) | Fits the Pareto from [threshold](risk.PotTail.md#prospicio.risk.PotTail.threshold) to the [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses) at or above it. |
| [interval()](#interval) | The alpha `± z` standard errors, the lower end kept above 0. |

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


#### fit()


Fits the Pareto from [threshold](risk.PotTail.md#prospicio.risk.PotTail.threshold) to the [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses) at or above it.


Usage

``` python
fit(threshold, losses, censored=None)
```


##### Parameters


`threshold: float`  

`losses: list of float`  

`censored: list of bool = None`  
Where a loss was closed at its policy limit; none by default.


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


#### interval()


The alpha `± z` standard errors, the lower end kept above 0.


Usage

``` python
interval(z)
```
