Poisson functions in the Stochastic DuckDB extension
Function category
Poisson
21 functionsPoisson — count of independent events in fixed interval at rate λ. Arrivals, defects, rare-event counts.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the poisson distribution. Returns the probability that a random variable X is less than or equal to x.
SELECT dist_poisson_cdf(5.0, 3);
Output
| dist_poisson_cdf(5.0, 3) |
|---|
| 0.2650259152973617 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (1 - CDF) of the poisson distribution. Returns the probability that X > x, equivalent to the survival function.
SELECT dist_poisson_cdf_complement(5.0, 3);
Output
| dist_poisson_cdf_complement(5.0, 3) |
|---|
| 0.7349740847026383 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the poisson distribution.
SELECT dist_poisson_chf(5.0, 3);
Output
| dist_poisson_chf(5.0, 3) |
|---|
| 0.30792003929888545 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the poisson distribution.
SELECT dist_poisson_hazard(5.0, 3);
Output
| dist_poisson_hazard(5.0, 3) |
|---|
| 0.1909916264205072 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the poisson distribution.
SELECT dist_poisson_kurtosis(5.0);
Output
| dist_poisson_kurtosis(5.0) |
|---|
| 3.2 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the poisson distribution.
SELECT dist_poisson_kurtosis_excess(5.0);
Output
| dist_poisson_kurtosis_excess(5.0) |
|---|
| 0.2 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
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 poisson distribution. Returns the logarithm of the probability that a random variable X is less than or equal to x.
SELECT dist_poisson_log_cdf(5.0, 3);
Output
| dist_poisson_log_cdf(5.0, 3) |
|---|
| -1.327927664202445 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the poisson distribution. Returns the logarithm of the probability that X > x, equivalent to the survival function.
SELECT dist_poisson_log_cdf_complement(5.0, 3);
Output
| dist_poisson_log_cdf_complement(5.0, 3) |
|---|
| -0.30792003929888545 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the probability density function (log-PDF) of the poisson distribution. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_poisson_log_pdf(5.0, 3);
Output
| dist_poisson_log_pdf(5.0, 3) |
|---|
| -1.963445731925754 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean (μ) of the poisson distribution, which is the first moment.
SELECT dist_poisson_mean(5.0);
Output
| dist_poisson_mean(5.0) |
|---|
| 5.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median (50th percentile) of the poisson distribution, which equals the mean.
SELECT dist_poisson_median(5.0);
Output
| dist_poisson_median(5.0) |
|---|
| 5.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the poisson distribution, which equals the mean.
SELECT dist_poisson_mode(5.0);
Output
| dist_poisson_mode(5.0) |
|---|
| 5.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the poisson distribution. Returns the probability densityat point x for a poisson distribution with specified parameters.
SELECT dist_poisson_pdf(5.0, 3);
Output
| dist_poisson_pdf(5.0, 3) |
|---|
| 0.1403738958142805 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the poisson distribution. Returns the value x such that P(X ≤ x) = p, where p is the cumulative probability.
SELECT dist_poisson_quantile(5.0, 0.95);
Output
| dist_poisson_quantile(5.0, 0.95) |
|---|
| 9.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the poisson distribution. Returns the value x such that P(X > x) = p, useful for computing upper tail quantiles.
SELECT dist_poisson_quantile_complement(5.0, 0.05);
Output
| dist_poisson_quantile_complement(5.0, 0.05) |
|---|
| 9.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the poisson distribution.
SELECT dist_poisson_range(5.0);
Output
| dist_poisson_range(5.0) |
|---|
| (0.0, 1.7976931348623157e+308) |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates random samples from the poisson distribution with specified parameters.
SELECT dist_poisson_sample(5.0);
Output
| dist_poisson_sample(5.0) |
|---|
| 5 |
Related functions
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the poisson distribution.
SELECT dist_poisson_skewness(5.0);
Output
| dist_poisson_skewness(5.0) |
|---|
| 0.4472135954999579 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation (σ) of the poisson distribution.
SELECT dist_poisson_stddev(5.0);
Output
| dist_poisson_stddev(5.0) |
|---|
| 2.23606797749979 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the poisson distribution.
SELECT dist_poisson_support(5.0);
Output
| dist_poisson_support(5.0) |
|---|
| (0.0, 1.7976931348623157e+308) |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
rate
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance (σ²) of the poisson distribution.
SELECT dist_poisson_variance(5.0);
Output
| dist_poisson_variance(5.0) |
|---|
| 5.0 |
Related functions
- dist_poisson_sample() — Generates random samples from the poisson distribution with specified parameters
- dist_poisson_pdf() — Computes the probability density function (PDF) of the poisson distribution
- dist_poisson_cdf() — Computes the cumulative distribution function (CDF) of the poisson distribution
- dist_poisson_quantile() — Computes the quantile function (inverse CDF) of the poisson distribution
- dist_poisson_mean() — Returns the mean (μ) of the poisson distribution, which is the first moment
- dist_poisson_stddev() — Returns the standard deviation (σ) of the poisson distribution