Foundations to Frontier
Tests
A. Mathematical Foundations › A4 Probability Theory › Distributions

Continuous Distributions: Uniform, Normal, Exponential, Gamma, Beta, Student-t, Laplace

Seven continuous families cover most modelling needs: uniform (no preference), normal (sums of many small effects), exponential (memoryless waiting), gamma (waiting for k events), beta (probabilities and proportions), Student-t and Laplace (heavy and sharp tails). This page gives their shapes, moments and the constructions linking them, and shows why the choice of tail matters: a Student-t noise model makes position estimates immune to GPS multipath outliers.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Shapes of uncertainty

Continuous quantities come in a few typical shapes:

  • flat, when anything in a range is equally likely, like where a spinner stops;
  • the bell curve, for errors that come from adding up many tiny effects;
  • steeply falling, for how long until the next random event, such as the next cosmic-ray hit;
  • squeezed between 0 and 1, for uncertain probabilities;
  • heavy-tailed, when rare huge surprises happen more often than a bell curve allows.

Each shape is a named continuous distribution with known formulas.

The continuous families
CDF
mean = 2.000 · variance = 2.000 · story: waiting for the k-th event; positive quantities with skew (rainfall, service times)
Why engineers care

A drone’s GPS is usually off by about a metre. But near tall buildings, reflected signals (“multipath”) occasionally push it off by 30 m. Treat that noise as a bell curve and one bad reading drags the position estimate away. Model it with a heavy-tailed distribution and the estimator shrugs it off.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Measurement errors from many small causes tend to be…
  2. 2. Uniform on [0, 10]: P(X < 3) = ?
  3. 3. 'Rare huge surprises more often than a bell curve' means…

Level 1: Beginner

★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.

The families

Family Density Mean Variance Typical use
Uniform(a,ba,b) 1b−a\frac1{b-a} on [a,b][a,b] a+b2\frac{a+b}2 (b−a)212\frac{(b-a)^2}{12} quantization, random phase
Normal(μ,σ2\mu,\sigma^2) 1σ2πe−(x−μ)2/2σ2\frac1{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/2\sigma^2} μ\mu σ2\sigma^2 sensor noise, CLT
Exponential(λ\lambda) λe−λx\lambda e^{-\lambda x}, x≥0x\ge0 1/λ1/\lambda 1/λ21/\lambda^2 waiting times, lifetimes
Gamma(k,λk,\lambda) λkxk−1e−λxΓ(k)\frac{\lambda^kx^{k-1}e^{-\lambda x}}{\Gamma(k)} k/λk/\lambda k/λ2k/\lambda^2 time to the k-th event, positive rates
Beta(α,β\alpha,\beta) xα−1(1−x)β−1B(α,β)\frac{x^{\alpha-1}(1-x)^{\beta-1}}{B(\alpha,\beta)} on [0,1][0,1] αα+β\frac\alpha{\alpha+\beta} αβ(α+β)2(α+β+1)\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)} probabilities, proportions
Student-t(ν\nu) ∝(1+x2/ν)−(ν+1)/2\propto(1 + x^2/\nu)^{-(\nu+1)/2} 0 (ν>1\nu > 1) νν−2\frac\nu{\nu-2} (ν>2\nu > 2) outliers, small samples
Laplace(μ,b\mu,b) 12be−∣x−μ∣/b\frac1{2b}e^{-\lvert x-\mu\rvert/b} μ\mu 2b22b^2 sparse priors (ℓ¹), impulsive noise

The 68–95–99.7 rule: a normal variable is within 1σ, 2σ and 3σ of its mean with probability about 0.683, 0.954 and 0.997.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Uniform(2, 8) variance?
  2. 2. Exponential with rate 0.5: mean?
  3. 3. Beta(α, β) lives on…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

