Tools › Statistics › Distributions › Extreme Value Analysis › Method

Extreme Value Analysis: Method

Open the free Extreme Value Analysis (GEV, Gumbel, POT)

Extreme Value Analysis: Return Levels from Block Maxima and Peaks over a Threshold

The tool takes a record of extremes (the largest value of each year, or a dated series from which it picks them) and fits the distribution that extreme-value theory gives for such data. From the fit it reads return levels, such as the 100-year level, with confidence intervals, and it draws the plots and prints the tests that show how well the fitted form describes the record. It reports figures and their uncertainty; it does not set design values, which the governing code or agency decides.

The idea: the largest of many values has a known family of shapes

Take the largest value of each year of a long record. Whatever the distribution of the daily values, the distribution of that yearly maximum tends to one family, the generalized extreme value (GEV) distribution, in the same way that averages tend to the normal distribution. The family has a location μ, a scale σ and a shape ξ. The shape decides the tail: ξ = 0 is the Gumbel distribution, whose tail thins out exponentially; ξ > 0 gives a heavy tail with no upper bound; ξ < 0 gives a tail that ends at a finite bound.

Density curve of the yearly maximum with the area to the right of the 20-year return level shaded: that area is one twentieth
Figure 1: The T-year return level is the value that the yearly maximum exceeds with probability 1/T. Here the shaded area is 1/20.

The second route keeps every peak above a high threshold rather than one value a year. The amounts by which independent peaks exceed a high threshold tend to the generalized Pareto distribution (GPD), with a scale σ and the same shape ξ. A record of 25 years holds 25 yearly maxima but may hold a hundred peaks over a threshold, so this route uses more of the record; in exchange it needs a threshold and a rule for which exceedances belong to one event.

The equations

QuantityFormulaNote
GEV distribution functionF(x) = exp{−[1 + ξ (x − μ)/σ]−1/ξ}defined where 1 + ξ (x − μ)/σ > 0
Gumbel (ξ = 0)F(x) = exp{−exp[−(x − μ)/σ]}two parameters
Return level, yearly maximazT = μ + (σ/ξ) [exp(ξ yT) − 1],   yT = −ln(−ln(1 − 1/T))Gumbel: zT = μ + σ yT; yT is the horizontal axis of the return-level plot
Generalized Pareto, excess y = x − uF(y) = 1 − (1 + ξ y/σ)−1/ξξ = 0: exponential with mean σ
Level by recurrence interval, peaks over thresholdxT = u + (σ/ξ) [(λT)ξ − 1]λ = peaks per year; passed on average once in T years
Level by yearly chance, peaks over thresholdx = u + (σ/ξ) [(λ/y)ξ − 1],   y = −ln(1 − 1/T)chance 1/T of being passed in a year, for Poisson arrivals
Bound when ξ < 0μ − σ/ξ   (GEV),   u − σ/ξ   (GPD)end of the fitted tail
At least one exceedance in N years1 − (1 − 1/T)Npeaks over threshold by recurrence interval: 1 − exp(−N/T)
Plotting positionpi = (i − a)/(n + 1 − 2a)i-th smallest of n; a = 0 Weibull, 0.40 Cunnane, 0.44 Gringorten, 0.50 Hazen

The shape is written ξ as in Coles (2001): positive for a heavy tail. Hosking's papers on L-moments, and some software, use k = −ξ; check the sign before comparing numbers from two sources.

Two estimators, printed side by side

Maximum likelihood chooses the parameters that make the observed record most probable. The log-likelihood of the GEV distribution is ℓ = −n ln σ − (1 + 1/ξ) Σ ln ti − Σ ti−1/ξ with ti = 1 + ξ (xi − μ)/σ. There is no closed form, so the page searches numerically (a simplex search from the L-moment estimates, finished by Newton steps) and takes standard errors from the curvature of ℓ at the maximum.

L-moments are averages of the ordered record with fixed weights: l1 is the mean, l2 measures spread, and t3 = l3/l2 measures skewness. They are computed from the unbiased probability-weighted moments b0, b1, b2: l1 = b0, l2 = 2b1 − b0, l3 = 6b2 − 6b1 + b0. Setting them equal to their values for the distribution gives the parameters: for the GEV, k = −ξ solves (1 − 3−k)/(1 − 2−k) = (3 + t3)/2, then σ = l2 k / [(1 − 2−k) Γ(1 + k)] and μ = l1 − σ [1 − Γ(1 + k)]/k; for the Gumbel, σ = l2/ln 2 and μ = l1 − 0.5772 σ; for the generalized Pareto with the threshold known, k = l1/l2 − 2 and σ = (1 + k) l1. The page solves the GEV shape equation exactly and uses Hosking's closed-form approximation only as the starting value. Because every observation enters with a bounded weight, one very large value moves an L-moment fit less than it moves a maximum likelihood fit of a short record. NOAA Atlas 14 fits the GEV distribution to yearly maxima by L-moments (pooled over a region, which this page does not do).

Intervals

Delta method. A return level is a smooth function of the parameters, so its variance is approximately ∇zT V ∇z, where V is the covariance matrix of the maximum likelihood estimates. The interval is the estimate plus and minus a normal multiple of the standard error. It is symmetric, which the uncertainty of a rare level is not: the level can be far above the estimate more easily than far below it.

Parametric bootstrap. The page draws samples of the same size from the fitted distribution, refits each one by the headline estimator, and takes the middle 95 % (or the level chosen) of the resulting return levels. The interval can be lopsided. For peaks over a threshold each sample has a Poisson number of peaks, so that the uncertainty of the yearly rate is carried too. The random numbers are seeded: the same seed gives the same interval.

