Negative Binomial functions in the Stochastic DuckDB extension
Function category
Negative Binomial
25 functionsNegative Binomial — number of failures before r successes. Used for over-dispersed count data.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x).
SELECT dist_negative_binomial_cdf(10, 0.5, 5);
Output
| dist_negative_binomial_cdf(10, 0.5, 5) |
|---|
| 0.15087890624999997 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the negative binomial distribution, P(X > x).
SELECT dist_negative_binomial_cdf_complement(10, 0.5, 5);
Output
| dist_negative_binomial_cdf_complement(10, 0.5, 5) |
|---|
| 0.84912109375 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the negative binomial distribution at x.
SELECT dist_negative_binomial_chf(10, 0.5, 5);
Output
| dist_negative_binomial_chf(10, 0.5, 5) |
|---|
| 0.16355347180511537 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a negative binomial distribution to x by maximum likelihood. Returns a STRUCT with the fitted parameters (successes, prob) followed by the log_likelihood, aic and bic of the fit, or NULL when there are too few or only identical values. successes is restricted to whole numbers, as the distribution functions require; cast it to BIGINT to use it. Returns NULL when the variance does not exceed the mean. The whole sample is held in memory.
SELECT dist_negative_binomial_fit(x) AS fit
FROM (VALUES (0), (3), (1), (7), (2), (12), (0), (5), (1), (9)) t(x);
Output
| fit |
|---|
| {'successes': 1.0, 'prob': 0.2, 'log_likelihood': -25.02012117690939, 'aic': 54.04024235381878, 'bic': 54.64541253980688} |
Related functions
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the negative binomial distribution at x.
SELECT dist_negative_binomial_hazard(10, 0.5, 5);
Output
| dist_negative_binomial_hazard(10, 0.5, 5) |
|---|
| 0.07195227142035647 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_kurtosis(10, 0.5);
Output
| dist_negative_binomial_kurtosis(10, 0.5) |
|---|
| 3.65 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_kurtosis_excess(10, 0.5);
Output
| dist_negative_binomial_kurtosis_excess(10, 0.5) |
|---|
| 0.65 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
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 negative binomial distribution.
SELECT dist_negative_binomial_log_cdf(10, 0.5, 5);
Output
| dist_negative_binomial_log_cdf(10, 0.5, 5) |
|---|
| -1.891277709261653 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the negative binomial distribution, log P(X > x).
SELECT dist_negative_binomial_log_cdf_complement(10, 0.5, 5);
Output
| dist_negative_binomial_log_cdf_complement(10, 0.5, 5) |
|---|
| -0.16355347180511537 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the probability mass function (PMF) of the negative binomial distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_negative_binomial_log_pdf(10, 0.5, 5);
Output
| dist_negative_binomial_log_pdf(10, 0.5, 5) |
|---|
| -2.7953057485240147 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the probability mass function (PMF) of the negative binomial distribution at x.
SELECT dist_negative_binomial_log_pmf(10, 0.5, 5);
Output
| dist_negative_binomial_log_pmf(10, 0.5, 5) |
|---|
| -2.7953057485240147 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
- dist_negative_binomial_mean() — Returns the mean of the negative binomial distribution
- dist_negative_binomial_stddev() — Returns the standard deviation of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_mean(10, 0.5);
Output
| dist_negative_binomial_mean(10, 0.5) |
|---|
| 10.0 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
- dist_negative_binomial_stddev() — Returns the standard deviation of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_median(10, 0.5);
Output
| dist_negative_binomial_median(10, 0.5) |
|---|
| 9.0 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_mode(10, 0.5);
Output
| dist_negative_binomial_mode(10, 0.5) |
|---|
| 9.0 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability mass function (PMF) of the negative binomial distribution at x.
SELECT dist_negative_binomial_pdf(10, 0.5, 5);
Output
| dist_negative_binomial_pdf(10, 0.5, 5) |
|---|
| 0.06109619140624995 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability mass function (PMF) of the negative binomial distribution at x, P(X = x).
SELECT dist_negative_binomial_pmf(10, 0.5, 5);
Output
| dist_negative_binomial_pmf(10, 0.5, 5) |
|---|
| 0.06109619140624995 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
- dist_negative_binomial_mean() — Returns the mean of the negative binomial distribution
- dist_negative_binomial_stddev() — Returns the standard deviation of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the negative binomial distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_negative_binomial_quantile(10, 0.5, 0.95);
Output
| dist_negative_binomial_quantile(10, 0.5, 0.95) |
|---|
| 18 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the negative binomial distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_negative_binomial_quantile_complement(10, 0.5, 0.95);
Output
| dist_negative_binomial_quantile_complement(10, 0.5, 0.95) |
|---|
| 4 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the negative binomial distribution as [min, max].
SELECT dist_negative_binomial_range(10, 0.5);
Output
| dist_negative_binomial_range(10, 0.5) |
|---|
| [0.0, inf] |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the negative binomial distribution with the specified parameters.
SELECT dist_negative_binomial_sample(10, 0.5);
Output
| dist_negative_binomial_sample(10, 0.5) |
|---|
| 3 |
Related functions
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the negative binomial distribution with the specified parameters.
SELECT dist_negative_binomial_samples(10, 0.5, 5);
Output
| dist_negative_binomial_samples(10, 0.5, 5) |
|---|
| [7, 9, 17, 10, 9] |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
- dist_negative_binomial_mean() — Returns the mean of the negative binomial distribution
- dist_negative_binomial_stddev() — Returns the standard deviation of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_skewness(10, 0.5);
Output
| dist_negative_binomial_skewness(10, 0.5) |
|---|
| 0.6708203932499369 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_stddev(10, 0.5);
Output
| dist_negative_binomial_stddev(10, 0.5) |
|---|
| 4.47213595499958 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
- dist_negative_binomial_mean() — Returns the mean of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the negative binomial distribution as [min, max].
SELECT dist_negative_binomial_support(10, 0.5);
Output
| dist_negative_binomial_support(10, 0.5) |
|---|
| [0.0, inf] |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
successes
|
Type
BIGINT
|
Mode Positional | Description |
Argument
prob
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the negative binomial distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_negative_binomial_variance(10, 0.5);
Output
| dist_negative_binomial_variance(10, 0.5) |
|---|
| 20.0 |
Related functions
- dist_negative_binomial_sample() — Generates a random sample from the negative binomial distribution with the specified parameters
- dist_negative_binomial_pdf() — Computes the probability mass function (PMF) of the negative binomial distribution at x
- dist_negative_binomial_cdf() — Computes the cumulative distribution function (CDF) of the negative binomial distribution, P(X <= x)
- dist_negative_binomial_quantile() — Computes the quantile function (inverse CDF) of the negative binomial distribution