How they connect

  • Exponential → gamma: the sum of kk independent Exp(λ\lambda) is Gamma(k,λk,\lambda), the time of the kk-th Poisson event.
  • Gamma → beta: for independent X∼X\simGamma(α\alpha) and Y∼Y\simGamma(β\beta) with the same rate, X/(X+Y)∼X/(X+Y)\simBeta(α,β\alpha,\beta).
  • Normal → χ² → t: Z2∼χ12Z^2\sim\chi^2_1. Then ∑i≤νZi2∼χν2\sum_{i\le\nu}Z_i^2\sim\chi^2_\nu = Gamma(ν/2,1/2\nu/2, 1/2), and Z/χν2/ν∼tνZ/\sqrt{\chi^2_\nu/\nu}\sim t_\nu. As ν→∞\nu\to\infty, tν→N(0,1)t_\nu\to\mathcal N(0,1).
  • Exponential → Laplace: the difference of two i.i.d. exponentials is Laplace.
  • Minimum of exponentials: min⁡iExp(λi)=Exp(∑λi)\min_i\text{Exp}(\lambda_i) = \text{Exp}(\sum\lambda_i). In a series system, failure rates add.
  • Memorylessness: P(X>s+t∣X>s)=e−λtP(X > s + t\mid X > s) = e^{-\lambda t}, and the exponential is the only continuous distribution with this property.
  • Student-t as a scale mixture: a normal whose variance is itself random (inverse-gamma) gives a Student-t. That’s the source of its robustness (Exercise 2).

Tails decide robustness

The log-density’s tail behaviour determines how strongly an outlier pulls an estimate (its influence function):

  • Normal: quadratic log-density, so the pull grows linearly with the residual. Outliers dominate.
  • Laplace: linear, so the pull is bounded. The MLE is the median.
  • Student-t: logarithmic, so the pull fades as the residual grows and large outliers are almost ignored.
🐍 Exercise 1: seven families and how they connect
Implement the seven densities, using log-gamma for stability. Check normalization, means and variances by numerical integration. Then verify by simulation that sums of exponentials are gamma, gamma ratios are beta, normal/√(χ²/ν) is Student-t, and differences of exponentials are Laplace.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Sum of 3 independent Exp(λ):
  2. 2. Min of Exp(1/1000), Exp(1/2000), Exp(1/4000) has mean…
  3. 3. The MLE of location under Laplace noise is the…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Derivations

  • Exponential memorylessness. P(X>s+t)/P(X>s)=e−λ(s+t)/e−λs=e−λtP(X > s+t)/P(X > s) = e^{-\lambda(s+t)}/e^{-\lambda s} = e^{-\lambda t}. Conversely, a survival function with G(s+t)=G(s)G(t)G(s+t) = G(s)G(t) that’s monotone must be exponential (Cauchy’s functional equation). ∎
  • Minimum of exponentials. P(min⁡>t)=∏P(Xi>t)=e−(∑λi)tP(\min > t) = \prod P(X_i > t) = e^{-(\sum\lambda_i)t}. ∎
  • Uniform quantization noise. Rounding to a grid of step Δ\Delta gives error approximately Uniform(−Δ/2,Δ/2-\Delta/2, \Delta/2), with variance Δ2/12\Delta^2/12. That’s the classic ADC noise floor, and the reason a 12-bit converter has SNR ≈ 6.02 × 12 + 1.76 dB. ∎
  • The normal normalization ∫e−x2/2=2π\int e^{-x^2/2} = \sqrt{2\pi} comes from squaring the integral and switching to polar coordinates (A3.1-8).

Gamma and beta functions

Γ(k)=∫0∞xk−1e−xdx\Gamma(k) = \int_0^\infty x^{k-1}e^{-x}dx satisfies Γ(k+1)=kΓ(k)\Gamma(k+1) = k\Gamma(k) and Γ(n)=(n−1)!\Gamma(n) = (n-1)!. B(α,β)=Γ(α)Γ(β)/Γ(α+β)B(\alpha,\beta) = \Gamma(\alpha)\Gamma(\beta)/\Gamma(\alpha+\beta) normalizes the beta. In code, always work with log-gamma: Γ(171)\Gamma(171) already overflows a double.

