Gaussian Distribution
Probability and Distributions
The Gaussian (or Normal) distribution is the most important distribution in statistics and ML. A univariate Gaussian has density p(x) = frac{1}{sqrt{2pi sigma^2}} expleft(-frac{(x - mu)^2}{2sigma^2}right), parameterized by mean mu and variance sigma^2. Its classic bell shape: symmetric around mu, in
Univariate Gaussian: ; multivariate: with ellipsoidal level sets.
Remove the Gaussian and half of probabilistic ML goes dark: no VAE training objective, no DDPM noise forward process, no Kalman filter, no GP inference. It is the irreplaceable workhorse.
The Gaussian (or Normal) distribution is the most important distribution in statistics and ML. A univariate Gaussian has density , parameterized by mean and variance . Its classic bell shape: symmetric around , inflection points at , and roughly 99.7% of mass within .
The multivariate Gaussian on has density . The level sets are ellipsoids aligned with the eigenvectors of — the same eigenvectors PCA recovers. The mean is the center; the covariance describes the shape and orientation.
Gaussians are closed under several operations: sums of independent Gaussians are Gaussian, affine transformations of Gaussian vectors are Gaussian, marginals are Gaussian, and conditionals are Gaussian. The conditional formulas have closed forms — the workhorses of Gaussian processes and Kalman filters.
Why are Gaussians everywhere? Three reasons. The central limit theorem says sums of many independent variables become approximately Gaussian, so noise is often modeled as Gaussian. The maximum entropy principle says the Gaussian is the 'most uncertain' distribution given fixed mean and variance, making it the least-committal choice. And practically, the Gaussian's closed-form algebra means tractable inference.
In ML, Gaussians power linear regression's noise model (, ), variational autoencoders (Gaussian latents and decoder posteriors), diffusion models (Gaussian transition kernels), and Gaussian processes (distributions over functions). Understanding Gaussian algebra — conditionals, marginals, and precision matrices — is arguably the most practically useful probability skill in ML.
Worked example — the 68/95/99.7 rule: For standard normal , , , and . These are the three most useful numerical facts about any Gaussian — outliers beyond occur about 0.3% of the time.
Worked example — 2D Gaussian contour: Take and . The level set becomes — an ellipse with semi-axes 2 and 1 along the coordinate axes. The eigenvectors of give the principal directions; eigenvalues give the squared axis lengths.
Worked example — affine transform stays Gaussian: If and , then . So has mean 5 and standard deviation 9 — closed form, no integral needed.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.