Common Probability Distributions
Formal
A probability distribution specifies the probability (mass or density) over all possible values of a random variable. The distributions below are the standard library of ML.
Discrete Distributions
(Bernoulli()) — A single binary trial.
(Binomial()) — Number of successes in independent Bernoulli trials.
(Categorical()) — Generalises Bernoulli to mutually exclusive outcomes. , . The distribution over class labels in classification.
(Poisson()) — Number of events in a fixed interval given constant mean rate .
Continuous Distributions
(Uniform()) — Constant density over : . Used for uninformative priors and parameter initialisation.
(Gaussian ) — The bell curve. Defined entirely by its mean and variance:
Closed under linear transformations: if then . The Central Limit Theorem explains its ubiquity.
(Multivariate Gaussian ) — Generalises to dimensions. Parameterised by a mean vector and a covariance matrix (symmetric positive semi-definite):
Its level sets are ellipsoids shaped by . Marginals and conditionals of a multivariate Gaussian are also Gaussian.
(Beta()) — A distribution over probabilities, i.e., . Conjugate prior for the Bernoulli. Controlled by shape parameters (successes) and (failures).
(Exponential()) — Time between events in a Poisson process: for .
Intuition
Distributions are the standard library of ML — each is a pre-built model for a specific generative process:
| Generative process | Distribution |
|---|---|
| Binary outcome (coin flip, spam/not-spam) | Bernoulli |
| independent binary trials | Binomial |
| Multi-class label | Categorical |
| Count of events per unit time | Poisson |
| Sum of many independent small effects | Gaussian (CLT) |
| Unknown probability with prior beliefs | Beta |
The Gaussian is the default noise model because the Central Limit Theorem guarantees it appears whenever you sum many independent contributions — measurement error, financial noise, sensor readings.
ML Applications
- Binary classification — outputs modelled as Bernoulli; cross-entropy loss is negative log-likelihood of Bernoulli.
- Multi-class classification — outputs are Categorical; softmax parameterises .
- Regression — targets modelled as Gaussian; MSE loss is equivalent to MLE under this assumption.
- Multivariate Gaussian — the foundation of PCA (data projected onto Gaussian-shaped ellipsoids), Gaussian Processes, and Linear Discriminant Analysis.
- Conjugate priors — Beta is conjugate to Bernoulli; Dirichlet is conjugate to Categorical. Using conjugate priors makes Bayesian updating analytically tractable.
Connections
- Forward Links: Covariance Matrix, MLE and MAP, Law of Large Numbers and Central Limit Theorem
- Backward Links: Random Variables, Expectation and Variance