TL;DR
The Gaussian, or normal, distribution is the familiar bell curve. It is completely described by two numbers: where its centre is (the mean) and how spread out it is (the variance). Most values land close to the centre, and values far from it become rare very quickly.
It shows up everywhere because adding up many small, independent influences produces a bell shape, whatever those influences looked like on their own. That makes it the default model for measurement noise, and it is why "least squares" works.
Where you'll see it: in the noise that diffusion models add to an image at every step, in the error bars on a lab measurement, and in the weight initialisation of nearly every neural network.
Intuition
A bell made of many small pushes
Imagine a ball bearing dropped through a board of pegs (a Galton board). At each peg it bounces left or right with equal chance, a tiny nudge each time. After sixty pegs its final position is the sum of sixty tiny random nudges. Most bearings end up near the middle, because for the total to be far out, almost every nudge has to go the same way. Stack up many bearings and you get a bell.
That is the whole story of the Gaussian. A measurement error is rarely one big cause. It is thermal jitter, rounding, a slightly warm sensor, a vibrating table, all added together. Heights are shaped by many genes and many meals. When a quantity is the sum of lots of small independent effects, it is approximately Gaussian, and this holds even if each individual effect is lopsided or lumpy. This is the central limit theorem, and we will watch it happen with real numbers below.
- σ = 0.5
- σ = 1
- σ = 2
Two knobs, one shape
Every Gaussian is the same bell, moved and stretched. The mean slides it left or right. The standard deviation stretches it horizontally (and, to keep the area at 1, squashes it vertically). One "standard" bell and a conversion rule are enough for everything.
Why it is the default noise model
There are two reasons, and they reinforce each other.
- It is what the sum-of-many-causes argument predicts. If noise comes from many small sources, Gaussian is the right guess before you measure anything.
- It is the least presumptuous choice. Among all distributions with a given mean and variance, the Gaussian has the highest entropy: it assumes the least beyond those two numbers. If all you trust is a centre and a spread, the Gaussian is the honest model.
It is also very convenient. Add independent Gaussians and you get a Gaussian. Scale or shift one and you get a Gaussian. Condition one on another and you get a Gaussian. That closure is why Kalman filters, Gaussian processes and diffusion models are built on it.
flowchart LR A[Many small independent effects] --> B[Bell-shaped noise] B --> C[Gaussian noise model] C --> D[Maximum likelihood equals least squares] C --> E[Gaussian priors give weight decay] C --> F[Add noise step by step in diffusion models]
The math
Definition
A random variable is Gaussian with mean and variance , written , if its probability density function is
Here is a value the variable might take, is the centre of the bell, and is the standard deviation. The factor is exactly what makes the total area equal to 1. Inside the exponential, is the squared distance from the centre, so the density falls off with squared distance, fast. The parameters really are the mean and variance: and . The peak height is , which is about when .
Standardisation
Subtract the mean and divide by the standard deviation to get a standard Gaussian:
is the "z-score": how many standard deviations sits from its mean. Every Gaussian probability can be turned into a question about . We write for the standard Gaussian cumulative distribution function (CDF). It has no closed form, so we look it up in a table or call a library. A few values: , , .
The 68-95-99.7 rule
From those values, the probability of landing within standard deviations of the mean is :
- standard Gaussian
Sums of independent Gaussians
If and are independent, then
Means add, and so do variances (not standard deviations). Scaling gives . Together these say the family is closed under linear operations, which is the property that makes Gaussians so tractable.
The multivariate form with a diagonal covariance
For a vector with mean vector and covariance matrix (a matrix whose entries say how pairs of coordinates vary together), the density is
The simplest case is a diagonal covariance, . The coordinates are then independent and the density factorises into one-dimensional Gaussians:
When every coordinate has the same variance, , where is the identity matrix, and the contours of equal density are circles (spheres in higher dimensions). This isotropic form is the one used for image noise.
The reparameterisation trick
To sample , draw a standard Gaussian and compute
This is just the standardisation formula run backwards. It moves all the randomness into , which does not depend on or . The sample is now a smooth, differentiable function of the parameters: and . So gradients can flow through the sampling step. Variational autoencoders and diffusion models both rely on this. In a diffusion model, a noisy image is with , which is this same trick with a data-dependent mean.
Watching the central limit theorem happen
Add up independent uniform random numbers, each between 0 and 1. One uniform has mean and variance , so the sum of has mean and variance . The exact density of that sum is piecewise cubic, and the plot compares it with the Gaussian of the same mean and variance. Even with only four terms the match is already close.
- Gaussian, mean 2, variance 1/3
- exact density of the sum of 4 uniforms
Worked examples
Adult heights in some population are roughly Gaussian with cm and cm.
Question 1: what fraction are between 160 and 180 cm?
- Standardise both ends: and .
- That is the "within one standard deviation" event, so the probability is .
- About 68% of people.
Question 2: what fraction are taller than 190 cm?
- .
- .
- About 2.3%, or roughly 1 person in 44.
An exam has scores that are roughly Gaussian with and . You scored 85.
- The z-score is .
- From a table, .
- You beat about 88.5% of test takers, so you are around the 88th percentile.
A commute has two independent legs. The bus leg takes minutes and the walk takes minutes. What is the chance the total exceeds 12 minutes?
- The total is Gaussian: mean , variance , so .
- The standard deviation is . Note it is not ; variances add, not standard deviations.
- Standardise: .
- .
- About a 13% chance of a commute longer than 12 minutes.
We want a sample from , so and . A random number generator gives from .
- .
- If a training loop nudges up from 3 to 3.1 with held fixed, becomes . The sample moved by , exactly as predicts.
Tradeoffs and failure modes
The Gaussian is a good default, and a dangerous one when you stop checking it. Its tails fall off as , which is extremely fast. A 5-sigma event under a Gaussian has probability about , but real data (financial returns, network traffic, incomes, file sizes) produces such events far more often.
| Situation | Problem with a Gaussian | Better fit |
|---|---|---|
| Outliers and heavy tails | One extreme value drags the mean and inflates the variance; tails are underestimated | Student-t (power-law tails) |
| Robust regression | Squared error punishes outliers harshly | Laplace noise, which gives absolute error loss |
| Skewed data (incomes, response times) | Gaussian is symmetric | Log-normal, gamma |
| Bounded quantities (probabilities, proportions) | Gaussian puts mass outside the allowed range | Beta, or a transformed Gaussian |
| Counts of rare events | Gaussian is continuous and can go negative | Poisson |
| Several clusters | One bell cannot have two humps | Mixture of Gaussians |
Some practical warnings:
- Least squares is only optimal under Gaussian noise. Minimising squared error is maximum likelihood exactly when the noise is Gaussian. With heavy-tailed noise, a few bad points dominate the fit.
- The central limit theorem is about sums, and about "enough" terms. Products compound instead of adding (that gives a log-normal), and if one term has enormous variance or infinite variance, the sum never becomes Gaussian.
- Do not trust "looks bell-shaped". Check the tails with a quantile-quantile plot.
History
Abraham de Moivre found the curve in 1733 while approximating the binomial distribution: how likely is it to get, say, 60 or more heads in 100 coin flips? Computing binomial sums by hand was brutal, and he showed that for many trials the answer follows a smooth exponential curve. This was the first version of the central limit theorem.
Pierre-Simon Laplace picked it up in the 1770s and 1780s and proved far more general versions, showing that sums of many independent errors become bell-shaped. Carl Friedrich Gauss arrived from a different direction. In 1809, working out the orbit of the asteroid Ceres from noisy telescope readings, he asked which error law would make the arithmetic mean the best estimate. The answer was the exponential-of-squared-error curve, and the method that follows from it is least squares. (Legendre had published least squares in 1805; the priority dispute with Gauss was bitter.)
The curve got the name "normal" late in the 19th century from Karl Pearson, who later regretted it because it suggested other distributions were abnormal. It caught on because Gauss's and Laplace's arguments fit together neatly: errors are sums of many small causes, so they are Gaussian, so least squares is the right way to combine measurements. That bundle of ideas dominated statistics for two centuries and now sits underneath modern machine learning.
Check yourself
QuestionA Gaussian has mean 100 and standard deviation 15. Roughly what fraction of values fall between 70 and 130?Show answer
The interval is mean plus or minus 2 standard deviations (100 ± 30), so by the 68-95-99.7 rule about 95% (more precisely 95.45%).
QuestionIf and are independent, what is the distribution of , and why is its standard deviation not 2 + √5?Show answer
, so its standard deviation is 3. Means and variances add for independent variables. Standard deviations are square roots of variances, so they combine as , not .
QuestionYou need a sample from and your generator gives from the standard Gaussian. What is the sample, and why is this form useful for training neural networks?Show answer
Here , so . It is useful because the randomness sits entirely in , which does not depend on the parameters, so is a differentiable function of and and gradients can pass through the sampling step.
QuestionA model of stock returns uses a Gaussian and says a 6-sigma daily drop should happen once in millions of years, yet it happens every few years. What went wrong, and what would you try instead?Show answer
Real returns have heavy tails, and the Gaussian tail decays as , which badly underestimates extreme events. A Student-t (or another heavy-tailed or mixture model) assigns far more probability to extremes. You would also check the tails with a quantile-quantile plot before trusting the model.
Sources
- Bishop, Pattern Recognition and Machine Learning, §2.3: https://www.microsoft.com/en-us/research/publication/pattern-recognition-machine-learning/
- Normal distribution (Wikipedia): https://en.wikipedia.org/wiki/Normal_distribution
- Central limit theorem (Wikipedia): https://en.wikipedia.org/wiki/Central_limit_theorem
- Stephen Stigler, The History of Statistics (Harvard University Press): https://www.hup.harvard.edu/books/9780674403413
- Ho, Jain, Abbeel, Denoising Diffusion Probabilistic Models (2020): https://arxiv.org/abs/2006.11239
- Kingma and Welling, Auto-Encoding Variational Bayes (2013): https://arxiv.org/abs/1312.6114