Laplace functions in the Stochastic DuckDB extension
Function category
Laplace
24 functionsLaplace (double exponential) — location/scale. Heavier tails than Normal; used in regularized regression and noise modeling.
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 Laplace distribution, P(X <= x).
SELECT dist_laplace_cdf(0.0, 1.0, 0.5);
Output
| dist_laplace_cdf(0.0, 1.0, 0.5) |
|---|
| 0.6967346701436833 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution, P(X > x).
SELECT dist_laplace_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_laplace_cdf_complement(0.0, 1.0, 0.5) |
|---|
| 0.3032653298563167 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution at x.
SELECT dist_laplace_chf(0.0, 1.0, 0.5);
Output
| dist_laplace_chf(0.0, 1.0, 0.5) |
|---|
| 1.1931471805599454 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a Laplace distribution to x by maximum likelihood (the median and the mean absolute deviation from it). 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_laplace_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.5, 'scale': 1.15, 'log_likelihood': -18.32909122935104, 'aic': 40.65818245870208, 'bic': 41.26335264469017} |
Related functions
- dist_laplace_ks_test() — One-sample Kolmogorov-Smirnov test of whether x follows the Laplace distribution with the given parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_sample() — Generates a random sample from the Laplace 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 Laplace distribution at x.
SELECT dist_laplace_hazard(0.0, 1.0, 0.5);
Output
| dist_laplace_hazard(0.0, 1.0, 0.5) |
|---|
| 1.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_laplace_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.6648399769821803, 'p_value': 0.00028957485747974884} |
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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_kurtosis(0.0, 1.0);
Output
| dist_laplace_kurtosis(0.0, 1.0) |
|---|
| 6.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_kurtosis_excess(0.0, 1.0);
Output
| dist_laplace_kurtosis_excess(0.0, 1.0) |
|---|
| 3.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution.
SELECT dist_laplace_log_cdf(0.0, 1.0, 0.5);
Output
| dist_laplace_log_cdf(0.0, 1.0, 0.5) |
|---|
| -0.3613506148087591 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution, log P(X > x).
SELECT dist_laplace_log_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_laplace_log_cdf_complement(0.0, 1.0, 0.5) |
|---|
| -1.1931471805599454 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_laplace_log_pdf(0.0, 1.0, 0.5);
Output
| dist_laplace_log_pdf(0.0, 1.0, 0.5) |
|---|
| -1.1931471805599454 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_mean(0.0, 1.0);
Output
| dist_laplace_mean(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_median(0.0, 1.0);
Output
| dist_laplace_median(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_mode(0.0, 1.0);
Output
| dist_laplace_mode(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution at x.
SELECT dist_laplace_pdf(0.0, 1.0, 0.5);
Output
| dist_laplace_pdf(0.0, 1.0, 0.5) |
|---|
| 0.3032653298563167 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_laplace_quantile(0.0, 1.0, 0.95);
Output
| dist_laplace_quantile(0.0, 1.0, 0.95) |
|---|
| 2.302585092994045 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 complementary quantile function of the Laplace distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_laplace_quantile_complement(0.0, 1.0, 0.95);
Output
| dist_laplace_quantile_complement(0.0, 1.0, 0.95) |
|---|
| -2.302585092994045 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution as [min, max].
SELECT dist_laplace_range(0.0, 1.0);
Output
| dist_laplace_range(0.0, 1.0) |
|---|
| [-inf, inf] |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution with the specified parameters.
SELECT dist_laplace_sample(0.0, 1.0);
Output
| dist_laplace_sample(0.0, 1.0) |
|---|
| -1.2183699307982399 |
Related functions
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution with the specified parameters.
SELECT dist_laplace_samples(0.0, 1.0, 5);
Output
| dist_laplace_samples(0.0, 1.0, 5) |
|---|
| [0.37893776728720296, 1.3872112569055355, 0.007684018855689952, -0.6338547626077614, 1.5309867516681692] |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_skewness(0.0, 1.0);
Output
| dist_laplace_skewness(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_stddev(0.0, 1.0);
Output
| dist_laplace_stddev(0.0, 1.0) |
|---|
| 1.4142135623730951 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace 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 Laplace distribution as [min, max].
SELECT dist_laplace_support(0.0, 1.0);
Output
| dist_laplace_support(0.0, 1.0) |
|---|
| [-inf, inf] |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace 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 Laplace distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_laplace_variance(0.0, 1.0);
Output
| dist_laplace_variance(0.0, 1.0) |
|---|
| 2.0000000000000004 |
Related functions
- dist_laplace_sample() — Generates a random sample from the Laplace distribution with the specified parameters
- dist_laplace_pdf() — Computes the probability density function (PDF) of the Laplace distribution at x
- dist_laplace_cdf() — Computes the cumulative distribution function (CDF) of the Laplace distribution, P(X <= x)
- dist_laplace_quantile() — Computes the quantile function (inverse CDF) of the Laplace distribution
- dist_laplace_mean() — Returns the mean of the Laplace distribution
- dist_laplace_stddev() — Returns the standard deviation of the Laplace distribution