Chi-squared functions in the Stochastic DuckDB extension
Function category
Chi-squared
24 functionsChi-squared distribution — sum of k squared standard normals. Used in goodness-of-fit and variance tests.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x).
SELECT dist_chi_squared_cdf(5.0, 3.0);
Output
| dist_chi_squared_cdf(5.0, 3.0) |
|---|
| 0.3000141641213725 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the chi-squared distribution, P(X > x).
SELECT dist_chi_squared_cdf_complement(5.0, 3.0);
Output
| dist_chi_squared_cdf_complement(5.0, 3.0) |
|---|
| 0.6999858358786275 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the chi-squared distribution at x.
SELECT dist_chi_squared_chf(5.0, 3.0);
Output
| dist_chi_squared_chf(5.0, 3.0) |
|---|
| 0.3566951786025554 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a chi-squared distribution to x by maximum likelihood (Newton's method). Returns a STRUCT with the fitted parameters (degrees_of_freedom) followed by the log_likelihood, aic and bic of the fit, or NULL when there are too few or only identical values.
SELECT dist_chi_squared_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 |
|---|
| {'degrees_of_freedom': 2.4395585639658903, 'log_likelihood': -16.65380346852325, 'aic': 35.3076069370465, 'bic': 35.610192030040544} |
Related functions
- dist_chi_squared_ks_test() — One-sample Kolmogorov-Smirnov test of whether x follows the chi-squared distribution with the given parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the chi-squared distribution at x.
SELECT dist_chi_squared_hazard(5.0, 3.0);
Output
| dist_chi_squared_hazard(5.0, 3.0) |
|---|
| 0.2202620708892502 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the 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 |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the chi-squared distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_chi_squared_ks_test(x, 5.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.520835969214496, 'p_value': 0.008806589407778226} |
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_kurtosis(5.0);
Output
| dist_chi_squared_kurtosis(5.0) |
|---|
| 5.4 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_kurtosis_excess(5.0);
Output
| dist_chi_squared_kurtosis_excess(5.0) |
|---|
| 2.4 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
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 chi-squared distribution.
SELECT dist_chi_squared_log_cdf(5.0, 3.0);
Output
| dist_chi_squared_log_cdf(5.0, 3.0) |
|---|
| -1.203925591702561 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the chi-squared distribution, log P(X > x).
SELECT dist_chi_squared_log_cdf_complement(5.0, 3.0);
Output
| dist_chi_squared_log_cdf_complement(5.0, 3.0) |
|---|
| -0.3566951786025554 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
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 chi-squared distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_chi_squared_log_pdf(5.0, 3.0);
Output
| dist_chi_squared_log_pdf(5.0, 3.0) |
|---|
| -1.8696323888706177 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_mean(5.0);
Output
| dist_chi_squared_mean(5.0) |
|---|
| 5.0 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_median(5.0);
Output
| dist_chi_squared_median(5.0) |
|---|
| 4.351460191095527 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_mode(5.0);
Output
| dist_chi_squared_mode(5.0) |
|---|
| 3.0 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the chi-squared distribution at x.
SELECT dist_chi_squared_pdf(5.0, 3.0);
Output
| dist_chi_squared_pdf(5.0, 3.0) |
|---|
| 0.1541803298037693 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the chi-squared distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_chi_squared_quantile(5.0, 0.95);
Output
| dist_chi_squared_quantile(5.0, 0.95) |
|---|
| 11.070497693516351 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the chi-squared distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_chi_squared_quantile_complement(5.0, 0.95);
Output
| dist_chi_squared_quantile_complement(5.0, 0.95) |
|---|
| 1.1454762260617692 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the chi-squared distribution as [min, max].
SELECT dist_chi_squared_range(5.0);
Output
| dist_chi_squared_range(5.0) |
|---|
| [0.0, inf] |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the chi-squared distribution with the specified parameters.
SELECT dist_chi_squared_sample(5.0);
Output
| dist_chi_squared_sample(5.0) |
|---|
| 12.341329332100447 |
Related functions
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the chi-squared distribution with the specified parameters.
SELECT dist_chi_squared_samples(5.0, 5);
Output
| dist_chi_squared_samples(5.0, 5) |
|---|
| [1.2659149623186383, 5.908196641012602, 3.101849497131723, 2.7179555559874053, 10.65027776643403] |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_skewness(5.0);
Output
| dist_chi_squared_skewness(5.0) |
|---|
| 1.2649110640673518 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_stddev(5.0);
Output
| dist_chi_squared_stddev(5.0) |
|---|
| 3.1622776601683795 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the chi-squared distribution as [min, max].
SELECT dist_chi_squared_support(5.0);
Output
| dist_chi_squared_support(5.0) |
|---|
| [0.0, inf] |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
degrees_of_freedom
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the chi-squared distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_chi_squared_variance(5.0);
Output
| dist_chi_squared_variance(5.0) |
|---|
| 10.0 |
Related functions
- dist_chi_squared_sample() — Generates a random sample from the chi-squared distribution with the specified parameters
- dist_chi_squared_pdf() — Computes the probability density function (PDF) of the chi-squared distribution at x
- dist_chi_squared_cdf() — Computes the cumulative distribution function (CDF) of the chi-squared distribution, P(X <= x)
- dist_chi_squared_quantile() — Computes the quantile function (inverse CDF) of the chi-squared distribution
- dist_chi_squared_mean() — Returns the mean of the chi-squared distribution
- dist_chi_squared_stddev() — Returns the standard deviation of the chi-squared distribution