pricing.TowerModel
A frequency and a piecewise Pareto severity that reproduce a tower,
Usage
pricing.TowerModel()a PML curve or a set of references.
Attributes
| Name | Description |
|---|---|
| frequency | Expected number of losses a year above the lowest threshold. |
| severity | The fitted severity. |
frequency
Expected number of losses a year above the lowest threshold.
frequency: float
severity
The fitted severity.
severity: PiecewisePareto
Methods
| Name | Description |
|---|---|
| diagnostics() | Checks on the matched severity’s shape. A match reproduces its |
| excess_frequency() | Expected number of losses a year above x. |
| layer_loss() | Expected loss a year to limit xs attachment. |
diagnostics()
Checks on the matched severity’s shape. A match reproduces its
Usage
diagnostics(min_alpha=1.0, max_ratio=2.0)references exactly, but between and beyond them a piece can be implausible: an alpha below min_alpha (below 1 on the last, untruncated piece the mean is infinite), or neighbouring alphas more than max_ratio apart.
Parameters
min_alpha: float = 1.0max_ratio: float = 2.0
Returns
dict-
min_alpha,max_alpha,max_ratio,infinite_meanandwarnings(a list of str, empty when the shape looks plausible).
excess_frequency()
Expected number of losses a year above x.
Usage
excess_frequency(x)Parameters
x: float
Returns
float
layer_loss()
Expected loss a year to limit xs attachment.
Usage
layer_loss(limit, attachment)Parameters
limit: floatattachment: float
Returns
float