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

Sub-Gaussian and Sub-Exponential Random Variables

The vocabulary of modern high-dimensional probability. A variable is sub-Gaussian if its tails (equivalently its log-MGF) are dominated by a Gaussian's; bounded, Gaussian and Rademacher variables all qualify, and their variance proxies add over independent sums. Squares and products of sub-Gaussians, such as χ² norms, exponential waiting times and Laplace noise, are sub-exponential: Gaussian-like near the centre, exponential further out. These two classes give Hoeffding- and Bernstein-type bounds in one stroke, the √(2 log n) growth of maxima, and the Johnson–Lindenstrauss lemma.

Level 0: Foundation

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

Light tails and heavy tails

Some random things almost never go crazy. A coin flip is 0 or 1, and noise in a good sensor is nearly always small. These have light tails: the chance of a huge value drops off super fast, as fast as for a bell curve. We call them sub-Gaussian.

Others have heavier tails: waiting times, the energy of a noisy signal, or the squared length of a random vector. Big values are still rare, but not that rare. These are sub-exponential. Knowing which kind you have tells you how many samples you need and how big an “unusual” value can get.

Light tails or heavier tails? Fit a parabola under the log-MGF
ψ(λ) and λ²σ²/2log₁₀ P(|X − μ| > t)
sub-Gaussian · variance 0.090 · variance proxy σ² = 0.181 (larger than the variance: skewness costs you)
Orange: ψ(λ) (left) and the exact tail (right). Blue dashed: the tightest parabola λ²σ²/2 above ψ, and the Gaussian-type bound 2e^(−t²/2σ²) it implies. Sub-Gaussian means a parabola fits everywhere. Sub-exponential means one fits only for small |λ|, so tails are Gaussian-like near the centre and exponential further out. Products and squares of sub-Gaussians (like χ²) are sub-exponential.
Why engineers care

Is your sensor noise light-tailed enough for a Gaussian filter? How large can the worst of 10,000 random errors get? How far can you compress a 3000-number descriptor and still compare places correctly? These questions are answered by knowing whether a variable is sub-Gaussian or sub-exponential.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A sub-Gaussian variable has tails that drop off…
  2. 2. A coin flip (0 or 1) is…
  3. 3. Waiting times (exponential) are…

Level 1: Beginner

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

Sub-Gaussian: three equivalent views

A centred variable XX is sub-Gaussian with variance proxy σ2\sigma^2 if

ψ(λ)=log⁡EeλX≤λ2σ22for all λ∈R\psi(\lambda) = \log\mathbb Ee^{\lambda X}\le\frac{\lambda^2\sigma^2}2\quad\text{for all }\lambda\in\mathbb R

Up to constants, this is equivalent to:

  • tails: P(∣X∣≥t)≤2e−t2/(2σ2)P(\lvert X\rvert\ge t)\le2e^{-t^2/(2\sigma^2)} (Chernoff, A4.3-3);
  • moments: (E∣X∣p)1/p≲σp(\mathbb E\lvert X\rvert^p)^{1/p}\lesssim\sigma\sqrt p;
  • Orlicz norm: ∥X∥ψ2=inf⁡{c:EeX2/c2≤2}<∞\lVert X\rVert_{\psi_2} = \inf\{c : \mathbb Ee^{X^2/c^2}\le2\}<\infty.

Examples: N(0,σ2)\mathcal N(0, \sigma^2) (proxy σ2\sigma^2), Rademacher ±1\pm1 (proxy 1), and any variable in [a,b][a, b] (proxy (b−a)2/4(b - a)^2/4, by Hoeffding’s lemma). The proxy is always at least the variance. A skewed Bernoulli(0.1) has variance 0.09 but proxy about 0.18.

Sums

If XiX_i are independent and σi2\sigma_i^2-sub-Gaussian, then ∑Xi\sum X_i is ∑σi2\sum\sigma_i^2-sub-Gaussian, since MGFs multiply. This is Hoeffding’s inequality, in one line.

📝 Quick check (Level 1)
0/3 answered
  1. 1. A variable in [0, 1] is sub-Gaussian with proxy at most…
  2. 2. The sum of 10 independent 2-sub-Gaussian variables has proxy…
  3. 3. Can the variance proxy be smaller than the variance?

Level 2: Intermediate

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

Sub-exponential variables

XX (centred) is sub-exponential with parameters (ν2,b)(\nu^2, b) if

ψ(λ)≤λ2ν22for ∣λ∣≤1b\psi(\lambda)\le\frac{\lambda^2\nu^2}2\quad\text{for }\lvert\lambda\rvert\le\frac1b

The MGF need only be controlled near 0. It can blow up at finite λ\lambda, as for the exponential and the Laplace. The resulting Bernstein-type tail has two regimes:

