Weibull functions in the Stochastic DuckDB extension
Function category
Weibull
19 functionsWeibull distribution — flexible shape/scale. Reliability engineering, time-to-failure, wind-speed modeling.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution. Returns the probability that a random variable X is less than or equal to x.
SELECT dist_weibull_cdf(1.5, 1.0, 0.5);
Output
| dist_weibull_cdf(1.5, 1.0, 0.5) |
|---|
| 0.2978114986734404 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 (1 - CDF) of the weibull distribution. Returns the probability that X > x, equivalent to the survival function.
SELECT dist_weibull_cdf_complement(1.5, 1.0, 0.5);
Output
| dist_weibull_cdf_complement(1.5, 1.0, 0.5) |
|---|
| 0.7021885013265596 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution.
SELECT dist_weibull_chf(1.5, 1.0, 0.5);
Output
| dist_weibull_chf(1.5, 1.0, 0.5) |
|---|
| 0.35355339059327373 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution.
SELECT dist_weibull_hazard(1.5, 1.0, 0.5);
Output
| dist_weibull_hazard(1.5, 1.0, 0.5) |
|---|
| 1.0606601717798214 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the weibull distribution.
SELECT dist_weibull_kurtosis(1.5, 1.0);
Output
| dist_weibull_kurtosis(1.5, 1.0) |
|---|
| 4.3904035615957975 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the weibull distribution.
SELECT dist_weibull_kurtosis_excess(1.5, 1.0);
Output
| dist_weibull_kurtosis_excess(1.5, 1.0) |
|---|
| 1.3904035615957977 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution. Returns the logarithm of the probability that a random variable X is less than or equal to x.
SELECT dist_weibull_log_cdf(1.5, 1.0, 0.5);
Output
| dist_weibull_log_cdf(1.5, 1.0, 0.5) |
|---|
| -1.211294547411032 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 complementary cumulative distribution function (1 - CDF) of the weibull distribution. Returns the logarithm of the probability that X > x, equivalent to the survival function.
SELECT dist_weibull_log_cdf_complement(1.5, 1.0, 0.5);
Output
| dist_weibull_log_cdf_complement(1.5, 1.0, 0.5) |
|---|
| -0.3535533905932738 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 (log-PDF) of the weibull distribution. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_weibull_log_pdf(1.5, 1.0, 0.5);
Output
| dist_weibull_log_pdf(1.5, 1.0, 0.5) |
|---|
| -0.29466187276508204 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median (50th percentile) of the weibull distribution, which equals the mean.
SELECT dist_weibull_median(1.5, 1.0);
Output
| dist_weibull_median(1.5, 1.0) |
|---|
| 0.7832197687746514 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the weibull distribution, which equals the mean.
SELECT dist_weibull_mode(1.5, 1.0);
Output
| dist_weibull_mode(1.5, 1.0) |
|---|
| 0.4807498567691361 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution. Returns the probability densityat point x for a weibull distribution with specified parameters.
SELECT dist_weibull_pdf(1.5, 1.0, 0.5);
Output
| dist_weibull_pdf(1.5, 1.0, 0.5) |
|---|
| 0.7447833764388441 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution. Returns the value x such that P(X ≤ x) = p, where p is the cumulative probability.
SELECT dist_weibull_quantile(1.5, 1.0, 0.95);
Output
| dist_weibull_quantile(1.5, 1.0, 0.95) |
|---|
| 2.0781106375345564 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
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 weibull distribution. Returns the value x such that P(X > x) = p, useful for computing upper tail quantiles.
SELECT dist_weibull_quantile_complement(1.5, 1.0, 0.05);
Output
| dist_weibull_quantile_complement(1.5, 1.0, 0.05) |
|---|
| 2.078110637534557 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the weibull distribution.
SELECT dist_weibull_range(1.5, 1.0);
Output
| dist_weibull_range(1.5, 1.0) |
|---|
| (0.0, 1.7976931348623157e+308) |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates random samples from the weibull distribution with specified parameters.
SELECT dist_weibull_sample(1.5, 1.0);
Output
| dist_weibull_sample(1.5, 1.0) |
|---|
| 1.1238833819731295 |
Related functions
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the weibull distribution.
SELECT dist_weibull_skewness(1.5, 1.0);
Output
| dist_weibull_skewness(1.5, 1.0) |
|---|
| 1.0719865728909461 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the weibull distribution.
SELECT dist_weibull_support(1.5, 1.0);
Output
| dist_weibull_support(1.5, 1.0) |
|---|
| (2.2250738585072014e-308, 1.7976931348623157e+308) |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
shape
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
scale
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance (σ²) of the weibull distribution.
SELECT dist_weibull_variance(1.5, 1.0);
Output
| dist_weibull_variance(1.5, 1.0) |
|---|
| 0.3756902848139321 |
Related functions
- dist_weibull_sample() — Generates random samples from the weibull distribution with specified parameters
- dist_weibull_pdf() — Computes the probability density function (PDF) of the weibull distribution
- dist_weibull_cdf() — Computes the cumulative distribution function (CDF) of the weibull distribution
- dist_weibull_quantile() — Computes the quantile function (inverse CDF) of the weibull distribution