🎲

Stochastic

Monte Carlo, synthetic data, and what-if analysis directly in SQL. 22 named probability distributions, each with the same uniform surface — sample, PDF, CDF, quantile, hazard, plus full distribution properties — for ~444 functions total. Best for ad-hoc statistical work next to warehouse data; for production-grade simulation many users will still want a Python notebook with NumPy and SciPy.

Install

-- Install the extension
INSTALL stochastic FROM community;

-- Load it into your session
LOAD stochastic;

-- Find the 95th percentile of a Normal(0, 1)
SELECT dist_normal_quantile(0.0, 1.0, 0.95) AS p95;

-- 1,000 random draws from N(100, 15)
SELECT dist_normal_sample(100.0, 15.0) AS x
FROM range(1000);

-- P(X ≤ 5 | Binomial(n=10, p=0.3))
SELECT dist_binomial_cdf(10, 0.3, 5) AS prob_at_most_5;

Technical Overview

Why Use Stochastic?

Compute probability distributions directly in DuckDB SQL — PDF, CDF, quantile, hazard, and random sampling for 22 named distributions, all under a uniform dist_<family>_<op> naming scheme. Built for Monte Carlo sketches, what-if analysis, and synthetic data generation without leaving SQL.

🎲 What this extension is for

A complete statistical-distributions library exposed as scalar SQL functions. Best fit: ad-hoc analysis, Monte Carlo sketches, synthetic data, p-values, and inline statistical math next to your warehouse data.

  • Monte Carlo and what-if analysis: Combine sampling functions with range(), aggregate the draws with regular SQL — no Python, no DataFrame round-trip.
  • Synthetic data generation: Populate test fixtures or anonymized columns with realistic distributions in a single CREATE TABLE AS. Mix heights, counts, and wait times from different families in one query.
  • Inline statistical math: Compute Z-scores, p-values, Value at Risk, or Bayesian credible intervals as plain SQL expressions wherever a value is allowed.
  • Distribution properties as functions: Mean, median, variance, skewness, kurtosis, support range — every property is a function (not a constant), so it composes inline.

📐 How it works

The extension wraps the Boost.Math statistical-distributions library — the same battle-tested implementations used across C++ statistics tooling. Each of 22 distributions exposes the same 21-operation surface, generated from a single template.

  • Uniform dist_<family>_<op> naming: Every function is named for its distribution and operation. Operations include sample, pdf, cdf, quantile, hazard, the moments (mean, variance, skewness, kurtosis), and log-scale variants for likelihoods and tail probabilities.
  • Vectorized over columns: All functions are scalar — they run column-at-a-time over DuckDB's columnar engine. A million calls inside a SELECT is one vectorized scan, not a Python loop.
  • Strict parameter validation: Illegal parameters raise a SQL error rather than silently returning NaN, so typos in long pipelines fail fast instead of quietly poisoning downstream values.

🛡️ Scope and honest caveats

A deep distributions library, but intentionally not a full simulation framework.

  • Univariate only: No copula or multivariate-normal sampler. For correlated draws, sample independently and apply a Cholesky-style transform yourself.
  • RNG seeding is not user-controlled: There is no documented per-query seed. For exactly-reproducible runs, generate the draws once into a table and treat that table as the seed.
  • No fitting or inference helpers: One-way: parameters → distribution. No MLE / method-of-moments fitters, no built-in tests. Compute the test statistic in SQL and call the appropriate CDF complement for the p-value.
  • Production simulations may want a notebook: For large-scale agent-based simulation, MCMC, or SciPy-grade fitting, keep a Python notebook. Stochastic shines for analyses that live next to warehouse data.

🎯 Common use cases

Monte Carlo over warehouse data

Wrap sampling functions in a CTE over range(N) and aggregate with SQL — estimate π, integrate a payoff function, run a VaR calculation against live position data, all without leaving the warehouse.

Generate realistic synthetic data

Build a fixture table with one CREATE TABLE AS: heights from a Normal, session counts from a Poisson, conversion flags from a Bernoulli. Hundreds of thousands of rows in one query.

Inline p-values and confidence intervals

Compute a Z-statistic in SQL, then call the Normal CDF complement for the two-sided p-value. Same shape works for chi-squared, t, and other tests — analytics dashboards with first-class statistics.

Bayesian conjugate updates

Beta-Binomial, Gamma-Poisson, Normal-Normal — closed-form posteriors are one quantile call away. Useful for A/B-test dashboards and conversion-rate experiments.

Deep Dive

Technical Details

What you can do with one query

Estimate π with a million-draw Monte Carlo — entirely inside DuckDB, no Python, no NumPy:

WITH samples AS (
  SELECT dist_uniform_real_sample(-1.0, 1.0) AS x,
         dist_uniform_real_sample(-1.0, 1.0) AS y
  FROM range(1000000)
)
SELECT 4.0 * COUNT(*) FILTER (WHERE x*x + y*y <= 1) / COUNT(*) AS pi_estimate
FROM samples;

The same shape — generate, filter, aggregate — handles portfolio VaR, payoff integration, queueing simulation, or generating a million-row synthetic dataset for a load test. Every dist_<family>_sample is a vectorized scalar function, so a million draws is one columnar scan.

Best fit, scoped honestly

This extension is a statistical-distributions library, not a full simulation framework. It covers the 22 most common distributions with the full PDF / CDF / quantile / hazard / sampling / properties surface — built on the Boost.Math distributions library.

What it deliberately doesn’t ship:

  • No copulas / multivariate distributions. The 22 families are univariate; correlated draws need a Cholesky-style transform you write yourself.
  • No user-controlled RNG seed. For exactly-reproducible runs, materialize the draws into a table and treat that as the seed.
  • No fitters or hypothesis-test wrappers. Compute the test statistic in SQL, then call the appropriate _cdf_complement for the p-value.

For production-grade simulation, MCMC, or anything needing SciPy-level fitting, keep a Python notebook with NumPy and SciPy. For quick analysis, what-if exploration, and synthetic data right next to your warehouse data, this is the right tool.

What this extension covers

22 named probability distributions — 16 continuous, 6 discrete — each exposed through the same uniform set of operations:

  • Sampling (_sample) — draw a random value.
  • Density / mass (_pdf, _log_pdf) — point density.
  • Cumulative (_cdf, _log_cdf, _cdf_complement, _log_cdf_complement) — left tail and survival.
  • Quantile (_quantile, _quantile_complement) — inverse CDF.
  • Hazard (_hazard, _chf) — instantaneous and cumulative hazard.
  • Properties (_mean, _median, _mode, _variance, _stddev, _skewness, _kurtosis, _kurtosis_excess, _range, _support).

The same naming scheme across all 22 means once you know one distribution’s surface you know them all. Browse the categories sidebar to jump straight to the distribution you need.

Why DuckDB instead of Python / R / Excel?

  • No data movement. Stats happen where the rows live — no export to NumPy or pandas just to compute a CDF.
  • Vectorized. All functions run column-at-a-time over DuckDB’s columnar engine.
  • SQL composition. Probability calculations chain cleanly with joins, window functions, CTEs, and CTAS.
  • Reproducibility. A WITH clause containing distribution functions is a complete, self-describing analysis you can paste into any DuckDB session.

Parameter validation

Every function validates its parameters and raises a SQL error on illegal inputs — no silent NaN propagation:

SELECT dist_normal_pdf(0.0, -1.0, 0.5);
-- Error: normal: Standard deviation must be > 0 was: -1.000000

SELECT dist_binomial_pdf(10, 1.5, 5);
-- Error: binomial: Probability must be between 0 and 1 was: 1.500000

When to use which family

Pick this when…Reach for
Test scores, measurement noise, anything CLT-flavouredNormal
Small-sample inference (df ≤ 30)Student’s t
Counts of independent events at a ratePoisson
Yes/no per-trial outcomesBernoulli, Binomial
Time between events / time-to-failureExponential, Weibull
Heavy-tailed wealth or file-size dataPareto, Cauchy, Log-normal
Bayesian priors over probabilitiesBeta
Ratios of variances (ANOVA / regression)Fisher F
Goodness-of-fit, variance testsChi-squared
Block maxima / rare-event tailsExtreme Value
Robust regression / sparse priorsLaplace
Inverse-transform sampling, dice, random indexUniform (Real), Uniform (Integer)

Reference

Extension Contents

Quick reference to all available functions and settings organized by category.

Name Description
Bernoulli

Bernoulli — single yes/no trial with success probability p. Foundation of every binary outcome model.

dist_bernoulli_cdf() Computes the cumulative distribution function (CDF) of the bernoulli distribution
dist_bernoulli_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the bernoulli distribution
dist_bernoulli_chf() Computes the cumulative hazard function of the bernoulli distribution
dist_bernoulli_hazard() Computes the hazard function of the bernoulli distribution
dist_bernoulli_kurtosis() Returns the kurtosis of the bernoulli distribution
dist_bernoulli_kurtosis_excess() Returns the excess kurtosis of the bernoulli distribution
dist_bernoulli_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the bernoulli distribution
dist_bernoulli_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the bernoulli distribution
dist_bernoulli_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the bernoulli distribution
dist_bernoulli_mean() Returns the mean (μ) of the bernoulli distribution, which is the first moment
dist_bernoulli_median() Returns the median (50th percentile) of the bernoulli distribution, which equals the mean
dist_bernoulli_mode() Returns the mode (most likely value) of the bernoulli distribution, which equals the mean
dist_bernoulli_pdf() Computes the probability density function (PDF) of the bernoulli distribution
dist_bernoulli_quantile() Computes the quantile function (inverse CDF) of the bernoulli distribution
dist_bernoulli_quantile_complement() Computes the complementary quantile function of the bernoulli distribution
dist_bernoulli_range() Returns the range of the bernoulli distribution
dist_bernoulli_sample() Generates random samples from the bernoulli distribution with specified parameters
dist_bernoulli_skewness() Returns the skewness of the bernoulli distribution
dist_bernoulli_stddev() Returns the standard deviation (σ) of the bernoulli distribution
dist_bernoulli_support() Returns the support of the bernoulli distribution
dist_bernoulli_variance() Returns the variance (σ²) of the bernoulli distribution
Beta

Beta distribution on [0,1] — shape parameters α, β. Common for Bayesian priors over probabilities and modeling proportions.

dist_beta_cdf() Computes the cumulative distribution function (CDF) of the beta distribution
dist_beta_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the beta distribution
dist_beta_chf() Computes the cumulative hazard function of the beta distribution
dist_beta_hazard() Computes the hazard function of the beta distribution
dist_beta_kurtosis() Returns the kurtosis of the beta distribution
dist_beta_kurtosis_excess() Returns the excess kurtosis of the beta distribution
dist_beta_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the beta distribution
dist_beta_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the beta distribution
dist_beta_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the beta distribution
dist_beta_mean() Returns the mean (μ) of the beta distribution, which is the first moment
dist_beta_median() Returns the median (50th percentile) of the beta distribution, which equals the mean
dist_beta_mode() Returns the mode (most likely value) of the beta distribution, which equals the mean
dist_beta_pdf() Computes the probability density function (PDF) of the beta distribution
dist_beta_quantile() Computes the quantile function (inverse CDF) of the beta distribution
dist_beta_quantile_complement() Computes the complementary quantile function of the beta distribution
dist_beta_range() Returns the range of the beta distribution
dist_beta_sample() Generates random samples from the beta distribution with specified parameters
dist_beta_skewness() Returns the skewness of the beta distribution
dist_beta_stddev() Returns the standard deviation (σ) of the beta distribution
dist_beta_support() Returns the support of the beta distribution
dist_beta_variance() Returns the variance (σ²) of the beta distribution
Binomial

Binomial — number of successes in n independent Bernoulli trials at probability p.

dist_binomial_cdf() Computes the cumulative distribution function (CDF) of the binomial distribution
dist_binomial_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the binomial distribution
dist_binomial_chf() Computes the cumulative hazard function of the binomial distribution
dist_binomial_hazard() Computes the hazard function of the binomial distribution
dist_binomial_kurtosis() Returns the kurtosis of the binomial distribution
dist_binomial_kurtosis_excess() Returns the excess kurtosis of the binomial distribution
dist_binomial_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the binomial distribution
dist_binomial_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the binomial distribution
dist_binomial_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the binomial distribution
dist_binomial_median() Returns the median (50th percentile) of the binomial distribution, which equals the mean
dist_binomial_mode() Returns the mode (most likely value) of the binomial distribution, which equals the mean
dist_binomial_pdf() Computes the probability density function (PDF) of the binomial distribution
dist_binomial_quantile() Computes the quantile function (inverse CDF) of the binomial distribution
dist_binomial_quantile_complement() Computes the complementary quantile function of the binomial distribution
dist_binomial_range() Returns the range of the binomial distribution
dist_binomial_sample() Generates random samples from the binomial distribution with specified parameters
dist_binomial_skewness() Returns the skewness of the binomial distribution
dist_binomial_support() Returns the support of the binomial distribution
dist_binomial_variance() Returns the variance (σ²) of the binomial distribution
Cauchy

