Probability: sums of random variables and the central limit theorem
For independent random variables, the mean of a sum is the sum of the means and the variance is the sum of the variances, so the relative width of a sum of n similar terms shrinks like 1/√n. The density of a sum is the convolution of the densities. The central limit theorem says that a sum of many independent, identically distributed variables with finite variance is close to Gaussian, which is why Gaussians are everywhere in physics.
Many quantities in physics are sums: the energy of a gas is a sum over its molecules, the displacement after a random walk a sum of steps. This lecture finds how sums of random variables behave, from their means and variances to their full densities, and ends with the central limit theorem, the reason the Gaussian is so common (slides 1–19; notes pp. 47–66). (MIT's material for this lecture is Greytak's slides and his probability notes, Chapter 4; this page follows them in its own words, with its own worked example. The notes' figures are not reproduced. In the formulas for the density of a sum, this page writes ζ for the value of the sum and η for the integration variable; the notes use other letters.)
Let Sn=∑i=1nxi for nstatistically independent variables, with means Ei and variancesσi2; their densities need not be alike (notes p. 47). The mean of the sum is the sum of the means. For the variance, expanding ⟨(Sn−⟨Sn⟩)2⟩ gives terms ⟨(xi−Ei)(xj−Ej)⟩, which vanish for i=j by independence (notes pp. 47–48):
Mean and variance of a sum
⟨Sn⟩=i=1∑nEi,Var(Sn)=i=1∑nσi2
In words
the average of capital S sub n equals the sum from i equals 1 to n of capital E initial, Var ( capital S sub n ) equals the sum from i equals 1 to n of sigma sub i squared
These hold for any n, for continuous and discrete variables alike, even when one term dominates (slides 1–2). For identical variables, ⟨Sn⟩=nE and Var(Sn)=nσ2: the mean grows like n but the width only like n, so the density becomes sharply peaked about its mean as n grows (notes p. 48; slide 3). This is why the thermodynamic properties of large systems are so well defined.
valid even when x and y are dependent; for the jointly Gaussian pair of Lecture 2 it gives a Gaussian of zero mean and variance2σ2(1+ρ) (slide 5). For independent variables it is a convolution (notes p. 49; slide 6):
Convolution
ps(ζ)=∫−∞∞px(η)py(ζ−η)dη
In words
p sub s ( zeta ) equals the integral from minus infinity to infinity of p sub x ( eta ) p sub y the quantity zeta minus eta, d eta
In general the convolution of two functions p and q (written p ⊗ q in the notes) is ∫−∞∞p(z)q(x−z)dz. Convolution is commutative, distributive and associative. To picture it: flip q about the origin, shift it by x, multiply by p, integrate, and repeat for each x (notes pp. 49–51).
Examples (notes pp. 51–55; slides 7–13). Two independent uniform variables, on ∣x∣≤a and ∣y∣≤b with b<a, sum to a trapezoid, flat for ∣S∣<a−b and falling linearly to zero at a+b; equal widths give a triangle. Unpolarized thermal light is two independent, equally bright polarizations, each with the intensitydensity of Lecture 3; their convolution is a pure exponential, p(IT)=2σ1e−IT/(2σ), where σ is now the mean intensity of one polarization (the notes reuse the letter this way; on the previous page σ2 was the variance of the field). In the slides, two members of the family n!a1(z/a)ne−z/aconvolve into a member of the same family; and the total time an atom of a hydrogen maser spends on the wall of its storage flask, after n independent exponential stays of mean τ, has the densityk!τ1(t/τ)ke−t/τ with k=n−1.
Forms that survive (notes pp. 55–59; slides 14–15). Convolution usually changes the shape, but not always. The sum of independent Gaussians is Gaussian, with means and variances adding; the sum of independent Poisson variables is Poisson; and the sum of independent Lorentzians (Cauchy densities)
Lorentzian density
p(x)=π1(x−m)2+Γ2Γ
In words
p(x) equals 1 over pi, times capital gamma over the quantity the quantity x minus m, all squared plus capital gamma squared
is Lorentzian with the half-widths Γ adding, not their squares: the Lorentzian's variance is infinite, so the rule for variances does not apply (notes pp. 56 and 60). The easy way to see all three is with Fourier transforms: the transform of a convolution is the product of the transforms, and these three transforms keep their form when multiplied (notes pp. 58–59).
When all n variables are independent, identically distributed, with finite variance, and n is large (notes p. 60; slides 16–18):
Central limit theorem
p(Sn)≈2πnσx21exp(−2nσx2(Sn−nEx)2)
In words
p( capital S sub n ) is approximately 1 over the square root of 2 pi n sigma sub x squared, times exp (- the quantity capital S sub n minus n capital E sub x, all squared over the quantity 2 n sigma sub x squared, )
The finite variance excludes cases like the Lorentzian. "For large n" is often satisfied quickly. And "well represented" is deliberately loose: a sum of discrete variables stays discrete, a comb of delta functions whose envelope approaches the Gaussian (notes pp. 60–61; slide 18). Useful non-rigorous extensions: the Gaussian is often a good approximation for modest n; the theorem may work even when the variables are not identical, provided none dominates the sum; and even independence can sometimes be relaxed when n is very large (notes p. 61; slide 19). Knowingly or not, the theorem is often behind the assumption that a physical quantity is Gaussian.
How fast? (notes pp. 62–66). For four uniform variables on (−a,a), the exact density, a piecewise cubic, is already close to the Gaussian of variance4a2/3. A one-sided exponential, discontinuous and lopsided, needs more terms: the sum of n exponentials of mean a has the densityk!ak+1Ske−S/a with k=n−1, which approaches the Gaussian only slowly. A Poisson density of large mean, itself a sum of Poissons, approaches a Gaussianenvelope too.
Loading graph…
The sum of n independent exponentials of mean a, computed from the exact formula above, against the central-limit Gaussian of mean na and variance na2. For small n the exact density is lopsided; by n≈20 they are close, though a slight lopsidedness remains.
Worked example
Dice, light and a maser
(a) Ten fair dice are rolled and added. Find the mean and standard deviation of the total, and estimate with the central limit theorem the probability that the total is 45 or more. (b) For unpolarized thermal light with mean total intensity⟨IT⟩, what fraction of the time is the intensity above twice its mean? (c) An atom makes 25 independent stays on a wall, each exponential with mean τ. Find the mean and standard deviation of the total time.
(a) Dice
One die has mean 3.5 and variance1235≈2.92. Ten dice: mean 35, variance about 29.2, standard deviation about 5.40. A total of 45 or more, with the half-step correction for a discrete sum, starts at 44.5, which is 9.5/5.40≈1.76standard deviations above the mean; the Gaussian gives about 0.039.
(b) Bright moments
p(IT)=⟨IT⟩1e−IT/⟨IT⟩, so prob(IT>2⟨IT⟩)=e−2≈0.135: thermal light is bright in bursts.
(c) Time on the wall
Means and variances add: 25τ and 25τ2, so the standard deviation is 5τ, a fifth of the mean, while for a single stay it equals the mean.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
A path made of steps in random directions; after N steps of length λ the typical distance from the start is only about λ√N. Explained in Mean free path, effusion, sound and diffusion.
A quantity whose value cannot be predicted from what is known, although its behaviour follows the rules of probability. Explained in Probability: one random variable.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
The variable inside an integral or sum, which could be renamed without changing the result, like the t in ∫ f(t) dt. Explained in The second fundamental theorem of calculus.
Of random quantities or events: knowing one tells you nothing about the other, so their joint probability is the product of their separate probabilities.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
A way of combining two functions by sliding one across the other and adding up their overlapping products at each shift. Explained in The convolution formula.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
How much energy a wave, or a beam of particles, carries each second through each square metre of a surface facing it. Explained in Sound and intensity.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
An idealised spike: zero everywhere except at one point, yet with total area one. It describes a sudden kick or a point source. Explained in The Fourier transform and AM radio.
The smooth curve that just touches the peaks of a fast oscillation or a row of peaks, showing how their size slowly changes. Explained in Coupled pendulums and beats.
A measure of how widely values are spread around their average, in the same units as the values: the square root of the variance. Explained in Probability: one random variable.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).