Distribution Atlas
55 probability distributions, each with its formulas, a probability calculator, an interactive plot, a worked example, its relations to the others and the SciPy code. Every formula and every answer is checked by code.
Calculators:BinomialPoissonNormalStudent's tChi-squaredExponentialBetaGamma
Which distribution should I use?Guides for counts, waiting times, proportions, extremes, measurements and priors.How they are related107 special cases, limits, sums and conjugate pairs, in one diagram.
Discrete 13
Counts and labels: the variable takes separate values, and each has a probability.
- BernoulliOne yes-or-no trial.
- BinomialSuccesses in a fixed number of independent trials.
- Beta-binomialSuccesses in n trials when the success rate itself varies.
- GeometricTrials up to and including the first success.
- Negative binomialFailures before the r-th success; an over-dispersed count.
- PoissonCounts of rare, independent events in a fixed window.
- Zero-inflated PoissonA Poisson count with extra zeros.
- SkellamThe difference of two independent Poisson counts.
- HypergeometricSuccesses when drawing without replacement.
- Discrete uniformEvery whole number from a to b equally likely.
- CategoricalOne draw from K labelled outcomes.
- LogarithmicCounts from 1 up, each less likely, with a long tail: species abundance.
- ZipfRank k gets weight 1/k^s: Zipf's law for word frequencies.
Continuous 36
Measurements: the variable takes any value in an interval, described by a density.
- UniformEvery value in an interval equally likely.
- TriangularA minimum, a most likely value and a maximum.
- NormalThe bell curve: sums of many small effects.
- Half-normalThe size of a normal error, ignoring its sign.
- Truncated normalA normal restricted to an interval.
- Skew normalA normal bent to one side by a shape parameter.
- Log-normalA quantity whose logarithm is normal.
- ExponentialWaiting time until the next random event.
- GammaWaiting time for several events; a flexible positive model.
- ErlangWaiting time until the k-th random event.
- Chi-squaredSum of squared standard normals; tests of fit and variance.
- Noncentral chi-squaredSum of squared normals that are not centred at zero.
- Inverse gammaThe reciprocal of a gamma; a prior for a variance.
- Inverse GaussianThe time for a drifting random walk to reach a level.
- LévyFirst time a random walk reaches a level: no finite mean.
- BetaA probability or proportion between 0 and 1.
- KumaraswamyA beta-like shape on [0, 1] with a simple CDF.
- ArcsineU-shaped: most of the mass near the two ends.
- Student's tA bell curve with heavier tails, for small samples.
- FRatio of two variance estimates; ANOVA and regression tests.
- CauchySo heavy-tailed it has no mean.
- Half-CauchyThe absolute value of a Cauchy: a heavy-tailed prior for a scale.
- LaplaceTwo exponentials back to back; L1 errors and privacy noise.
- LogisticA bell curve whose CDF is the sigmoid.
- Log-logisticA positive quantity whose logarithm is logistic.
- WeibullLifetimes whose failure rate rises or falls with age.
- RayleighLength of a 2-D vector with normal components.
- RiceThe length of a 2-D vector: a fixed signal plus noise.
- Maxwell–BoltzmannThe speed of a gas molecule; the length of a 3-D normal vector.
- GompertzLifetimes whose death rate grows exponentially with age.
- GumbelThe largest of many values: floods, maxima.
- FréchetLargest of many heavy-tailed values.
- Generalized extreme valueThe limit law of block maxima: Gumbel, Fréchet and Weibull in one.
- ParetoPower-law tails: wealth, city sizes, the 80-20 rule.
- Generalized ParetoHow far values go beyond a high threshold.
- Von MisesThe bell curve for angles and directions.
Multivariate 6
Several variables at once, with the dependence between them.
- MultinomialCounts in each of K categories over n draws.
- DirichletA random probability vector; the prior for a categorical.
- Multivariate normalCorrelated bell curves in several dimensions.
- Multivariate tCorrelated variables with heavier tails than the normal.
- WishartA random covariance matrix: the scatter matrix of normal samples.
- Inverse WishartA random covariance matrix: the conjugate prior for a normal covariance.