Cauchy distribution — heavy-tailed location/scale family with no defined mean. Used in robust statistics and physics.

dist_cauchy_cdf() Computes the cumulative distribution function (CDF) of the cauchy distribution
dist_cauchy_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the cauchy distribution
dist_cauchy_chf() Computes the cumulative hazard function of the cauchy distribution
dist_cauchy_hazard() Computes the hazard function of the cauchy distribution
dist_cauchy_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the cauchy distribution
dist_cauchy_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the cauchy distribution
dist_cauchy_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the cauchy distribution
dist_cauchy_median() Returns the median (50th percentile) of the cauchy distribution, which equals the mean
dist_cauchy_mode() Returns the mode (most likely value) of the cauchy distribution, which equals the mean
dist_cauchy_pdf() Computes the probability density function (PDF) of the cauchy distribution
dist_cauchy_quantile() Computes the quantile function (inverse CDF) of the cauchy distribution
dist_cauchy_quantile_complement() Computes the complementary quantile function of the cauchy distribution
dist_cauchy_range() Returns the range of the cauchy distribution
dist_cauchy_sample() Generates random samples from the cauchy distribution with specified parameters
dist_cauchy_support() Returns the support of the cauchy distribution
Chi-squared

Chi-squared distribution — sum of k squared standard normals. Used in goodness-of-fit and variance tests.

dist_chi_squared_cdf() Computes the cumulative distribution function (CDF) of the chi_squared distribution
dist_chi_squared_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the chi_squared distribution
dist_chi_squared_chf() Computes the cumulative hazard function of the chi_squared distribution
dist_chi_squared_hazard() Computes the hazard function of the chi_squared distribution
dist_chi_squared_kurtosis() Returns the kurtosis of the chi_squared distribution
dist_chi_squared_kurtosis_excess() Returns the excess kurtosis of the chi_squared distribution
dist_chi_squared_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the chi_squared distribution
dist_chi_squared_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the chi_squared distribution
dist_chi_squared_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the chi_squared distribution
dist_chi_squared_mean() Returns the mean (μ) of the chi_squared distribution, which is the first moment
dist_chi_squared_median() Returns the median (50th percentile) of the chi_squared distribution, which equals the mean
dist_chi_squared_mode() Returns the mode (most likely value) of the chi_squared distribution, which equals the mean
dist_chi_squared_pdf() Computes the probability density function (PDF) of the chi_squared distribution
dist_chi_squared_quantile() Computes the quantile function (inverse CDF) of the chi_squared distribution
dist_chi_squared_quantile_complement() Computes the complementary quantile function of the chi_squared distribution
dist_chi_squared_range() Returns the range of the chi_squared distribution
dist_chi_squared_sample() Generates random samples from the chi_squared distribution with specified parameters
dist_chi_squared_skewness() Returns the skewness of the chi_squared distribution
dist_chi_squared_stddev() Returns the standard deviation (σ) of the chi_squared distribution
dist_chi_squared_support() Returns the support of the chi_squared distribution
dist_chi_squared_variance() Returns the variance (σ²) of the chi_squared distribution
Exponential

Exponential distribution — memoryless waiting time between events at rate λ. Survival analysis and reliability.

dist_exponential_cdf() Computes the cumulative distribution function (CDF) of the exponential distribution
dist_exponential_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the exponential distribution
dist_exponential_chf() Computes the cumulative hazard function of the exponential distribution
dist_exponential_hazard() Computes the hazard function of the exponential distribution
dist_exponential_kurtosis() Returns the kurtosis of the exponential distribution
dist_exponential_kurtosis_excess() Returns the excess kurtosis of the exponential distribution
dist_exponential_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the exponential distribution
dist_exponential_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the exponential distribution
dist_exponential_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the exponential distribution
dist_exponential_mean() Returns the mean (μ) of the exponential distribution, which is the first moment
dist_exponential_median() Returns the median (50th percentile) of the exponential distribution, which equals the mean
dist_exponential_mode() Returns the mode (most likely value) of the exponential distribution, which equals the mean
dist_exponential_pdf() Computes the probability density function (PDF) of the exponential distribution
dist_exponential_quantile() Computes the quantile function (inverse CDF) of the exponential distribution
dist_exponential_quantile_complement() Computes the complementary quantile function of the exponential distribution
dist_exponential_range() Returns the range of the exponential distribution
dist_exponential_sample() Generates random samples from the exponential distribution with specified parameters
dist_exponential_skewness() Returns the skewness of the exponential distribution
dist_exponential_stddev() Returns the standard deviation (σ) of the exponential distribution
dist_exponential_support() Returns the support of the exponential distribution
dist_exponential_variance() Returns the variance (σ²) of the exponential distribution
Extreme Value

Generalized extreme-value (Gumbel) — block-maxima of i.i.d. samples. Used in hydrology, insurance, climate.

dist_extreme_value_cdf() Computes the cumulative distribution function (CDF) of the extreme_value distribution
dist_extreme_value_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the extreme_value distribution
dist_extreme_value_chf() Computes the cumulative hazard function of the extreme_value distribution
dist_extreme_value_hazard() Computes the hazard function of the extreme_value distribution
dist_extreme_value_kurtosis() Returns the kurtosis of the extreme_value distribution
dist_extreme_value_kurtosis_excess() Returns the excess kurtosis of the extreme_value distribution
dist_extreme_value_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the extreme_value distribution
dist_extreme_value_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the extreme_value distribution
dist_extreme_value_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the extreme_value distribution
dist_extreme_value_median() Returns the median (50th percentile) of the extreme_value distribution, which equals the mean
dist_extreme_value_mode() Returns the mode (most likely value) of the extreme_value distribution, which equals the mean
dist_extreme_value_pdf() Computes the probability density function (PDF) of the extreme_value distribution
dist_extreme_value_quantile() Computes the quantile function (inverse CDF) of the extreme_value distribution
dist_extreme_value_quantile_complement() Computes the complementary quantile function of the extreme_value distribution
dist_extreme_value_range() Returns the range of the extreme_value distribution
dist_extreme_value_sample() Generates random samples from the extreme_value distribution with specified parameters
dist_extreme_value_skewness() Returns the skewness of the extreme_value distribution
dist_extreme_value_support() Returns the support of the extreme_value distribution
dist_extreme_value_variance() Returns the variance (σ²) of the extreme_value distribution
Fisher F

F distribution — ratio of two scaled chi-squared variates. Backbone of ANOVA and regression hypothesis tests.

dist_fisher_f_cdf() Computes the cumulative distribution function (CDF) of the fisher_f distribution
dist_fisher_f_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the fisher_f distribution
dist_fisher_f_chf() Computes the cumulative hazard function of the fisher_f distribution
dist_fisher_f_hazard() Computes the hazard function of the fisher_f distribution
dist_fisher_f_kurtosis() Returns the kurtosis of the fisher_f distribution
dist_fisher_f_kurtosis_excess() Returns the excess kurtosis of the fisher_f distribution
dist_fisher_f_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the fisher_f distribution
dist_fisher_f_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the fisher_f distribution
dist_fisher_f_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the fisher_f distribution
dist_fisher_f_median() Returns the median (50th percentile) of the fisher_f distribution, which equals the mean
dist_fisher_f_mode() Returns the mode (most likely value) of the fisher_f distribution, which equals the mean
dist_fisher_f_pdf() Computes the probability density function (PDF) of the fisher_f distribution
dist_fisher_f_quantile() Computes the quantile function (inverse CDF) of the fisher_f distribution
dist_fisher_f_quantile_complement() Computes the complementary quantile function of the fisher_f distribution
dist_fisher_f_range() Returns the range of the fisher_f distribution
dist_fisher_f_sample() Generates random samples from the fisher_f distribution with specified parameters
dist_fisher_f_skewness() Returns the skewness of the fisher_f distribution
dist_fisher_f_support() Returns the support of the fisher_f distribution
dist_fisher_f_variance() Returns the variance (σ²) of the fisher_f distribution
Gamma

Gamma distribution — shape/scale family. Waiting times for k events at constant rate; flexible right-skewed prior.

dist_gamma_cdf() Computes the cumulative distribution function (CDF) of the gamma distribution
dist_gamma_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the gamma distribution
dist_gamma_chf() Computes the cumulative hazard function of the gamma distribution
dist_gamma_hazard() Computes the hazard function of the gamma distribution
dist_gamma_kurtosis() Returns the kurtosis of the gamma distribution
dist_gamma_kurtosis_excess() Returns the excess kurtosis of the gamma distribution
dist_gamma_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the gamma distribution
dist_gamma_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the gamma distribution
dist_gamma_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the gamma distribution
dist_gamma_mean() Returns the mean (μ) of the gamma distribution, which is the first moment
dist_gamma_median() Returns the median (50th percentile) of the gamma distribution, which equals the mean
dist_gamma_mode() Returns the mode (most likely value) of the gamma distribution, which equals the mean
dist_gamma_pdf() Computes the probability density function (PDF) of the gamma distribution
dist_gamma_quantile() Computes the quantile function (inverse CDF) of the gamma distribution
dist_gamma_quantile_complement() Computes the complementary quantile function of the gamma distribution
dist_gamma_range() Returns the range of the gamma distribution
dist_gamma_sample() Generates random samples from the gamma distribution with specified parameters
dist_gamma_skewness() Returns the skewness of the gamma distribution
dist_gamma_stddev() Returns the standard deviation (σ) of the gamma distribution
dist_gamma_support() Returns the support of the gamma distribution
dist_gamma_variance() Returns the variance (σ²) of the gamma distribution
Geometric

Geometric — number of failures before the first success in a Bernoulli trial sequence.

dist_geometric_cdf() Computes the cumulative distribution function (CDF) of the geometric distribution
dist_geometric_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the geometric distribution
dist_geometric_chf() Computes the cumulative hazard function of the geometric distribution
dist_geometric_hazard() Computes the hazard function of the geometric distribution
dist_geometric_kurtosis() Returns the kurtosis of the geometric distribution
dist_geometric_kurtosis_excess() Returns the excess kurtosis of the geometric distribution
dist_geometric_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the geometric distribution
dist_geometric_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the geometric distribution
dist_geometric_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the geometric distribution
dist_geometric_mean() Returns the mean (μ) of the geometric distribution, which is the first moment
dist_geometric_median() Returns the median (50th percentile) of the geometric distribution, which equals the mean
dist_geometric_mode() Returns the mode (most likely value) of the geometric distribution, which equals the mean
dist_geometric_pdf() Computes the probability density function (PDF) of the geometric distribution
dist_geometric_quantile() Computes the quantile function (inverse CDF) of the geometric distribution
dist_geometric_quantile_complement() Computes the complementary quantile function of the geometric distribution
dist_geometric_range() Returns the range of the geometric distribution
dist_geometric_sample() Generates random samples from the geometric distribution with specified parameters
dist_geometric_skewness() Returns the skewness of the geometric distribution
dist_geometric_stddev() Returns the standard deviation (σ) of the geometric distribution
dist_geometric_support() Returns the support of the geometric distribution
dist_geometric_variance() Returns the variance (σ²) of the geometric distribution
Laplace

Laplace (double exponential) — location/scale. Heavier tails than Normal; used in regularized regression and noise modeling.

dist_laplace_cdf() Computes the cumulative distribution function (CDF) of the laplace distribution
dist_laplace_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the laplace distribution
dist_laplace_chf() Computes the cumulative hazard function of the laplace distribution
dist_laplace_hazard() Computes the hazard function of the laplace distribution
dist_laplace_kurtosis() Returns the kurtosis of the laplace distribution
dist_laplace_kurtosis_excess() Returns the excess kurtosis of the laplace distribution
dist_laplace_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the laplace distribution
dist_laplace_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the laplace distribution
dist_laplace_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the laplace distribution
dist_laplace_mean() Returns the mean (μ) of the laplace distribution, which is the first moment
dist_laplace_median() Returns the median (50th percentile) of the laplace distribution, which equals the mean
dist_laplace_mode() Returns the mode (most likely value) of the laplace distribution, which equals the mean
dist_laplace_pdf() Computes the probability density function (PDF) of the laplace distribution
dist_laplace_quantile() Computes the quantile function (inverse CDF) of the laplace distribution
dist_laplace_quantile_complement() Computes the complementary quantile function of the laplace distribution
dist_laplace_range() Returns the range of the laplace distribution
dist_laplace_sample() Generates random samples from the laplace distribution with specified parameters
dist_laplace_skewness() Returns the skewness of the laplace distribution
dist_laplace_stddev() Returns the standard deviation (σ) of the laplace distribution
dist_laplace_support() Returns the support of the laplace distribution
dist_laplace_variance() Returns the variance (σ²) of the laplace distribution
Log-normal