Profile-likelihood intervals, which many texts prefer for long return periods, are not computed by this page.

Checks of the fit

  • Return-level plot: the fitted curve against the observations at their plotting positions. On the Gumbel axis a Gumbel distribution is a straight line; a curve bending upward means ξ > 0, one flattening means ξ < 0.
  • Quantile and probability plots: points near the diagonal when the fitted form describes the record.
  • Kolmogorov-Smirnov and Anderson-Darling statistics with p-values from the bootstrap. Printed tables for these tests assume the parameters were known before the data were seen; with fitted parameters they give p-values that are too large, so the page simulates the statistic with a refit in every sample.
  • Likelihood-ratio test of ξ = 0: twice the gain in log-likelihood of the GEV over the Gumbel fit (or of the generalized Pareto over the exponential), referred to chi-square with one degree of freedom.

Peaks over a threshold: threshold and declustering

A storm that lasts three days gives three exceedances that are one event. The page groups exceedances whose dates are at most r days apart (the run length) and keeps the largest of each group. The threshold is a compromise: too low and the generalized Pareto form does not yet hold, which biases the fit; too high and few peaks remain, which widens the intervals. Two plots help. Above a suitable threshold the mean excess is a straight line in the threshold, and the fitted shape ξ and modified scale σ* = σ − ξu stay level within their intervals. The choice remains a judgment, and the page shows how the estimates move with it.

A "T-year" level has two meanings here. Counting every event, it is the level passed on average once in T years (the average recurrence interval). Counting years, it is the level with chance 1/T of being passed in a year, which is what a fit to yearly maxima returns. NOAA Atlas 14 makes the same distinction between its partial-duration and annual-maximum results and notes that the two differ for short periods and are close beyond about 15 years. The page prints both.

Lows

The smallest value of a year is minus the largest value of the sign-reversed record: min(x) = −max(−x). For lows the page reverses the sign, fits the highs, and turns the levels back. The T-year low is the value the yearly minimum falls below with probability 1/T.

What it assumes

  • The values fitted are independent and come from one distribution that does not change over the record: no trend, no change of instrument or site, no change in the process that produces the extremes.
  • Each block (year) holds enough values for the limiting form to be close, and blocks do not split one season of extremes in two.
  • For peaks over a threshold: the threshold is high enough for the generalized Pareto form, the declustered peaks are independent, and they arrive as a Poisson process at a steady yearly rate.
  • The record is complete above the threshold, and its length in years is known.

When it misleads

  • Short records. The shape parameter is hard to estimate; with 15 or 20 values its interval can span light and heavy tails, and a 100-year level is an extrapolation whose interval says so.
  • Long extrapolation. A level for a period many times the record length depends almost entirely on ξ. The intervals cover sampling scatter under the fitted form only, not the possibility that the form is wrong out there.
  • Mixed causes. Hurricanes and thunderstorms, snowmelt and rain floods, routine and catastrophic losses follow different distributions; one curve through the mixture can miss both.
  • A changing climate, catchment or portfolio. The return period is defined for an unchanging process.
  • Regular maximum likelihood fails for ξ below −0.5 (standard errors) and has no solution for ξ below −1; the page says so when the fit lands there.
  • Rounded or censored data (values recorded to the nearest whole unit, or capped by the instrument) distort the fit near the rounding step.

Common mistakes

  • Reading "100-year event" as "once every 100 years". The chance in any year is 1 in 100, and the chance of at least one in 100 years is 1 − 0.99100 = 63 %.
  • Comparing a shape parameter from one program with another without checking the sign convention (ξ against k = −ξ).
  • Fitting a Gumbel distribution because the plot paper is Gumbel paper. When ξ is positive the Gumbel fit understates long-period levels.
  • Using the Kolmogorov-Smirnov table p-value after fitting the parameters to the same data.
  • Counting several days of one storm as separate peaks, which overstates the yearly rate and understates the intervals.
  • Choosing the threshold that gives the answer wanted. Report the stability plots with the choice.
  • Mixing the two meanings of the T-year level when comparing a threshold analysis with a yearly-maxima analysis at short periods.
  • Quoting a return level without its interval.

Related tools

This tool adds the GEV and generalized Pareto distributions, peaks over a threshold and return-level bands to its neighbors: Flood Frequency Analysis fits the log-Pearson Type III distribution to annual peak flows by the Bulletin 17C procedure, which is the U.S. federal method for floods; Distribution Fitting fits the normal, lognormal, Weibull, exponential and gamma distributions to a whole sample rather than to its extremes; Weibull Life Analysis treats failure times, where the Weibull distribution is the extreme-value form for minima; Wind, Snow and Seismic Loads applies code load provisions, which start from mapped values that agencies derive with their own data.

Verification

The maximum likelihood fit, standard errors, covariance, log-likelihood, return levels with delta-method intervals, the bound and the likelihood-ratio test reproduce Table 1 and the text of Gilleland and Katz (2016) for the Port Jervis winter maximum temperatures. Every other quantity is checked against an independent script built on scipy's extreme-value distributions, on seeded samples with positive, zero and negative shapes. The L-moment formulas are checked by integrating the fitted quantile function numerically and recovering the sample L-moments. The bootstrap intervals and test p-values are compared with an independent bootstrap within the scatter expected of two random streams.

Open the free Extreme Value Analysis (GEV, Gumbel, POT)