P(X≥t)≤{e−t2/(2ν2)0≤t≤ν2/be−t/(2b)t>ν2/bP(X\ge t)\le\begin{cases}e^{-t^2/(2\nu^2)} & 0\le t\le\nu^2/b\\ e^{-t/(2b)} & t > \nu^2/b\end{cases}

Key fact: if XX and YY are sub-Gaussian, then XYXY and X2−EX2X^2 - \mathbb EX^2 are sub-exponential, with ∥XY∥ψ1≤∥X∥ψ2∥Y∥ψ2\lVert XY\rVert_{\psi_1}\le\lVert X\rVert_{\psi_2}\lVert Y\rVert_{\psi_2}. Squared norms, energies, empirical covariances and quadratic forms all fall in this class.

Example: chi-square. χk2=∑i=1kZi2\chi^2_k = \sum_{i=1}^kZ_i^2. Laurent and Massart (2000) give P(χk2−k≥2kx+2x)≤e−xP(\chi^2_k - k\ge2\sqrt{kx} + 2x)\le e^{-x}. The kx\sqrt{kx} term is the Gaussian regime and the xx term is the exponential regime.

Maxima grow slowly

For nn variables, each σ2\sigma^2-sub-Gaussian (no independence needed),

Emax⁡i≤nXi≤σ2ln⁡n\mathbb E\max_{i\le n}X_i\le\sigma\sqrt{2\ln n}

Proof: eλEmax⁡≤Eeλmax⁡≤∑iEeλXi≤neλ2σ2/2e^{\lambda\mathbb E\max}\le\mathbb Ee^{\lambda\max}\le\sum_i\mathbb Ee^{\lambda X_i}\le ne^{\lambda^2\sigma^2/2}. Take logs and optimize over λ\lambda. A thousand standard Gaussians rarely exceed 3.7.

🐍 Exercise 1: computing variance proxies
Compute the optimal variance proxy max 2ψ(λ)/λ² on a grid for Rademacher, Uniform[−1,1], Gaussian and a skewed Bernoulli. Check the Kearns–Saul formula for the Bernoulli, and that proxies add over sums of uniforms (tail check).
📝 Quick check (Level 2)
0/3 answered
  1. 1. The square of a standard Gaussian, minus 1, is…
  2. 2. E max of 1000 standard Gaussians is at most…
  3. 3. A sub-exponential tail bound has…

Level 3: Advanced

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

From tails to the MGF (one direction of the equivalence)

Suppose P(∣X∣≥t)≤2e−t2/K2P(\lvert X\rvert\ge t)\le2e^{-t^2/K^2} and EX=0\mathbb EX = 0.

  1. Moments. E∣X∣p=∫0∞ptp−1P(∣X∣≥t) dt≤2p∫tp−1e−t2/K2dt=pKpΓ(p/2)\mathbb E\lvert X\rvert^p = \int_0^\infty pt^{p-1}P(\lvert X\rvert\ge t)\,dt\le2p\int t^{p-1}e^{-t^2/K^2}dt = pK^p\Gamma(p/2) (layer cake, A4.3-1). So ∥X∥p≲Kp\lVert X\rVert_p\lesssim K\sqrt p.
  2. MGF. EeλX=1+∑p≥2λpEXpp!\mathbb Ee^{\lambda X} = 1 + \sum_{p\ge2}\frac{\lambda^p\mathbb EX^p}{p!}, since the p=1p = 1 term vanishes. Using E∣X∣p≤(CKp)p\mathbb E\lvert X\rvert^p\le(CK\sqrt p)^p and p!≥(p/e)pp!\ge(p/e)^p, the series is at most 1+∑p≥2(C′K∣λ∣/p)p≤eC′′K2λ21 + \sum_{p\ge2}(C'K\lvert\lambda\rvert/\sqrt p)^p\le e^{C''K^2\lambda^2}. ∎

The constants are not optimal. The point is that tails, moments and the MGF all carry the same information, so you can prove a bound in whichever form is easiest.

Johnson–Lindenstrauss

Take A∈Rk×dA\in\mathbb R^{k\times d} with iid N(0,1/k)\mathcal N(0, 1/k) or ±1/k\pm1/\sqrt k entries. For a fixed unit vector xx, ∥Ax∥2\lVert Ax\rVert^2 is an average of kk iid sub-exponential variables with mean 1. Bernstein gives

P(∣∥Ax∥2−1∣≥ε)≤2e−ckε2P\big(\lvert\lVert Ax\rVert^2 - 1\rvert\ge\varepsilon\big)\le2e^{-ck\varepsilon^2}

Apply this to all (n2)\binom n2 difference vectors with a union bound. Then k=O(ε−2log⁡n)k = O(\varepsilon^{-2}\log n) preserves every pairwise distance within 1±ε1\pm\varepsilon, whatever dd is (Johnson and Lindenstrauss, 1984; Dasgupta and Gupta, 2003).

Exercise 3.1: Show that the variance proxy is at least the variance

Near 0, ψ(λ)=λ22Var⁡X+O(λ3)\psi(\lambda) = \frac{\lambda^2}2\operatorname{Var}X + O(\lambda^3). If ψ(λ)≤λ2σ2/2\psi(\lambda)\le\lambda^2\sigma^2/2 for all small λ\lambda, divide by λ2/2\lambda^2/2 and let λ→0\lambda\to0: Var⁡X≤σ2\operatorname{Var}X\le\sigma^2.

📝 Quick check (Level 3)
0/3 answered
  1. 1. JL's target dimension depends on…
  2. 2. Sub-Gaussian tails imply the p-th moment norm grows like…
  3. 3. In JL, ‖Ax‖² for fixed x is a sum of…

Level 4: Expert

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

Compressing place-recognition descriptors

A robot’s loop-closure module stores a 3000-number descriptor per place. A random ±1 projection to k≈400k\approx400 numbers preserves all pairwise distances within 35% for 100 places, with no training. Because JL is oblivious, the same matrix works for places not yet visited. Random projections and their sub-Gaussian analysis also underlie compressed sensing (Candès and Tao, 2006; Baraniuk et al., 2008), sketching for fast least squares (Woodruff, 2014), and locality-sensitive hashing for nearest-neighbour search.

🐍 Exercise 2 (research): Johnson–Lindenstrauss for descriptors
Project 100 descriptors from 3000-D to the JL dimension k with Gaussian and Rademacher matrices. Check that all 4950 pairwise squared distances stay within ±35%, and that a fixed vector's norm-ratio tail obeys the sub-exponential (χ²) bound.

Sub-Gaussian tools in AI, robotics and aerospace

  • Random-matrix bounds. A random sub-Gaussian n×dn\times d matrix has singular values in n±Cd\sqrt n\pm C\sqrt d (Vershynin, 2018). This governs sample covariance estimation, compressed sensing guarantees and the conditioning of random-feature models.
  • Regret of bandits and RL. Analyses of UCB, Thompson sampling and linear bandits assume sub-Gaussian reward noise. Self-normalized bounds (Abbasi-Yadkori, Pál and Szepesvári, 2011) are built on sub-Gaussian martingales.
  • Robust estimation. With heavy tails, means aren’t sub-Gaussian. Median-of-means estimators recover sub-Gaussian-type confidence bounds with only a finite variance (Lugosi and Mendelson, 2019). This matters for outlier-prone sensors.
  • Anomaly thresholds. σ2ln⁡n\sigma\sqrt{2\ln n} predicts the largest of nn healthy residuals. Thresholds below it raise false alarms at scale, for example in telemetry monitoring across thousands of channels.
  • Neural network theory. Sub-Gaussian weight initialization gives concentration of norms and kernels at initialization, the basis of NTK and mean-field analyses.

References

  1. R. Vershynin (2018). High-Dimensional Probability, Ch. 2–3 and 5. Cambridge University Press.
  2. M. Wainwright (2019). High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Ch. 2. Cambridge University Press.
  3. S. Boucheron, G. Lugosi, P. Massart (2013). Concentration Inequalities. Oxford University Press.
  4. B. Laurent, P. Massart (2000). “Adaptive estimation of a quadratic functional by model selection.” Annals of Statistics, 28(5).
  5. W. Johnson, J. Lindenstrauss (1984). “Extensions of Lipschitz mappings into a Hilbert space.” Contemporary Mathematics, 26.
  6. S. Dasgupta, A. Gupta (2003). “An elementary proof of a theorem of Johnson and Lindenstrauss.” Random Structures & Algorithms, 22(1).
  7. D. Achlioptas (2003). “Database-friendly random projections: Johnson–Lindenstrauss with binary coins.” JCSS, 66(4).
  8. M. Kearns, L. Saul (1998). “Large deviation methods for approximate probabilistic inference.” UAI.
  9. E. Candès, T. Tao (2006). “Near-optimal signal recovery from random projections.” IEEE Transactions on Information Theory, 52(12).
  10. Y. Abbasi-Yadkori, D. Pál, C. Szepesvári (2011). “Improved algorithms for linear stochastic bandits.” NeurIPS.
  11. G. Lugosi, S. Mendelson (2019). “Mean estimation and regression under heavy-tailed distributions: a survey.” Foundations of Computational Mathematics, 19.