Log-normal — exp of a Normal. Models multiplicative growth, income, lifetimes; right-skewed with heavy tail.

dist_lognormal_cdf() Computes the cumulative distribution function (CDF) of the lognormal distribution
dist_lognormal_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the lognormal distribution
dist_lognormal_chf() Computes the cumulative hazard function of the lognormal distribution
dist_lognormal_hazard() Computes the hazard function of the lognormal distribution
dist_lognormal_kurtosis() Returns the kurtosis of the lognormal distribution
dist_lognormal_kurtosis_excess() Returns the excess kurtosis of the lognormal distribution
dist_lognormal_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the lognormal distribution
dist_lognormal_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the lognormal distribution
dist_lognormal_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the lognormal distribution
dist_lognormal_mean() Returns the mean (μ) of the lognormal distribution, which is the first moment
dist_lognormal_median() Returns the median (50th percentile) of the lognormal distribution, which equals the mean
dist_lognormal_mode() Returns the mode (most likely value) of the lognormal distribution, which equals the mean
dist_lognormal_pdf() Computes the probability density function (PDF) of the lognormal distribution
dist_lognormal_quantile() Computes the quantile function (inverse CDF) of the lognormal distribution
dist_lognormal_quantile_complement() Computes the complementary quantile function of the lognormal distribution
dist_lognormal_range() Returns the range of the lognormal distribution
dist_lognormal_sample() Generates random samples from the lognormal distribution with specified parameters
dist_lognormal_skewness() Returns the skewness of the lognormal distribution
dist_lognormal_stddev() Returns the standard deviation (σ) of the lognormal distribution
dist_lognormal_support() Returns the support of the lognormal distribution
dist_lognormal_variance() Returns the variance (σ²) of the lognormal distribution
Logistic

Logistic distribution — symmetric S-curve via location/scale. Backbone of logistic regression and Elo-style ratings.

dist_logistic_cdf() Computes the cumulative distribution function (CDF) of the logistic distribution
dist_logistic_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the logistic distribution
dist_logistic_chf() Computes the cumulative hazard function of the logistic distribution
dist_logistic_hazard() Computes the hazard function of the logistic distribution
dist_logistic_kurtosis() Returns the kurtosis of the logistic distribution
dist_logistic_kurtosis_excess() Returns the excess kurtosis of the logistic distribution
dist_logistic_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the logistic distribution
dist_logistic_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the logistic distribution
dist_logistic_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the logistic distribution
dist_logistic_median() Returns the median (50th percentile) of the logistic distribution, which equals the mean
dist_logistic_mode() Returns the mode (most likely value) of the logistic distribution, which equals the mean
dist_logistic_pdf() Computes the probability density function (PDF) of the logistic distribution
dist_logistic_quantile() Computes the quantile function (inverse CDF) of the logistic distribution
dist_logistic_quantile_complement() Computes the complementary quantile function of the logistic distribution
dist_logistic_range() Returns the range of the logistic distribution
dist_logistic_sample() Generates random samples from the logistic distribution with specified parameters
dist_logistic_skewness() Returns the skewness of the logistic distribution
dist_logistic_support() Returns the support of the logistic distribution
dist_logistic_variance() Returns the variance (σ²) of the logistic distribution
Negative Binomial

Negative Binomial — number of failures before r successes. Used for over-dispersed count data.

dist_negative_binomial_cdf() Computes the cumulative distribution function (CDF) of the negative_binomial distribution
dist_negative_binomial_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the negative_binomial distribution
dist_negative_binomial_chf() Computes the cumulative hazard function of the negative_binomial distribution
dist_negative_binomial_hazard() Computes the hazard function of the negative_binomial distribution
dist_negative_binomial_kurtosis() Returns the kurtosis of the negative_binomial distribution
dist_negative_binomial_kurtosis_excess() Returns the excess kurtosis of the negative_binomial distribution
dist_negative_binomial_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the negative_binomial distribution
dist_negative_binomial_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the negative_binomial distribution
dist_negative_binomial_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the negative_binomial distribution
dist_negative_binomial_median() Returns the median (50th percentile) of the negative_binomial distribution, which equals the mean
dist_negative_binomial_mode() Returns the mode (most likely value) of the negative_binomial distribution, which equals the mean
dist_negative_binomial_pdf() Computes the probability density function (PDF) of the negative_binomial distribution
dist_negative_binomial_quantile() Computes the quantile function (inverse CDF) of the negative_binomial distribution
dist_negative_binomial_quantile_complement() Computes the complementary quantile function of the negative_binomial distribution
dist_negative_binomial_range() Returns the range of the negative_binomial distribution
dist_negative_binomial_sample() Generates random samples from the negative_binomial distribution with specified parameters
dist_negative_binomial_skewness() Returns the skewness of the negative_binomial distribution
dist_negative_binomial_support() Returns the support of the negative_binomial distribution
dist_negative_binomial_variance() Returns the variance (σ²) of the negative_binomial distribution
Normal

Normal (Gaussian) — the workhorse continuous distribution. Z-scores, confidence intervals, central limit applications.

dist_normal_cdf() Computes the cumulative distribution function (CDF) of the normal distribution
dist_normal_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the normal distribution
dist_normal_chf() Computes the cumulative hazard function of the normal distribution
dist_normal_hazard() Computes the hazard function of the normal distribution
dist_normal_kurtosis() Returns the kurtosis of the normal distribution
dist_normal_kurtosis_excess() Returns the excess kurtosis of the normal distribution
dist_normal_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the normal distribution
dist_normal_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the normal distribution
dist_normal_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the normal distribution
dist_normal_mean() Returns the mean (μ) of the normal distribution, which is the first moment
dist_normal_median() Returns the median (50th percentile) of the normal distribution, which equals the mean
dist_normal_mode() Returns the mode (most likely value) of the normal distribution, which equals the mean
dist_normal_pdf() Computes the probability density function (PDF) of the normal distribution
dist_normal_quantile() Computes the quantile function (inverse CDF) of the normal distribution
dist_normal_quantile_complement() Computes the complementary quantile function of the normal distribution
dist_normal_range() Returns the range of the normal distribution
dist_normal_sample() Generates random samples from the normal distribution with specified parameters
dist_normal_skewness() Returns the skewness of the normal distribution
dist_normal_stddev() Returns the standard deviation (σ) of the normal distribution
dist_normal_support() Returns the support of the normal distribution
dist_normal_variance() Returns the variance (σ²) of the normal distribution
Pareto

Pareto distribution — power-law tail with scale and shape. Wealth, file sizes, internet traffic; the 80/20 rule.

dist_pareto_cdf() Computes the cumulative distribution function (CDF) of the pareto distribution
dist_pareto_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the pareto distribution
dist_pareto_chf() Computes the cumulative hazard function of the pareto distribution
dist_pareto_hazard() Computes the hazard function of the pareto distribution
dist_pareto_kurtosis() Returns the kurtosis of the pareto distribution
dist_pareto_kurtosis_excess() Returns the excess kurtosis of the pareto distribution
dist_pareto_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the pareto distribution
dist_pareto_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the pareto distribution
dist_pareto_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the pareto distribution
dist_pareto_mean() Returns the mean (μ) of the pareto distribution, which is the first moment
dist_pareto_median() Returns the median (50th percentile) of the pareto distribution, which equals the mean
dist_pareto_mode() Returns the mode (most likely value) of the pareto distribution, which equals the mean
dist_pareto_pdf() Computes the probability density function (PDF) of the pareto distribution
dist_pareto_quantile() Computes the quantile function (inverse CDF) of the pareto distribution
dist_pareto_quantile_complement() Computes the complementary quantile function of the pareto distribution
dist_pareto_range() Returns the range of the pareto distribution
dist_pareto_sample() Generates random samples from the pareto distribution with specified parameters
dist_pareto_skewness() Returns the skewness of the pareto distribution
dist_pareto_stddev() Returns the standard deviation (σ) of the pareto distribution
dist_pareto_support() Returns the support of the pareto distribution
dist_pareto_variance() Returns the variance (σ²) of the pareto distribution
Poisson

Poisson — count of independent events in fixed interval at rate λ. Arrivals, defects, rare-event counts.

dist_poisson_cdf() Computes the cumulative distribution function (CDF) of the poisson distribution
dist_poisson_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the poisson distribution
dist_poisson_chf() Computes the cumulative hazard function of the poisson distribution
dist_poisson_hazard() Computes the hazard function of the poisson distribution
dist_poisson_kurtosis() Returns the kurtosis of the poisson distribution
dist_poisson_kurtosis_excess() Returns the excess kurtosis of the poisson distribution
dist_poisson_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the poisson distribution
dist_poisson_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the poisson distribution
dist_poisson_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the poisson distribution
dist_poisson_mean() Returns the mean (μ) of the poisson distribution, which is the first moment
dist_poisson_median() Returns the median (50th percentile) of the poisson distribution, which equals the mean
dist_poisson_mode() Returns the mode (most likely value) of the poisson distribution, which equals the mean
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_quantile_complement() Computes the complementary quantile function of the poisson distribution
dist_poisson_range() Returns the range of the poisson distribution
dist_poisson_sample() Generates random samples from the poisson distribution with specified parameters
dist_poisson_skewness() Returns the skewness of the poisson distribution
dist_poisson_stddev() Returns the standard deviation (σ) of the poisson distribution
dist_poisson_support() Returns the support of the poisson distribution
dist_poisson_variance() Returns the variance (σ²) of the poisson distribution
Rayleigh

Rayleigh distribution — magnitude of a 2D vector with i.i.d. Normal components. Wind speed, signal envelopes.

dist_rayleigh_cdf() Computes the cumulative distribution function (CDF) of the rayleigh distribution
dist_rayleigh_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the rayleigh distribution
dist_rayleigh_chf() Computes the cumulative hazard function of the rayleigh distribution
dist_rayleigh_hazard() Computes the hazard function of the rayleigh distribution
dist_rayleigh_kurtosis() Returns the kurtosis of the rayleigh distribution
dist_rayleigh_kurtosis_excess() Returns the excess kurtosis of the rayleigh distribution
dist_rayleigh_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the rayleigh distribution
dist_rayleigh_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the rayleigh distribution
dist_rayleigh_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the rayleigh distribution
dist_rayleigh_mean() Returns the mean (μ) of the rayleigh distribution, which is the first moment
dist_rayleigh_median() Returns the median (50th percentile) of the rayleigh distribution, which equals the mean
dist_rayleigh_mode() Returns the mode (most likely value) of the rayleigh distribution, which equals the mean
dist_rayleigh_pdf() Computes the probability density function (PDF) of the rayleigh distribution
dist_rayleigh_quantile() Computes the quantile function (inverse CDF) of the rayleigh distribution
dist_rayleigh_quantile_complement() Computes the complementary quantile function of the rayleigh distribution
dist_rayleigh_range() Returns the range of the rayleigh distribution
dist_rayleigh_sample() Generates random samples from the rayleigh distribution with specified parameters
dist_rayleigh_skewness() Returns the skewness of the rayleigh distribution
dist_rayleigh_stddev() Returns the standard deviation (σ) of the rayleigh distribution
dist_rayleigh_support() Returns the support of the rayleigh distribution
dist_rayleigh_variance() Returns the variance (σ²) of the rayleigh distribution
Student's t

Student's t — heavier-tailed alternative to Normal, parameterized by degrees of freedom. Small-sample inference.

dist_students_t_cdf() Computes the cumulative distribution function (CDF) of the students_t distribution
dist_students_t_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the students_t distribution
dist_students_t_chf() Computes the cumulative hazard function of the students_t distribution
dist_students_t_hazard() Computes the hazard function of the students_t distribution
dist_students_t_kurtosis() Returns the kurtosis of the students_t distribution
dist_students_t_kurtosis_excess() Returns the excess kurtosis of the students_t distribution
dist_students_t_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the students_t distribution
dist_students_t_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the students_t distribution
dist_students_t_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the students_t distribution
dist_students_t_mean() Returns the mean (μ) of the students_t distribution, which is the first moment
dist_students_t_median() Returns the median (50th percentile) of the students_t distribution, which equals the mean
dist_students_t_mode() Returns the mode (most likely value) of the students_t distribution, which equals the mean
dist_students_t_pdf() Computes the probability density function (PDF) of the students_t distribution
dist_students_t_quantile() Computes the quantile function (inverse CDF) of the students_t distribution
dist_students_t_quantile_complement() Computes the complementary quantile function of the students_t distribution
dist_students_t_range() Returns the range of the students_t distribution
dist_students_t_sample() Generates random samples from the students_t distribution with specified parameters
dist_students_t_skewness() Returns the skewness of the students_t distribution
dist_students_t_stddev() Returns the standard deviation (σ) of the students_t distribution
dist_students_t_support() Returns the support of the students_t distribution
dist_students_t_variance() Returns the variance (σ²) of the students_t distribution
Uniform (Integer)

