How the distributions are related
An arrow from one distribution to another means the first gives the second: as a special case, a limit, a sum, a transformation or a mixture. Dashed grey arrows run from a conjugate prior to the distribution whose parameter it describes. Point at a box to see its connections; click it for its page. In the spirit of Leemis and McQueston's chart of univariate distribution relationships.
Scroll sideways to see the whole map, or use the list below it.
Special caseLimitSumTransformationMixtureConjugate priorBoxes: discrete, continuous, multivariate
Every relation
100 of the 107 are checked numerically by the site's tests; the rest are definitions or need more than one distribution at once.
Special cases
- Binomial → Bernoulli: Binomial() is Bernoulli(). checked by code
- Negative binomial → Geometric: Negative binomial() counts failures before the first success, so adding 1 gives Geometric(). checked by code
- Categorical → Bernoulli: A categorical with two outcomes is a Bernoulli. checked by code
- Multinomial → Binomial: Multinomial with is the binomial, and any single count of a multinomial is Binomial(). checked by code
- Beta → Uniform: Beta() is Uniform(). checked by code
- Gamma → Exponential: Gamma() is Exponential(). checked by code
- Gamma → Chi-squared: Gamma() is Chi-squared(). checked by code
- Chi-squared → Exponential: Chi-squared() is Exponential(). checked by code
- Student's t → Cauchy: Student's with is the standard Cauchy. checked by code
- Weibull → Exponential: Weibull() is Exponential(). checked by code
- Weibull → Rayleigh: Weibull() is Rayleigh(). checked by code
- Multivariate normal → Normal: Each coordinate of a multivariate normal is normal, , and so is any linear combination . checked by code
- Dirichlet → Beta: Dirichlet with is the beta, and each coordinate of a Dirichlet is Beta(). checked by code
- Beta-binomial → Discrete uniform: Beta-binomial() is the discrete uniform on . checked by code
- Beta-binomial → Bernoulli: Beta-binomial() is Bernoulli(): with one trial, a varying rate is indistinguishable from its average. checked by code
- Zero-inflated Poisson → Poisson: A zero-inflated Poisson with is Poisson(). checked by code
- Zipf → Discrete uniform: Zipf with is the discrete uniform on . checked by code
- Multivariate t → Student's t: Each coordinate of a multivariate is a scaled Student's with the same degrees of freedom: . checked by code
- Wishart → Chi-squared: Each diagonal entry of a Wishart() matrix is times a Chi-squared(); with and the Wishart is Chi-squared(). checked by code
- Inverse Wishart → Inverse gamma: Each diagonal entry of a Inverse Wishart() matrix is Inverse gamma(); with the inverse Wishart is an inverse gamma. checked by code
- Gamma → Erlang: A Gamma() with a whole-number shape is Erlang(). checked by code
- Erlang → Exponential: Erlang() is Exponential(). checked by code
- Skew normal → Normal: Skew normal() is Normal(). checked by code
- Truncated normal → Half-normal: A Normal() truncated to is Half-normal(). checked by code
- Beta → Arcsine: Beta() is Arcsine(). checked by code
- Kumaraswamy → Uniform: Kumaraswamy() is Uniform(). checked by code
- Kumaraswamy → Beta: Kumaraswamy() is Beta(), and Kumaraswamy() is Beta(). checked by code
- Rice → Rayleigh: Rice() is Rayleigh(). checked by code
- Von Mises → Uniform: Von Mises() is Uniform(): no preferred direction. checked by code
- Noncentral chi-squared → Chi-squared: Noncentral chi-squared() is Chi-squared(). checked by code
- Inverse gamma → Lévy: Inverse gamma() is Lévy(). checked by code
- Generalized extreme value → Gumbel: GEV() is Gumbel(). checked by code
- Generalized extreme value → Fréchet: For , GEV() is Fréchet(, , ). checked by code
- Generalized Pareto → Exponential: Generalized Pareto() is Exponential(). checked by code
- Generalized Pareto → Pareto: For , Generalized Pareto() is Pareto(, ). checked by code
- Generalized Pareto → Uniform: Generalized Pareto() is Uniform(). checked by code
Limits
- Binomial → Poisson: If and with fixed, Binomial() tends to Poisson(): the law of rare events. checked by code
- Binomial → Normal: For large , Binomial() is approximately Normal() (de Moivre–Laplace), best with a continuity correction. checked by code
- Negative binomial → Poisson: If with the mean fixed, Negative binomial() tends to Poisson(). checked by code
- Hypergeometric → Binomial: If the population with fixed, drawing without replacement is like drawing with it: Hypergeometric() tends to Binomial(). checked by code
- Poisson → Normal: For large , Poisson() is approximately Normal(). checked by code
- Discrete uniform → Uniform: If is uniform on , tends to Uniform() as . checked by code
- Student's t → Normal: As , Student's tends to the standard normal. checked by code
- Geometric → Exponential: If is Geometric(), tends to Exponential() as : the continuous version of waiting for a success. checked by code
- Beta-binomial → Binomial: If with fixed, Beta-binomial() tends to Binomial(): the success rate stops varying. checked by code
- Skellam → Normal: For large , Skellam() is approximately Normal(). checked by code
- Multivariate t → Multivariate normal: As , the multivariate with location and shape tends to Normal(). checked by code
- Skew normal → Half-normal: As , Skew normal() tends to Half-normal(). checked by code
- Truncated normal → Normal: As and , the truncated normal tends to the untruncated Normal(). checked by code
- Inverse Gaussian → Normal: As with fixed, Inverse Gaussian() is approximately Normal(). checked by code
- Von Mises → Normal: As , Von Mises() is approximately Normal(). checked by code
Sums
- Bernoulli → Binomial: The sum of independent Bernoulli() variables is Binomial(). checked by code
- Geometric → Negative binomial: If are independent Geometric() trial counts, (the failures) is Negative binomial(). checked by code
- Poisson: The sum of independent Poisson() and Poisson() variables is Poisson(). checked by code
- Categorical → Multinomial: The counts of each outcome in independent categorical draws are Multinomial(). checked by code
- Exponential → Gamma: The sum of independent Exponential() variables is Gamma() (the Erlang distribution). checked by code
- Normal: The sum of independent Normal() and Normal() variables is Normal().
- Logarithmic → Negative binomial: The sum of a Poisson() number of independent Logarithmic() counts is Negative binomial() with and : the negative binomial as a compound Poisson (clusters of events arriving at random). checked by code
- Exponential → Erlang: The sum of independent Exponential() waiting times is Erlang(): the time to the -th event of a Poisson process. checked by code
- Uniform → Triangular: The sum of two independent Uniform() variables is Triangular(). checked by code
Transformations
- Uniform → Exponential: If is Uniform(), is Exponential(): the inverse-CDF method of sampling. checked by code
- Uniform → Logistic: If is Uniform(), the log-odds is standard Logistic. checked by code
- Uniform → Beta: The -th smallest of independent Uniform() values is Beta(). checked by code
- Normal → Chi-squared: If are independent standard normals, is Chi-squared(). checked by code
- Normal → Log-normal: If is Normal(), is Log-normal(). checked by code
- Chi-squared → Student's t: If is standard normal and an independent Chi-squared(), is .
- Chi-squared → F: If are independent Chi-squared() and Chi-squared(), is F().
- Student's t → F: If is , is F(). checked by code
- F → Beta: If is F(), is Beta(). checked by code
- Gamma → Beta: If are independent Gamma() and Gamma() with the same rate, is Beta(). checked by code
- Gamma → Inverse gamma: If is Gamma() (rate ), is Inverse gamma() (scale ). checked by code
- Exponential → Laplace: The difference of two independent Exponential() variables is Laplace(). checked by code
- Laplace → Exponential: If is Laplace(), is Exponential(). checked by code
- Exponential → Pareto: If is Exponential(), is Pareto(). checked by code
- Exponential → Gumbel: If is Exponential(), is standard Gumbel. (The Gumbel is also the limit of the maximum of exponentials, shifted by .) checked by code
- Gumbel → Logistic: The difference of two independent standard Gumbel variables is standard Logistic: why the Gumbel-max trick reproduces logit choice models. checked by code
- Normal → Cauchy: The ratio of two independent standard normals is standard Cauchy. checked by code
- Normal → Rayleigh: If are independent Normal(), is Rayleigh(). checked by code
- Poisson → Skellam: If are independent Poisson() and Poisson(), is Skellam(). checked by code
- Multivariate normal → Wishart: If are independent Normal() vectors, the scatter matrix is Wishart().
- Wishart → Inverse Wishart: If is Wishart(), its inverse is Inverse Wishart(). checked by code
- Normal → Half-normal: If is Normal(), is Half-normal(). checked by code
- Half-normal → Chi-squared: If is Half-normal(), is Chi-squared(). checked by code
- Uniform → Arcsine: If is Uniform(), is Arcsine(). checked by code
- Normal → Rice: If is Normal() and an independent Normal(), is Rice(). checked by code
- Chi-squared → Maxwell–Boltzmann: If is Chi-squared(), is Maxwell–Boltzmann(): the length of a vector of three independent Normal() components. checked by code
- Normal → Noncentral chi-squared: If are independent standard normals, is Noncentral chi-squared(). checked by code
- Normal → Lévy: If is standard normal, is Lévy(). checked by code
- Cauchy → Half-Cauchy: If is Cauchy(), is Half-Cauchy(). checked by code
- Logistic → Log-logistic: If is Logistic(), is Log-logistic(, ). checked by code
- Exponential → Gompertz: If is Exponential(), is Gompertz(). checked by code
- Weibull → Fréchet: If is Weibull(), is Fréchet(, , ). checked by code
- Generalized extreme value → Weibull: For , if is GEV() then is Weibull(, ): the reversed Weibull, with a finite upper end. checked by code
Mixtures
- Gamma → Negative binomial: A Poisson count whose rate is itself Gamma() is Negative binomial(): the reason the negative binomial models over-dispersed counts. checked by code
- Beta → Beta-binomial: A Binomial() count whose is itself Beta() is Beta-binomial(). It is also the posterior predictive of a binomial count under a beta prior. checked by code
- Poisson → Zero-inflated Poisson: Mixing Poisson() with weight and a point mass at 0 with weight gives the zero-inflated Poisson(). checked by code
- Inverse gamma → Multivariate t: If is Inverse gamma() and is Normal(), then is multivariate . checked by code
Conjugate priors
- Beta → Binomial: A Beta() prior on and successes in binomial trials give a Beta() posterior. checked by code
- Beta → Bernoulli: The beta is the conjugate prior for the Bernoulli , one trial at a time: each success adds 1 to , each failure 1 to .
- Gamma → Poisson: A Gamma() prior on a Poisson rate and counts give a Gamma() posterior. checked by code
- Gamma → Exponential: A Gamma() prior on an exponential rate and observed times give a Gamma() posterior.
- Inverse gamma → Normal: An Inverse gamma() prior on the variance of a normal with known mean gives an Inverse gamma() posterior. checked by code
- Normal: A Normal() prior on the mean of a normal with known variance gives a normal posterior with precision and mean the precision-weighted average of and . checked by code
- Dirichlet → Categorical: The Dirichlet is the conjugate prior for categorical probabilities: observing outcome adds 1 to .
- Dirichlet → Multinomial: A Dirichlet() prior and multinomial counts give a Dirichlet() posterior. checked by code
- Wishart → Multivariate normal: A Wishart() prior on the precision of a multivariate normal with known mean , and observations , give a Wishart() posterior, where . checked by code
- Inverse Wishart → Multivariate normal: An Inverse Wishart() prior on the covariance of a multivariate normal with known mean , and observations , give an Inverse Wishart() posterior, where . checked by code