Exercise 3.1: Show that the Student-t with ν = 1 is the Cauchy distribution and has no mean

For ν=1\nu = 1, the density is 1π(1+x2)\frac1{\pi(1+x^2)}. Then ∫∣x∣/(π(1+x2)) dx\int|x|/(\pi(1+x^2))\,dx diverges like ∫dx/x\int dx/x (A4.1-7).

📝 Quick check (Level 3)
0/3 answered
  1. 1. Γ(5) = ?
  2. 2. Quantization noise variance with step Δ?
  3. 3. Student-t(1) is the…

Level 4: Expert

★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.

Heavy-tailed noise models for robust estimation

GNSS in urban canyons, lidar returns off glass, and visual feature mismatches all produce outliers that a Gaussian noise model can’t handle: one bad measurement drags the estimate. Modelling the noise as Student-t gives an M-estimator whose IRLS weights wi=ν+1ν+ri2/s2w_i = \frac{\nu+1}{\nu + r_i^2/s^2} automatically down-weight large residuals. It recovers the truth with almost no loss of efficiency on clean data (Lange, Little and Taylor, 1989). Robust kernels such as Huber, Cauchy and Geman–McClure play the same role in SLAM back-ends and bundle adjustment (Agarwal et al., 2013; Barron, 2019). The choice of tail is a modelling decision with safety consequences.

🐍 Exercise 2 (research): robust positioning with Student-t noise
Simulate position fixes with Gaussian noise plus 10% multipath outliers. Compare the sample mean (Gaussian MLE), the median (Laplace MLE) and the Student-t MLE computed by IRLS, then check that the t estimator loses little on clean data.

The families across AI, robotics and aerospace

  • Reliability. Exponential lifetimes (a constant hazard) for electronics in their useful life, Weibull and gamma for wear-out. In series systems rates add, which is the basis of MIL-HDBK-217-style predictions.
  • Bayesian priors. Beta for success probabilities, gamma for rates and precisions, Laplace for sparsity (the Bayesian lasso; Park and Casella, 2008), Student-t for robust regression. Conjugacy comes next (A4.2-5).
  • Deep learning. Weight initializations use uniform or normal distributions with variance ∝1/fan-in\propto1/\text{fan-in} (Glorot and Bengio, 2010; He et al., 2015). Diffusion models add Gaussian noise. Heavy-tailed gradient noise in SGD has been observed and analysed (Şimşekli, Sagun and Gürbüzbalaban, 2019).
  • Rare-event and extreme-value thinking. Wind gusts on launch vehicles, solar-storm particle fluxes and sensor glitches are heavy-tailed. Using a normal model underestimates extreme loads by orders of magnitude (Practice Code 5).

References

  1. N. Johnson, S. Kotz, N. Balakrishnan (1994–95). Continuous Univariate Distributions, Vols. 1–2, 2nd ed. Wiley.
  2. K. Lange, R. Little, J. Taylor (1989). “Robust statistical modeling using the t distribution.” JASA, 84(408).
  3. P. Agarwal, G. D. Tipaldi, L. Spinello, C. Stachniss, W. Burgard (2013). “Robust map optimization using dynamic covariance scaling.” ICRA.
  4. J. Barron (2019). “A general and adaptive robust loss function.” CVPR.
  5. T. Park, G. Casella (2008). “The Bayesian lasso.” JASA, 103(482).
  6. X. Glorot, Y. Bengio (2010). “Understanding the difficulty of training deep feedforward neural networks.” AISTATS.
  7. K. He, X. Zhang, S. Ren, J. Sun (2015). “Delving deep into rectifiers.” ICCV.
  8. U. Şimşekli, L. Sagun, M. Gürbüzbalaban (2019). “A tail-index analysis of stochastic gradient noise in deep neural networks.” ICML.
  9. B. Widrow, I. Kollár (2008). Quantization Noise. Cambridge.