Discrete uniform — every integer in [min, max] equally likely. Random index sampling, dice rolls.

dist_uniform_int_cdf() Computes the cumulative distribution function (CDF) of the uniform_int distribution
dist_uniform_int_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the uniform_int distribution
dist_uniform_int_chf() Computes the cumulative hazard function of the uniform_int distribution
dist_uniform_int_hazard() Computes the hazard function of the uniform_int distribution
dist_uniform_int_kurtosis() Returns the kurtosis of the uniform_int distribution
dist_uniform_int_kurtosis_excess() Returns the excess kurtosis of the uniform_int distribution
dist_uniform_int_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the uniform_int distribution
dist_uniform_int_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the uniform_int distribution
dist_uniform_int_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the uniform_int distribution
dist_uniform_int_mean() Returns the mean (μ) of the uniform_int distribution, which is the first moment
dist_uniform_int_median() Returns the median (50th percentile) of the uniform_int distribution, which equals the mean
dist_uniform_int_mode() Returns the mode (most likely value) of the uniform_int distribution, which equals the mean
dist_uniform_int_pdf() Computes the probability density function (PDF) of the uniform_int distribution
dist_uniform_int_quantile() Computes the quantile function (inverse CDF) of the uniform_int distribution
dist_uniform_int_quantile_complement() Computes the complementary quantile function of the uniform_int distribution
dist_uniform_int_range() Returns the range of the uniform_int distribution
dist_uniform_int_sample() Generates random samples from the uniform_int distribution with specified parameters
dist_uniform_int_skewness() Returns the skewness of the uniform_int distribution
dist_uniform_int_stddev() Returns the standard deviation (σ) of the uniform_int distribution
dist_uniform_int_support() Returns the support of the uniform_int distribution
dist_uniform_int_variance() Returns the variance (σ²) of the uniform_int distribution
Uniform (Real)

Continuous uniform on [min, max]. The default sampling distribution and a building block for inverse-transform sampling.

dist_uniform_real_cdf() Computes the cumulative distribution function (CDF) of the uniform_real distribution
dist_uniform_real_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the uniform_real distribution
dist_uniform_real_chf() Computes the cumulative hazard function of the uniform_real distribution
dist_uniform_real_hazard() Computes the hazard function of the uniform_real distribution
dist_uniform_real_kurtosis() Returns the kurtosis of the uniform_real distribution
dist_uniform_real_kurtosis_excess() Returns the excess kurtosis of the uniform_real distribution
dist_uniform_real_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the uniform_real distribution
dist_uniform_real_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the uniform_real distribution
dist_uniform_real_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the uniform_real distribution
dist_uniform_real_mean() Returns the mean (μ) of the uniform_real distribution, which is the first moment
dist_uniform_real_median() Returns the median (50th percentile) of the uniform_real distribution, which equals the mean
dist_uniform_real_mode() Returns the mode (most likely value) of the uniform_real distribution, which equals the mean
dist_uniform_real_pdf() Computes the probability density function (PDF) of the uniform_real distribution
dist_uniform_real_quantile() Computes the quantile function (inverse CDF) of the uniform_real distribution
dist_uniform_real_quantile_complement() Computes the complementary quantile function of the uniform_real distribution
dist_uniform_real_range() Returns the range of the uniform_real distribution
dist_uniform_real_sample() Generates random samples from the uniform_real distribution with specified parameters
dist_uniform_real_skewness() Returns the skewness of the uniform_real distribution
dist_uniform_real_stddev() Returns the standard deviation (σ) of the uniform_real distribution
dist_uniform_real_support() Returns the support of the uniform_real distribution
dist_uniform_real_variance() Returns the variance (σ²) of the uniform_real distribution
Weibull

Weibull distribution — flexible shape/scale. Reliability engineering, time-to-failure, wind-speed modeling.

dist_weibull_cdf() Computes the cumulative distribution function (CDF) of the weibull distribution
dist_weibull_cdf_complement() Computes the complementary cumulative distribution function (1 - CDF) of the weibull distribution
dist_weibull_chf() Computes the cumulative hazard function of the weibull distribution
dist_weibull_hazard() Computes the hazard function of the weibull distribution
dist_weibull_kurtosis() Returns the kurtosis of the weibull distribution
dist_weibull_kurtosis_excess() Returns the excess kurtosis of the weibull distribution
dist_weibull_log_cdf() Computes the natural logarithm of the cumulative distribution function (CDF) of the weibull distribution
dist_weibull_log_cdf_complement() Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the weibull distribution
dist_weibull_log_pdf() Computes the natural logarithm of the probability density function (log-PDF) of the weibull distribution
dist_weibull_median() Returns the median (50th percentile) of the weibull distribution, which equals the mean
dist_weibull_mode() Returns the mode (most likely value) of the weibull distribution, which equals the mean
dist_weibull_pdf() Computes the probability density function (PDF) of the weibull distribution
dist_weibull_quantile() Computes the quantile function (inverse CDF) of the weibull distribution
dist_weibull_quantile_complement() Computes the complementary quantile function of the weibull distribution
dist_weibull_range() Returns the range of the weibull distribution
dist_weibull_sample() Generates random samples from the weibull distribution with specified parameters
dist_weibull_skewness() Returns the skewness of the weibull distribution
dist_weibull_support() Returns the support of the weibull distribution
dist_weibull_variance() Returns the variance (σ²) of the weibull distribution

API Reference

Function Documentation

Detailed documentation for each function including signatures, parameters, and examples.

dist_bernoulli_cdf

