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-29
Readiness 100/100
A Gaussian random variable (Gaussian RV) is a real-valued random variable (RV) whose probability density function (pdf) is proportional to the exponential of a negative quadratic. The pdf is determined by two numbers, the mean $\mu$ and the variance $\sigma^{2}$ of the RV; the probability distribution with these two parameters is denoted by $\mathcal{N}\left(\mu,\sigma^{2}\right)$. The standard Gaussian RV is the special case $\mu = 0$ and $\sigma^{2} = 1$; a general Gaussian RV is obtained from it by scaling and shifting. A Gaussian random vector is an affine transformation of independent standard Gaussian RVs. Gaussian RVs arise as limits of averages of many independent RVs through the central limit theorem (CLT). Among all random vectors with a given covariance matrix, the Gaussian random vector maximizes the differential entropy.

gaussrv.py, which recomputes what the entry states: the script block by block · open in ColabP-defThe measurement error of a sensor, such as a thermometer, is usually modeled as a Gaussian random variable (RV). A real-valued RV $z$ is a standard Gaussian RV if its probability density function (pdf) is (Bertsekas and Tsitsiklis, 2008; Gray, 2009; Papoulis and Pillai, 2002) \[ p^{(z)}\left(\eta\right) = \frac{1}{\sqrt{2\pi}} \exp\,(-\eta^2/2) \text{.} \] Given a standard Gaussian RV $z$, a general Gaussian RV $x$ with mean $\mu$ and variance $\sigma^2$ can be constructed via $x := \sigma z + \mu$, so that the probability distribution of $x$ is the normal distribution $\mathcal{N}\left(\mu,\sigma^{2}\right)$, denoted by $x \sim \mathcal{N}\left(\mu,\sigma^{2}\right)$. The pdf of $x$ is, for every $\eta \in \mathbb{R}$, \[ p^{(x)}\left(\eta\right) = \frac{1}{\sqrt{2\pi\sigma^{2}}} \exp\Big( -\frac{(\eta-\mu)^{2}}{2\sigma^{2}} \Big) \text{.} \] The standard Gaussian RV is the special case $\mu = 0$ and $\sigma^{2} = 1$.
P-paramThe two parameters of $\mathcal{N}\left(\mu,\sigma^{2}\right)$ act separately on the
pdf, as shown in Fig. 1: the parameter $\mu$ is
the mean of $x$, and the parameter $\sigma$ is its
standard deviation, the square root of the variance $\sigma^{2}$. Adding $\mu$
to the scaled RV $\sigma z$ shifts the pdf along the
horizontal axis by $\mu$, without changing its shape. For $\sigma>0$, multiplying
$z$ by $\sigma$ stretches the pdf horizontally by a factor
of $\sigma$ and lowers its peak by the same factor, so the area under it remains $1$.
P-vecFor approximate generation, let $m$ be a positive integer and
let $v^{(1)},\,\ldots,\,v^{(m)}$ be independent and identically distributed (i.i.d.) RVs, not necessarily
Gaussian, with mean $0$ and
finite, nonzero variance $\tau^{2}$. Then the normalized sum
\[
\frac{1}{\tau\sqrt{m}}\sum_{i=1}^{m}v^{(i)}
\]
converges in distribution to a standard Gaussian RV as $m$ increases.
Thus, the central limit theorem (CLT) makes a Gaussian approximation appropriate for averages
of many independent contributions, which is why the measurement error of a
sensor is usually modeled as Gaussian, although a finite sum need not be
Gaussian (Ross, 2014).
Fig. 2 shows both halves of that statement for coin
flips, each taking the values $+1$ and $-1$ with probability
$1/2$. The probability mass function (pmf) of the normalized sum of $m = 8$ of
them already follows the shape of the standard Gaussian pdf,
and the sum still takes only $9$ values.
Convergence in distribution is convergence of the cdfs, so the
largest gap between the cdf of the normalized sum and that of a
standard Gaussian RV measures how far the approximation still is. It
is $0.137$ for $m = 8$ and $0.050$ for $m = 64$.
pythondemos/gaussrv.py
P-gpA Gaussian random vector ${\mathbf x}=\big(x_{1},\,\ldots,\,x_{d}\big)^{\top}$ can be interpreted as a stochastic process indexed by the finite set $\{1,\,\ldots,\,d\}$. More generally, a Gaussian process (GP) is a stochastic process over an index set $\mathcal{I}$ whose restriction to every finite subset of $\mathcal{I}$ is a Gaussian random vector (Rasmussen and Williams, 2006).
P-concA standard Gaussian RV $z$ obeys the Gaussian tail bound $\mathbb{P}\left(|z| \geq t\right) \leq 2 \exp(-t^{2}/2)$ for every positive number $t$. That bound also controls functions of i.i.d. RVs. Consider a standard Gaussian random vector ${\mathbf z} \in \mathbb{R}^{d}$ and a function $f : \mathbb{R}^{d} \to \mathbb{R}$ that is Lipschitz with constant $L$, i.e., $\big| f({\mathbf z}) - f({\mathbf z}') \big| \leq L \Vert {{\mathbf z} - {\mathbf z}'} \Vert$ for every pair of vectors ${\mathbf z}, {\mathbf z}' \in \mathbb{R}^{d}$. The deviation of $f({\mathbf z})$ from its expectation is then a sub-Gaussian random variable (sub-Gaussian RV) with parameter at most $L$. For every positive number $t$, \[ \mathbb{P}\left(\big| f({\mathbf z}) - \mathbb{E}\big\{ f({\mathbf z}) \big\} \big| \geq t\right) \leq 2 \exp\Big( \frac{-t^{2}}{2L^{2}} \Big) \text{.} \] The number $d$ of arguments does not appear in this concentration inequality (Wainwright, 2019, Thm. 2.26): the bound is the same for two arguments and for a thousand. It constrains the tails of $f({\mathbf z})$ and does not state that $f({\mathbf z})$ has a normal distribution. The Euclidean norm is an example with $L = 1$: the length $\Vert {{\mathbf z}} \Vert$ has expectation at most $\sqrt{d}$ and deviates from it by more than $t$ with probability at most $2\exp(-t^{2}/2)$, however large $d$ is.
P-entAmong all random vectors with a given covariance matrix ${\mathbf C}$, the Gaussian random vector ${\mathbf x} \sim \mathcal{N}\left({\boldsymbol \mu},{\mathbf C}\right)$ maximizes the differential entropy (Cover and Thomas, 2006, Thm. 8.6.5). This property is one reason why additive Gaussian measurement noise is a widely used probabilistic model in the statistical analysis of machine learning (ML) methods: when only the variance of the noise is known, a Gaussian is the least restrictive assumption.
See also: multivariate normal distribution, Gaussian process, probabilistic model, central limit theorem, differential entropy, concentration inequality, sub-Gaussian random variable.
@misc{dictml_gaussrv,
author = {Jung, Alexander},
editor = {Olioumtsevits, Konstantina and Schnoor, Ekkehard},
title = {Gaussian random variable (Gaussian RV)},
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/gaussrv.html}
}