Normal Distribution

The normal distribution is a continuous probability distribution defined by a mean and variance . It is used as a noise model, an approximation from the central limit theorem, and a building block for regression and uncertainty estimates.

For :

with density:

where and .

Standardization

A normal variable can be standardized:

If , then .

Multivariate Normal

For a vector :

where is a mean vector and is a covariance matrix. This connects to covariance and correlation.

The density is:

The quadratic term is the squared Mahalanobis distance:

If , all dimensions have the same independent noise scale. If is diagonal, dimensions are independent but can have different variances. A full covariance matrix models correlations, but it is more expensive and harder to estimate.

Gaussian Negative Log-Likelihood

For a target and predicted mean with fixed variance :

So minimizing Gaussian negative log-likelihood with fixed variance is equivalent to minimizing mean squared error up to scale and constants.

If the model also predicts variance :

This can represent heteroscedastic uncertainty, but the variance prediction must be checked with calibration, not only training loss.

Sampling and Reparameterization

A Gaussian sample can be written as:

For a multivariate Gaussian with covariance :

This form appears in latent-variable models and differentiable sampling because randomness is isolated in .

When the Assumption Breaks

AssumptionFailure Mode
symmetric residualsskewed errors make mean and interval claims misleading
light tailsoutliers dominate squared-error training
independent dimensionsdiagonal covariance underestimates joint uncertainty
fixed variancehigh-noise and low-noise regions receive the same confidence
calibrated variancepredicted uncertainty is interpreted as probability without validation

Why It Matters

  • Gaussian negative log-likelihood gives mean squared error when variance is fixed.
  • Many confidence intervals use a normal approximation.
  • Latent-variable models often use Gaussian priors or approximate posteriors.
  • Regression models may predict both mean and variance for uncertainty.

Checks

  • Is the variable continuous and approximately symmetric?
  • Is variance fixed, estimated, or predicted?
  • Are tails important enough that a Gaussian assumption may be unsafe?
  • Is independence assumed across dimensions, or is a full covariance matrix needed?
  • If variance is predicted, is uncertainty calibrated on held-out data?
  • Is the normal distribution used as a data model, residual approximation, latent prior, or estimator approximation?