Extreme Value functions in the Stochastic DuckDB extension
Function category
Extreme Value
24 functionsGeneralized extreme-value (Gumbel) — block-maxima of i.i.d. samples. Used in hydrology, insurance, climate.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x).
SELECT dist_extreme_value_cdf(0.0, 1.0, 0.5);
Output
| dist_extreme_value_cdf(0.0, 1.0, 0.5) |
|---|
| 0.545239211892605 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the extreme value (Gumbel) distribution, P(X > x).
SELECT dist_extreme_value_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_extreme_value_cdf_complement(0.0, 1.0, 0.5) |
|---|
| 0.45476078810739495 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the extreme value (Gumbel) distribution at x.
SELECT dist_extreme_value_chf(0.0, 1.0, 0.5);
Output
| dist_extreme_value_chf(0.0, 1.0, 0.5) |
|---|
| 0.7879837387044486 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a extreme value (Gumbel) distribution to x by maximum likelihood (Newton's method). Returns a STRUCT with the fitted parameters (location, scale) followed by the log_likelihood, aic and bic of the fit, or NULL when there are too few or only identical values. The whole sample is held in memory.
SELECT dist_extreme_value_fit(x) AS fit
FROM (VALUES (1.2), (0.7), (2.9), (1.8), (0.4), (3.6), (1.1), (2.2), (5.3), (0.9)) t(x);
Output
| fit |
|---|
| {'location': 1.3646057764916848, 'scale': 1.01710128234988, 'log_likelihood': -16.51499430573309, 'aic': 37.02998861146618, 'bic': 37.635158797454274} |
Related functions
- dist_extreme_value_ks_test() — One-sample Kolmogorov-Smirnov test of whether x follows the extreme value (Gumbel) distribution with the given parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the extreme value (Gumbel) distribution at x.
SELECT dist_extreme_value_hazard(0.0, 1.0, 0.5);
Output
| dist_extreme_value_hazard(0.0, 1.0, 0.5) |
|---|
| 0.7272049559653766 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the extreme value (Gumbel) distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_extreme_value_ks_test(x, 0.0, 1.0) AS ks
FROM (VALUES (1.2), (0.7), (2.9), (1.8), (0.4), (3.6), (1.1), (2.2), (5.3), (0.9)) t(x);
Output
| ks |
|---|
| {'statistic': 0.5115448336890416, 'p_value': 0.010668974715049323} |
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_kurtosis(0.0, 1.0);
Output
| dist_extreme_value_kurtosis(0.0, 1.0) |
|---|
| 5.4 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_kurtosis_excess(0.0, 1.0);
Output
| dist_extreme_value_kurtosis_excess(0.0, 1.0) |
|---|
| 2.4 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution.
SELECT dist_extreme_value_log_cdf(0.0, 1.0, 0.5);
Output
| dist_extreme_value_log_cdf(0.0, 1.0, 0.5) |
|---|
| -0.6065306597126334 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the extreme value (Gumbel) distribution, log P(X > x).
SELECT dist_extreme_value_log_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_extreme_value_log_cdf_complement(0.0, 1.0, 0.5) |
|---|
| -0.7879837387044486 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the probability density function (PDF) of the extreme value (Gumbel) distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_extreme_value_log_pdf(0.0, 1.0, 0.5);
Output
| dist_extreme_value_log_pdf(0.0, 1.0, 0.5) |
|---|
| -1.1065306597126334 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_mean(0.0, 1.0);
Output
| dist_extreme_value_mean(0.0, 1.0) |
|---|
| 0.5772156649015329 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
- dist_extreme_value_stddev() — Returns the standard deviation of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_median(0.0, 1.0);
Output
| dist_extreme_value_median(0.0, 1.0) |
|---|
| 0.36651292058166435 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_mode(0.0, 1.0);
Output
| dist_extreme_value_mode(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x.
SELECT dist_extreme_value_pdf(0.0, 1.0, 0.5);
Output
| dist_extreme_value_pdf(0.0, 1.0, 0.5) |
|---|
| 0.3307042988904181 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_extreme_value_quantile(0.0, 1.0, 0.95);
Output
| dist_extreme_value_quantile(0.0, 1.0, 0.95) |
|---|
| 2.9701952490421637 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the extreme value (Gumbel) distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_extreme_value_quantile_complement(0.0, 1.0, 0.95);
Output
| dist_extreme_value_quantile_complement(0.0, 1.0, 0.95) |
|---|
| -1.0971887003649483 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the extreme value (Gumbel) distribution as [min, max].
SELECT dist_extreme_value_range(0.0, 1.0);
Output
| dist_extreme_value_range(0.0, 1.0) |
|---|
| [-inf, inf] |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters.
SELECT dist_extreme_value_sample(0.0, 1.0);
Output
| dist_extreme_value_sample(0.0, 1.0) |
|---|
| 0.4119440429977521 |
Related functions
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the extreme value (Gumbel) distribution with the specified parameters.
SELECT dist_extreme_value_samples(0.0, 1.0, 5);
Output
| dist_extreme_value_samples(0.0, 1.0, 5) |
|---|
| [0.7349790538472736, 0.09014990948826283, 0.1867581116673891, -0.3768669769358021, 2.335372998624485] |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
- dist_extreme_value_mean() — Returns the mean of the extreme value (Gumbel) distribution
- dist_extreme_value_stddev() — Returns the standard deviation of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_skewness(0.0, 1.0);
Output
| dist_extreme_value_skewness(0.0, 1.0) |
|---|
| 1.1395470994046486 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_stddev(0.0, 1.0);
Output
| dist_extreme_value_stddev(0.0, 1.0) |
|---|
| 1.282549830161864 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
- dist_extreme_value_mean() — Returns the mean of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the extreme value (Gumbel) distribution as [min, max].
SELECT dist_extreme_value_support(0.0, 1.0);
Output
| dist_extreme_value_support(0.0, 1.0) |
|---|
| [-inf, inf] |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
location
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the extreme value (Gumbel) distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_extreme_value_variance(0.0, 1.0);
Output
| dist_extreme_value_variance(0.0, 1.0) |
|---|
| 1.6449340668482264 |
Related functions
- dist_extreme_value_sample() — Generates a random sample from the extreme value (Gumbel) distribution with the specified parameters
- dist_extreme_value_pdf() — Computes the probability density function (PDF) of the extreme value (Gumbel) distribution at x
- dist_extreme_value_cdf() — Computes the cumulative distribution function (CDF) of the extreme value (Gumbel) distribution, P(X <= x)
- dist_extreme_value_quantile() — Computes the quantile function (inverse CDF) of the extreme value (Gumbel) distribution