The moment generating function of a random variable \(X\) is
\[ M_X(t) \;=\; E(e^{tX}), \quad t \in \mathbb{R}, \]provided the expectation exists in some neighbourhood of \(t = 0\).
Expanding \(e^{tX} = 1 + tX + \dfrac{t^2 X^2}{2!} + \cdots\) and taking expectation:
\(X\) ~ Bernoulli(\(p\)): \(M_X(t) = q + p e^t\) where \(q = 1-p\).
\(M_X'(t) = pe^t,\; M_X'(0) = p = E(X)\).
\(M_X''(t) = pe^t,\; M_X''(0) = p = E(X^2);\) Var = \(p - p^2 = pq\).
\(X\) ~ Exp(\(\lambda\)) with \(f(x) = \lambda e^{-\lambda x},\; x \ge 0\).
\(M_X(t) = \int_0^\infty \lambda e^{-(\lambda - t)x}\,dx = \dfrac{\lambda}{\lambda - t},\; t < \lambda\).
\(E(X) = M'(0) = 1/\lambda,\; E(X^2) = 2/\lambda^2;\) Var = \(1/\lambda^2\).
Proof. \(M_{CX}(t) = E\big(e^{tCX}\big) = E\big[e^{X(Ct)}\big] = M_X(Ct)\).
Statement. The moment generating function of the sum of \(n\) independent random variables is equal to the product of their respective m.g.f.s: if \(X_1, X_2, \ldots, X_n\) are independent,
\[ M_{X_1 + X_2 + \cdots + X_n}(t) = M_{X_1}(t)\,M_{X_2}(t) \cdots M_{X_n}(t) . \]Proof.
\[ \begin{aligned} M_{X_1 + X_2 + \cdots + X_n}(t) &= E\big[e^{t(X_1 + X_2 + \cdots + X_n)}\big] \qquad [\text{definition}] \\ &= E\big[e^{tX_1}\,e^{tX_2} \cdots e^{tX_n}\big] \\ &= E\big(e^{tX_1}\big)\,E\big(e^{tX_2}\big) \cdots E\big(e^{tX_n}\big) \qquad [\text{independence}] \\ &= M_{X_1}(t)\,M_{X_2}(t) \cdots M_{X_n}(t) . \end{aligned} \]The second line uses the multiplication theorem of expectation (Unit 4): \(e^{tX_1}, \ldots, e^{tX_n}\) are independent because \(X_1, \ldots, X_n\) are.
Statement. The m.g.f. is not independent of a change of origin and scale.
Proof. Let \(U = (X - a)/h\). Then
\[ \begin{aligned} M_U(t) &= E\big(e^{tU}\big) = E\big[e^{t(X - a)/h}\big] = E\big[e^{tX/h}\,e^{-ta/h}\big] = e^{-ta/h}\,E\big(e^{tX/h}\big) \\ &= e^{-ta/h}\,M_X(t/h) . \end{aligned} \]So the m.g.f. is affected by a change of origin and scale: the origin brings in the factor \(e^{-ta/h}\), and the scale rescales the argument.
The moment generating function of a distribution, if it exists, uniquely determines the distribution: to a given probability distribution there corresponds only one m.g.f., and to a given m.g.f. only one probability distribution. So \(M_X(t) = M_Y(t)\) (for \(t\) in an interval around 0) \(\Rightarrow\) \(X\) and \(Y\) are identically distributed.
when it exists for \(|t_1|, |t_2|\) small. Then
For the bivariate normal, \(M_{X,Y}(t_1,t_2) = \exp\big(\mu_1t_1 + \mu_2t_2 + \tfrac12(\sigma_1^{2}t_1^{2} + 2\rho\sigma_1\sigma_2t_1t_2 + \sigma_2^{2}t_2^{2})\big)\), which factorises exactly when \(\rho = 0\): uncorrelated bivariate normal variables are independent.
\(P(0,0) = 0.4\), \(P(0,1) = 0.2\), \(P(1,0) = 0.1\), \(P(1,1) = 0.3\). Then \(M(t_1,t_2) = 0.4 + 0.2e^{t_2} + 0.1e^{t_1} + 0.3e^{t_1+t_2}\). Differentiating at the origin: \(E(X) = 0.1 + 0.3 = 0.4\), \(E(Y) = 0.2 + 0.3 = 0.5\), \(E(XY) = 0.3\), so \(\operatorname{Cov}(X,Y) = 0.3 - 0.2 = 0.1\). The product of the marginals is \((0.6 + 0.4e^{t_1})(0.5 + 0.5e^{t_2}) = 0.3 + 0.3e^{t_2} + 0.2e^{t_1} + 0.2e^{t_1+t_2}\), which differs from \(M\): \(X\) and \(Y\) are not independent.
The cumulant generating function is the natural logarithm of the MGF:
\[ K_X(t) \;=\; \ln M_X(t) \]The first few cumulants are:
\(K(t) = \ln(q + p e^t)\). \(K'(0) = p,\; K''(0) = pq\). Confirms mean = \(p\), var = \(pq\).
\(K(t) = \ln \lambda - \ln(\lambda - t)\). \(K'(0) = 1/\lambda;\; K''(0) = 1/\lambda^2\).
Let \(K_1, K_2, \ldots, K_r, \ldots\) be the cumulants. Then
\[ \begin{aligned} K_X(t) &= K_1 t + K_2\frac{t^2}{2!} + \cdots + K_r\frac{t^r}{r!} + \cdots = \log M_X(t) \\ &= \log\left[1 + \mu_1't + \mu_2'\frac{t^2}{2!} + \cdots + \mu_r'\frac{t^r}{r!} + \cdots\right] , \end{aligned} \]and the \(r\)th cumulant is \(K_r\) = the coefficient of \(t^r/r!\) in \(K_X(t)\). Using \(\log(1 + x) = x - \dfrac{x^2}{2} + \dfrac{x^3}{3} - \cdots\),
\[ \begin{aligned} &K_1t + K_2\frac{t^2}{2!} + K_3\frac{t^3}{3!} + K_4\frac{t^4}{4!} + \cdots \\ &\quad = \left(\mu_1't + \mu_2'\frac{t^2}{2!} + \mu_3'\frac{t^3}{3!} + \mu_4'\frac{t^4}{4!} + \cdots\right) \\ &\quad - \frac12\left(\mu_1't + \mu_2'\frac{t^2}{2!} + \mu_3'\frac{t^3}{3!} + \cdots\right)^2 \\ &\quad + \frac13\left(\mu_1't + \mu_2'\frac{t^2}{2!} + \cdots\right)^3 - \frac14\left(\mu_1't + \cdots\right)^4 + \cdots \end{aligned} \]Comparing the coefficients of the powers of \(t\) on both sides:
\[ \begin{aligned} t:&\quad \mu_1' &&\Longrightarrow\; K_1 = \mu_1' = \text{mean}, \\ t^2:&\quad \tfrac12\mu_2' - \tfrac12\mu_1'^{\,2} &&\Longrightarrow\; K_2 = \mu_2' - \mu_1'^{\,2} = \mu_2 = \text{variance}, \\ t^3:&\quad \tfrac16\mu_3' - \tfrac12\mu_1'\mu_2' + \tfrac13\mu_1'^{\,3} &&\Longrightarrow\; K_3 = \mu_3' - 3\mu_2'\mu_1' + 2\mu_1'^{\,3} = \mu_3 . \end{aligned} \]For \(t^4\): the first bracket gives \(\mu_4'/24\); the square gives \(\mu_2'^{\,2}/4 + \mu_1'\mu_3'/3\); the cube gives \(\tfrac32\mu_1'^{\,2}\mu_2'\); the fourth power gives \(\mu_1'^{\,4}\). With the signs and divisors of the log series, and multiplied by \(4! = 24\),
\[ \begin{aligned} K_4 &= \mu_4' - 3\mu_2'^{\,2} - 4\mu_3'\mu_1' + 12\mu_2'\mu_1'^{\,2} - 6\mu_1'^{\,4} \\ &= \big(\mu_4' - 4\mu_3'\mu_1' + 6\mu_2'\mu_1'^{\,2} - 3\mu_1'^{\,4}\big) - 3\big(\mu_2'^{\,2} - 2\mu_2'\mu_1'^{\,2} + \mu_1'^{\,4}\big) \\ &= \mu_4 - 3\big(\mu_2' - \mu_1'^{\,2}\big)^2 = \mu_4 - 3\mu_2^2 . \end{aligned} \]So \(K_4 = \mu_4 - 3K_2^2\), and the moments from the cumulants are: mean \(= K_1\), variance \(\mu_2 = K_2\), \(\mu_3 = K_3\), \(\mu_4 = K_4 + 3K_2^2\).
A shortcut. Cumulants after the first do not depend on the origin (below), so the origin may be put at the mean, \(\mu_1' = 0\). Then raw and central moments coincide and the formulae collapse at once to \(K_2 = \mu_2\), \(K_3 = \mu_3\), \(K_4 = \mu_4 - 3\mu_2^2\).
Statement. The c.g.f. of the sum of \(n\) independent random variables is the sum of their c.g.f.s: \(K_{X_1 + \cdots + X_n}(t) = K_{X_1}(t) + K_{X_2}(t) + \cdots + K_{X_n}(t)\).
Proof. By the additive property of the m.g.f., \(M_{X_1 + \cdots + X_n}(t) = M_{X_1}(t)\,M_{X_2}(t) \cdots M_{X_n}(t)\). Taking logarithms,
\[ \begin{aligned} \log M_{X_1 + \cdots + X_n}(t) &= \log\big[M_{X_1}(t)\,M_{X_2}(t) \cdots M_{X_n}(t)\big] \\ K_{X_1 + \cdots + X_n}(t) &= \log M_{X_1}(t) + \log M_{X_2}(t) + \cdots + \log M_{X_n}(t) \\ &= K_{X_1}(t) + K_{X_2}(t) + \cdots + K_{X_n}(t) . \end{aligned} \]Statement. The c.g.f. is not independent of a change of origin and scale.
Proof. Let \(U = (X - a)/h\). Then
\[ \begin{aligned} K_U(t) &= \log M_U(t) = \log\Big[E\big(e^{t(X - a)/h}\big)\Big] = \log\Big[E\big(e^{tX/h}\,e^{-ta/h}\big)\Big] \\ &= \log\Big[e^{-ta/h}\,E\big(e^{tX/h}\big)\Big] \\ &= \log\big[e^{-ta/h}\,M_X(t/h)\big] = \log e^{-ta/h} + \log M_X(t/h) = -\frac{ta}{h} + K_X(t/h) . \end{aligned} \]Statement. The \(r\)th cumulant of the sum of \(n\) independent random variables is the sum of their \(r\)th cumulants: \(K_r(X_1 + \cdots + X_n) = K_r(X_1) + \cdots + K_r(X_n)\).
Proof. From the additive property of the c.g.f., \(K_{X_1 + \cdots + X_n}(t) = K_{X_1}(t) + \cdots + K_{X_n}(t)\). Differentiating \(r\) times with respect to \(t\) and putting \(t = 0\),
\[ \left[\frac{d^r}{dt^r}K_{X_1 + \cdots + X_n}(t)\right]_{t=0} = \left[\frac{d^r}{dt^r}K_{X_1}(t)\right]_{t=0} + \cdots + \left[\frac{d^r}{dt^r}K_{X_n}(t)\right]_{t=0} , \]that is,
\[ K_r(X_1 + \cdots + X_n) = K_r(X_1) + \cdots + K_r(X_n) . \]For \(r = 1\) and \(r = 2\) this is the familiar addition of means and of variances.
Statement. Cumulants, except the first, are independent of a change of origin but not of scale.
Proof. Let \(U = (X - a)/h\). From property 2, \(K_U(t) = -\dfrac{at}{h} + K_X(t/h)\), so
\[ \begin{aligned} K_1't + K_2'\frac{t^2}{2!} + \cdots + K_r'\frac{t^r}{r!} + \cdots &= -\frac{at}{h} + K_1\frac{t}{h} + K_2\frac{(t/h)^2}{2!} \\ &\quad + \cdots + K_r\frac{(t/h)^r}{r!} + \cdots \end{aligned} \]where \(K_r'\) and \(K_r\) are the \(r\)th cumulants of \(U\) and \(X\). Comparing coefficients,
\[ K_1' = \frac{K_1 - a}{h}, \qquad K_r' = \frac{K_r}{h^r}, \quad r = 2, 3, \ldots \]The first cumulant depends on both origin and scale; every other cumulant is independent of the origin but depends on the scale.
The characteristic function of \(X\) is
\[ \phi_X(t) \;=\; E(e^{itX}), \quad t \in \mathbb{R},\; i = \sqrt{-1}. \]\(\phi(t) = q + p e^{it}\).
\(\phi(t) = e^{-t^2/2}\) for \(X \sim N(0,1)\).
Proof. \(\phi_X(t) = E\big(e^{itX}\big)\); at \(t = 0\), \(\phi_X(0) = E(e^0) = E(1) = 1\).
Proof. Let \(X\) be a continuous random variable, so \(\phi_X(t) = \int_{-\infty}^{\infty} e^{itx} f(x)\,dx\). Then
\[ \begin{aligned} |\phi_X(t)| &= \left|\int_{-\infty}^{\infty} e^{itx} f(x)\,dx\right| \le \int_{-\infty}^{\infty} |e^{itx} f(x)|\,dx \\ &= \int_{-\infty}^{\infty} |e^{itx}|\,|f(x)|\,dx = \int_{-\infty}^{\infty} |e^{itx}|\,f(x)\,dx \qquad [f(x) \ge 0] \\ &= \int_{-\infty}^{\infty} f(x)\,dx = 1 , \end{aligned} \]because \(|e^{itx}| = \sqrt{\cos^2 tx + \sin^2 tx} = 1\). So \(|\phi_X(t)| \le 1\). Since \(\phi_X(t)\) is in general a complex number, this says that it lies in the unit disc of the complex plane.
Proof. \(\phi_{CX}(t) = E\big(e^{itCX}\big)\) (by the definition) \(= E\big(e^{i(Ct)X}\big) = \phi_X(Ct)\).
Statement. The characteristic function of the sum of \(n\) independent random variables is the product of their characteristic functions: \(\phi_{X_1 + \cdots + X_n}(t) = \phi_{X_1}(t)\,\phi_{X_2}(t) \cdots \phi_{X_n}(t)\).
Proof.
\[ \begin{aligned} \phi_{X_1 + \cdots + X_n}(t) &= E\big[e^{it(X_1 + X_2 + \cdots + X_n)}\big] = E\big(e^{itX_1}\,e^{itX_2} \cdots e^{itX_n}\big) \\ &= E\big(e^{itX_1}\big)\,E\big(e^{itX_2}\big) \cdots E\big(e^{itX_n}\big) \qquad [\text{independence}] \\ &= \phi_{X_1}(t)\,\phi_{X_2}(t) \cdots \phi_{X_n}(t) . \end{aligned} \]Statement. The characteristic function is not independent of a change of origin and scale.
Proof. Let \(U = (X - a)/h\). Then
\[ \begin{aligned} \phi_U(t) &= E\big(e^{itU}\big) = E\big[e^{it(X - a)/h}\big] = E\big[e^{itX/h}\,e^{-ita/h}\big] = e^{-ita/h}\,E\big(e^{itX/h}\big) \\ &= e^{-ita/h}\,\phi_X(t/h) . \end{aligned} \]The characteristic function uniquely determines the distribution: if \(\phi_X(t) = \phi_Y(t)\) for all \(t\), then \(X\) and \(Y\) are identically distributed.
If \(E|X|^r < \infty\), differentiating under the expectation gives \(\phi_X^{(r)}(0) = E\big[(iX)^r\big] = i^r\mu_r'\), so \(\mu_r' = \phi_X^{(r)}(0)/i^r\). The CF always exists, and gives every moment that exists. It cannot produce moments that do not exist: the Cauchy CF, \(e^{-|t|}\), is not differentiable at 0, matching the Cauchy distribution's lack of a mean. For such distributions the CF is used to identify the distribution (by uniqueness), not to compute moments.
For a non-negative integer-valued r.v. \(X\) with PMF \(p_k = P(X=k)\), the probability generating function is
\[ P_X(s) \;=\; E(s^X) \;=\; \sum_{k=0}^{\infty} p_k\, s^k, \quad |s| \le 1. \]\(X \sim B(n,p)\): \(P_X(s) = (q + ps)^n\).
\(P'(s) = np(q+ps)^{n-1};\; P'(1) = np = E(X)\) ✓.
\(X \sim \) Poisson(\(\lambda\)): \(P_X(s) = e^{\lambda(s-1)}\).
\(P'(s) = \lambda e^{\lambda(s-1)};\; P'(1) = \lambda = E(X)\) ✓.
Statement. The p.g.f. of the sum of \(n\) independent random variables is the product of their p.g.f.s: \(P_{X_1 + \cdots + X_n}(s) = P_{X_1}(s)\,P_{X_2}(s) \cdots P_{X_n}(s)\).
Proof.
\[ \begin{aligned} P_{X_1 + \cdots + X_n}(s) &= E\big(s^{X_1 + X_2 + \cdots + X_n}\big) = E\big(s^{X_1}\,s^{X_2} \cdots s^{X_n}\big) \\ &= E\big(s^{X_1}\big)\,E\big(s^{X_2}\big) \cdots E\big(s^{X_n}\big) \qquad [\text{independence}] \\ &= P_{X_1}(s)\,P_{X_2}(s) \cdots P_{X_n}(s) . \end{aligned} \]Statement. The p.g.f. is not independent of a change of origin and scale.
Proof. Let \(U = (X - a)/h\). Then
\[ \begin{aligned} P_U(s) &= E\big(s^U\big) = E\big(s^{(X - a)/h}\big) = E\big(s^{X/h}\,s^{-a/h}\big) = s^{-a/h}\,E\big(s^{X/h}\big) \\ &= s^{-a/h}\,E\big[\big(s^{1/h}\big)^X\big] = s^{-a/h}\,P_X\big(s^{1/h}\big) . \end{aligned} \]A p.g.f. is meant for a variable on \(0, 1, 2, \ldots\), and \(U\) is one only for special \(a, h\); the useful case is a whole-number shift, \(h = 1\): \(P_{X + a}(s) = s^a P_X(s)\).
| Function | Definition | Always Exists? | Best For |
|---|---|---|---|
| MGF | \(E(e^{tX})\) | No (e.g., Cauchy) | Computing moments |
| CGF | \(\ln M_X(t)\) | If MGF exists | Cumulants & sums |
| CF | \(E(e^{itX})\) | Yes (always) | Limit theorems / CLT |
| PGF | \(E(s^X)\) for integer X | Yes for \(|s|\le 1\) | Discrete distributions |
A sequence \(\{X_n\}\) converges in probability to \(X\) if for every \(\epsilon > 0\):
\[ \lim_{n \to \infty} P(|X_n - X| \ge \epsilon) \;=\; 0. \]Notation: \(X_n \xrightarrow{P} X\).
\(X_n \xrightarrow{d} X\) if the CDFs converge:
\[ F_{X_n}(x) \to F_X(x) \quad \text{at every continuity point of } F_X. \]Relationship: Convergence in probability ⇒ convergence in distribution. The reverse is false in general, but it holds when the limit is a constant: \(X_n \xrightarrow{d} c\) implies \(X_n \xrightarrow{P} c\).
\(\{X_n\}\) converges to \(X\) almost surely (with probability one) if the set of outcomes on which the sequence of numbers \(X_n(\omega)\) converges to \(X(\omega)\) has probability 1:
\[ P\Big(\big\{\omega \in S : \lim_{n \to \infty} X_n(\omega) = X(\omega)\big\}\Big) = 1, \qquad\text{written}\qquad X_n \xrightarrow{a.s.} X . \]The three modes are nested:
\[ X_n \xrightarrow{a.s.} X \;\Longrightarrow\; X_n \xrightarrow{P} X \;\Longrightarrow\; X_n \xrightarrow{d} X . \]Convergence in probability to a constant \(a\) is the case used by the laws of large numbers: \(\lim_{n\to\infty} P(|X_n - a| < \epsilon) = 1\) for every \(\epsilon > 0\).
Let \(X_1, X_2, \ldots\) be i.i.d. random variables with mean \(\mu\) and finite variance \(\sigma^2\). Let \(\bar{X}_n = (X_1 + \cdots + X_n)/n\). Then for every \(\epsilon > 0\):
i.e., \(\bar X_n \xrightarrow{P} \mu\).
Proof (using Chebyshev's inequality). Let \(X_1,\dots,X_n\) be independent with common mean \(\mu\) and variance \(\sigma^2\), and \(\bar X_n = \frac1n\sum_{i=1}^n X_i\).
Toss a fair coin many times. Let \(X_i = 1\) if head, 0 otherwise. \(\bar X_n\) = proportion of heads. By WLLN, \(\bar X_n \to 0.5\) in probability — empirical frequency justifies the classical definition.
The sample mean of 1 000 dice rolls is very likely close to the true mean \(\mu = 3.5\): by Chebyshev with \(\sigma^2 = 35/12 \approx 2.92\), \(P(|\bar X_{1000} - 3.5| \ge 0.1) \le 2.92/(1000 \cdot 0.01) \approx 0.29\).
Let \(X_1, X_2, \ldots, X_n\) be a sequence of random variables with means \(\mu_1, \mu_2, \ldots, \mu_n\), and let \(B_n = \operatorname{Var}(X_1 + X_2 + \cdots + X_n) < \infty\). Then
\[ P\left\{\left|\frac{X_1 + X_2 + \cdots + X_n}{n} - \frac{\mu_1 + \mu_2 + \cdots + \mu_n}{n}\right| < \epsilon\right\} \ge 1 - \eta \]for all \(n > n_0\),
where \(\epsilon\) and \(\eta\) are arbitrary small positive numbers, provided \(\lim_{n\to\infty} B_n/n^2 = 0\).
Proof. The average \(\bar X_n\) has mean \(\bar\mu_n = (\mu_1 + \cdots + \mu_n)/n\) and variance \(B_n/n^2\). Chebyshev's inequality with \(c = \epsilon\) gives
\[ P\big(|\bar X_n - \bar\mu_n| < \epsilon\big) \ge 1 - \frac{B_n}{n^2\epsilon^2} , \]and since \(B_n/n^2 \to 0\), the right side exceeds \(1 - \eta\) once \(n\) is beyond some \(n_0\).
For i.i.d. variables, \(E(X_i) = \mu\) and \(\operatorname{Var}(X_i) = \sigma^2\) for all \(i\), so \(B_n = \operatorname{Var}(X_1 + \cdots + X_n) = \sum_{i=1}^{n} \operatorname{Var}(X_i) = n\sigma^2\) (the covariance terms vanish since the variables are independent), and
\[ \lim_{n\to\infty}\frac{B_n}{n^2} = \lim_{n\to\infty}\frac{n\sigma^2}{n^2} = \lim_{n\to\infty}\frac{\sigma^2}{n} = 0 . \]The weak law for i.i.d. variables is then \(P\{|\bar X_n - \mu| < \epsilon\} \ge 1 - \eta\) for all \(n > n_0\): that is, \(P\{|\bar X_n - \mu| < \epsilon\} \to 1\), or \(\bar X_n \xrightarrow{P} \mu\), the theorem above.
Let \(X_1, X_2, \ldots\) be i.i.d. with mean \(\mu\). Then
\[ P\!\left(\lim_{n \to \infty} \bar X_n = \mu\right) \;=\; 1, \]i.e., \(\bar X_n \to \mu\) almost surely.
WLLN vs. SLLN:
| Property | WLLN | SLLN |
|---|---|---|
| Mode of convergence | In probability | Almost sure (with prob 1) |
| Strength | Weaker | Stronger (implies WLLN) |
| Conditions | Finite variance (sufficient) | Finite mean (Kolmogorov's) |
Let \(X_1, X_2, \ldots\) be i.i.d. with mean \(\mu\) and finite variance \(\sigma^2 > 0\). Define \(\bar X_n = \dfrac{1}{n}\sum_{i=1}^n X_i\). Then
\[ Z_n \;=\; \dfrac{\bar X_n - \mu}{\sigma / \sqrt{n}} \;\xrightarrow{d}\; N(0, 1) \quad \text{as } n \to \infty. \]Equivalently, the standardized sum \(\dfrac{\sum X_i - n\mu}{\sigma\sqrt{n}}\) converges to standard normal.
Diameter of bolts has mean 5 mm, SD 0.1 mm. For a sample of 100 bolts, the sample mean is approximately \(N(5,\; 0.1^2/100) = N(5, 0.0001)\), i.e., SE = 0.01 mm.
\(P(|\bar X - 5| < 0.02) \approx P(|Z| < 2) \approx 0.9544\).
Suppose true proportion of voters supporting party A is 0.6. From a sample of 400, the sample proportion \(\hat p \sim N(0.6,\; 0.6 \times 0.4/400) = N(0.6, 0.000\,6)\), SE ≈ 0.0245.
\(P(|\hat p - 0.6| < 0.05) \approx P(|Z| < 2.04) \approx 0.96\) — explains the typical "± 5 % margin of error".
De Moivre found the normal approximation to the binomial with \(p = \tfrac12\) in 1733; Laplace extended it and stated the central limit theorem in 1812; Liapounoff (Lyapunov) gave the first rigorous general proof in 1901. In its general form: if \(X_1, \ldots, X_n\) are independent with means \(\mu_i\) and variances \(\sigma_i^2\), then under very general conditions \(S_n = X_1 + \cdots + X_n\) is asymptotically normal with
\[ \text{mean } \mu = \sum_{i=1}^n \mu_i, \qquad \text{variance } \sigma^2 = \sum_{i=1}^n \sigma_i^2 . \]\(S_n\) has mean \(n\mu_1\) and standard deviation \(\sigma_1\sqrt n\); \(\bar X_n = S_n/n\) has mean \(\mu_1\) and standard deviation \(\sigma_1/\sqrt n\). With \(\Phi\) the standard normal distribution function, for all \(-\infty < a < b < \infty\):
\[ \text{(i)}\quad \lim_{n\to\infty} P\left\{a \le \frac{S_n - n\mu_1}{\sigma_1\sqrt n} \le b\right\} = \Phi(b) - \Phi(a) = \int_a^b \frac{1}{\sqrt{2\pi}}e^{-x^2/2}\,dx, \] \[ \text{(ii)}\quad \lim_{n\to\infty} P\left\{a \le \frac{S_n - E(S_n)}{\sqrt{\operatorname{Var}(S_n)}} \le b\right\} = \Phi(b) - \Phi(a), \] \[ \text{(iii)}\quad \lim_{n\to\infty} P\left\{a \le \frac{\bar X_n - \mu_1}{\sigma_1/\sqrt n} \le b\right\} = \Phi(b) - \Phi(a) . \]All three standardise the same quantity: dividing the numerator and denominator of (i) by \(n\) gives (iii).
Let \(X_1, \ldots, X_n\) be independent with means \(\mu_i\), variances \(\sigma_i^2\), and finite third absolute central moments \(\rho_i^3 = E|X_i - \mu_i|^3\). Put
\[ \rho^3 = \sum_{i=1}^n \rho_i^3, \qquad \sigma^2 = \sum_{i=1}^n \sigma_i^2 . \]If \(\lim_{n\to\infty} \rho/\sigma = 0\), then \(S_n = X_1 + \cdots + X_n\) is asymptotically \(N\big(\sum\mu_i, \sum\sigma_i^2\big)\).
The condition says that no single variable dominates the sum. For i.i.d. variables \(\rho/\sigma = (n\rho_1^3)^{1/3}/(n\sigma_1^2)^{1/2} = (\rho_1/\sigma_1)\,n^{-1/6} \to 0\), so Lindeberg–Lévy (with a finite third moment) is a special case.
For i.i.d. variables with finite \(\mu\) and \(\sigma^2\), both laws hold. The WLLN says only that \(P(|\bar X_n - \mu| \ge \epsilon) \to 0\). The CLT says how fast, by giving the probability itself, approximately, for large \(n\):
\[ P\big(|\bar X_n - \mu| \ge \epsilon\big) = P\left(\left|\frac{\bar X_n - \mu}{\sigma/\sqrt n}\right| \ge \frac{\epsilon\sqrt n}{\sigma}\right) \approx 1 - \left[\Phi\Big(\frac{\epsilon\sqrt n}{\sigma}\Big) - \Phi\Big(-\frac{\epsilon\sqrt n}{\sigma}\Big)\right] . \]Worked Problem 5 puts numbers on it.
For sequences that are independent but not identically distributed, the two laws can part company:
A generating-function problem, then three applications of the central limit theorem, then one problem that puts numbers on the comparison of the CLT with the weak law. The method in the CLT problems is always the same: write the variable as a sum of i.i.d. pieces, find the mean and variance of the sum, and standardise. Each result here was checked symbolically (the MGF by differentiation, the cumulants by series expansion, the sums by convolution) and the limits numerically.
A coin is tossed three times and \(X\) is the number of heads, with distribution \(P(X = 0, 1, 2, 3) = \tfrac18, \tfrac38, \tfrac38, \tfrac18\). Find the MGF of \(X\).
\[ M_X(t) = \sum_x e^{tx}P(X = x) = \frac{1 + 3e^{t} + 3e^{2t} + e^{3t}}{8} = \Big(\frac{1 + e^t}{2}\Big)^3 . \]The cube is no accident: \(X\) is the sum of three independent Bernoulli(\(\tfrac12\)) variables, each with MGF \(\tfrac12 + \tfrac12e^t\), and by the additive property the MGF of the sum is the product.
Moments from it. Differentiate and put \(t = 0\):
\[ \begin{gathered} M_X'(t) = \frac{3e^t(1 + e^t)^2}{8} \Rightarrow \mu_1' = M_X'(0) = \frac{3}{2}, \qquad \mu_2' = M_X''(0) = 3, \\ \operatorname{Var}(X) = 3 - \tfrac94 = \tfrac34 . \end{gathered} \]Cumulants from it. \(K_X(t) = 3\log\frac{1 + e^t}{2}\), so \(K_X'(t) = \dfrac{3e^t}{1 + e^t}\) and \(K_X''(t) = \dfrac{3e^t}{(1 + e^t)^2}\), giving \(K_1 = \frac{3}{2}\) and \(K_2 = \tfrac34\), the mean and variance again. Carrying on, \(K_3 = 0\) (the distribution is symmetric) and \(K_4 = - \frac{3}{8}\): three times the \(-\tfrac18\) of a single fair Bernoulli, because cumulants of independent pieces add.
PGF. \(P_X(s) = \big(\tfrac{1 + s}{2}\big)^3\), and \(P_X'(1) = 3\cdot\tfrac14\cdot 2 = \tfrac32\), the mean once more.
Discuss the distribution of the sum of \(n\) i.i.d. binomial variates.
Let \(X_1, \ldots, X_n\) be i.i.d. \(B(r, p)\), so \(E(X_i) = rp\) and \(\operatorname{Var}(X_i) = rpq\). For \(S_n = X_1 + \cdots + X_n\), the addition theorem and independence give
\[ E(S_n) = \sum_{i=1}^n rp = nrp, \qquad \operatorname{Var}(S_n) = \sum_{i=1}^n rpq = nrpq . \]By the Lindeberg–Lévy theorem, form (ii),
\[ \lim_{n\to\infty} P\left\{a \le \frac{S_n - nrp}{\sqrt{nrpq}} \le b\right\} = \Phi(b) - \Phi(a), \qquad 0 < p < 1 . \]The range must exclude \(p = 0\) and \(p = 1\): there every \(X_i\) is constant, the variance \(nrpq\) is 0, and the standardised variable is not defined. The theorem needs \(0 < \sigma^2 < \infty\).
An exact check. Here the limit is not even needed for the shape: by the PGF, \(P_{S_n}(s) = \big[(q + ps)^r\big]^n = (q + ps)^{nr}\), so \(S_n \sim B(nr, p)\) exactly (for \(r = 2\), \(n = 5\), \(p = \tfrac13\): the convolution of five \(B(2, \tfrac13)\) is \(B(10, \tfrac13)\), with mean \(\tfrac{10}{3}\) and variance \(\tfrac{20}{9}\)). The CLT then says that a binomial with many trials is close to normal.
Prove that if \(Y_n \sim B(n, p)\), then \(\displaystyle\lim_{n\to\infty} P\left\{a \le \frac{Y_n - np}{\sqrt{np(1 - p)}} \le b\right\} = \Phi(b) - \Phi(a)\), \(0 < p < 1\).
Let \(X_1, \ldots, X_n\) be i.i.d. Bernoulli, \(B(1, p)\): each has mean \(p\) and variance \(pq\). Their sum counts the successes in \(n\) independent trials, so it has the same distribution as \(Y_n\), with
\[ E(Y_n) = np, \qquad \operatorname{Var}(Y_n) = npq = np(1 - p) . \]The Lindeberg–Lévy theorem applied to this sum gives the result. This is the De Moivre–Laplace theorem, the oldest case of the CLT.
If \(Y_n \sim\) Poisson(\(n\)), show that \(\displaystyle\lim_{n\to\infty} P(Y_n \le n) = \tfrac12\), i.e. \(\displaystyle\sum_{k=0}^{n} \frac{e^{-n}n^k}{k!} \to \frac12\).
Write \(Y_n\) as a sum. Let \(X_1, \ldots, X_n\) be i.i.d. Poisson(1). By the PGF, \(P_{X_1 + \cdots + X_n}(s) = \big[e^{(s - 1)}\big]^n = e^{n(s - 1)}\), the PGF of Poisson(\(n\)). So \(Y_n\) is such a sum, with \(E(Y_n) = \operatorname{Var}(Y_n) = n\).
Apply the CLT. \((Y_n - n)/\sqrt n\) tends in distribution to \(N(0, 1)\). Since \(\Phi\) is continuous, the distribution functions converge at every point, in particular at 0:
\[ P(Y_n \le n) = P\left\{\frac{Y_n - n}{\sqrt n} \le 0\right\} \to \Phi(0) = \frac12 . \](In the notation of the theorem, \(a = -\infty\), \(b = 0\): \(\Phi(0) - \Phi(-\infty) = \tfrac12\).) Writing out the Poisson probabilities, \(\sum_{k=0}^{n} e^{-n}n^k/k! \to \tfrac12\).
How fast? Exactly computed:
| \(n\) | 1 | 10 | 100 | 1000 | 5000 |
|---|---|---|---|---|---|
| \(P(Y_n \le n)\) | 0.7358 | 0.5830 | 0.5266 | 0.5084 | 0.5038 |
(At \(n = 1\) it is \(2e^{-1}\).) The approach is slow, and from above, for two reasons that push the same way: the event \(Y_n \le n\) counts the whole probability at the single value \(n\), about \(1/\sqrt{2\pi n}\), and the Poisson is skewed to the right. Together they leave an excess of about \(2/(3\sqrt{2\pi n})\) over \(\tfrac12\) (\(0.5266\) predicted and found at \(n = 100\)).
A fair coin is tossed \(n = 900\) times and \(\bar X\) is the proportion of heads. Bound \(P(|\bar X - \tfrac12| \ge 0.04)\) by Chebyshev's inequality, approximate it by the CLT, and compare with the exact value.
Each toss has \(\mu = \tfrac12\), \(\sigma^2 = \tfrac14\), so \(\operatorname{Var}(\bar X) = \tfrac{1}{4 \cdot 900}\) and \(\sigma/\sqrt n = \tfrac{0.5}{30} = 0.01667\).
Chebyshev (the WLLN's tool):
\[ P\big(|\bar X - \tfrac12| \ge 0.04\big) \le \frac{\sigma^2}{n\epsilon^2} = \frac{0.25}{900 \times 0.0016} = 0.1736 . \]CLT: \(\epsilon\sqrt n/\sigma = 0.04 \times 30/0.5 = 2.4\), so
\[ P\big(|\bar X - \tfrac12| \ge 0.04\big) \approx P(|Z| \ge 2.4) = 2\big[1 - \Phi(2.4)\big] = 0.0164 . \]Exact (binomial, 414 heads or fewer, or 486 or more): \(0.0179\).
The WLLN guarantees only that this probability goes to 0; Chebyshev caps it at 0.17. The CLT gives its actual size, within a fraction of a percentage point.