Probability and EstimationPart 1 of 5Introductory · Updated July 31, 2026

Sampling and Distributions

Every probabilistic model assigns distributions to the quantities it does not know. Each choice fixes where the probability mass sits, how fast the tails fall and what values are possible, and these assumptions carry into every result computed from the model.

A distribution is a set of assumptions about the unknown

Writing a measurement error as ε∼N(0,σ2)\varepsilon \sim \mathcal{N}(0, \sigma^2) asserts four things:

  • The error is symmetric: an overshoot of a given size is as likely as an undershoot.
  • It is unbounded: arbitrarily large errors have non-zero probability.
  • Its tails fall off as e−x2e^{-x^2}: a 5σ error is about a million times less likely than a 1σ error.
  • It is fully described by its mean and variance.

Each assumption can fail. Sensor errors are often skewed, physical quantities are often bounded, and real data often has heavier tails than a Gaussian. Under a Gaussian model a 6σ observation is nearly impossible, so an estimator built on it moves a long way to accommodate an outlier instead of discounting it.

Gaussians are used because they are closed under linear operations

The first justification is the central limit theorem: a sum of many small independent contributions tends toward a Gaussian whatever the distribution of each contribution. Position error accumulated from many small perturbations fits this description.

The second is computational. Gaussians are closed under the operations estimation needs: a linear transform of a Gaussian, a sum of independent Gaussians and a normalised product of Gaussian densities are all Gaussian. This closure reduces the Kalman filter to a few matrix operations.

As an example, let position uncertainty grow because velocity is uncertain. If the velocity error has covariance Σv\Sigma_v, propagating for a time Δt\Delta t adds Δt2Σv\Delta t^2 \Sigma_v to the position covariance. With an independent baseline uncertainty dˉ2I\bar d^2 I, the total is

Σ(Δt)=dˉ2I+Δt2Σv\Sigma(\Delta t) = \bar d^2 I + \Delta t^2 \Sigma_v

and no integral is needed. A covariance of this form describes, for example, a point carried by an uncertain wind: a fixed floor set by how precisely its starting position is known, plus a term that grows quadratically with the time the wind has acted.

A positive quantity needs a family with positive support

A Gaussian assigns probability to every real number. For a quantity that cannot be negative, such as a latency, duration or waiting time, it therefore predicts impossible values. The Gamma family has support on (0,∞)(0, \infty) and two parameters, and its shape ranges from an exponential decay to a near-Gaussian bump:

G(x;α,β)=βαΓ(α)xα−1e−βx,x>0\mathcal{G}(x; \alpha, \beta) = \frac{\beta^\alpha}{\Gamma(\alpha)} x^{\alpha - 1} e^{-\beta x}, \qquad x > 0

Its mean is α/β\alpha/\beta and its variance α/β2\alpha/\beta^2. Inverting these gives the parameters for a stated mean μ\mu and variance VV: α=μ2/V\alpha = \mu^2/V, β=μ/V\beta = \mu/V. This is moment matching; a belief of “about 20 minutes, give or take 10” becomes G(4,0.2)\mathcal{G}(4, 0.2).

A Gamma prior updated with suitable evidence (for example, on the precision of a Gaussian) remains Gamma, so an estimate can be carried across many observations by updating two numbers.

A smooth kernel replaces a hard threshold

Some distributions in a model encode a requirement rather than a belief about a random quantity. Suppose a match should count only if a distance dd is below a width ww. The indicator 1[d<w]\mathbb{1}[d < w] is discontinuous, so downstream quantities cannot be differentiated or ranked smoothly, and it requires a value for ww, which is usually not known exactly. A Gaussian-shaped kernel removes both problems:

P(contained)=exp⁡ ⁣(−d22wˉ2)\mathbb{P}(\text{contained}) = \exp\!\left(-\frac{d^2}{2\bar w^2}\right)

A distance just above the threshold now scores slightly less instead of zero, and wˉ\bar w is a typical width rather than a hard limit. The kernel can be read as the result of treating ww as uncertain and marginalising over it. It remains a modelling choice with a probabilistic interpretation, not a measured frequency.

Closed-form evaluation often decides the choice

The three choices above share one property: a Gaussian propagated through a linear map stays Gaussian, a Gamma updated by precision-weighted fusion stays Gamma, and a Gaussian kernel costs one exponential. None requires numerical integration, sampling or an iterative solve. When a model must be evaluated many times within a fixed time budget, this property often outweighs goodness of fit: a slightly misspecified distribution evaluated exactly can be preferable to a better one that cannot be evaluated in time.

Assumptions and limitations

  • Each family imposes symmetry, support and tail behaviour; when these differ from the data, the errors appear in exactly the cases the model treats as rare.
  • Closed-form convenience applies only while the operations stay within the family. A nonlinear transform of a Gaussian is not Gaussian, and a bimodal belief has no faithful Gamma representation.
  • When no convenient family fits, the required integral has no closed form, and the dimension is too high for a grid, the alternative is Monte Carlo estimation.

Summary

  • A distribution states assumptions about symmetry, support and tails; each can be checked against the data.
  • Gaussians are justified by the central limit theorem and by closure under linear operations.
  • Positive quantities call for a family such as the Gamma; moment matching sets its parameters but does not validate its shape.
  • Smooth kernels can replace hard thresholds, giving differentiable scores.

The next tutorial, Bayes’ rule, combines such distributions to weigh competing explanations of an observation.

References

  • Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35–45. doi:10.1115/1.3662552
  • Bishop, C. M. (2006). Pattern Recognition and Machine Learning. Springer. link.springer.com/book/9780387310732
  • Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press. doi:10.1201/b16018
  • Jaynes, E. T. (2003). Probability Theory: The Logic of Science. Cambridge University Press. doi:10.1017/CBO9780511790423