Continuous distribution · also called GPD
Generalized Pareto distribution
The excess of a value over a high threshold, given that it is over: claims above an insurer's retention, flood levels above a warning mark, losses beyond a bank's value-at-risk. The Pickands–Balkema–de Haan theorem says that for a high enough threshold these excesses are close to generalized Pareto for almost any distribution, which makes it the basis of the peaks-over-threshold method. gives a Pareto-like power tail, the exponential, and a finite upper end.
Generalized Pareto probability calculator
P(X ≤ 0.72) = 0.501056
At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.
CDF
mean 1.111 · variance 1.543 · sd 1.242 · mode 0 · entropy 1.1 nats
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode | |
| Entropy |
With it is uniform on ; with and it is the Pareto with and . SciPy's genpareto uses c (the same sign as here, unlike genextreme). The quantile is .
Worked example
Daily rainfall above a 50 mm threshold exceeds it by an amount that is generalized Pareto with mm and . Given a day over 50 mm, what is the probability it is over 70 mm?
The excess must be over 20: An exponential tail with the same scale would give . answer checked by code
How it relates to others
- Special case→ Exponential: Generalized Pareto() is Exponential(). checked by code
- Special case→ Pareto: For , Generalized Pareto() is Pareto(, ). checked by code
- Special case→ Uniform: Generalized Pareto() is Uniform(). checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.genpareto(c=0.1, loc=0, scale=1)
X.pdf(1.5) # f(1.5) = 0.2149
X.cdf(1.5) # P(X ≤ 1.5) = 0.7528
X.mean(), X.var() # 1.111, 1.543
X.ppf(0.95) # 95th percentile
X.rvs(size=10, random_state=0)
rng = np.random.default_rng(0)
0 + 1 * ((1 - rng.uniform(size=10)) ** -0.1 - 1) / 0.1SciPy's c is ξ. NumPy has no generalized Pareto sampler; this inverts the CDF.
Choosing between this and its neighbours? Which distribution for extremes and heavy tails?