Statistics & probability

Generalized extreme value fit calculator from block maxima

Fit a stationary generalized extreme-value distribution to comparable independent block maxima and estimate a selected block return level.

Your numbers

25–300 independent maxima, one per comparable block.
Between 1.001 and 10000; block duration determines the time unit.

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 a stationary generalized extreme-value distribution to comparable independent block maxima and estimate a selected block return level. Enforce support and a regular finite interior shape range.

THE FORMULAG(x)=exp{−[1+ξ(x−μ)/σ]^(−1/ξ)}; zT=μ+σ{[−log(1−1/T)]^(−ξ)−1}/ξ. At ξ=0 use Gumbel limits.

A worked example

Seventy displayed maxima yield location 39.400432217, scale 6.917096702 and shape 0.046555567. The twenty-block return level is 61.433842895 at nonexceedance probability 0.95.

Good to know

25–300 independent nonconstant comparable block maxima, finite values within ±10⁶; return period 1.001–10000 blocks. Support-aware standardized local MLE with four starts, −0.45<ξ<1, standardized location ±10 and log scale ±5; search boundaries and unresolved curvature rejected. Shape ξ is negative SciPy genextreme c. No nonstationary model, uncertainty intervals, declustering, threshold selection or far-tail accuracy guarantee.

Choose comparable block maxima

A generalized extreme-value model describes maxima collected over comparable blocks, such as one annual maximum from each year. Each input represents the largest observation within its block. Mixing annual maxima with monthly maxima changes the sampling unit and undermines the return-period interpretation of the fitted distribution.

Threshold exceedances answer a different question because many observations from one block may exceed a threshold. Do not paste all large daily observations into a block-maxima likelihood. Decide the blocks first, preserve their duration and evaluate whether trends or dependence make a stationary maximum distribution reasonable.

GEV return level increases with the requested periodReturn levelReturn period in blocks2205040608020 blocks → 61.434
Scroll across to see the full diagram.
The curve uses the fitted default shape convention ξ; the highlighted point is the twenty-block return level. It is a point estimate, without a confidence band.

Compare this with the Generalized Pareto tail fit calculator from threshold exceedances. Fit the distribution of independent block maxima and return return-level estimates;threshold exceedances require the different generalized Pareto model.

Use the stated shape convention

This calculator uses location mu, positive scale sigma and shape xi, with support requiring one plus xi times x minus mu divided by sigma to be positive. Positive xi gives an unbounded heavy upper tail; negative xi places a finite upper endpoint on the modeled maxima.

Some software uses the opposite sign for the shape parameter. In particular, SciPy genextreme's c corresponds to negative xi here. Compare fitted distributions using the convention and support, not only a similarly named coefficient. Negating the wrong parameter can reverse the qualitative tail conclusion.

Understand the likelihood search

The observations are standardized for optimization and transformed back to their entered units. The likelihood rejects parameter choices placing any maximum outside support. Four starts explore different initial shapes, and the selected converged fit must have a small numerical score and positive local curvature.

The supported shape interval is strictly between minus 0.45 and one. This deliberate regular interior restriction avoids claiming an unrestricted solution in problematic negative-shape regions. A fitted parameter reaching a search boundary is rejected rather than reported as if the numerical bound were supplied by the data.

Inspect the supplied seventy blocks

The default maxima are reproducible synthetic observations on a scale near forty. The fit yields location approximately 39.400432, scale 6.917097 and shape 0.046556. A shape close to zero lies near the Gumbel limit, but its point estimate alone does not establish that the true shape is zero.

For a return period of twenty blocks, the requested nonexceedance probability is 0.95. The corresponding fitted return level is approximately 61.433843 in the input's units. If a block represents one year, the period is twenty years; if it represents a month, the same numeric period means twenty months.

Interpret a return level probabilistically

A T-block return level has modeled exceedance probability one divided by T in any one comparable block. It does not promise that an exceedance occurs exactly once during every T blocks. Independent blocks can produce consecutive exceedances, and a long run can contain no exceedance at that level.

Under independence and stationarity, the probability of at least one exceedance in T blocks is one minus one minus one divided by T raised to T. That probability is about 0.642 for twenty blocks, illustrating why a return period should not be read as a guaranteed waiting schedule.

Inspect support and extrapolation

The output reports the minimum support margin across the entered data. A positive margin is necessary for evaluating the fitted density, although a comfortably positive value is not a tail-accuracy guarantee. Observations close to a fitted finite endpoint can make negative-shape inference especially sensitive to small changes.

The interface accepts twenty-five through three hundred nonconstant maxima and return periods above one up to ten thousand blocks. Large permitted periods are computational bounds, not an endorsement of far-tail precision. Extrapolating well beyond the observed number of blocks can depend strongly on a weakly determined shape.

Account for uncertainty outside this fit

This tool returns an interior local maximum-likelihood fit and one return-level point estimate. It does not supply confidence intervals, covariates, trend models, dependence correction, block selection or declustering. With changing climate, equipment, monitoring or sampling coverage, a stationary historical fit may not describe future maximum behavior.

Preserve the original time index even though only maxima enter the form. Plotting values against time can reveal shifts that a distribution-only input hides. Use study-specific uncertainty assessment before making design or planning decisions, and report the block definition, observation count and shape convention with every quoted return level.

A few questions, answered

What unit is a return period?

The same block unit used to form maxima. Annual maxima give periods in years; monthly maxima give periods in months.

Why is my SciPy shape sign reversed?

This interface uses xi with support 1+xi(x−mu)/sigma>0. SciPy genextreme uses c=−xi for the corresponding distribution.

Does a twenty-block level occur every twenty blocks?

No. Its fitted one-block exceedance probability is 1/20. Exceedances can cluster by chance and waiting times need not equal the return period.

Can I paste threshold exceedances?

No. This likelihood models one maximum per comparable block. Threshold excesses require a different sampling model and exceedance-rate convention.

Find your calculator

Start typing to explore the library.