Scalar Function Bernoulli
Signature
dist_bernoulli_cdf(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the cumulative distribution function (CDF) of the bernoulli distribution. Returns the probability that a random variable X is less than or equal to x.

Examples
1
SELECT dist_bernoulli_cdf(0.5, 0);

Output

dist_bernoulli_cdf(0.5, 0)
0.5

dist_bernoulli_cdf_complement

Scalar Function Bernoulli
Signature
dist_bernoulli_cdf_complement(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the complementary cumulative distribution function (1 - CDF) of the bernoulli distribution. Returns the probability that X > x, equivalent to the survival function.

Examples
1
SELECT dist_bernoulli_cdf_complement(0.5, 0);

Output

dist_bernoulli_cdf_complement(0.5, 0)
0.5

dist_bernoulli_chf

Scalar Function Bernoulli
Signature
dist_bernoulli_chf(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the cumulative hazard function of the bernoulli distribution.

Examples
1
SELECT dist_bernoulli_chf(0.5, 0);

Output

dist_bernoulli_chf(0.5, 0)
0.6931471805599453

dist_bernoulli_hazard

Scalar Function Bernoulli
Signature
dist_bernoulli_hazard(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the hazard function of the bernoulli distribution.

Examples
1
SELECT dist_bernoulli_hazard(0.5, 0);

Output

dist_bernoulli_hazard(0.5, 0)
1.0

dist_bernoulli_kurtosis

Scalar Function Bernoulli
Signature
dist_bernoulli_kurtosis(p: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
Returns
Description

Returns the kurtosis of the bernoulli distribution.

Examples
1
SELECT dist_bernoulli_kurtosis(0.5);

Output

dist_bernoulli_kurtosis(0.5)
1.0

dist_bernoulli_kurtosis_excess

Scalar Function Bernoulli
Signature
dist_bernoulli_kurtosis_excess(p: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
Returns
Description

Returns the excess kurtosis of the bernoulli distribution.

Examples
1
SELECT dist_bernoulli_kurtosis_excess(0.5);

Output

dist_bernoulli_kurtosis_excess(0.5)
-2.0

dist_bernoulli_log_cdf

Scalar Function Bernoulli
Signature
dist_bernoulli_log_cdf(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the natural logarithm of the cumulative distribution function (CDF) of the bernoulli distribution. Returns the logarithm of the probability that a random variable X is less than or equal to x.

Examples
1
SELECT dist_bernoulli_log_cdf(0.5, 0);

Output

dist_bernoulli_log_cdf(0.5, 0)
-0.6931471805599453

dist_bernoulli_log_cdf_complement

Scalar Function Bernoulli
Signature
dist_bernoulli_log_cdf_complement(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the bernoulli distribution. Returns the logarithm of the probability that X > x, equivalent to the survival function.

Examples
1
SELECT dist_bernoulli_log_cdf_complement(0.5, 0);

Output

dist_bernoulli_log_cdf_complement(0.5, 0)
-0.6931471805599453

dist_bernoulli_log_pdf

Scalar Function Bernoulli
Signature
dist_bernoulli_log_pdf(p: DOUBLE, x: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
x DOUBLE Positional
Returns
Description

Computes the natural logarithm of the probability density function (log-PDF) of the bernoulli distribution. Useful for numerical stability when dealing with very small probabilities.

Examples
1
SELECT dist_bernoulli_log_pdf(0.5, 1);

Output

dist_bernoulli_log_pdf(0.5, 1)
-0.6931471805599453

dist_bernoulli_mean

Scalar Function Bernoulli
Signature
dist_bernoulli_mean(p: DOUBLE) → DOUBLE
Parameters (Positional)
Parameter Type Mode Description
p DOUBLE Positional
Returns
Description

Returns the mean (μ) of the bernoulli distribution, which is the first moment.

Examples
1
SELECT dist_bernoulli_mean(0.5);

Output

dist_bernoulli_mean(0.5)
0.5

dist_bernoulli_median

Bernoulli

Returns the median (50th percentile) of the bernoulli distribution, which equals the mean.

dist_bernoulli_mode

Bernoulli

Returns the mode (most likely value) of the bernoulli distribution, which equals the mean.

dist_bernoulli_pdf

Bernoulli

Computes the probability density function (PDF) of the bernoulli distribution.

dist_bernoulli_quantile

Bernoulli

Computes the quantile function (inverse CDF) of the bernoulli distribution.

dist_bernoulli_quantile_complement

Bernoulli

Computes the complementary quantile function of the bernoulli distribution.

dist_bernoulli_range

Bernoulli

Returns the range of the bernoulli distribution.

dist_bernoulli_sample

Bernoulli

Generates random samples from the bernoulli distribution with specified parameters.

dist_bernoulli_skewness

Bernoulli

Returns the skewness of the bernoulli distribution.

dist_bernoulli_stddev

Bernoulli

Returns the standard deviation (σ) of the bernoulli distribution.

dist_bernoulli_support

Bernoulli

Returns the support of the bernoulli distribution.

dist_bernoulli_variance

Bernoulli

Returns the variance (σ²) of the bernoulli distribution.

dist_beta_cdf

Beta

Computes the cumulative distribution function (CDF) of the beta distribution.

dist_beta_cdf_complement

Beta

Computes the complementary cumulative distribution function (1 - CDF) of the beta distribution.

dist_beta_chf

Beta

Computes the cumulative hazard function of the beta distribution.

dist_beta_hazard

Beta

Computes the hazard function of the beta distribution.

dist_beta_kurtosis

Beta

Returns the kurtosis of the beta distribution.

dist_beta_kurtosis_excess

Beta

Returns the excess kurtosis of the beta distribution.

dist_beta_log_cdf

Beta

Computes the natural logarithm of the cumulative distribution function (CDF) of the beta distribution.

dist_beta_log_cdf_complement

Beta

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the beta distribution.

dist_beta_log_pdf

Beta

Computes the natural logarithm of the probability density function (log-PDF) of the beta distribution.

dist_beta_mean

Beta

Returns the mean (μ) of the beta distribution, which is the first moment.

dist_beta_median

Beta

Returns the median (50th percentile) of the beta distribution, which equals the mean.

dist_beta_mode

Beta

Returns the mode (most likely value) of the beta distribution, which equals the mean.

dist_beta_pdf

Beta

Computes the probability density function (PDF) of the beta distribution.

dist_beta_quantile

Beta

Computes the quantile function (inverse CDF) of the beta distribution.

dist_beta_quantile_complement

Beta

Computes the complementary quantile function of the beta distribution.

dist_beta_range

Beta

Returns the range of the beta distribution.

dist_beta_sample

Beta

Generates random samples from the beta distribution with specified parameters.

dist_beta_skewness

Beta

Returns the skewness of the beta distribution.

dist_beta_stddev

Beta

Returns the standard deviation (σ) of the beta distribution.

dist_beta_support

Beta

Returns the support of the beta distribution.

dist_beta_variance

Beta

Returns the variance (σ²) of the beta distribution.

dist_binomial_cdf

Binomial

Computes the cumulative distribution function (CDF) of the binomial distribution.

dist_binomial_cdf_complement

Binomial

Computes the complementary cumulative distribution function (1 - CDF) of the binomial distribution.

dist_binomial_chf

Binomial

Computes the cumulative hazard function of the binomial distribution.

dist_binomial_hazard

Binomial

Computes the hazard function of the binomial distribution.

dist_binomial_kurtosis

Binomial

Returns the kurtosis of the binomial distribution.

dist_binomial_kurtosis_excess

Binomial

Returns the excess kurtosis of the binomial distribution.

dist_binomial_log_cdf

Binomial

Computes the natural logarithm of the cumulative distribution function (CDF) of the binomial distribution.

dist_binomial_log_cdf_complement

Binomial

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the binomial distribution.

dist_binomial_log_pdf

Binomial

Computes the natural logarithm of the probability density function (log-PDF) of the binomial distribution.

dist_binomial_median

Binomial

Returns the median (50th percentile) of the binomial distribution, which equals the mean.

dist_binomial_mode

Binomial

Returns the mode (most likely value) of the binomial distribution, which equals the mean.

dist_binomial_pdf

Binomial

Computes the probability density function (PDF) of the binomial distribution.

dist_binomial_quantile

Binomial

Computes the quantile function (inverse CDF) of the binomial distribution.

dist_binomial_quantile_complement

Binomial

Computes the complementary quantile function of the binomial distribution.

dist_binomial_range

Binomial

Returns the range of the binomial distribution.

dist_binomial_sample

Binomial

Generates random samples from the binomial distribution with specified parameters.

dist_binomial_skewness

Binomial

Returns the skewness of the binomial distribution.

dist_binomial_support

Binomial

Returns the support of the binomial distribution.

dist_binomial_variance

Binomial

Returns the variance (σ²) of the binomial distribution.

dist_cauchy_cdf

Cauchy

Computes the cumulative distribution function (CDF) of the cauchy distribution.

dist_cauchy_cdf_complement

Cauchy

Computes the complementary cumulative distribution function (1 - CDF) of the cauchy distribution.

dist_cauchy_chf

Cauchy

Computes the cumulative hazard function of the cauchy distribution.

dist_cauchy_hazard

Cauchy

Computes the hazard function of the cauchy distribution.

dist_cauchy_log_cdf

Cauchy

Computes the natural logarithm of the cumulative distribution function (CDF) of the cauchy distribution.

dist_cauchy_log_cdf_complement

Cauchy

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the cauchy distribution.

dist_cauchy_log_pdf

Cauchy

Computes the natural logarithm of the probability density function (log-PDF) of the cauchy distribution.

dist_cauchy_median

Cauchy

Returns the median (50th percentile) of the cauchy distribution, which equals the mean.

dist_cauchy_mode

Cauchy

Returns the mode (most likely value) of the cauchy distribution, which equals the mean.

dist_cauchy_pdf

Cauchy

Computes the probability density function (PDF) of the cauchy distribution.

dist_cauchy_quantile

Cauchy

Computes the quantile function (inverse CDF) of the cauchy distribution.

dist_cauchy_quantile_complement

Cauchy

Computes the complementary quantile function of the cauchy distribution.

dist_cauchy_range

Cauchy

Returns the range of the cauchy distribution.

dist_cauchy_sample

Cauchy

Generates random samples from the cauchy distribution with specified parameters.

dist_cauchy_support

Cauchy

Returns the support of the cauchy distribution.

dist_chi_squared_cdf

Chi-squared

Computes the cumulative distribution function (CDF) of the chi_squared distribution.

dist_chi_squared_cdf_complement

Chi-squared

Computes the complementary cumulative distribution function (1 - CDF) of the chi_squared distribution.

dist_chi_squared_chf

Chi-squared

Computes the cumulative hazard function of the chi_squared distribution.

dist_chi_squared_hazard

Chi-squared

Computes the hazard function of the chi_squared distribution.

dist_chi_squared_kurtosis

Chi-squared

Returns the kurtosis of the chi_squared distribution.

dist_chi_squared_kurtosis_excess

Chi-squared

Returns the excess kurtosis of the chi_squared distribution.

dist_chi_squared_log_cdf

Chi-squared

Computes the natural logarithm of the cumulative distribution function (CDF) of the chi_squared distribution.

dist_chi_squared_log_cdf_complement

Chi-squared

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the chi_squared distribution.

dist_chi_squared_log_pdf

Chi-squared

Computes the natural logarithm of the probability density function (log-PDF) of the chi_squared distribution.

dist_chi_squared_mean

Chi-squared

Returns the mean (μ) of the chi_squared distribution, which is the first moment.

dist_chi_squared_median

Chi-squared

Returns the median (50th percentile) of the chi_squared distribution, which equals the mean.

dist_chi_squared_mode

Chi-squared

Returns the mode (most likely value) of the chi_squared distribution, which equals the mean.

dist_chi_squared_pdf

Chi-squared

Computes the probability density function (PDF) of the chi_squared distribution.

dist_chi_squared_quantile

Chi-squared

Computes the quantile function (inverse CDF) of the chi_squared distribution.

dist_chi_squared_quantile_complement

Chi-squared

Computes the complementary quantile function of the chi_squared distribution.

dist_chi_squared_range

Chi-squared

Returns the range of the chi_squared distribution.

dist_chi_squared_sample

Chi-squared

Generates random samples from the chi_squared distribution with specified parameters.

dist_chi_squared_skewness

Chi-squared

Returns the skewness of the chi_squared distribution.

dist_chi_squared_stddev

Chi-squared

Returns the standard deviation (σ) of the chi_squared distribution.

dist_chi_squared_support

Chi-squared

Returns the support of the chi_squared distribution.

dist_chi_squared_variance

Chi-squared

Returns the variance (σ²) of the chi_squared distribution.

dist_exponential_cdf

Exponential

Computes the cumulative distribution function (CDF) of the exponential distribution.

dist_exponential_cdf_complement

Exponential

Computes the complementary cumulative distribution function (1 - CDF) of the exponential distribution.

dist_exponential_chf

Exponential

Computes the cumulative hazard function of the exponential distribution.

dist_exponential_hazard

Exponential

Computes the hazard function of the exponential distribution.

dist_exponential_kurtosis

Exponential

Returns the kurtosis of the exponential distribution.

dist_exponential_kurtosis_excess

Exponential

Returns the excess kurtosis of the exponential distribution.

dist_exponential_log_cdf

Exponential

Computes the natural logarithm of the cumulative distribution function (CDF) of the exponential distribution.

dist_exponential_log_cdf_complement

Exponential

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the exponential distribution.

dist_exponential_log_pdf

Exponential

Computes the natural logarithm of the probability density function (log-PDF) of the exponential distribution.

dist_exponential_mean

Exponential

Returns the mean (μ) of the exponential distribution, which is the first moment.

dist_exponential_median

Exponential

Returns the median (50th percentile) of the exponential distribution, which equals the mean.

dist_exponential_mode

Exponential

Returns the mode (most likely value) of the exponential distribution, which equals the mean.

dist_exponential_pdf

Exponential

Computes the probability density function (PDF) of the exponential distribution.

dist_exponential_quantile

Exponential

Computes the quantile function (inverse CDF) of the exponential distribution.

dist_exponential_quantile_complement

Exponential

Computes the complementary quantile function of the exponential distribution.

dist_exponential_range

Exponential

Returns the range of the exponential distribution.

dist_exponential_sample

Exponential

Generates random samples from the exponential distribution with specified parameters.

dist_exponential_skewness

Exponential

Returns the skewness of the exponential distribution.

dist_exponential_stddev

Exponential

Returns the standard deviation (σ) of the exponential distribution.

dist_exponential_support

Exponential

Returns the support of the exponential distribution.

dist_exponential_variance

Exponential

Returns the variance (σ²) of the exponential distribution.

dist_extreme_value_cdf

Extreme Value

Computes the cumulative distribution function (CDF) of the extreme_value distribution.

dist_extreme_value_cdf_complement

Extreme Value

Computes the complementary cumulative distribution function (1 - CDF) of the extreme_value distribution.

dist_extreme_value_chf

Extreme Value

Computes the cumulative hazard function of the extreme_value distribution.

dist_extreme_value_hazard

Extreme Value

Computes the hazard function of the extreme_value distribution.

dist_extreme_value_kurtosis

Extreme Value

Returns the kurtosis of the extreme_value distribution.

dist_extreme_value_kurtosis_excess

Extreme Value

Returns the excess kurtosis of the extreme_value distribution.

dist_extreme_value_log_cdf

Extreme Value

Computes the natural logarithm of the cumulative distribution function (CDF) of the extreme_value distribution.

dist_extreme_value_log_cdf_complement

Extreme Value

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the extreme_value distribution.

dist_extreme_value_log_pdf

Extreme Value

Computes the natural logarithm of the probability density function (log-PDF) of the extreme_value distribution.

dist_extreme_value_median

Extreme Value

Returns the median (50th percentile) of the extreme_value distribution, which equals the mean.

dist_extreme_value_mode

Extreme Value

Returns the mode (most likely value) of the extreme_value distribution, which equals the mean.

dist_extreme_value_pdf

Extreme Value

Computes the probability density function (PDF) of the extreme_value distribution.

dist_extreme_value_quantile

Extreme Value

Computes the quantile function (inverse CDF) of the extreme_value distribution.

dist_extreme_value_quantile_complement

Extreme Value

Computes the complementary quantile function of the extreme_value distribution.

dist_extreme_value_range

Extreme Value

Returns the range of the extreme_value distribution.

dist_extreme_value_sample

Extreme Value

Generates random samples from the extreme_value distribution with specified parameters.

dist_extreme_value_skewness

Extreme Value

Returns the skewness of the extreme_value distribution.

dist_extreme_value_support

Extreme Value

Returns the support of the extreme_value distribution.

dist_extreme_value_variance

Extreme Value

Returns the variance (σ²) of the extreme_value distribution.

dist_fisher_f_cdf

Fisher F

Computes the cumulative distribution function (CDF) of the fisher_f distribution.

dist_fisher_f_cdf_complement

Fisher F

Computes the complementary cumulative distribution function (1 - CDF) of the fisher_f distribution.

dist_fisher_f_chf

Fisher F

Computes the cumulative hazard function of the fisher_f distribution.

dist_fisher_f_hazard

Fisher F

Computes the hazard function of the fisher_f distribution.

dist_fisher_f_kurtosis

Fisher F

Returns the kurtosis of the fisher_f distribution.

dist_fisher_f_kurtosis_excess

Fisher F

Returns the excess kurtosis of the fisher_f distribution.

dist_fisher_f_log_cdf

Fisher F

Computes the natural logarithm of the cumulative distribution function (CDF) of the fisher_f distribution.

dist_fisher_f_log_cdf_complement

Fisher F

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the fisher_f distribution.

dist_fisher_f_log_pdf

Fisher F

Computes the natural logarithm of the probability density function (log-PDF) of the fisher_f distribution.

dist_fisher_f_median

Fisher F

Returns the median (50th percentile) of the fisher_f distribution, which equals the mean.

dist_fisher_f_mode

Fisher F

Returns the mode (most likely value) of the fisher_f distribution, which equals the mean.

dist_fisher_f_pdf

Fisher F

Computes the probability density function (PDF) of the fisher_f distribution.

dist_fisher_f_quantile

Fisher F

Computes the quantile function (inverse CDF) of the fisher_f distribution.

dist_fisher_f_quantile_complement

Fisher F

Computes the complementary quantile function of the fisher_f distribution.

dist_fisher_f_range

Fisher F

Returns the range of the fisher_f distribution.

dist_fisher_f_sample

Fisher F

Generates random samples from the fisher_f distribution with specified parameters.

dist_fisher_f_skewness

Fisher F

Returns the skewness of the fisher_f distribution.

dist_fisher_f_support

Fisher F

Returns the support of the fisher_f distribution.

dist_fisher_f_variance

Fisher F

Returns the variance (σ²) of the fisher_f distribution.

dist_gamma_cdf

Gamma

Computes the cumulative distribution function (CDF) of the gamma distribution.

dist_gamma_cdf_complement

Gamma

Computes the complementary cumulative distribution function (1 - CDF) of the gamma distribution.

dist_gamma_chf

Gamma

Computes the cumulative hazard function of the gamma distribution.

dist_gamma_hazard

Gamma

Computes the hazard function of the gamma distribution.

dist_gamma_kurtosis

Gamma

Returns the kurtosis of the gamma distribution.

dist_gamma_kurtosis_excess

Gamma

Returns the excess kurtosis of the gamma distribution.

dist_gamma_log_cdf

Gamma

Computes the natural logarithm of the cumulative distribution function (CDF) of the gamma distribution.

dist_gamma_log_cdf_complement

Gamma

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the gamma distribution.

dist_gamma_log_pdf

Gamma

Computes the natural logarithm of the probability density function (log-PDF) of the gamma distribution.

dist_gamma_mean

Gamma

Returns the mean (μ) of the gamma distribution, which is the first moment.

dist_gamma_median

Gamma

Returns the median (50th percentile) of the gamma distribution, which equals the mean.

dist_gamma_mode

Gamma

Returns the mode (most likely value) of the gamma distribution, which equals the mean.

dist_gamma_pdf

Gamma

Computes the probability density function (PDF) of the gamma distribution.

dist_gamma_quantile

Gamma

Computes the quantile function (inverse CDF) of the gamma distribution.

dist_gamma_quantile_complement

Gamma

Computes the complementary quantile function of the gamma distribution.

dist_gamma_range

Gamma

Returns the range of the gamma distribution.

dist_gamma_sample

Gamma

Generates random samples from the gamma distribution with specified parameters.

dist_gamma_skewness

Gamma

Returns the skewness of the gamma distribution.

dist_gamma_stddev

Gamma

Returns the standard deviation (σ) of the gamma distribution.

dist_gamma_support

Gamma

Returns the support of the gamma distribution.

dist_gamma_variance

Gamma

Returns the variance (σ²) of the gamma distribution.

dist_geometric_cdf

Geometric

Computes the cumulative distribution function (CDF) of the geometric distribution.

dist_geometric_cdf_complement

Geometric

Computes the complementary cumulative distribution function (1 - CDF) of the geometric distribution.

dist_geometric_chf

Geometric

Computes the cumulative hazard function of the geometric distribution.

dist_geometric_hazard

Geometric

Computes the hazard function of the geometric distribution.

dist_geometric_kurtosis

Geometric

Returns the kurtosis of the geometric distribution.

dist_geometric_kurtosis_excess

Geometric

Returns the excess kurtosis of the geometric distribution.

dist_geometric_log_cdf

Geometric

Computes the natural logarithm of the cumulative distribution function (CDF) of the geometric distribution.

dist_geometric_log_cdf_complement

Geometric

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the geometric distribution.

dist_geometric_log_pdf

Geometric

Computes the natural logarithm of the probability density function (log-PDF) of the geometric distribution.

dist_geometric_mean

Geometric

Returns the mean (μ) of the geometric distribution, which is the first moment.

dist_geometric_median

Geometric

Returns the median (50th percentile) of the geometric distribution, which equals the mean.

dist_geometric_mode

Geometric

Returns the mode (most likely value) of the geometric distribution, which equals the mean.

dist_geometric_pdf

Geometric

Computes the probability density function (PDF) of the geometric distribution.

dist_geometric_quantile

Geometric

Computes the quantile function (inverse CDF) of the geometric distribution.

dist_geometric_quantile_complement

Geometric

Computes the complementary quantile function of the geometric distribution.

dist_geometric_range

Geometric

Returns the range of the geometric distribution.

dist_geometric_sample

Geometric

Generates random samples from the geometric distribution with specified parameters.

dist_geometric_skewness

Geometric

Returns the skewness of the geometric distribution.

dist_geometric_stddev

Geometric

Returns the standard deviation (σ) of the geometric distribution.

dist_geometric_support

Geometric

Returns the support of the geometric distribution.

dist_geometric_variance

Geometric

Returns the variance (σ²) of the geometric distribution.

dist_laplace_cdf

Laplace

Computes the cumulative distribution function (CDF) of the laplace distribution.

dist_laplace_cdf_complement

Laplace

Computes the complementary cumulative distribution function (1 - CDF) of the laplace distribution.

dist_laplace_chf

Laplace

Computes the cumulative hazard function of the laplace distribution.

dist_laplace_hazard

Laplace

Computes the hazard function of the laplace distribution.

dist_laplace_kurtosis

Laplace

Returns the kurtosis of the laplace distribution.

dist_laplace_kurtosis_excess

Laplace

Returns the excess kurtosis of the laplace distribution.

dist_laplace_log_cdf

Laplace

Computes the natural logarithm of the cumulative distribution function (CDF) of the laplace distribution.

dist_laplace_log_cdf_complement

Laplace

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the laplace distribution.

dist_laplace_log_pdf

Laplace

Computes the natural logarithm of the probability density function (log-PDF) of the laplace distribution.

dist_laplace_mean

Laplace

Returns the mean (μ) of the laplace distribution, which is the first moment.

dist_laplace_median

Laplace

Returns the median (50th percentile) of the laplace distribution, which equals the mean.

dist_laplace_mode

Laplace

Returns the mode (most likely value) of the laplace distribution, which equals the mean.

dist_laplace_pdf

Laplace

Computes the probability density function (PDF) of the laplace distribution.

dist_laplace_quantile

Laplace

Computes the quantile function (inverse CDF) of the laplace distribution.

dist_laplace_quantile_complement

Laplace

Computes the complementary quantile function of the laplace distribution.

dist_laplace_range

Laplace

Returns the range of the laplace distribution.

dist_laplace_sample

Laplace

Generates random samples from the laplace distribution with specified parameters.

dist_laplace_skewness

Laplace

Returns the skewness of the laplace distribution.

dist_laplace_stddev

Laplace

Returns the standard deviation (σ) of the laplace distribution.

dist_laplace_support

Laplace

Returns the support of the laplace distribution.

dist_laplace_variance

Laplace

Returns the variance (σ²) of the laplace distribution.

dist_logistic_cdf

Logistic

Computes the cumulative distribution function (CDF) of the logistic distribution.

dist_logistic_cdf_complement

Logistic

Computes the complementary cumulative distribution function (1 - CDF) of the logistic distribution.

dist_logistic_chf

Logistic

Computes the cumulative hazard function of the logistic distribution.

dist_logistic_hazard

Logistic

Computes the hazard function of the logistic distribution.

dist_logistic_kurtosis

Logistic

Returns the kurtosis of the logistic distribution.

dist_logistic_kurtosis_excess

Logistic

Returns the excess kurtosis of the logistic distribution.

dist_logistic_log_cdf

Logistic

Computes the natural logarithm of the cumulative distribution function (CDF) of the logistic distribution.

dist_logistic_log_cdf_complement

Logistic

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the logistic distribution.

dist_logistic_log_pdf

Logistic

Computes the natural logarithm of the probability density function (log-PDF) of the logistic distribution.

dist_logistic_median

Logistic

Returns the median (50th percentile) of the logistic distribution, which equals the mean.

dist_logistic_mode

Logistic

Returns the mode (most likely value) of the logistic distribution, which equals the mean.

dist_logistic_pdf

Logistic

Computes the probability density function (PDF) of the logistic distribution.

dist_logistic_quantile

Logistic

Computes the quantile function (inverse CDF) of the logistic distribution.

dist_logistic_quantile_complement

Logistic

Computes the complementary quantile function of the logistic distribution.

dist_logistic_range

Logistic

Returns the range of the logistic distribution.

dist_logistic_sample

Logistic

Generates random samples from the logistic distribution with specified parameters.

dist_logistic_skewness

Logistic

Returns the skewness of the logistic distribution.

dist_logistic_support

Logistic

Returns the support of the logistic distribution.

dist_logistic_variance

Logistic

Returns the variance (σ²) of the logistic distribution.

dist_lognormal_cdf

Log-normal

Computes the cumulative distribution function (CDF) of the lognormal distribution.

dist_lognormal_cdf_complement

Log-normal

Computes the complementary cumulative distribution function (1 - CDF) of the lognormal distribution.

dist_lognormal_chf

Log-normal

Computes the cumulative hazard function of the lognormal distribution.

dist_lognormal_hazard

Log-normal

Computes the hazard function of the lognormal distribution.

dist_lognormal_kurtosis

Log-normal

Returns the kurtosis of the lognormal distribution.

dist_lognormal_kurtosis_excess

Log-normal

Returns the excess kurtosis of the lognormal distribution.

dist_lognormal_log_cdf

Log-normal

Computes the natural logarithm of the cumulative distribution function (CDF) of the lognormal distribution.

dist_lognormal_log_cdf_complement

Log-normal

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the lognormal distribution.

dist_lognormal_log_pdf

Log-normal

Computes the natural logarithm of the probability density function (log-PDF) of the lognormal distribution.

dist_lognormal_mean

Log-normal

Returns the mean (μ) of the lognormal distribution, which is the first moment.

dist_lognormal_median

Log-normal

Returns the median (50th percentile) of the lognormal distribution, which equals the mean.

dist_lognormal_mode

Log-normal

Returns the mode (most likely value) of the lognormal distribution, which equals the mean.

dist_lognormal_pdf

Log-normal

Computes the probability density function (PDF) of the lognormal distribution.

dist_lognormal_quantile

Log-normal

Computes the quantile function (inverse CDF) of the lognormal distribution.

dist_lognormal_quantile_complement

Log-normal

Computes the complementary quantile function of the lognormal distribution.

dist_lognormal_range

Log-normal

Returns the range of the lognormal distribution.

dist_lognormal_sample

Log-normal

Generates random samples from the lognormal distribution with specified parameters.

dist_lognormal_skewness

Log-normal

Returns the skewness of the lognormal distribution.

dist_lognormal_stddev

Log-normal

Returns the standard deviation (σ) of the lognormal distribution.

dist_lognormal_support

Log-normal

Returns the support of the lognormal distribution.

dist_lognormal_variance

Log-normal

Returns the variance (σ²) of the lognormal distribution.

dist_negative_binomial_cdf

Negative Binomial

Computes the cumulative distribution function (CDF) of the negative_binomial distribution.

dist_negative_binomial_cdf_complement

Negative Binomial

Computes the complementary cumulative distribution function (1 - CDF) of the negative_binomial distribution.

dist_negative_binomial_chf

Negative Binomial

Computes the cumulative hazard function of the negative_binomial distribution.

dist_negative_binomial_hazard

Negative Binomial

Computes the hazard function of the negative_binomial distribution.

dist_negative_binomial_kurtosis

Negative Binomial

Returns the kurtosis of the negative_binomial distribution.

dist_negative_binomial_kurtosis_excess

Negative Binomial

Returns the excess kurtosis of the negative_binomial distribution.

dist_negative_binomial_log_cdf

Negative Binomial

Computes the natural logarithm of the cumulative distribution function (CDF) of the negative_binomial distribution.

dist_negative_binomial_log_cdf_complement

Negative Binomial

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the negative_binomial distribution.

dist_negative_binomial_log_pdf

Negative Binomial

Computes the natural logarithm of the probability density function (log-PDF) of the negative_binomial distribution.

dist_negative_binomial_median

Negative Binomial

Returns the median (50th percentile) of the negative_binomial distribution, which equals the mean.

dist_negative_binomial_mode

Negative Binomial

Returns the mode (most likely value) of the negative_binomial distribution, which equals the mean.

dist_negative_binomial_pdf

Negative Binomial

Computes the probability density function (PDF) of the negative_binomial distribution.

dist_negative_binomial_quantile

Negative Binomial

Computes the quantile function (inverse CDF) of the negative_binomial distribution.

dist_negative_binomial_quantile_complement

Negative Binomial

Computes the complementary quantile function of the negative_binomial distribution.

dist_negative_binomial_range

Negative Binomial

Returns the range of the negative_binomial distribution.

dist_negative_binomial_sample

Negative Binomial

Generates random samples from the negative_binomial distribution with specified parameters.

dist_negative_binomial_skewness

Negative Binomial

Returns the skewness of the negative_binomial distribution.

dist_negative_binomial_support

Negative Binomial

Returns the support of the negative_binomial distribution.

dist_negative_binomial_variance

Negative Binomial

Returns the variance (σ²) of the negative_binomial distribution.

dist_normal_cdf

Normal

Computes the cumulative distribution function (CDF) of the normal distribution.

dist_normal_cdf_complement

Normal

Computes the complementary cumulative distribution function (1 - CDF) of the normal distribution.

dist_normal_chf

Normal

Computes the cumulative hazard function of the normal distribution.

dist_normal_hazard

Normal

Computes the hazard function of the normal distribution.

dist_normal_kurtosis

Normal

Returns the kurtosis of the normal distribution.

dist_normal_kurtosis_excess

Normal

Returns the excess kurtosis of the normal distribution.

dist_normal_log_cdf

Normal

Computes the natural logarithm of the cumulative distribution function (CDF) of the normal distribution.

dist_normal_log_cdf_complement

Normal

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the normal distribution.

dist_normal_log_pdf

Normal

Computes the natural logarithm of the probability density function (log-PDF) of the normal distribution.

dist_normal_mean

Normal

Returns the mean (μ) of the normal distribution, which is the first moment.

dist_normal_median

Normal

Returns the median (50th percentile) of the normal distribution, which equals the mean.

dist_normal_mode

Normal

Returns the mode (most likely value) of the normal distribution, which equals the mean.

dist_normal_pdf

Normal

Computes the probability density function (PDF) of the normal distribution.

dist_normal_quantile

Normal

Computes the quantile function (inverse CDF) of the normal distribution.

dist_normal_quantile_complement

Normal

Computes the complementary quantile function of the normal distribution.

dist_normal_range

Normal

Returns the range of the normal distribution.

dist_normal_sample

Normal

Generates random samples from the normal distribution with specified parameters.

dist_normal_skewness

Normal

Returns the skewness of the normal distribution.

dist_normal_stddev

Normal

Returns the standard deviation (σ) of the normal distribution.

dist_normal_support

Normal

Returns the support of the normal distribution.

dist_normal_variance

Normal

Returns the variance (σ²) of the normal distribution.

dist_pareto_cdf

Pareto

Computes the cumulative distribution function (CDF) of the pareto distribution.

dist_pareto_cdf_complement

Pareto

Computes the complementary cumulative distribution function (1 - CDF) of the pareto distribution.

dist_pareto_chf

Pareto

Computes the cumulative hazard function of the pareto distribution.

dist_pareto_hazard

Pareto

Computes the hazard function of the pareto distribution.

dist_pareto_kurtosis

Pareto

Returns the kurtosis of the pareto distribution.

dist_pareto_kurtosis_excess

Pareto

Returns the excess kurtosis of the pareto distribution.

dist_pareto_log_cdf

Pareto

Computes the natural logarithm of the cumulative distribution function (CDF) of the pareto distribution.

dist_pareto_log_cdf_complement

Pareto

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the pareto distribution.

dist_pareto_log_pdf

Pareto

Computes the natural logarithm of the probability density function (log-PDF) of the pareto distribution.

dist_pareto_mean

Pareto

Returns the mean (μ) of the pareto distribution, which is the first moment.

dist_pareto_median

Pareto

Returns the median (50th percentile) of the pareto distribution, which equals the mean.

dist_pareto_mode

Pareto

Returns the mode (most likely value) of the pareto distribution, which equals the mean.

dist_pareto_pdf

Pareto

Computes the probability density function (PDF) of the pareto distribution.

dist_pareto_quantile

Pareto

Computes the quantile function (inverse CDF) of the pareto distribution.

dist_pareto_quantile_complement

Pareto

Computes the complementary quantile function of the pareto distribution.

dist_pareto_range

Pareto

Returns the range of the pareto distribution.

dist_pareto_sample

Pareto

Generates random samples from the pareto distribution with specified parameters.

dist_pareto_skewness

Pareto

Returns the skewness of the pareto distribution.

dist_pareto_stddev

Pareto

Returns the standard deviation (σ) of the pareto distribution.

dist_pareto_support

Pareto

Returns the support of the pareto distribution.

dist_pareto_variance

Pareto

Returns the variance (σ²) of the pareto distribution.

dist_poisson_cdf

Poisson

Computes the cumulative distribution function (CDF) of the poisson distribution.

dist_poisson_cdf_complement

Poisson

Computes the complementary cumulative distribution function (1 - CDF) of the poisson distribution.

dist_poisson_chf

Poisson

Computes the cumulative hazard function of the poisson distribution.

dist_poisson_hazard

Poisson

Computes the hazard function of the poisson distribution.

dist_poisson_kurtosis

Poisson

Returns the kurtosis of the poisson distribution.

dist_poisson_kurtosis_excess

Poisson

Returns the excess kurtosis of the poisson distribution.

dist_poisson_log_cdf

Poisson

Computes the natural logarithm of the cumulative distribution function (CDF) of the poisson distribution.

dist_poisson_log_cdf_complement

Poisson

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the poisson distribution.

dist_poisson_log_pdf

Poisson

Computes the natural logarithm of the probability density function (log-PDF) of the poisson distribution.

dist_poisson_mean

Poisson

Returns the mean (μ) of the poisson distribution, which is the first moment.

dist_poisson_median

Poisson

Returns the median (50th percentile) of the poisson distribution, which equals the mean.

dist_poisson_mode

Poisson

Returns the mode (most likely value) of the poisson distribution, which equals the mean.

dist_poisson_pdf

Poisson

Computes the probability density function (PDF) of the poisson distribution.

dist_poisson_quantile

Poisson

Computes the quantile function (inverse CDF) of the poisson distribution.

dist_poisson_quantile_complement

Poisson

Computes the complementary quantile function of the poisson distribution.

dist_poisson_range

Poisson

Returns the range of the poisson distribution.

dist_poisson_sample

Poisson

Generates random samples from the poisson distribution with specified parameters.

dist_poisson_skewness

Poisson

Returns the skewness of the poisson distribution.

dist_poisson_stddev

Poisson

Returns the standard deviation (σ) of the poisson distribution.

dist_poisson_support

Poisson

Returns the support of the poisson distribution.

dist_poisson_variance

Poisson

Returns the variance (σ²) of the poisson distribution.

dist_rayleigh_cdf

Rayleigh

Computes the cumulative distribution function (CDF) of the rayleigh distribution.

dist_rayleigh_cdf_complement

Rayleigh

Computes the complementary cumulative distribution function (1 - CDF) of the rayleigh distribution.

dist_rayleigh_chf

Rayleigh

Computes the cumulative hazard function of the rayleigh distribution.

dist_rayleigh_hazard

Rayleigh

Computes the hazard function of the rayleigh distribution.

dist_rayleigh_kurtosis

Rayleigh

Returns the kurtosis of the rayleigh distribution.

dist_rayleigh_kurtosis_excess

Rayleigh

Returns the excess kurtosis of the rayleigh distribution.

dist_rayleigh_log_cdf

Rayleigh

Computes the natural logarithm of the cumulative distribution function (CDF) of the rayleigh distribution.

dist_rayleigh_log_cdf_complement

Rayleigh

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the rayleigh distribution.

dist_rayleigh_log_pdf

Rayleigh

Computes the natural logarithm of the probability density function (log-PDF) of the rayleigh distribution.

dist_rayleigh_mean

Rayleigh

Returns the mean (μ) of the rayleigh distribution, which is the first moment.

dist_rayleigh_median

Rayleigh

Returns the median (50th percentile) of the rayleigh distribution, which equals the mean.

dist_rayleigh_mode

Rayleigh

Returns the mode (most likely value) of the rayleigh distribution, which equals the mean.

dist_rayleigh_pdf

Rayleigh

Computes the probability density function (PDF) of the rayleigh distribution.

dist_rayleigh_quantile

Rayleigh

Computes the quantile function (inverse CDF) of the rayleigh distribution.

dist_rayleigh_quantile_complement

Rayleigh

Computes the complementary quantile function of the rayleigh distribution.

dist_rayleigh_range

Rayleigh

Returns the range of the rayleigh distribution.

dist_rayleigh_sample

Rayleigh

Generates random samples from the rayleigh distribution with specified parameters.

dist_rayleigh_skewness

Rayleigh

Returns the skewness of the rayleigh distribution.

dist_rayleigh_stddev

Rayleigh

Returns the standard deviation (σ) of the rayleigh distribution.

dist_rayleigh_support

Rayleigh

Returns the support of the rayleigh distribution.

dist_rayleigh_variance

Rayleigh

Returns the variance (σ²) of the rayleigh distribution.

dist_students_t_cdf

Student's t

Computes the cumulative distribution function (CDF) of the students_t distribution.

dist_students_t_cdf_complement

Student's t

Computes the complementary cumulative distribution function (1 - CDF) of the students_t distribution.

dist_students_t_chf

Student's t

Computes the cumulative hazard function of the students_t distribution.

dist_students_t_hazard

Student's t

Computes the hazard function of the students_t distribution.

dist_students_t_kurtosis

Student's t

Returns the kurtosis of the students_t distribution.

dist_students_t_kurtosis_excess

Student's t

Returns the excess kurtosis of the students_t distribution.

dist_students_t_log_cdf

Student's t

Computes the natural logarithm of the cumulative distribution function (CDF) of the students_t distribution.

dist_students_t_log_cdf_complement

Student's t

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the students_t distribution.

dist_students_t_log_pdf

Student's t

Computes the natural logarithm of the probability density function (log-PDF) of the students_t distribution.

dist_students_t_mean

Student's t

Returns the mean (μ) of the students_t distribution, which is the first moment.

dist_students_t_median

Student's t

Returns the median (50th percentile) of the students_t distribution, which equals the mean.

dist_students_t_mode

Student's t

Returns the mode (most likely value) of the students_t distribution, which equals the mean.

dist_students_t_pdf

Student's t

Computes the probability density function (PDF) of the students_t distribution.

dist_students_t_quantile

Student's t

Computes the quantile function (inverse CDF) of the students_t distribution.

dist_students_t_quantile_complement

Student's t

Computes the complementary quantile function of the students_t distribution.

dist_students_t_range

Student's t

Returns the range of the students_t distribution.

dist_students_t_sample

Student's t

Generates random samples from the students_t distribution with specified parameters.

dist_students_t_skewness

Student's t

Returns the skewness of the students_t distribution.

dist_students_t_stddev

Student's t

Returns the standard deviation (σ) of the students_t distribution.

dist_students_t_support

Student's t

Returns the support of the students_t distribution.

dist_students_t_variance

Student's t

Returns the variance (σ²) of the students_t distribution.

dist_uniform_int_cdf

Uniform (Integer)

Computes the cumulative distribution function (CDF) of the uniform_int distribution.

dist_uniform_int_cdf_complement

Uniform (Integer)

Computes the complementary cumulative distribution function (1 - CDF) of the uniform_int distribution.

dist_uniform_int_chf

Uniform (Integer)

Computes the cumulative hazard function of the uniform_int distribution.

dist_uniform_int_hazard

Uniform (Integer)

Computes the hazard function of the uniform_int distribution.

dist_uniform_int_kurtosis

Uniform (Integer)

Returns the kurtosis of the uniform_int distribution.

dist_uniform_int_kurtosis_excess

Uniform (Integer)

Returns the excess kurtosis of the uniform_int distribution.

dist_uniform_int_log_cdf

Uniform (Integer)

Computes the natural logarithm of the cumulative distribution function (CDF) of the uniform_int distribution.

dist_uniform_int_log_cdf_complement

Uniform (Integer)

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the uniform_int distribution.

dist_uniform_int_log_pdf

Uniform (Integer)

Computes the natural logarithm of the probability density function (log-PDF) of the uniform_int distribution.

dist_uniform_int_mean

Uniform (Integer)

Returns the mean (μ) of the uniform_int distribution, which is the first moment.

dist_uniform_int_median

Uniform (Integer)

Returns the median (50th percentile) of the uniform_int distribution, which equals the mean.

dist_uniform_int_mode

Uniform (Integer)

Returns the mode (most likely value) of the uniform_int distribution, which equals the mean.

dist_uniform_int_pdf

Uniform (Integer)

Computes the probability density function (PDF) of the uniform_int distribution.

dist_uniform_int_quantile

Uniform (Integer)

Computes the quantile function (inverse CDF) of the uniform_int distribution.

dist_uniform_int_quantile_complement

Uniform (Integer)

Computes the complementary quantile function of the uniform_int distribution.

dist_uniform_int_range

Uniform (Integer)

Returns the range of the uniform_int distribution.

dist_uniform_int_sample

Uniform (Integer)

Generates random samples from the uniform_int distribution with specified parameters.

dist_uniform_int_skewness

Uniform (Integer)

Returns the skewness of the uniform_int distribution.

dist_uniform_int_stddev

Uniform (Integer)

Returns the standard deviation (σ) of the uniform_int distribution.

dist_uniform_int_support

Uniform (Integer)

Returns the support of the uniform_int distribution.

dist_uniform_int_variance

Uniform (Integer)

Returns the variance (σ²) of the uniform_int distribution.

dist_uniform_real_cdf

Uniform (Real)

Computes the cumulative distribution function (CDF) of the uniform_real distribution.

dist_uniform_real_cdf_complement

Uniform (Real)

Computes the complementary cumulative distribution function (1 - CDF) of the uniform_real distribution.

dist_uniform_real_chf

Uniform (Real)

Computes the cumulative hazard function of the uniform_real distribution.

dist_uniform_real_hazard

Uniform (Real)

Computes the hazard function of the uniform_real distribution.

dist_uniform_real_kurtosis

Uniform (Real)

Returns the kurtosis of the uniform_real distribution.

dist_uniform_real_kurtosis_excess

Uniform (Real)

Returns the excess kurtosis of the uniform_real distribution.

dist_uniform_real_log_cdf

Uniform (Real)

Computes the natural logarithm of the cumulative distribution function (CDF) of the uniform_real distribution.

dist_uniform_real_log_cdf_complement

Uniform (Real)

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the uniform_real distribution.

dist_uniform_real_log_pdf

Uniform (Real)

Computes the natural logarithm of the probability density function (log-PDF) of the uniform_real distribution.

dist_uniform_real_mean

Uniform (Real)

Returns the mean (μ) of the uniform_real distribution, which is the first moment.

dist_uniform_real_median

Uniform (Real)

Returns the median (50th percentile) of the uniform_real distribution, which equals the mean.

dist_uniform_real_mode

Uniform (Real)

Returns the mode (most likely value) of the uniform_real distribution, which equals the mean.

dist_uniform_real_pdf

Uniform (Real)

Computes the probability density function (PDF) of the uniform_real distribution.

dist_uniform_real_quantile

Uniform (Real)

Computes the quantile function (inverse CDF) of the uniform_real distribution.

dist_uniform_real_quantile_complement

Uniform (Real)

Computes the complementary quantile function of the uniform_real distribution.

dist_uniform_real_range

Uniform (Real)

Returns the range of the uniform_real distribution.

dist_uniform_real_sample

Uniform (Real)

Generates random samples from the uniform_real distribution with specified parameters.

dist_uniform_real_skewness

Uniform (Real)

Returns the skewness of the uniform_real distribution.

dist_uniform_real_stddev

Uniform (Real)

Returns the standard deviation (σ) of the uniform_real distribution.

dist_uniform_real_support

Uniform (Real)

Returns the support of the uniform_real distribution.

dist_uniform_real_variance

Uniform (Real)

Returns the variance (σ²) of the uniform_real distribution.

dist_weibull_cdf

Weibull

Computes the cumulative distribution function (CDF) of the weibull distribution.

dist_weibull_cdf_complement

Weibull

Computes the complementary cumulative distribution function (1 - CDF) of the weibull distribution.

dist_weibull_chf

Weibull

Computes the cumulative hazard function of the weibull distribution.

dist_weibull_hazard

Weibull

Computes the hazard function of the weibull distribution.

dist_weibull_kurtosis

Weibull

Returns the kurtosis of the weibull distribution.

dist_weibull_kurtosis_excess

Weibull

Returns the excess kurtosis of the weibull distribution.

dist_weibull_log_cdf

Weibull

Computes the natural logarithm of the cumulative distribution function (CDF) of the weibull distribution.

dist_weibull_log_cdf_complement

Weibull

Computes the natural logarithm of the complementary cumulative distribution function (1 - CDF) of the weibull distribution.

dist_weibull_log_pdf

Weibull

Computes the natural logarithm of the probability density function (log-PDF) of the weibull distribution.

dist_weibull_median

Weibull

Returns the median (50th percentile) of the weibull distribution, which equals the mean.

dist_weibull_mode

Weibull

Returns the mode (most likely value) of the weibull distribution, which equals the mean.

dist_weibull_pdf

Weibull

Computes the probability density function (PDF) of the weibull distribution.

dist_weibull_quantile

Weibull

Computes the quantile function (inverse CDF) of the weibull distribution.

dist_weibull_quantile_complement

Weibull

Computes the complementary quantile function of the weibull distribution.

dist_weibull_range

Weibull

Returns the range of the weibull distribution.

dist_weibull_sample

Weibull

Generates random samples from the weibull distribution with specified parameters.

dist_weibull_skewness

Weibull

Returns the skewness of the weibull distribution.

dist_weibull_support

Weibull

Returns the support of the weibull distribution.

dist_weibull_variance

Weibull

Returns the variance (σ²) of the weibull distribution.

Practical Examples

Cookbook

Real-world recipes and patterns for common use cases.

Recipes are organized by distribution family. Every distribution exposes the same operations — sample, pdf / log_pdf, cdf / log_cdf / cdf_complement, quantile, plus property functions (mean, variance, skewness, …). Once you’ve used one family, the rest follow the same shape.

Normal — the workhorse

Z-scores, confidence intervals, two-sided p-values, VaR. The Normal distribution is parameterized by mean and standard deviation:

-- Quantiles, density, CDF
SELECT dist_normal_quantile(0.0, 1.0, 0.95)  AS p95;     -- 1.6449
SELECT dist_normal_pdf(0.0, 1.0, 0.5)        AS density;
SELECT dist_normal_cdf(0.0, 1.0, 1.96)       AS prob;    -- ~0.975

-- Z-score using property functions inline
SELECT
  height_cm,
  (height_cm - dist_normal_mean(100, 15))
   / dist_normal_stddev(100, 15) AS height_zscore
FROM observations;

-- Two-sided p-value from a Z-statistic
WITH z AS (SELECT 2.31 AS stat)
SELECT 2 * dist_normal_cdf_complement(0.0, 1.0, ABS(stat)) AS p_value
FROM z;

See dist_normal_pdf, dist_normal_cdf, dist_normal_quantile, dist_normal_sample.

Discrete counts — Binomial and Poisson

Binomial for fixed-trial successes; Poisson for events at a rate:

-- Binomial: P(X = 7), P(X ≤ 5), random k
SELECT dist_binomial_pdf(10, 0.3, 7)  AS prob_exactly_7;
SELECT dist_binomial_cdf(10, 0.3, 5)  AS prob_at_most_5;
SELECT dist_binomial_sample(10, 0.3)  AS k;

-- Poisson: probability of seeing >= 5 arrivals when λ=2.5
SELECT dist_poisson_cdf_complement(2.5, 4) AS prob_5_or_more;

-- Poisson sample for synthetic event-count columns
SELECT i, dist_poisson_sample(2.5) AS arrivals
FROM range(10) t(i);

See dist_binomial_pdf, dist_binomial_cdf, dist_poisson_cdf, dist_poisson_sample.

Time-to-event — Exponential, Weibull, Gamma

Exponential for memoryless waiting times; Weibull for time-to-failure with non-constant hazard; Gamma for waiting times across multiple events:

-- Survival probability past t=2 for Exponential(rate=0.5)
SELECT dist_exponential_cdf_complement(0.5, 2.0) AS surviving;

-- Hazard rate at t=10 for Weibull(shape=1.5, scale=8)
SELECT dist_weibull_hazard(1.5, 8.0, 10.0) AS instantaneous_hazard;

-- Sample 1,000 service times from Gamma(2, 3)
SELECT dist_gamma_sample(2.0, 3.0) AS service_secs
FROM range(1000);

See dist_exponential_cdf_complement, dist_weibull_hazard, dist_gamma_sample.

Bayesian conjugates — Beta and Gamma priors

Closed-form conjugate posteriors are one quantile call away. After observing 17 successes in 25 trials with a Beta(2, 2) prior, the posterior is Beta(19, 10):

-- Posterior mean and 95% credible interval
SELECT
  dist_beta_mean(19, 10)              AS posterior_mean,
  dist_beta_quantile(19, 10, 0.025)   AS ci_lo,
  dist_beta_quantile(19, 10, 0.975)   AS ci_hi;

See dist_beta_mean, dist_beta_quantile.

Hypothesis testing — t, chi-squared, F

-- Two-sided t-test p-value, df=29
WITH t AS (SELECT 2.045 AS stat, 29 AS df)
SELECT 2 * dist_students_t_cdf_complement(df, ABS(stat)) AS p_value
FROM t;

-- Chi-squared goodness-of-fit p-value, df=4
WITH chi AS (SELECT 9.488 AS stat)
SELECT dist_chi_squared_cdf_complement(4, stat) AS p_value
FROM chi;

-- F-test (ANOVA) p-value, df1=3 df2=20
WITH f AS (SELECT 4.94 AS stat)
SELECT dist_fisher_f_cdf_complement(3, 20, stat) AS p_value
FROM f;

See dist_students_t_cdf_complement, dist_chi_squared_cdf_complement, dist_fisher_f_cdf_complement.

Heavy-tailed families — Pareto, Cauchy, Log-normal

Wealth, file sizes, internet traffic, financial returns. The tail dominates; reach for these when the Normal underestimates extremes:

-- Probability a file exceeds 1 GB under Pareto(scale=10MB, shape=1.5)
SELECT dist_pareto_cdf_complement(10.0, 1.5, 1024.0) AS prob_over_1gb;

-- Median income under Log-normal(meanlog=10.5, sdlog=0.7)
SELECT dist_lognormal_median(10.5, 0.7) AS median_income;

See dist_pareto_cdf_complement, dist_lognormal_median.

Synthetic data — combine families per column

Sampling functions return one draw per call, so combine them with range() over any source row count:

CREATE TABLE synthetic_users AS
SELECT
  i AS user_id,
  dist_normal_sample(170, 8)        AS height_cm,
  dist_lognormal_sample(10.5, 0.7)  AS annual_income,
  dist_poisson_sample(3.5)          AS sessions_last_week,
  dist_exponential_sample(0.1)      AS avg_session_minutes,
  dist_bernoulli_sample(0.12)       AS converted
FROM range(100000) t(i);

One query, 100k rows of realistic-looking fixture data — heights from a Normal, incomes from a Log-normal, session counts from a Poisson, conversions from a Bernoulli.

Monte Carlo — the canonical example

-- Estimate π by sampling uniform points in [-1,1]² and counting hits inside the unit circle
WITH samples AS (
  SELECT dist_uniform_real_sample(-1.0, 1.0) AS x,
         dist_uniform_real_sample(-1.0, 1.0) AS y
  FROM range(1000000)
)
SELECT 4.0 * COUNT(*) FILTER (WHERE x*x + y*y <= 1) / COUNT(*) AS pi_estimate
FROM samples;

The same pattern — generate, filter, aggregate — handles VaR, payoff integration, queueing simulation, A/B-test power calculations.

Value at Risk

-- 1-day 99% VaR assuming Normal returns
WITH params AS (SELECT 0.0001 AS mu, 0.02 AS sigma, 1000000 AS portfolio)
SELECT portfolio * (-dist_normal_quantile(mu, sigma, 0.01)) AS var_99
FROM params;

For heavy-tailed VaR, swap dist_normal_quantile for dist_students_t_quantile with a low df.

Log-scale variants for likelihoods

Every PDF / CDF / CDF-complement has a _log_* variant. Use them inside likelihood computations and to avoid underflow on tiny tails:

-- Log-likelihood of one observation under N(0,1)
SELECT dist_normal_log_pdf(0.0, 1.0, 4.5) AS log_density;

-- Log-survival for very small tail probabilities
SELECT dist_normal_log_cdf_complement(0.0, 1.0, 6.0) AS log_tail;

See dist_normal_log_pdf, dist_normal_log_cdf_complement.

Reproducibility

_sample functions don’t take a seed parameter. For exactly-reproducible runs, materialize the draws once into a table and treat that table as the seed:

CREATE TABLE rng_pool AS
SELECT i, dist_normal_sample(0, 1) AS z
FROM range(1000000) t(i);

-- Subsequent analyses read from rng_pool — fully reproducible

Platform Support

Compatibility

Extension availability may vary by platform and DuckDB version. Check below to ensure this extension supports your environment before installation.

Quick Facts

Software License MIT
Pricing Free
Written In C++
Source Available Yes
View on GitHub
Usage
104,167+
loads in last 30 days

Platforms

Linux
Linux (musl)
macOS
Windows
WASM
Supported platform architectures
Linux: x86_64, aarch64
Linux (musl): x86_64
macOS: Apple Silicon, Intel
Windows: x86_64
WASM: eh, mvp, threads
Compiled binary sizes
Platform Architecture Size
Linux aarch64 3.85 MB
Linux x86_64 4.38 MB
Linux (musl) x86_64 3.69 MB
macOS Apple Silicon 3.15 MB
macOS Intel 3.71 MB
Windows x86_64 8.59 MB
WASM eh 248.1 KB
WASM mvp 235.9 KB
WASM threads 235.8 KB

Gzipped download size from the DuckDB community-extensions registry.

DuckDB Versions

Release calendar
Supported
v1.4.4 v1.5.2

Monte Carlo, in SQL

Install Stochastic to compute PDFs, CDFs, quantiles, and random samples from 22 named probability distributions inside DuckDB — Monte Carlo and synthetic data without leaving the warehouse.