Log-normal functions in the Stochastic DuckDB extension
Function category
Log-normal
24 functionsLog-normal — exp of a Normal. Models multiplicative growth, income, lifetimes; right-skewed with heavy tail.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x).
SELECT dist_lognormal_cdf(0.0, 1.0, 0.5);
Output
| dist_lognormal_cdf(0.0, 1.0, 0.5) |
|---|
| 0.24410859578558275 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the log-normal distribution, P(X > x).
SELECT dist_lognormal_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_lognormal_cdf_complement(0.0, 1.0, 0.5) |
|---|
| 0.7558914042144173 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the log-normal distribution at x.
SELECT dist_lognormal_chf(0.0, 1.0, 0.5);
Output
| dist_lognormal_chf(0.0, 1.0, 0.5) |
|---|
| 0.2798575583395914 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a log-normal distribution to x by maximum likelihood. Returns a STRUCT with the fitted parameters (mean, stddev) followed by the log_likelihood, aic and bic of the fit, or NULL when there are too few or only identical values.
SELECT dist_lognormal_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 |
|---|
| {'mean': 0.4288900973406523, 'stddev': 0.7552197869158146, 'log_likelihood': -15.670821669461231, 'aic': 35.34164333892247, 'bic': 35.94681352491055} |
Related functions
- dist_lognormal_ks_test() — One-sample Kolmogorov-Smirnov test of whether x follows the log-normal distribution with the given parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the log-normal distribution at x.
SELECT dist_lognormal_hazard(0.0, 1.0, 0.5);
Output
| dist_lognormal_hazard(0.0, 1.0, 0.5) |
|---|
| 0.8301405117419856 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the log-normal distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_lognormal_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.2606675826226491, 'p_value': 0.5051542379945657} |
Related functions
- dist_lognormal_fit() — Fits a log-normal distribution to x by maximum likelihood
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_kurtosis(0.0, 1.0);
Output
| dist_lognormal_kurtosis(0.0, 1.0) |
|---|
| 113.93639217631153 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_kurtosis_excess(0.0, 1.0);
Output
| dist_lognormal_kurtosis_excess(0.0, 1.0) |
|---|
| 110.93639217631153 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
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 log-normal distribution.
SELECT dist_lognormal_log_cdf(0.0, 1.0, 0.5);
Output
| dist_lognormal_log_cdf(0.0, 1.0, 0.5) |
|---|
| -1.4101420880058386 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the log-normal distribution, log P(X > x).
SELECT dist_lognormal_log_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_lognormal_log_cdf_complement(0.0, 1.0, 0.5) |
|---|
| -0.2798575583395914 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
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 log-normal distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_lognormal_log_pdf(0.0, 1.0, 0.5);
Output
| dist_lognormal_log_pdf(0.0, 1.0, 0.5) |
|---|
| -0.46601785960382813 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_mean(0.0, 1.0);
Output
| dist_lognormal_mean(0.0, 1.0) |
|---|
| 1.6487212707001282 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_median(0.0, 1.0);
Output
| dist_lognormal_median(0.0, 1.0) |
|---|
| 1.0 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_mode(0.0, 1.0);
Output
| dist_lognormal_mode(0.0, 1.0) |
|---|
| 0.36787944117144233 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the log-normal distribution at x.
SELECT dist_lognormal_pdf(0.0, 1.0, 0.5);
Output
| dist_lognormal_pdf(0.0, 1.0, 0.5) |
|---|
| 0.6274960771159244 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the log-normal distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_lognormal_quantile(0.0, 1.0, 0.95);
Output
| dist_lognormal_quantile(0.0, 1.0, 0.95) |
|---|
| 5.1802516022330165 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the log-normal distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_lognormal_quantile_complement(0.0, 1.0, 0.95);
Output
| dist_lognormal_quantile_complement(0.0, 1.0, 0.95) |
|---|
| 0.19304081669873652 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the log-normal distribution as [min, max].
SELECT dist_lognormal_range(0.0, 1.0);
Output
| dist_lognormal_range(0.0, 1.0) |
|---|
| [0.0, inf] |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the log-normal distribution with the specified parameters.
SELECT dist_lognormal_sample(0.0, 1.0);
Output
| dist_lognormal_sample(0.0, 1.0) |
|---|
| 1.793953613840737 |
Related functions
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the log-normal distribution with the specified parameters.
SELECT dist_lognormal_samples(0.0, 1.0, 5);
Output
| dist_lognormal_samples(0.0, 1.0, 5) |
|---|
| [0.6317247512985485, 2.719793011132347, 1.7240092470631823, 0.24741769027844912, 0.4591451064843776] |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_skewness(0.0, 1.0);
Output
| dist_lognormal_skewness(0.0, 1.0) |
|---|
| 6.184877138632554 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_stddev(0.0, 1.0);
Output
| dist_lognormal_stddev(0.0, 1.0) |
|---|
| 2.1611974158950877 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the log-normal distribution as [min, max].
SELECT dist_lognormal_support(0.0, 1.0);
Output
| dist_lognormal_support(0.0, 1.0) |
|---|
| [0.0, inf] |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
mean
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
stddev
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the log-normal distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_lognormal_variance(0.0, 1.0);
Output
| dist_lognormal_variance(0.0, 1.0) |
|---|
| 4.670774270471605 |
Related functions
- dist_lognormal_sample() — Generates a random sample from the log-normal distribution with the specified parameters
- dist_lognormal_pdf() — Computes the probability density function (PDF) of the log-normal distribution at x
- dist_lognormal_cdf() — Computes the cumulative distribution function (CDF) of the log-normal distribution, P(X <= x)
- dist_lognormal_quantile() — Computes the quantile function (inverse CDF) of the log-normal distribution
- dist_lognormal_mean() — Returns the mean of the log-normal distribution
- dist_lognormal_stddev() — Returns the standard deviation of the log-normal distribution