Non-central Chi-squared functions in the Stochastic DuckDB extension
Function category
Non-central Chi-squared
23 functionsNon-central chi-squared — sum of squared Normals with non-zero means. Power of chi-squared tests.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the non-central chi-squared distribution, P(X <= x).
SELECT round(dist_non_central_chi_squared_cdf(4.0, 2.0, 3.0), 6) AS cdf;
Output
| cdf |
|---|
| 0.246273 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the non-central chi-squared distribution, P(X > x).
SELECT dist_non_central_chi_squared_cdf_complement(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_cdf_complement(4.0, 2.0, 3.0) |
|---|
| 0.7537272985380187 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the non-central chi-squared distribution at x.
SELECT dist_non_central_chi_squared_chf(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_chf(4.0, 2.0, 3.0) |
|---|
| 0.2827246494201446 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the non-central chi-squared distribution at x.
SELECT dist_non_central_chi_squared_hazard(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_hazard(4.0, 2.0, 3.0) |
|---|
| 0.16031858095294424 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the non-central chi-squared distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_non_central_chi_squared_ks_test(x, 4.0, 2.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.5808945177821523, 'p_value': 0.002344644150378174} |
Related functions
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_kurtosis(4.0, 2.0);
Output
| dist_non_central_chi_squared_kurtosis(4.0, 2.0) |
|---|
| 5.25 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_kurtosis_excess(4.0, 2.0);
Output
| dist_non_central_chi_squared_kurtosis_excess(4.0, 2.0) |
|---|
| 2.25 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
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 non-central chi-squared distribution.
SELECT dist_non_central_chi_squared_log_cdf(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_log_cdf(4.0, 2.0, 3.0) |
|---|
| -1.4013158145009563 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the non-central chi-squared distribution, log P(X > x).
SELECT dist_non_central_chi_squared_log_cdf_complement(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_log_cdf_complement(4.0, 2.0, 3.0) |
|---|
| -0.2827246494201446 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
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 non-central chi-squared distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_non_central_chi_squared_log_pdf(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_log_pdf(4.0, 2.0, 3.0) |
|---|
| -2.1133169618863707 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_mean(4.0, 2.0);
Output
| dist_non_central_chi_squared_mean(4.0, 2.0) |
|---|
| 6.0 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_median(4.0, 2.0);
Output
| dist_non_central_chi_squared_median(4.0, 2.0) |
|---|
| 5.166725235913415 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_mode(4.0, 2.0);
Output
| dist_non_central_chi_squared_mode(4.0, 2.0) |
|---|
| 3.339560771318093 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the non-central chi-squared distribution at x.
SELECT dist_non_central_chi_squared_pdf(4.0, 2.0, 3.0);
Output
| dist_non_central_chi_squared_pdf(4.0, 2.0, 3.0) |
|---|
| 0.12083649092711131 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the non-central chi-squared distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_non_central_chi_squared_quantile(4.0, 2.0, 0.95);
Output
| dist_non_central_chi_squared_quantile(4.0, 2.0, 0.95) |
|---|
| 13.700992145144294 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the non-central chi-squared distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_non_central_chi_squared_quantile_complement(4.0, 2.0, 0.95);
Output
| dist_non_central_chi_squared_quantile_complement(4.0, 2.0, 0.95) |
|---|
| 1.1497971781006817 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the non-central chi-squared distribution as [min, max].
SELECT dist_non_central_chi_squared_range(4.0, 2.0);
Output
| dist_non_central_chi_squared_range(4.0, 2.0) |
|---|
| [0.0, inf] |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the non-central chi-squared distribution with the specified parameters.
SELECT dist_non_central_chi_squared_sample(4.0, 2.0);
Output
| dist_non_central_chi_squared_sample(4.0, 2.0) |
|---|
| 7.735764400602838 |
Related functions
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the non-central chi-squared distribution with the specified parameters.
SELECT dist_non_central_chi_squared_samples(4.0, 2.0, 5);
Output
| dist_non_central_chi_squared_samples(4.0, 2.0, 5) |
|---|
| [5.1211250718496615, 7.152499822977875, 5.178556120427768, 5.534626371144199, 13.630653999625094] |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_skewness(4.0, 2.0);
Output
| dist_non_central_chi_squared_skewness(4.0, 2.0) |
|---|
| 1.25 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_stddev(4.0, 2.0);
Output
| dist_non_central_chi_squared_stddev(4.0, 2.0) |
|---|
| 4.0 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the non-central chi-squared distribution as [min, max].
SELECT dist_non_central_chi_squared_support(4.0, 2.0);
Output
| dist_non_central_chi_squared_support(4.0, 2.0) |
|---|
| [0.0, inf] |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
noncentrality
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the non-central chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_non_central_chi_squared_variance(4.0, 2.0);
Output
| dist_non_central_chi_squared_variance(4.0, 2.0) |
|---|
| 16.0 |
Related functions
- dist_non_central_chi_squared_sample() — Generates a random sample from the non-central chi-squared distribution with the specified parameters
- dist_non_central_chi_squared_pdf() — Computes the probability density function (PDF) of the non-central chi-squared distribution at x
- dist_non_central_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the non-central chi-squared distribution
- dist_non_central_chi_squared_mean() — Returns the mean of the non-central chi-squared distribution
- dist_non_central_chi_squared_stddev() — Returns the standard deviation of the non-central chi-squared distribution