Kolmogorov-Smirnov functions in the Stochastic DuckDB extension
Function category
Kolmogorov-Smirnov
23 functionsKolmogorov-Smirnov — limiting distribution of the one-sample KS statistic D for n observations. Goodness-of-fit p-values.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the Kolmogorov-Smirnov distribution, P(X <= x).
SELECT dist_kolmogorov_smirnov_cdf(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_cdf(10.0, 0.3) |
|---|
| 0.6708952109021851 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the Kolmogorov-Smirnov distribution, P(X > x).
SELECT round(dist_kolmogorov_smirnov_cdf_complement(10.0, 0.3), 6) AS p_value;
Output
| p_value |
|---|
| 0.329105 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the Kolmogorov-Smirnov distribution at x.
SELECT dist_kolmogorov_smirnov_chf(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_chf(10.0, 0.3) |
|---|
| 1.1113790710335432 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the Kolmogorov-Smirnov distribution at x.
SELECT dist_kolmogorov_smirnov_hazard(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_hazard(10.0, 0.3) |
|---|
| 11.836719215333597 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the Kolmogorov-Smirnov distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_kolmogorov_smirnov_ks_test(x, 10.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.9184811135877904, 'p_value': 9.409095277317957e-08} |
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_kurtosis(10.0);
Output
| dist_kolmogorov_smirnov_kurtosis(10.0) |
|---|
| 3.8816189679105526 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_kurtosis_excess(10.0);
Output
| dist_kolmogorov_smirnov_kurtosis_excess(10.0) |
|---|
| 0.8816189679105526 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
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 Kolmogorov-Smirnov distribution.
SELECT dist_kolmogorov_smirnov_log_cdf(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_log_cdf(10.0, 0.3) |
|---|
| -0.39914232275717315 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the Kolmogorov-Smirnov distribution, log P(X > x).
SELECT dist_kolmogorov_smirnov_log_cdf_complement(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_log_cdf_complement(10.0, 0.3) |
|---|
| -1.1113790710335432 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
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 Kolmogorov-Smirnov distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_kolmogorov_smirnov_log_pdf(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_log_pdf(10.0, 0.3) |
|---|
| 1.3598274267253476 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_mean(10.0);
Output
| dist_kolmogorov_smirnov_mean(10.0) |
|---|
| 0.27471691419718736 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_median(10.0);
Output
| dist_kolmogorov_smirnov_median(10.0) |
|---|
| 0.2617017365723168 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_mode(10.0);
Output
| dist_kolmogorov_smirnov_mode(10.0) |
|---|
| 0.23257537378566176 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x.
SELECT dist_kolmogorov_smirnov_pdf(10.0, 0.3);
Output
| dist_kolmogorov_smirnov_pdf(10.0, 0.3) |
|---|
| 3.8955209809724165 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_kolmogorov_smirnov_quantile(10.0, 0.95);
Output
| dist_kolmogorov_smirnov_quantile(10.0, 0.95) |
|---|
| 0.4294684987434775 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the Kolmogorov-Smirnov distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_kolmogorov_smirnov_quantile_complement(10.0, 0.95);
Output
| dist_kolmogorov_smirnov_quantile_complement(10.0, 0.95) |
|---|
| 0.16431522940365562 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the Kolmogorov-Smirnov distribution as [min, max].
SELECT dist_kolmogorov_smirnov_range(10.0);
Output
| dist_kolmogorov_smirnov_range(10.0) |
|---|
| [0.0, inf] |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters.
SELECT dist_kolmogorov_smirnov_sample(10.0);
Output
| dist_kolmogorov_smirnov_sample(10.0) |
|---|
| 0.22466382330476758 |
Related functions
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the Kolmogorov-Smirnov distribution with the specified parameters.
SELECT dist_kolmogorov_smirnov_samples(10.0, 5);
Output
| dist_kolmogorov_smirnov_samples(10.0, 5) |
|---|
| [0.15764652246379984, 0.26399605587854785, 0.32562247285590434, 0.39898758277240526, 0.311093631259076] |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_skewness(10.0);
Output
| dist_kolmogorov_smirnov_skewness(10.0) |
|---|
| 0.8604261371436726 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_stddev(10.0);
Output
| dist_kolmogorov_smirnov_stddev(10.0) |
|---|
| 0.08232448236330737 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the Kolmogorov-Smirnov distribution as [min, max].
SELECT dist_kolmogorov_smirnov_support(10.0);
Output
| dist_kolmogorov_smirnov_support(10.0) |
|---|
| [0.0, inf] |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
sample_size
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the Kolmogorov-Smirnov distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_kolmogorov_smirnov_variance(10.0);
Output
| dist_kolmogorov_smirnov_variance(10.0) |
|---|
| 0.006777320396386508 |
Related functions
- dist_kolmogorov_smirnov_sample() — Generates a random sample from the Kolmogorov-Smirnov distribution with the specified parameters
- dist_kolmogorov_smirnov_pdf() — Computes the probability density function (PDF) of the Kolmogorov-Smirnov distribution at x
- dist_kolmogorov_smirnov_quantile() — Computes the quantile function (inverse CDF) of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_mean() — Returns the mean of the Kolmogorov-Smirnov distribution
- dist_kolmogorov_smirnov_stddev() — Returns the standard deviation of the Kolmogorov-Smirnov distribution