Dictionary of Applied Machine Learning: 114 machine-learning terms, each with a definition, a figure, citations and a Python demo · All terms · Demos · Start here
Updated on 2026-10-31
Readiness 100/100
See also independent and identically distributed independent and identically distributed assumption random variable generalization
A probability distribution of a random variable (RV) is the probability measure that the RV induces on the set of its values: it assigns a probability to every measurable set of values. A machine learning (ML) method reads in a dataset and delivers an output, such as a learned hypothesis or the prediction for a given data point, and should work well for any dataset that could arise in the ML application at hand. The independent and identically distributed assumption (i.i.d. assumption) models such a dataset as realizations of independent and identically distributed (i.i.d.) RVs with a common probability distribution, which is postulated from domain knowledge or estimated from a dataset. The probability distribution of a binary RV is fully specified by a single probability, that of a discrete random variable (discrete RV) by a probability mass function (pmf), and that of a real-valued RV with a probability density function (pdf) by that pdf.

probdist.py, which recomputes what the entry states: the script block by block · open in ColabP-methodConsider a machine learning (ML)
method that takes as input a dataset
$\mathcal{D} = \big\{ {\mathbf z}^{(1)}, \,\ldots, \,{\mathbf z}^{(m)} \big\}$,
each data point a numeric feature paired with a numeric
label, and delivers an output, such as a learned hypothesis
$\widehat{h}$ or the prediction for a given
data point. Feeding a different dataset into the same
method can deliver a different output. In general, the
method should work well for any dataset that could arise in
the ML application at hand. The independent and identically distributed assumption (i.i.d. assumption) models such a
dataset as independent and identically distributed (i.i.d.) random variables (RVs)
${\mathbf z}^{(1)}, \,\ldots, \,{\mathbf z}^{(m)} \sim
\mathbb{P}$ with a common probability distribution $\mathbb{P}$
(see Fig. 1). The outputs
obtained from different such datasets are themselves
realizations of an RV, whose probability distribution
depends on $\mathbb{P}$ and on the method. How much the
outputs spread, i.e., how much they differ from one another,
is therefore determined by $\mathbb{P}$ and the method.
P-specifyA probability mass function (pmf) or a probability density function (pdf) is a compact way of specifying a probability distribution. The probability distribution of a binary RV $y \in \{0,1\}$ is fully specified by the single probability $\mathbb{P}\left(y = 0\right)$, since $\mathbb{P}\left(y=1\right) = 1-\mathbb{P}\left(y=0\right)$; more generally, the probability distribution of a discrete random variable (discrete RV) is specified by its pmf. The probability distribution of a real-valued RV $x \in \mathbb{R}$ that has a pdf $p^{(x)}\left(\cdot\right)$ is specified by that pdf. The probability of a value in an interval $[a,b]$ is the integral \[ \mathbb{P}\left( x \in [a,b] \right) = \int_{a}^{b} p^{(x)}\left(x\right) \, \mathrm{d}x \text{,} \] which is approximately $p^{(x)}\left(a\right) \, |b-a|$ for a short interval $[a,b]$.
P-pictureBecause the pdf gives the probability of a short
interval around each value, it can be drawn.
For data points ${\mathbf z} = (x, y)$ with a
single numeric feature $x$ and a numeric label
$y$, a probability distribution can be visualized in
the plane $\mathbb{R}^{2}$.
Fig. 3 shows one as a grayscale over
the feature–label plane: the darker a region, the
larger its pdf, i.e., the more likely a data point
drawn from $\mathbb{P}$ falls in it. The depicted pdf is a weighted sum of two Gaussian
pdfs, i.e., a Gaussian mixture model (GMM). Paralleling
Fig. 1, three datasets
$\mathcal{D}^{(1)}, \mathcal{D}^{(2)}, \mathcal{D}^{(3)}$, each consisting of
$m = 20$ realizations of i.i.d. RVs
with this distribution, are shown together with the three
hypotheses $\widehat{h}^{(1)},
\widehat{h}^{(2)}, \widehat{h}^{(3)}$ learned from them
by the same polynomial regression method. As shown in
Fig. 3, the three learned
hypotheses differ most where the pdf is small.
pythondemos/probdist.py
Synonyms: distribution, law.
See also: independent and identically distributed, independent and identically distributed assumption, realization, random variable, probability, measurable, probability density function, probability mass function, discrete random variable, probability measure, probability space, empirical distribution, expectation, generalization.
@misc{dictml_probdist,
author = {Jung, Alexander},
editor = {Olioumtsevits, Konstantina and Schnoor, Ekkehard},
title = {probability distribution},
howpublished = {Dictionary of Applied Machine Learning (course edition)},
year = {2026},
doi = {10.5281/zenodo.21569296},
note = {ISBN 978-952-64-3013-3, CC BY 4.0, retrieved 2026-11-04},
url = {https://dictionaryofml.org/terms/probdist.html}
}