The Gaussian Distribution

Figure 2.1: Gaussian distribution
Image fig_gaussian

The Gaussian distribution is one of the most widely used probability distributions in practical problems, since it models a large proportion of the probability distributions found in real-world events. In this document, it is used in particular in filters (Section 3), Bayesian classifiers (Section 5.2), and LDA (Section 5.3).

Definizione 6   The standard Gaussian distribution, denoted by the symbol $\mathcal{N}(0;1)$, has the density
\begin{displaymath}
p(x) = \frac{1}{\sqrt{2\pi}} e ^ { \left( - \dfrac{1}{2}x^{2} \right) }
\end{displaymath} (2.15)

Definizione 7   The general Gaussian distribution $\mathcal{N}(\mu;\sigma^{2})$, with $\mu\in\mathbb{R}$ and $\sigma>0$, is obtained from the standard distribution by the transformation $x \mapsto \sigma x + \mu$.

In the univariate case (univariate Gaussian), the Gaussian has the following probability density function:

\begin{displaymath}
p(x) = \frac{1}{\sigma \sqrt{2 \pi} } e^{ -\dfrac{1}{2} \left( \dfrac{x - \mu}{ \sigma } \right)^2}
\end{displaymath} (2.16)

where $\mu$ is the mean and $\sigma^2$ is the variance. The interval from $\pm \sigma$ to $\mu$ contains 68% of the probability, the interval $\pm 2 \sigma$ contains 95%, and the interval $\pm 3 \sigma$ contains 99.7%.

The multivariate Gaussian distribution (multidimensional Gaussian) is specified by a vector $\boldsymbol\mu$ of dimension $n$, representing the mean of the different components, and a covariance matrix $\boldsymbol\Sigma$ of dimensions $n \times n$:

\begin{displaymath}
p(\mathbf{x}) = \frac{1}{ (2 \pi)^{\frac{n}{2}} \sqrt{\vert\...
...u)^{\top} \boldsymbol\Sigma^{-1} (\mathbf{x}-\boldsymbol\mu) }
\end{displaymath} (2.17)

a normal distribution with mean $\boldsymbol\mu = \left[ \mu_1, \mu_2, \dots \mu_n \right]^{T}$ and covariance $\boldsymbol\Sigma = \begin{bmatrix}
\sigma_{11} & \cdots & \sigma_{1n} \\
\vdots & \ddots & \vdots \\
\sigma_{n1} & \cdots & \sigma_{nn} \\
\end{bmatrix}$.

It can be shown that the exponent in Equation (2.17) is the Mahalanobis distance (Section 2.4) between $\mathbf {x}$ and $\boldsymbol\mu$.

When the random variables are independent of one another and have equal variance, the matrix $\boldsymbol\Sigma$ is a diagonal matrix whose entries are all equal to $\sigma^{2}$, and the multivariate normal probability distribution reduces to

\begin{displaymath}
p(\mathbf{x}) = \frac{1}{ (2 \pi \sigma^{2} )^{n/2} } e^{ - \dfrac{ \vert \mathbf{x} - \boldsymbol\mu\vert^2}{2 \sigma^{2}} }
\end{displaymath} (2.18)



Subsections
Paolo medici
2026-10-19