Statistics & probability

Generalized Pareto tail fit calculator from threshold exceedances

Fit the size of positive exceedances above a threshold that you choose in advance.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Fit the size of positive exceedances above a threshold that you choose in advance. The generalized Pareto model estimates tail scale and shape, checks its support and gives a conditional tail level. It distinguishes a positive heavy tail, the exponential limit and a negative-shape finite endpoint. The result remains a local numerical tail fit, with no automatic threshold selection or unconditional return-period claim.

THE FORMULAFor y>0 and 1+ξy/σ>0: log f(y)=−log σ−(1+1/ξ)log(1+ξy/σ); ξ=0 gives −log σ−y/σ. P(Y>y|X>u)=(1+ξy/σ)^(−1/ξ); level u+σ(p^(−ξ)−1)/ξ, with limit u−σlog p.

A worked example

Thirty rounded quantile-spaced positive excesses generated from a shape .2, scale 2 distribution give a sample fit ξ≈.14575 and σ≈2.08067. Above the supplied threshold u=10, a conditional tail probability .01 gives a fitted level near 23.656. This is the 99th percentile of the model for observations already exceeding ten, rather than a 100-year event.

Good to know

20–300 strictly positive excesses above a supplied finite threshold. Fixed location zero for excesses; numerical fit restricted to regular interior shape −.49<ξ<2 and scale relative to mean excess within exp(−8)–exp(8). Boundary, support-invalid, unresolved or nonpositive-curvature fits rejected. Conditional tail probability in (0,1). No raw-data threshold selection, declustering, exceedance-rate inference, uncertainty intervals or unrestricted negative-shape MLE.

Start with a threshold and positive excesses

If the fixed threshold is ten and an observed value is thirteen, enter the excess three. Values at or below ten do not belong in this conditional sample. Keep the threshold itself in the separate field so fitted excess levels can be expressed in the original measurement unit.

Choosing a threshold is part of the analysis, rather than a numerical convenience. Too low a threshold may include observations outside a credible tail regime; too high a threshold leaves few observations. The calculator fits the supplied tail sample and does not establish that this choice is adequate.

Generalized Pareto tail fit calculator from threshold exceedances worked exampleA conditional tail level above a fixed thresholdConditional survival (log scale)Excess above threshold 1010.10.01Excess ≈13.656; original level ≈23.656
Scroll across to see the full diagram.
Thirty rounded quantile-spaced positive excesses generated from a shape .2, scale 2 distribution give a sample fit ξ≈.14575 and σ≈2.08067. Above the supplied threshold u=10, a conditional tail probability .01 gives a fitted level near 23.656. This is the 99th percentile of the model for observations already exceeding ten, rather than a 100-year event.

Compare this with the Pareto distribution tail probability calculator. A fixed ordinary Pareto tail probability is neither a generalized tail model nor a fit.

What the shape parameter changes

A positive shape produces a heavy upper tail with no finite endpoint. Shape zero is the exponential limit. A negative shape places the endpoint at u−σ/ξ, so every entered excess must remain below the implied endpoint.

The endpoint changes with the fitted parameters, making support checks essential inside the optimizer. A candidate that excludes a supplied observation is invalid even if its other likelihood contributions look favorable. A finite endpoint estimate is conditional on the model and does not certify a physical maximum.

The exponential limit is a numerical test

Both the density and tail level formulas appear to divide by ξ. Their limits as ξ approaches zero are well defined: the excess density is exponential with scale σ and a tail probability p corresponds to excess −σ log p.

The implementation uses log1p and expm1 around this limit to reduce cancellation. Testing very small positive and negative shapes against the exponential expression checks a difficult numerical region without changing the statistical model.

Reading the default conditional tail level

The deterministic sample spans thirty quantiles from a known illustrative tail distribution, but fitting that finite sample does not recover its generating parameters exactly. The fitted shape near .14575 and scale near 2.08067 are the estimates to use in the displayed worked calculation.

For p=.01 and u=10, substitute those estimates into u+σ(p^(−ξ)−1)/ξ to obtain about 23.656. One percent refers to the modeled observations already above the threshold. It does not refer to one percent of all original observations unless every original observation exceeded it.

Why a conditional quantile is not a return period

A yearly return level requires a model for how often threshold exceedances occur, as well as their sizes. If exceedance probability per observation is q, the unconditional probability above a modeled higher level is q times its conditional exceedance probability.

Converting that probability into a time interval additionally needs the observation frequency and a defensible treatment of dependence. Clusters of neighboring extremes do not supply the same independent information as isolated extremes. This page has no frequency or declustering inputs and therefore reports conditional tail levels only.

The deliberately restricted fitting region

This bounded implementation searches regular interior shapes above −.49 and below two. Negative-shape generalized Pareto likelihoods can become irregular near parameter-dependent endpoints, so an unrestricted search is not an automatic improvement.

A best candidate at either shape limit is rejected rather than labeled a reliable estimate. Positive numerical curvature and agreement of finite starts are local diagnostics. Neither provides a global maximum certificate, a confidence interval or a guarantee that the tail extrapolation is accurate.

Sensitivity to threshold and individual extremes

A useful follow-up is to refit separately constructed samples from several scientifically defensible thresholds and compare conditional quantities on a common original scale. Observe how much the estimates change when the largest excess is omitted as a sensitivity exercise.

Such exercises reveal instability but should not be used to delete inconvenient observations. A large change indicates that the fitted tail is supported by little information. Extrapolating far beyond the largest entered excess magnifies parameter uncertainty that this calculator does not quantify.

A few questions, answered

Should I enter raw observations?

No. Enter each positive excess above the chosen threshold; supply the threshold separately.

Does .01 mean a 100-year event?

No. It means one-percent conditional exceedance probability among observations already above the threshold.

Why reject a negative shape below −.49?

This implementation promises a regular-region finite local fit. More extreme negative shapes require specialized endpoint and likelihood treatment.

Does a finite endpoint prove nothing larger can occur?

No. It is an implication of the fitted model, not a physical bound established by these data.

Find your calculator

Start typing to explore the library.