Fisher F functions in the Stochastic DuckDB extension
Function category
Fisher F
23 functionsF distribution — ratio of two scaled chi-squared variates. Backbone of ANOVA and regression hypothesis tests.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x).
SELECT dist_fisher_f_cdf(5.0, 10.0, 0.5);
Output
| dist_fisher_f_cdf(5.0, 10.0, 0.5) |
|---|
| 0.22997511934989848 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the Fisher's F distribution, P(X > x).
SELECT dist_fisher_f_cdf_complement(5.0, 10.0, 0.5);
Output
| dist_fisher_f_cdf_complement(5.0, 10.0, 0.5) |
|---|
| 0.7700248806501016 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the Fisher's F distribution at x.
SELECT dist_fisher_f_chf(5.0, 10.0, 0.5);
Output
| dist_fisher_f_chf(5.0, 10.0, 0.5) |
|---|
| 0.26133245212384676 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the Fisher's F distribution at x.
SELECT dist_fisher_f_hazard(5.0, 10.0, 0.5);
Output
| dist_fisher_f_hazard(5.0, 10.0, 0.5) |
|---|
| 0.8929672534608285 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the Fisher's F distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_fisher_f_ks_test(x, 5.0, 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.29944732219125836, 'p_value': 0.3312625185242358} |
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_kurtosis(5.0, 10.0);
Output
| dist_fisher_f_kurtosis(5.0, 10.0) |
|---|
| 53.86153846153846 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_kurtosis_excess(5.0, 10.0);
Output
| dist_fisher_f_kurtosis_excess(5.0, 10.0) |
|---|
| 50.86153846153846 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
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 Fisher's F distribution.
SELECT dist_fisher_f_log_cdf(5.0, 10.0, 0.5);
Output
| dist_fisher_f_log_cdf(5.0, 10.0, 0.5) |
|---|
| -1.469784152650039 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the Fisher's F distribution, log P(X > x).
SELECT dist_fisher_f_log_cdf_complement(5.0, 10.0, 0.5);
Output
| dist_fisher_f_log_cdf_complement(5.0, 10.0, 0.5) |
|---|
| -0.26133245212384676 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
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 Fisher's F distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_fisher_f_log_pdf(5.0, 10.0, 0.5);
Output
| dist_fisher_f_log_pdf(5.0, 10.0, 0.5) |
|---|
| -0.374537821158486 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_mean(5.0, 10.0);
Output
| dist_fisher_f_mean(5.0, 10.0) |
|---|
| 1.25 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
- dist_fisher_f_stddev() — Returns the standard deviation of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_median(5.0, 10.0);
Output
| dist_fisher_f_median(5.0, 10.0) |
|---|
| 0.931933160851048 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_mode(5.0, 10.0);
Output
| dist_fisher_f_mode(5.0, 10.0) |
|---|
| 0.5 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the Fisher's F distribution at x.
SELECT dist_fisher_f_pdf(5.0, 10.0, 0.5);
Output
| dist_fisher_f_pdf(5.0, 10.0, 0.5) |
|---|
| 0.6876070027706235 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the Fisher's F distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_fisher_f_quantile(5.0, 10.0, 0.95);
Output
| dist_fisher_f_quantile(5.0, 10.0, 0.95) |
|---|
| 3.3258345304130104 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the Fisher's F distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_fisher_f_quantile_complement(5.0, 10.0, 0.95);
Output
| dist_fisher_f_quantile_complement(5.0, 10.0, 0.95) |
|---|
| 0.21119042878234498 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the Fisher's F distribution as [min, max].
SELECT dist_fisher_f_range(5.0, 10.0);
Output
| dist_fisher_f_range(5.0, 10.0) |
|---|
| [0.0, inf] |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the Fisher's F distribution with the specified parameters.
SELECT dist_fisher_f_sample(5.0, 10.0);
Output
| dist_fisher_f_sample(5.0, 10.0) |
|---|
| 0.5827237783225832 |
Related functions
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the Fisher's F distribution with the specified parameters.
SELECT dist_fisher_f_samples(5.0, 10.0, 5);
Output
| dist_fisher_f_samples(5.0, 10.0, 5) |
|---|
| [2.3340356368920148, 1.1559463749630776, 2.2999095842071937, 1.1384245179261823, 2.265734611504575] |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
- dist_fisher_f_mean() — Returns the mean of the Fisher's F distribution
- dist_fisher_f_stddev() — Returns the standard deviation of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_skewness(5.0, 10.0);
Output
| dist_fisher_f_skewness(5.0, 10.0) |
|---|
| 3.8670203198129376 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_stddev(5.0, 10.0);
Output
| dist_fisher_f_stddev(5.0, 10.0) |
|---|
| 1.1636866703140785 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
- dist_fisher_f_mean() — Returns the mean of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the Fisher's F distribution as [min, max].
SELECT dist_fisher_f_support(5.0, 10.0);
Output
| dist_fisher_f_support(5.0, 10.0) |
|---|
| [0.0, inf] |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
d1
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
d2
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the Fisher's F distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_fisher_f_variance(5.0, 10.0);
Output
| dist_fisher_f_variance(5.0, 10.0) |
|---|
| 1.3541666666666667 |
Related functions
- dist_fisher_f_sample() — Generates a random sample from the Fisher's F distribution with the specified parameters
- dist_fisher_f_pdf() — Computes the probability density function (PDF) of the Fisher's F distribution at x
- dist_fisher_f_cdf() — Computes the cumulative distribution function (CDF) of the Fisher's F distribution, P(X <= x)
- dist_fisher_f_quantile() — Computes the quantile function (inverse CDF) of the Fisher's F distribution