by, Subhajit Gorai
Date: 20/07/2026

Probability Theory

Preface

This treatise presents probability theory in the axiomatic style expected of a student preparing for the ISI M.Stat entrance examination or IIT JAM Mathematical Statistics — and, given the substantial syllabus overlap, the CMI entrance test as well. It assumes fluency with real analysis (limits, continuity, Riemann integration, basic measure-theoretic vocabulary) and advanced linear algebra (eigenvalues, quadratic forms, positive-definiteness, orthogonal diagonalization). The emphasis throughout is on structural completeness: precise statements of theorems, complete proofs — with any unavoidable gap flagged explicitly rather than papered over — canonical tricks, and challenge problems calibrated to genuine entrance-examination difficulty. Every Challenge Problem carries a complete worked solution; readers are strongly encouraged to attempt each one under time pressure before reading further.

Table of Contents

  1. Foundations, Combinatorial Probability, and Conditioning
  2. Random Variables, Expectations, and Moments
  3. Univariate Distributions and Transformations
  4. Joint Distributions and Order Statistics
  5. Multivariate Distributions (Multinomial & Normal)
  6. Appendix: Master Formula Sheet
  7. Closing Remark: The Unifying Theme

Conventions and Notation

  • (Ω,F,P)(\Omega, \mathcal{F}, P) denotes a probability space; Ω\Omega the sample space, F\mathcal{F} a σ\sigma-field of events, PP a probability measure.
  • Random variables are denoted X,Y,Z,X, Y, Z, \dots; realizations by lowercase x,y,zx, y, z.
  • FXF_X denotes the CDF of XX; fXf_X the PDF/PMF.
  • E[X]E[X], Var(X)\mathrm{Var}(X), Cov(X,Y)\mathrm{Cov}(X,Y) have their usual meanings.
  • 1A\mathbf{1}_A denotes the indicator random variable of event AA.
  • =d\stackrel{d}{=} denotes equality in distribution; XndXX_n \stackrel{d}{\to} X denotes convergence in distribution.
  • ϕ(t)\phi(t) denotes a characteristic function; MX(t)M_X(t) an MGF.
  • tr(M)\mathrm{tr}(M) denotes the trace of a square matrix MM; Leb\mathrm{Leb} denotes Lebesgue measure.
  • Sp1={xRp:x=1}\mathbb{S}^{p-1} = \{\mathbf{x}\in\mathbb{R}^p : \|\mathbf{x}\|=1\} denotes the unit sphere in Rp\mathbb{R}^p.

Part 1 — Foundations, Combinatorial Probability, and Conditioning

1.1 Sample Spaces and σ\sigma-Fields

Definition 1.1 (Sample space). The sample space Ω\Omega is the set of all possible outcomes of a random experiment.

Definition 1.2 (σ\sigma-field). A collection F\mathcal{F} of subsets of Ω\Omega is a σ\sigma-field if:
(i) ΩF\Omega \in \mathcal{F}; (ii) AF    AcFA \in \mathcal{F} \implies A^c \in \mathcal{F}; (iii) A1,A2,F    i=1AiFA_1, A_2, \dots \in \mathcal{F} \implies \bigcup_{i=1}^\infty A_i \in \mathcal{F}.

Remark (Why restrict to a σ\sigma-field at all?). When Ω\Omega is uncountable — e.g. Ω=[0,1]\Omega=[0,1] with PP meant to be "length" — it is a genuine theorem, not a technicality, that no countably additive, translation-invariant PP can be defined on every subset of Ω\Omega: Vitali-type constructions (using the Axiom of Choice) produce sets to which no consistent length can be assigned. A σ\sigma-field is the largest class of sets on which PP can be forced to behave consistently, and the Borel σ\sigma-field — generated by the open intervals — is rich enough to contain every event of practical interest. This is also why a single outcome can satisfy P({ω})=0P(\{\omega\})=0 while P(Ω)=1P(\Omega)=1: for uncountable Ω\Omega this is not a paradox but the generic situation (every continuous distribution assigns probability zero to every singleton), and correctly interpreting conditional expectation given a continuous random variable (Part 4) requires exactly this vocabulary.

Definition 1.3 (Kolmogorov's Axioms). P:F[0,1]P: \mathcal{F} \to [0,1] is a probability measure if:

  1. P(Ω)=1P(\Omega) = 1.
  2. P(A)0P(A) \geq 0 for all AFA \in \mathcal{F}.
  3. (Countable additivity) For pairwise disjoint A1,A2,FA_1, A_2, \dots \in \mathcal{F},
    P(i=1Ai)=i=1P(Ai).P\left(\bigcup_{i=1}^\infty A_i\right) = \sum_{i=1}^\infty P(A_i).

Theorem 1.1 (Basic consequences). From the axioms: (a) P()=0P(\emptyset) = 0; (b) P(Ac)=1P(A)P(A^c) = 1 - P(A); (c) AB    P(A)P(B)A \subseteq B \implies P(A) \le P(B); (d) (continuity from below) if A1A2A_1\subseteq A_2\subseteq\cdots then P ⁣(nAn)=limnP(An)P\!\left(\bigcup_n A_n\right)=\lim_n P(A_n); (e) (continuity from above) if A1A2A_1\supseteq A_2\supseteq\cdots then P ⁣(nAn)=limnP(An)P\!\left(\bigcap_n A_n\right)=\lim_n P(A_n).

Proof. (a) Apply countable additivity to the pairwise disjoint sequence ,,,\emptyset,\emptyset,\emptyset,\dots (disjointness holds trivially): since i=\bigcup_i\emptyset=\emptyset, we get P()=i=1P()P(\emptyset)=\sum_{i=1}^\infty P(\emptyset). The right side is an infinite sum of copies of the single fixed number P()0P(\emptyset)\ge0; this can equal the finite number P()P(\emptyset) only if P()=0P(\emptyset)=0 — any positive value would make the sum diverge to ++\infty.

(b) Ω=AAc\Omega = A\cup A^c is a disjoint union, so 1=P(Ω)=P(A)+P(Ac)1=P(\Omega)=P(A)+P(A^c) by additivity.

(c) B=A(BA)B = A \cup (B\setminus A) is a disjoint union, so P(B)=P(A)+P(BA)P(A)P(B) = P(A) + P(B\setminus A) \geq P(A), using P(BA)0P(B\setminus A)\ge0.

(d) Set B1=A1B_1=A_1 and Bn=AnAn1B_n = A_n\setminus A_{n-1} for n2n\ge2; these are pairwise disjoint, and by induction i=1nBi=An\bigcup_{i=1}^n B_i = A_n for every nn (the case n=1n=1 is trivial, and i=1nBi=An1(AnAn1)=An1An=An\bigcup_{i=1}^n B_i = A_{n-1}\cup(A_n\setminus A_{n-1})=A_{n-1}\cup A_n=A_n using An1AnA_{n-1}\subseteq A_n). Hence i=1Bi=nAn\bigcup_{i=1}^\infty B_i=\bigcup_n A_n, and countable additivity gives
P(nAn)=i=1P(Bi)=limni=1nP(Bi)=limnP(i=1nBi)=limnP(An).P\left(\bigcup_n A_n\right)=\sum_{i=1}^\infty P(B_i)=\lim_{n\to\infty}\sum_{i=1}^n P(B_i)=\lim_{n\to\infty}P\left(\bigcup_{i=1}^n B_i\right)=\lim_{n\to\infty}P(A_n).

(e) Apply (d) to the increasing sequence A1cA2cA_1^c\subseteq A_2^c\subseteq\cdots: P ⁣(nAnc)=limnP(Anc)=limn[1P(An)]=1limnP(An)P\!\left(\bigcup_n A_n^c\right)=\lim_n P(A_n^c)=\lim_n[1-P(A_n)]=1-\lim_n P(A_n) using (b). By De Morgan, nAnc=(nAn)c\bigcup_n A_n^c = \left(\bigcap_n A_n\right)^c, so the left side equals 1P ⁣(nAn)1-P\!\left(\bigcap_n A_n\right) by (b) again. Equate the two expressions and cancel the 11's. \blacksquare

1.2 Combinatorial Probability

Classical model. If Ω\Omega is finite and outcomes equally likely, P(A)=A/ΩP(A) = |A|/|\Omega|.

Trick (Stars and Bars). The number of ways to distribute nn identical objects into kk distinct boxes is (n+k1k1)\binom{n+k-1}{k-1}. This underlies occupancy problems, and its continuous limit is revisited in Part 4 (Theorem 4.5).

Theorem 1.2 (Inclusion-Exclusion). For events A1,,AnA_1, \dots, A_n,
P(i=1nAi)=iP(Ai)i<jP(AiAj)++(1)n+1P(A1An).P\left(\bigcup_{i=1}^n A_i\right) = \sum_i P(A_i) - \sum_{i<j} P(A_i \cap A_j) + \cdots + (-1)^{n+1} P(A_1 \cap \cdots \cap A_n).

Proof. Induct on nn, with base case n=2n=2: P(AB)=P(A)+P(B)P(AB)P(A\cup B)=P(A)+P(B)-P(A\cap B), itself immediate from the disjoint decomposition AB=A(BA)A\cup B = A \cup (B\setminus A) together with P(BA)=P(B)P(AB)P(B\setminus A)=P(B)-P(A\cap B) (Theorem 1.1(c)'s argument applied to ABBA\cap B\subseteq B). For the inductive step, write C=A1An1C=A_1\cup\cdots\cup A_{n-1} and apply the base case to CAnC\cup A_n:
P(i=1nAi)=P(C)+P(An)P(CAn).P\left(\bigcup_{i=1}^n A_i\right) = P(C) + P(A_n) - P(C\cap A_n).
Now P(C)P(C) expands by the inductive hypothesis applied to A1,,An1A_1,\dots,A_{n-1}, and CAn=i=1n1(AiAn)C\cap A_n = \bigcup_{i=1}^{n-1}(A_i\cap A_n), so P(CAn)P(C\cap A_n) also expands by the inductive hypothesis, now applied to the n1n-1 events A1An,,An1AnA_1\cap A_n,\dots,A_{n-1}\cap A_n. Collecting all resulting terms by the size of the index set reproduces exactly the alternating sum claimed for nn events; the bookkeeping is routine, but the two invocations of the inductive hypothesis are the entire content of the step. \blacksquare

Worked Example 1.1 (Derangements). The probability that a random permutation of nn objects has no fixed point (a derangement) is
P(Dn)=k=0n(1)kk!e1 as n.P(D_n) = \sum_{k=0}^n \frac{(-1)^k}{k!} \to e^{-1} \text{ as } n \to \infty.

Solution. Let Ai={π(i)=i}A_i=\{\pi(i)=i\}. For any kk fixed indices i1,,iki_1,\dots,i_k, freezing those kk positions and permuting the rest freely gives P(Ai1Aik)=(nk)!/n!P(A_{i_1}\cap\cdots\cap A_{i_k}) = (n-k)!/n!, and there are (nk)\binom{n}{k} such terms of size kk, contributing
(nk)(nk)!n!=n!k!(nk)!(nk)!n!=1k!\binom{n}{k}\cdot\frac{(n-k)!}{n!} = \frac{n!}{k!(n-k)!}\cdot\frac{(n-k)!}{n!}=\frac{1}{k!}
to the kk-th layer of inclusion–exclusion — the combinatorial factor cancels completely against the probability, which is the entire reason the final answer is so clean. Summing, P ⁣(Ai)=k=1n(1)k+1/k!P\!\left(\bigcup A_i\right)=\sum_{k=1}^n(-1)^{k+1}/k!, and P(Dn)=1P ⁣(Ai)=k=0n(1)k/k!P(D_n)=1-P\!\left(\bigcup A_i\right)=\sum_{k=0}^n(-1)^k/k!, the truncated Taylor series for e1e^{-1}.

1.3 Conditional Probability and Independence

Definition 1.4. P(AB)=P(AB)/P(B)P(A\mid B) = P(A \cap B)/P(B) for P(B)>0P(B) > 0.

Definition 1.5 (Independence). A,BA, B are independent if P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B). Events A1,,AnA_1, \dots, A_n are mutually independent if for every subset I{1,,n}I \subseteq \{1,\dots,n\} with I2|I|\ge2, P(iIAi)=iIP(Ai)P\left(\bigcap_{i\in I} A_i\right) = \prod_{i \in I} P(A_i) — a strictly stronger condition than pairwise independence.

Remark (Pairwise \neq Mutual, made explicit). Toss two fair coins independently, so Ω={HH,HT,TH,TT}\Omega=\{HH,HT,TH,TT\} with each outcome having probability 1/41/4. Let A={HH,HT}A=\{HH,HT\} (first coin H), B={HH,TH}B=\{HH,TH\} (second coin H), C={HH,TT}C=\{HH,TT\} (both coins agree). Then P(A)=P(B)=P(C)=1/2P(A)=P(B)=P(C)=1/2, and in fact AB=AC=BC={HH}A\cap B = A\cap C = B\cap C = \{HH\}, so
P(AB)=P(AC)=P(BC)=14=P(A)P(B)=P(A)P(C)=P(B)P(C):pairwise independent.P(A\cap B)=P(A\cap C)=P(B\cap C)=\frac{1}{4}=P(A)P(B)=P(A)P(C)=P(B)P(C):\quad\textbf{pairwise independent.}
Yet ABC={HH}A\cap B\cap C=\{HH\} too, so P(ABC)=1418=P(A)P(B)P(C)P(A\cap B\cap C)=\frac{1}{4}\ne\frac{1}{8}=P(A)P(B)P(C): not mutually independent. The failure is driven entirely by the fact that any two of A,B,CA,B,C logically determine the third.

1.4 Bayes' Theorem and Total Probability

Theorem 1.3 (Law of Total Probability). If {Bi}\{B_i\} partitions Ω\Omega with P(Bi)>0P(B_i) > 0, then P(A)=iP(ABi)P(Bi)P(A) = \sum_i P(A \mid B_i)P(B_i). The continuous analogue: if Θ\Theta has density fΘf_\Theta, P(A)=P(AΘ=θ)fΘ(θ)dθP(A) = \int P(A \mid \Theta = \theta) f_\Theta(\theta)\, d\theta.

Theorem 1.4 (Bayes). P(BiA)=P(ABi)P(Bi)jP(ABj)P(Bj)P(B_i \mid A) = \dfrac{P(A\mid B_i) P(B_i)}{\sum_j P(A \mid B_j) P(B_j)}.

1.5 Problem-Solving Tricks

Trick 1 (Pólya Urn). An urn starts with bb black and rr red balls. Draw a ball, replace it along with cc balls of the same color, repeat. A key invariant: the probability that the nn-th draw is black equals b/(b+r)b/(b+r) for every nn. This follows from exchangeability: for any specific sequence of colors with kk black and nkn-k red draws, in any order, the chain rule gives a product of nn factors of the form b+jcb+r+jc\frac{b+jc}{b+r+jc} or r+jcb+r+jc\frac{r+jc}{b+r+jc} — and multiplying the same nn numbers in a different order does not change the product. So every ordering with kk black draws is equally likely, meaning the sequence is exchangeable; exchangeability in particular forces every individual draw to share the marginal law of the first draw, which is trivially Bernoulli(b/(b+r))\mathrm{Bernoulli}(b/(b+r)).

Trick 2 (Sequential Conditioning / Chain Rule). P(A1An)=P(A1)P(A2A1)P(AnA1An1)P(A_1 \cap \cdots \cap A_n) = P(A_1)P(A_2\mid A_1) \cdots P(A_n \mid A_1 \cap \cdots \cap A_{n-1}) — indispensable for problems involving sequential draws without replacement.

Trick 3 (Absorbing Markov Chains for Exact Probabilities). Gambler's ruin-type problems: let pip_i be the probability of eventual absorption at state NN starting from ii, with pi=ppi+1+qpi1p_i = p\, p_{i+1} + q\, p_{i-1} (q=1pq=1-p), p0=0p_0=0, pN=1p_N=1. The characteristic equation of this linear recurrence is px2x+q=0px^2-x+q=0; since 14pq=(pq)21-4pq=(p-q)^2, the roots are x=1x=1 and x=q/px=q/p. Solving with the boundary conditions gives closed forms in each case:
pi=1(q/p)i1(q/p)N(pq),pi=iN(p=q=12, a double root at x=1).p_i = \frac{1-(q/p)^i}{1-(q/p)^N}\quad(p\ne q), \qquad\qquad p_i=\frac{i}{N}\quad(p=q=\frac{1}{2},\text{ a double root at }x=1).

Challenge Problem 1.1. A fair die is rolled repeatedly. Find the probability that the sequence of rolls contains the pattern (1,2,3)(1,2,3) (in that order, consecutively) before it contains the pattern (1,1)(1,1).

Solution. Track the state of progress: the longest suffix of the sequence rolled so far that is a proper prefix of (1,2,3)(1,2,3) or of (1,1)(1,1). The reachable non-absorbing states are start (no progress), "1"\texttt{"1"} (progress shared by both patterns), and "12"\texttt{"12"} (progress exclusive to 123123); the absorbing states are A wins (123123 completes) and B wins (1111 completes). Checking every state against every face of the die:

From stateRoll(s)ProbabilityTo state
start111/61/6"1"
start22665/65/6start
"1"111/61/6B wins
"1"221/61/6"12"
"1"33664/64/6start
"12"331/61/6A wins
"12"111/61/6"1"
"12"2,4,5,62,4,5,64/64/6start

(The "12" \to "1" transition on rolling a 11 holds because the new suffix "121" matches neither pattern, "21" matches neither pattern, but "1" matches the shared prefix of both — so "1" is the longest valid match.)

Let a,b,ca,b,c denote P(A wins)P(\text{A wins}) starting from states start, "1", "12" respectively. First-step analysis (Trick 3's method, now with three transient states instead of one) gives
a=56a+16b,b=16(0)+16c+46a,c=16(1)+16b+46a.a=\frac{5}{6}a+\frac{1}{6}b,\qquad b=\frac{1}{6}(0)+\frac{1}{6}c+\frac{4}{6}a,\qquad c=\frac{1}{6}(1)+\frac{1}{6}b+\frac{4}{6}a.
The first equation simplifies to a=ba=b. Substituting into the second: a=16c+46a    c=2aa=\frac{1}{6}c+\frac{4}{6}a\implies c=2a. Substituting both into the third:
2a=16+16a+46a=16+56a      76a=16      a=17.2a=\frac{1}{6}+\frac{1}{6}a+\frac{4}{6}a=\frac{1}{6}+\frac{5}{6}a\ \implies\ \frac{7}{6}a=\frac{1}{6}\ \implies\ a=\frac{1}{7}.
P(123 before 11)=17,P(11 before 123)=67.P(123\text{ before }11)=\frac{1}{7},\qquad\qquad P(11\text{ before }123)=\frac{6}{7}.
This lopsided result is intuitive in hindsight: every time progress toward 123123 is "almost lost" by rolling a 11 from state "12", the chain lands back at state "1" — which is exactly one more 11 away from an immediate win for pattern 1111. The shared prefix systematically favors the shorter, self-overlapping pattern. \blacksquare


Part 2 — Random Variables, Expectations, and Moments

2.1 Random Variables and CDFs

Definition 2.1. A random variable X:ΩRX: \Omega \to \mathbb{R} is F\mathcal{F}-measurable: {ω:X(ω)x}F\{\omega : X(\omega) \le x\} \in \mathcal{F} for all xx. (This apparently weak requirement — checking only half-lines — is equivalent to full Borel measurability, since the sets (,x](-\infty,x], xRx\in\mathbb{R}, generate the Borel σ\sigma-field B(R)\mathcal{B}(\mathbb{R}).)

Definition 2.2 (CDF). FX(x)=P(Xx)F_X(x) = P(X \le x).

Theorem 2.1 (Properties of a CDF). FXF_X is non-decreasing, right-continuous, limxFX=0\lim_{x\to-\infty}F_X = 0, limxFX=1\lim_{x\to\infty}F_X = 1. Conversely, any function with these properties is the CDF of some random variable (existence via the probability integral transform / quantile function FX1(U)F_X^{-1}(U) for UUnif(0,1)U \sim \mathrm{Unif}(0,1)).

Random variables may be discrete (countable support, PMF pXp_X), continuous (FXF_X absolutely continuous, density fX=FXf_X = F_X'), or mixed (a convex combination, e.g., insurance claim sizes with an atom at zero).

Remark (Radon–Nikodym and the existence of densities). More precisely: XX is continuous means its law PX(A):=P(XA)P_X(A):=P(X\in A) — the pushforward of PP under XX — satisfies PXLebP_X\ll\mathrm{Leb} (absolute continuity: Leb(A)=0    PX(A)=0\mathrm{Leb}(A)=0\implies P_X(A)=0). The Radon–Nikodym theorem then guarantees a density fX=dPX/dLebf_X=dP_X/d\,\mathrm{Leb} exists, unique up to a Lebesgue-null set, with P(XA)=AfXdLebP(X\in A)=\int_A f_X\,d\,\mathrm{Leb} for every Borel AA. The familiar identity fX=FXf_X=F_X' recovers this density in the special case where FXF_X is classically differentiable, which absolute continuity guarantees at Lebesgue-almost every point (Lebesgue's differentiation theorem). The "mixed" distributions of elementary probability — an atom superposed on a density, as in insurance claim sizes — are precisely the case where the singular part of the general Lebesgue decomposition PX=PXac+PXsingP_X = P_X^{\mathrm{ac}} + P_X^{\mathrm{sing}} is purely discrete; the fully general decomposition also permits pathological singular continuous components (e.g. measures supported on Cantor-type sets), which never arise from the standard constructions of this treatise and may safely be set aside.

2.2 Expectation

Definition 2.3. E[X]=xxpX(x)E[X] = \sum_x x\, p_X(x) (discrete) or xfX(x)dx\int x f_X(x)\,dx (continuous), when absolutely convergent.

Theorem 2.2 (LOTUS — Law of the Unconscious Statistician). E[g(X)]=xg(x)pX(x)E[g(X)] = \sum_x g(x) p_X(x) or g(x)fX(x)dx\int g(x) f_X(x)\,dx — one need not derive the distribution of g(X)g(X) to compute its expectation.

Theorem 2.3 (Linearity of Expectation). E[aX+bY]=aE[X]+bE[Y]E[aX + bY] = aE[X] + bE[Y], regardless of dependence between XX and YY. This is the single most powerful tool in combinatorial probability.

Trick (Indicator Variable Method). To compute E[N]E[N] where NN counts occurrences of some event pattern, write N=i1AiN = \sum_i \mathbf{1}_{A_i} and use E[N]=iP(Ai)E[N] = \sum_i P(A_i), entirely sidestepping the (often intractable) distribution of NN itself.

Worked Example 2.1 (Matching Problem via Indicators). For a random permutation of {1,,n}\{1,\dots,n\}, let NN be the number of fixed points. With Ai={π(i)=i}A_i = \{\pi(i) = i\}, P(Ai)=1/nP(A_i) = 1/n, so E[N]=i=1n1n=1E[N] = \sum_{i=1}^n \frac{1}{n} = 1 — independent of nn, and obtained without ever finding the distribution of NN.

2.3 Moments, Variance, and Inequalities

Definition 2.4. Var(X)=E[(XE[X])2]=E[X2](E[X])2\mathrm{Var}(X) = E[(X-E[X])^2] = E[X^2] - (E[X])^2. Cov(X,Y)=E[XY]E[X]E[Y]\mathrm{Cov}(X,Y) = E[XY] - E[X]E[Y].

Worked Example 2.2 (Variance via indicators, and an MGF cross-check). For Sn=i=1nXiS_n=\sum_{i=1}^n X_i with XiiidBernoulli(p)X_i\stackrel{iid}{\sim}\mathrm{Bernoulli}(p): since Xi2=XiX_i^2=X_i (it is an indicator), Var(Xi)=E[Xi]E[Xi]2=pp2=p(1p)\mathrm{Var}(X_i)=E[X_i]-E[X_i]^2=p-p^2=p(1-p), and independence gives Cov(Xi,Xj)=0\mathrm{Cov}(X_i,X_j)=0 for iji\ne j, so
Var(Sn)=i=1nVar(Xi)+ijCov(Xi,Xj)=np(1p).\mathrm{Var}(S_n)=\sum_{i=1}^n\mathrm{Var}(X_i) + \sum_{i \ne j}\mathrm{Cov}(X_i,X_j) = np(1-p).
As a cross-check via MSn(t)=(1p+pet)nM_{S_n}(t)=(1-p+pe^t)^n: differentiating twice and setting t=0t=0 gives MSn(0)=npM_{S_n}'(0)=np and MSn(0)=n(n1)p2+npM_{S_n}''(0)=n(n-1)p^2+np, so Var(Sn)=MSn(0)[MSn(0)]2=n(n1)p2+npn2p2=np(1p)\mathrm{Var}(S_n)=M_{S_n}''(0)-[M_{S_n}'(0)]^2 = n(n-1)p^2+np-n^2p^2=np(1-p) — agreeing exactly, as it must.

Theorem 2.4 (Markov's Inequality). For X0X \geq 0 and a>0a > 0: P(Xa)E[X]/aP(X \geq a) \leq E[X]/a.

Proof. E[X]=E[X1X<a]+E[X1Xa]E[X1Xa]aP(Xa)E[X] = E[X\mathbf{1}_{X<a}]+E[X \mathbf{1}_{X \geq a}] \geq E[X \mathbf{1}_{X \geq a}] \geq a\, P(X \geq a), using E[X1X<a]0E[X\mathbf{1}_{X<a}]\ge0 for the first inequality and XaX\ge a on {Xa}\{X\ge a\} for the second. \blacksquare

Theorem 2.5 (Chebyshev's Inequality). P(Xμkσ)1/k2P(|X - \mu| \geq k\sigma) \leq 1/k^2. Proof: apply Markov's inequality to the non-negative random variable (Xμ)2(X-\mu)^2 with a=k2σ2a=k^2\sigma^2. \blacksquare

Theorem 2.6 (Cauchy–Schwarz). E[XY]E[X2]E[Y2]|E[XY]| \leq \sqrt{E[X^2]E[Y^2]}, with equality iff Y=cXY = cX a.s. This underlies Corr(X,Y)1|\mathrm{Corr}(X,Y)| \leq 1.

2.4 Moment Generating Functions

Definition 2.5. MX(t)=E[etX]M_X(t) = E[e^{tX}], defined for tt in some neighborhood of 00.

Theorem 2.7 (Moment recovery). MX(k)(0)=E[Xk]M_X^{(k)}(0) = E[X^k], by differentiating under the expectation (Leibniz rule, justified when MXM_X is finite in a neighborhood of 00).

Theorem 2.8 (Uniqueness). If MX(t)=MY(t)M_X(t) = M_Y(t) for tt in a neighborhood of 00, then FX=FYF_X = F_Y. This makes MGFs a powerful tool for identifying distributions of sums of independent variables: MX+Y(t)=MX(t)MY(t)M_{X+Y}(t) = M_X(t)M_Y(t) when XYX \perp Y.

Remark (PGFs and Characteristic Functions). For non-negative integer-valued XX, the probability generating function GX(s)=E[sX]G_X(s) = E[s^X] is convenient (e.g., for branching processes). For heavy-tailed distributions where the MGF fails to exist (e.g., Cauchy, where E[etX]=E[e^{tX}] = \infty for t0t \neq 0), the characteristic function ϕX(t)=E[eitX]\phi_X(t) = E[e^{itX}] always exists since eitX=1|e^{itX}| = 1, and by Lévy's inversion theorem uniquely determines the distribution.

Remark (Lévy's Continuity Theorem). Characteristic functions earn their keep in asymptotic theory through: XndXX_n\stackrel{d}{\to}X if and only if ϕXn(t)ϕX(t)\phi_{X_n}(t)\to\phi_X(t) for every tRt\in\mathbb{R}. More usefully, if ϕXn(t)g(t)\phi_{X_n}(t)\to g(t) pointwise for some function gg continuous at t=0t=0, then gg is automatically the characteristic function of some random variable XX, and XndXX_n\stackrel{d}{\to}X. This is the standard mechanism behind a proof of the Central Limit Theorem (identify the pointwise limit of ϕXˉn\phi_{\bar X_n} as the N(0,1)N(0,1) characteristic function et2/2e^{-t^2/2}, then invoke this theorem) — and it resurfaces in Challenge Problem 3.1 to explain a case where the naive CLT machinery cannot even get started.

Challenge Problem 2.1 (Occupancy: empty boxes). nn distinguishable balls are thrown independently and uniformly into mm distinguishable boxes. Let WW be the number of empty boxes. Find E[W]E[W] and Var(W)\mathrm{Var}(W).

Solution. Let Ij=1{box j is empty}I_j=\mathbf{1}\{\text{box }j\text{ is empty}\} for j=1,,mj=1,\dots,m, so W=j=1mIjW=\sum_{j=1}^m I_j. Each of the nn balls independently avoids box jj with probability m1m\frac{m-1}{m}, so
E[Ij]=P(box j empty)=(m1m)n=:p1,E[W]=mp1=m(11m)n.E[I_j]=P(\text{box }j\text{ empty})=\left(\frac{m-1}{m}\right)^n=:p_1,\qquad\qquad E[W]=mp_1=m\left(1-\frac{1}{m}\right)^n.
For the variance we need the dependence between different indicators — this is what makes the problem genuinely harder than Worked Example 2.2's independent case. For jkj\ne k, both boxes j,kj,k are empty iff every ball avoids both, which happens independently for each ball with probability m2m\frac{m-2}{m} (for m2m\ge2), so
E[IjIk]=P(boxes j,k both empty)=(m2m)n=:p3,Cov(Ij,Ik)=p3p12.E[I_jI_k]=P(\text{boxes }j,k\text{ both empty})=\left(\frac{m-2}{m}\right)^n=:p_3,\qquad\qquad \mathrm{Cov}(I_j,I_k)=p_3-p_1^2.
Also Var(Ij)=p1p12\mathrm{Var}(I_j)=p_1-p_1^2, since each IjI_j is Bernoulli. There are mm diagonal terms and m(m1)m(m-1) ordered off-diagonal pairs, so
Var(W)=m(p1p12)+m(m1)(p3p12)=mp1+m(m1)p3m2p12.\mathrm{Var}(W)=m(p_1-p_1^2)+m(m-1)(p_3-p_1^2)=mp_1+m(m-1)p_3-m^2p_1^2.
Explicitly,
Var(W)=m(m1m)n+m(m1)(m2m)nm2(m1m)2n.\mathrm{Var}(W)=m\left(\frac{m-1}{m}\right)^n+m(m-1)\left(\frac{m-2}{m}\right)^n-m^2\left(\frac{m-1}{m}\right)^{2n}.
(As a check: n=3,m=2n=3,m=2 gives E[W]=14E[W]=\frac{1}{4}, Var(W)=316\mathrm{Var}(W)=\frac{3}{16}; direct enumeration of all 23=82^3=8 equally likely outcomes confirms both values exactly.) \blacksquare

Remark. This "balls into boxes" computation is the discrete sibling of the spacing problem of Part 4 (Challenge Problem 4.2): both ask "how many of kk regions receive no mass?", with the continuum limit trading the present Binomial-flavored inclusion–exclusion for the Exponential/Gamma machinery of Theorem 4.5.


Part 3 — Univariate Distributions and Transformations

3.1 Standard Discrete Distributions

DistributionPMFKey property
Bernoulli(pp)px(1p)1xp^x(1-p)^{1-x}, x{0,1}x\in\{0,1\}building block
Binomial(n,pn,p)(nx)px(1p)nx\binom{n}{x}p^x(1-p)^{n-x}sum of iid Bernoullis
Poisson(λ\lambda)eλλx/x!e^{-\lambda}\lambda^x/x!limit of Binomial, npλnp \to \lambda
Geometric(pp)(1p)x1p(1-p)^{x-1}p, x1x \geq 1memoryless: P(X>s+tX>s)=P(X>t)P(X > s+t \mid X > s) = P(X > t)
Negative Binomial(r,pr,p)(x1r1)pr(1p)xr\binom{x-1}{r-1}p^r(1-p)^{x-r}sum of iid Geometrics
Hypergeometric(N,K,nN,K,n)(Kx)(NKnx)/(Nn)\binom{K}{x}\binom{N-K}{n-x}/\binom{N}{n}sampling without replacement

Theorem 3.1 (Poisson as limit of Binomial). If XnBinomial(n,λ/n)X_n \sim \mathrm{Binomial}(n, \lambda/n), then P(Xn=k)eλλk/k!P(X_n = k) \to e^{-\lambda}\lambda^k/k! as nn \to \infty.

Proof sketch. Expand (nk)(λ/n)k(1λ/n)nk\binom{n}{k}(\lambda/n)^k(1-\lambda/n)^{n-k}; the binomial coefficient contributes nk/k!n^k/k! asymptotically, (1λ/n)neλ(1-\lambda/n)^n \to e^{-\lambda}, and the remaining factors 1\to 1. \blacksquare

Trick (Memorylessness characterizes Geometric among discrete distributions). If XX is a positive-integer-valued random variable satisfying P(X>s+tX>s)=P(X>t)P(X > s+t\mid X>s) = P(X>t) for all integers s,t0s,t\ge0, then XX is Geometric — a useful identification tool in exam problems.

3.2 Standard Continuous Distributions

DistributionPDFNotes
Uniform(a,b)(a,b)1ba\frac{1}{b-a}
Normal(μ,σ2)(\mu,\sigma^2)1σ2πe(xμ)2/2σ2\frac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/2\sigma^2}
Exponential(λ\lambda)λeλx\lambda e^{-\lambda x}, x>0x>0memoryless, continuous analogue of Geometric
Gamma(α,λ\alpha,\lambda)λαΓ(α)xα1eλx\frac{\lambda^\alpha}{\Gamma(\alpha)}x^{\alpha-1}e^{-\lambda x}sum of iid Exponentials when αN\alpha \in \mathbb{N}
Beta(α,β\alpha,\beta)1B(α,β)xα1(1x)β1\frac{1}{B(\alpha,\beta)}x^{\alpha-1}(1-x)^{\beta-1}conjugate to Binomial; support (0,1)(0,1)
Cauchy(x0,γx_0,\gamma)1πγ[1+(xx0γ)2]\frac{1}{\pi\gamma\left[1+\left(\frac{x-x_0}{\gamma}\right)^2\right]}mean and all higher moments undefined

Remark (Cauchy pathology). xf(x)dx=\int_{-\infty}^\infty |x| f(x)\,dx = \infty, so E[X]E[X] fails to exist — not merely infinite, but genuinely undefined since the integral is not absolutely convergent. Yet the Cauchy distribution arises naturally as the ratio of two independent standard Normals (Challenge Problem 3.1), and again as the tt-distribution on 11 degree of freedom; its characteristic function ϕ(t)=et\phi(t) = e^{-|t|} exists despite the MGF's non-existence.

3.3 Transformations of Random Variables

Theorem 3.2 (CDF method). For Y=g(X)Y = g(X), FY(y)=P(g(X)y)F_Y(y) = P(g(X) \le y), computed by identifying {x:g(x)y}\{x : g(x) \le y\} and integrating fXf_X over that set.

Theorem 3.3 (Jacobian / change-of-variables, monotonic case). If gg is strictly monotonic and differentiable with inverse g1g^{-1},
fY(y)=fX(g1(y))ddyg1(y).f_Y(y) = f_X(g^{-1}(y)) \left|\frac{d}{dy}g^{-1}(y)\right|.

Theorem 3.4 (Non-monotonic case). If gg is piecewise monotonic with branches g1,,gkg_1, \dots, g_k and corresponding inverses g11,,gk1g_1^{-1}, \dots, g_k^{-1},
fY(y)=i=1kfX(gi1(y))ddygi1(y).f_Y(y) = \sum_{i=1}^k f_X(g_i^{-1}(y)) \left|\frac{d}{dy}g_i^{-1}(y)\right|.

Worked Example 3.1. If ZN(0,1)Z \sim N(0,1) and Y=Z2Y = Z^2, the two branches z=±yz = \pm\sqrt{y} give
fY(y)=12πyey/2,y>0,f_Y(y) = \frac{1}{\sqrt{2\pi y}} e^{-y/2}, \quad y > 0,
which is χ12=Gamma(1/2,1/2)\chi^2_1 = \mathrm{Gamma}(1/2, 1/2).

Challenge Problem 3.1 (Cauchy ratio and failure of the CLT). Let X,YX, Y be iid standard Normal. Show that T=X/YT = X/Y follows a standard Cauchy distribution, and explain — via Lévy's Continuity Theorem (§2.4) — why the Central Limit Theorem does not apply to averages of iid Cauchy random variables.

Solution. Transform (X,Y)(T,Y)(X,Y)\to(T,Y) via X=TYX=TY, keeping YY unchanged. The Jacobian of (t,y)(x,y)=(ty,y)(t,y)\mapsto(x,y)=(ty,y) is
det(x/tx/yy/ty/y)=det(yt01)=y.\left|\det\begin{pmatrix}\partial x/\partial t & \partial x/\partial y\\ \partial y/\partial t&\partial y/\partial y\end{pmatrix}\right|=\left|\det\begin{pmatrix}y&t\\0&1\end{pmatrix}\right|=|y|.
Since XYX\perp Y, fT,Y(t,y)=fX(ty)fY(y)y=12πyey2(1+t2)/2f_{T,Y}(t,y)=f_X(ty)f_Y(y)|y|=\dfrac{1}{2\pi}|y|\,e^{-y^2(1+t^2)/2}. Integrating out yy (the integrand is even in yy):
fT(t)=1π0yey2(1+t2)/2dy=1π11+t20eudu=1π(1+t2),f_T(t)=\frac{1}{\pi}\int_0^\infty y\,e^{-y^2(1+t^2)/2}\,dy=\frac{1}{\pi}\cdot\frac{1}{1+t^2}\int_0^\infty e^{-u}\,du=\frac{1}{\pi(1+t^2)},
using the substitution u=y2(1+t2)/2u=y^2(1+t^2)/2, du=y(1+t2)dydu = y(1+t^2)\,dy. This is exactly the standard Cauchy density.

For the CLT failure: the characteristic function of standard Cauchy is ϕ(t)=et\phi(t)=e^{-|t|} (§3.2). For Xˉn=1ni=1nXi\bar X_n=\frac{1}{n}\sum_{i=1}^n X_i with XiiidCauchy(0,1)X_i\stackrel{iid}{\sim}\mathrm{Cauchy}(0,1), independence gives
ϕXˉn(t)=[ϕX ⁣(tn)]n=[et/n]n=et=ϕX(t)for every n.\phi_{\bar X_n}(t)=\left[\phi_X\!\left(\frac{t}{n}\right)\right]^n=\left[e^{-|t|/n}\right]^n=e^{-|t|}=\phi_X(t)\quad\text{for every }n.
So Xˉn=dX1\bar X_n\stackrel{d}{=}X_1 for every sample size — the sample mean never concentrates, in flagrant violation of the usual CLT conclusion. This is not a counterexample to the CLT (whose hypotheses require E[X2]<E[X^2]<\infty, in particular EX<E|X|<\infty); it is a demonstration of why the hypothesis is needed: without a finite mean there is nothing for Xˉn\bar X_n to concentrate around, and Lévy's Continuity Theorem shows the characteristic functions witness this directly, rather than merely failing to prove convergence. \blacksquare

Challenge Problem 3.2 (The Gamma–Beta algebra). Let XGamma(α,λ)X\sim\mathrm{Gamma}(\alpha,\lambda) and YGamma(β,λ)Y\sim\mathrm{Gamma}(\beta,\lambda) be independent. Show that U=X+YU=X+Y and V=X/(X+Y)V=X/(X+Y) are independent, with UGamma(α+β,λ)U\sim\mathrm{Gamma}(\alpha+\beta,\lambda) and VBeta(α,β)V\sim\mathrm{Beta}(\alpha,\beta).

Solution. This is the two-dimensional Jacobian transformation par excellence: independence emerges from the change of variables rather than being visible beforehand. Write x=uv, y=u(1v)x=uv,\ y=u(1-v) (inverting u=x+y, v=x/(x+y)u=x+y,\ v=x/(x+y)), for u>0, v(0,1)u>0,\ v\in(0,1). The Jacobian is
det(x/ux/vy/uy/v)=det(vu1vu)=uvu(1v)=u.\left|\det\begin{pmatrix}\partial x/\partial u&\partial x/\partial v\\ \partial y/\partial u&\partial y/\partial v\end{pmatrix}\right|=\left|\det\begin{pmatrix}v&u\\1-v&-u\end{pmatrix}\right|=|-uv-u(1-v)|=u.
By independence of X,YX,Y,
fU,V(u,v)=fX(uv)fY(u(1v))u=λαΓ(α)(uv)α1eλuvλβΓ(β)(u(1v))β1eλu(1v)u.f_{U,V}(u,v)=f_X(uv)\,f_Y(u(1-v))\cdot u = \frac{\lambda^\alpha}{\Gamma(\alpha)}(uv)^{\alpha-1}e^{-\lambda uv}\cdot\frac{\lambda^\beta}{\Gamma(\beta)}(u(1-v))^{\beta-1}e^{-\lambda u(1-v)}\cdot u.
Collecting powers of uu and using v+(1v)=1v+(1-v)=1 in the exponent,
fU,V(u,v)=[λα+βΓ(α+β)uα+β1eλu]Gamma(α+β,λ) density in u×[Γ(α+β)Γ(α)Γ(β)vα1(1v)β1]Beta(α,β) density in v,f_{U,V}(u,v)=\underbrace{\left[\frac{\lambda^{\alpha+\beta}}{\Gamma(\alpha+\beta)}u^{\alpha+\beta-1}e^{-\lambda u}\right]}_{\mathrm{Gamma}(\alpha+\beta,\lambda)\text{ density in }u}\times\underbrace{\left[\frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}v^{\alpha-1}(1-v)^{\beta-1}\right]}_{\mathrm{Beta}(\alpha,\beta)\text{ density in }v},
which factors as a function of uu alone times a function of vv alone — precisely independence, with both marginals read off directly. \blacksquare

Remark. This computation is the engine behind Theorem 4.5's Rényi representation: normalizing kk independent Gamma(1,λ)=Exponential(λ)\mathrm{Gamma}(1,\lambda)=\mathrm{Exponential}(\lambda) variables by their sum, iterated successively via exactly this Jacobian argument, produces the uniform Dirichlet law on the simplex. The discrete stars-and-bars principle (§1.2) and the continuous Dirichlet spacing law are, quite literally, the same computation carried out with sums replaced by integrals.


Part 4 — Joint Distributions and Order Statistics

4.1 Joint, Marginal, and Conditional Distributions

Definition 4.1. Joint CDF FX,Y(x,y)=P(Xx,Yy)F_{X,Y}(x,y) = P(X\le x, Y \le y); joint density fX,Y=2FX,Y/xyf_{X,Y} = \partial^2 F_{X,Y}/\partial x\,\partial y (continuous case). Marginals: fX(x)=fX,Y(x,y)dyf_X(x) = \int f_{X,Y}(x,y)\,dy.

Definition 4.2 (Independence). XY    fX,Y(x,y)=fX(x)fY(y)X \perp Y \iff f_{X,Y}(x,y) = f_X(x)f_Y(y) for all x,yx,y.

Definition 4.3 (Conditional density and expectation). fYX(yx)=fX,Y(x,y)/fX(x)f_{Y\mid X}(y\mid x) = f_{X,Y}(x,y)/f_X(x); E[YX=x]=yfYX(yx)dyE[Y\mid X=x] = \int y\, f_{Y\mid X}(y\mid x)\,dy.

4.2 Adam's and Eve's Laws

Theorem 4.1 (Adam's Law / Law of Total Expectation). E[Y]=E[E[YX]]E[Y] = E[E[Y\mid X]].

Theorem 4.2 (Eve's Law / Law of Total Variance). Var(Y)=E[Var(YX)]+Var(E[YX])\mathrm{Var}(Y) = E[\mathrm{Var}(Y\mid X)] + \mathrm{Var}(E[Y\mid X]).

Proof. Let g(X)=E[YX]g(X) = E[Y\mid X]. Then Var(Y)=E[Y2](E[Y])2\mathrm{Var}(Y) = E[Y^2] - (E[Y])^2. Write E[Y2]=E[E[Y2X]]=E[Var(YX)+g(X)2]E[Y^2] = E[E[Y^2\mid X]] = E[\mathrm{Var}(Y\mid X) + g(X)^2] by Adam's Law applied within each conditional slice. Also (E[Y])2=(E[g(X)])2(E[Y])^2 = (E[g(X)])^2 by Adam's Law applied to YY itself. Combining:
Var(Y)=E[Var(YX)]+(E[g(X)2](E[g(X)])2)=E[Var(YX)]+Var(g(X)). \mathrm{Var}(Y) = E[\mathrm{Var}(Y\mid X)] + \left(E[g(X)^2] - (E[g(X)])^2\right) = E[\mathrm{Var}(Y\mid X)] + \mathrm{Var}(g(X)).\ \blacksquare

Remark. Eve's Law is the theoretical basis of the ANOVA decomposition of variance into within-group and between-group components; §7 revisits it as an instance of the Pythagorean theorem in L2(Ω,F,P)L^2(\Omega,\mathcal F,P).

4.3 Order Statistics

Definition 4.4. For iid X1,,XnFX_1,\dots,X_n \sim F, the order statistics are the sorted values X(1)X(2)X(n)X_{(1)} \le X_{(2)} \le \cdots \le X_{(n)}.

Theorem 4.3 (Marginal density of X(k)X_{(k)}).
fX(k)(x)=n!(k1)!(nk)!F(x)k1[1F(x)]nkf(x).f_{X_{(k)}}(x) = \frac{n!}{(k-1)!(n-k)!} F(x)^{k-1}[1-F(x)]^{n-k} f(x).

Proof sketch. X(k)[x,x+dx)X_{(k)} \in [x, x+dx) requires exactly k1k-1 of the nn points below xx, one in [x,x+dx)[x,x+dx), and nkn-k above; the multinomial coefficient counts the assignments, giving the stated density in the limit dx0dx \to 0. \blacksquare

Theorem 4.4 (Joint density of X(1),,X(n)X_{(1)}, \dots, X_{(n)}).
fX(1),,X(n)(x1,,xn)=n!f(x1)f(xn),x1<x2<<xn.f_{X_{(1)},\dots,X_{(n)}}(x_1,\dots,x_n) = n!\, f(x_1)\cdots f(x_n), \quad x_1 < x_2 < \cdots < x_n.

Corollary (Range and extremes). FX(n)(x)=F(x)nF_{X_{(n)}}(x) = F(x)^n; FX(1)(x)=1[1F(x)]nF_{X_{(1)}}(x) = 1-[1-F(x)]^n. The distribution of the sample range R=X(n)X(1)R = X_{(n)} - X_{(1)} is obtained from the joint density of (X(1),X(n))(X_{(1)}, X_{(n)}) via a change of variables.

4.4 Spacings of Uniform Order Statistics

Theorem 4.5 (Uniform spacings). For U(1)U(n)U_{(1)} \le \cdots \le U_{(n)} from Unif(0,1)\mathrm{Unif}(0,1), define spacings Di=U(i)U(i1)D_i = U_{(i)} - U_{(i-1)} (with U(0)=0U_{(0)}=0, U(n+1)=1U_{(n+1)}=1). The vector (D1,,Dn+1)(D_1,\dots,D_{n+1}) is exchangeable and distributed as a uniform Dirichlet on the simplex; consequently, each spacing satisfies Di=dEij=1n+1EjD_i \stackrel{d}{=} \frac{E_i}{\sum_{j=1}^{n+1}E_j} for iid Exponential(1)\mathrm{Exponential}(1) variables EjE_j — the Rényi representation, directly linking Uniform spacings to sums of iid Exponentials (i.e., Gamma variables); Challenge Problem 3.2 supplies the underlying Jacobian mechanism.

Remark (Discrete \to continuous: stars-and-bars grown up). This is exactly the continuum limit of the discrete stars-and-bars principle of §1.2. In the discrete world, splitting a total of nn indistinguishable units into kk non-negative parts is counted by (n+k1k1)\binom{n+k-1}{k-1} equally likely compositions. In the continuum, the "total" becomes the unit interval, the "parts" become the kk spacings cut out by k1k-1 random dividers, and the uniform-measure analogue of "every composition equally likely" is precisely the uniform density on the simplex {d0:idi=1}\{\mathbf{d}\ge\mathbf{0}:\sum_i d_i=1\} — the Dirichlet(1,,1)\mathrm{Dirichlet}(1,\dots,1) law above. Stars-and-bars is Theorem 4.5 with the integral replaced by a sum.

Challenge Problem 4.1 (Proving the exponential-gap representation). Let X1,,XniidExponential(λ)X_1,\dots,X_n\stackrel{iid}{\sim}\mathrm{Exponential}(\lambda) with order statistics X(1)X(n)X_{(1)}\le\cdots\le X_{(n)}. Prove that the successive gaps Gk=X(k)X(k1)G_k=X_{(k)}-X_{(k-1)} (with X(0):=0X_{(0)}:=0) are independent, with GkExponential((nk+1)λ)G_k\sim\mathrm{Exponential}\big((n-k+1)\lambda\big); deduce closed forms for E[X(k)]E[X_{(k)}] and Var(X(k))\mathrm{Var}(X_{(k)}).

Solution. By Theorem 4.4, the joint density of (X(1),,X(n))(X_{(1)},\dots,X_{(n)}) is n!λneλxin!\,\lambda^ne^{-\lambda\sum x_i} on x1<<xnx_1<\cdots<x_n. Change variables to the gaps gk=xkxk1g_k=x_k-x_{k-1} (so xk=g1++gkx_k=g_1+\cdots+g_k); this is a linear transformation with unit lower-triangular Jacobian matrix, so det=1|\det|=1 — the simplest possible non-trivial instance of a multivariate Jacobian. Each gap gjg_j contributes to xj,xj+1,,xnx_j,x_{j+1},\dots,x_n, i.e. to (nj+1)(n-j+1) of the xkx_k's, so
k=1nxk=j=1n(nj+1)gj.\sum_{k=1}^n x_k=\sum_{j=1}^n(n-j+1)g_j.
Hence the joint density of the gaps is
f(g1,,gn)=n!λnexp(λj=1n(nj+1)gj),gj>0.f(g_1,\dots,g_n)=n!\,\lambda^n\exp\left(-\lambda\sum_{j=1}^n(n-j+1)g_j\right),\qquad g_j>0.
Since j=1n(nj+1)=n!\prod_{j=1}^n(n-j+1)=n! (it is just n(n1)1n(n-1)\cdots1 relabelled), the constant n!λnn!\lambda^n may be rewritten as j=1n[(nj+1)λ]\prod_{j=1}^n\big[(n-j+1)\lambda\big], and the density factors:
f(g1,,gn)=j=1n[(nj+1)λe(nj+1)λgj].f(g_1,\dots,g_n)=\prod_{j=1}^n\Big[(n-j+1)\lambda\, e^{-(n-j+1)\lambda g_j}\Big].
Each factor is exactly an Exponential((nj+1)λ)\mathrm{Exponential}\big((n-j+1)\lambda\big) density, and a joint density that factors into a product of one-variable densities is precisely the statement that the GjG_j are independent with those marginals — proving the claim. (Intuition: after the first k1k-1 failures, the remaining nk+1n-k+1 lifetimes are, by memorylessness, still fresh Exponential(λ)\mathrm{Exponential}(\lambda) variables, and the minimum of nk+1n-k+1 independent Exponential(λ)\mathrm{Exponential}(\lambda)'s is Exponential((nk+1)λ)\mathrm{Exponential}((n-k+1)\lambda) — the algebra above is that heuristic made rigorous.)

Since Gj=dEj/[(nj+1)λ]G_j\stackrel{d}{=}E_j/[(n-j+1)\lambda] for iid standard Exponentials EjE_j, and X(k)=j=1kGjX_{(k)}=\sum_{j=1}^kG_j, independence of the GjG_j immediately gives
E[X(k)]=j=1k1(nj+1)λ=1λi=nk+1n1i,Var(X(k))=j=1k1[(nj+1)λ]2=1λ2i=nk+1n1i2.E[X_{(k)}]=\sum_{j=1}^k\frac{1}{(n-j+1)\lambda}=\frac{1}{\lambda}\sum_{i=n-k+1}^n\frac{1}{i},\qquad\qquad \mathrm{Var}(X_{(k)})=\sum_{j=1}^k\frac{1}{[(n-j+1)\lambda]^2}=\frac{1}{\lambda^2}\sum_{i=n-k+1}^n\frac{1}{i^2}.
\blacksquare

Challenge Problem 4.2 (An indicator count for spacings, and a Poisson-process limit). With D1,,Dn+1D_1,\dots,D_{n+1} the uniform spacings of Theorem 4.5, fix c>0c>0 and let Nn(c)=#{i:Di>c/n}N_n(c)=\#\{i: D_i> c/n\} count the spacings exceeding threshold c/nc/n. Find E[Nn(c)]E[N_n(c)] exactly using indicator variables, and show Nn(c)/(n+1)ecN_n(c)/(n+1)\to e^{-c} as nn\to\infty.

Solution. By exchangeability (Theorem 4.5), every DiD_i shares the marginal law of D1=U(1)D_1=U_{(1)}, the minimum of the nn uniform points — and the Corollary to Theorem 4.3 already gives FX(1)(x)=1[1F(x)]nF_{X_{(1)}}(x)=1-[1-F(x)]^n, i.e. for Unif(0,1)\mathrm{Unif}(0,1), P(D1t)=1(1t)nP(D_1\le t)=1-(1-t)^n, so P(Di>t)=(1t)nP(D_i>t)=(1-t)^n for every ii. Writing Nn(c)=i=1n+11{Di>c/n}N_n(c)=\sum_{i=1}^{n+1}\mathbf{1}\{D_i>c/n\} and applying linearity of expectation (§2.2) — note this sidesteps entirely the fact that the DiD_i are dependent, exactly as the Indicator Variable Trick intends:
E[Nn(c)]=(n+1)P ⁣(D1>cn)=(n+1)(1cn)n(n>c).E[N_n(c)]=(n+1)\,P\!\left(D_1>\frac{c}{n}\right)=(n+1)\left(1-\frac{c}{n}\right)^n\qquad(n>c).
Dividing by n+1n+1 and letting nn\to\infty, the standard limit (1cn)nec\left(1-\frac{c}{n}\right)^n\to e^{-c} gives
E[Nn(c)]n+1ec.\frac{E[N_n(c)]}{n+1}\longrightarrow e^{-c}.
\blacksquare

Remark (why this is the right answer). The Rényi representation says DiEi/nD_i\approx E_i/n for large nn (since j=1n+1Ejn\sum_{j=1}^{n+1}E_j\approx n by the Law of Large Numbers), so P(Di>c/n)P(Ei>c)=ecP(D_i>c/n)\approx P(E_i>c)=e^{-c} — matching exactly. More is true: near any fixed location, the nn uniform points locally resemble a rate-nn Poisson process, whose gaps are exactly Exponential(n)\mathrm{Exponential}(n); Nn(c)/(n+1)N_n(c)/(n+1) is then literally an empirical estimate of the tail probability P(Exponential(1)>c)P(\mathrm{Exponential}(1)>c) of the rescaled gap nDinD_i. A second-moment computation — entirely analogous to the box-occupancy variance of Challenge Problem 2.1, replacing "boxes empty" by "spacings large" — would additionally show Var(Nn(c)/(n+1))0\mathrm{Var}(N_n(c)/(n+1))\to0, upgrading this convergence in expectation to convergence in probability.


Part 5 — Multivariate Distributions (Multinomial & Normal)

5.1 Multinomial Distribution

Definition 5.1. (N1,,Nk)Multinomial(n;p1,,pk)(N_1,\dots,N_k) \sim \mathrm{Multinomial}(n; p_1,\dots,p_k) has joint PMF
P(N1=n1,,Nk=nk)=n!n1!nk!p1n1pknk,ni=n.P(N_1=n_1,\dots,N_k=n_k) = \frac{n!}{n_1!\cdots n_k!}p_1^{n_1}\cdots p_k^{n_k}, \quad \sum n_i = n.

Theorem 5.1 (Marginals). NiBinomial(n,pi)N_i \sim \mathrm{Binomial}(n, p_i).

Theorem 5.2 (Conditional distribution). Given N1=n1N_1 = n_1, the remaining counts (N2,,Nk)(N_2,\dots,N_k) are Multinomial(nn1;p21p1,,pk1p1)(n-n_1; \frac{p_2}{1-p_1},\dots,\frac{p_k}{1-p_1}).

Theorem 5.3 (Covariance structure). Cov(Ni,Nj)=npipj\mathrm{Cov}(N_i,N_j) = -n p_i p_j for iji \neq j — always negative, reflecting the constraint Ni=n\sum N_i = n.

5.2 Bivariate Normal Distribution

Definition 5.2. (X,Y)(X,Y) is bivariate Normal with parameters μX,μY,σX2,σY2,ρ\mu_X,\mu_Y,\sigma_X^2,\sigma_Y^2,\rho if its joint density is
f(x,y)=12πσXσY1ρ2exp{12(1ρ2)[(xμX)2σX22ρ(xμX)(yμY)σXσY+(yμY)2σY2]}.f(x,y) = \frac{1}{2\pi\sigma_X\sigma_Y\sqrt{1-\rho^2}} \exp\left\{-\frac{1}{2(1-\rho^2)}\left[\frac{(x-\mu_X)^2}{\sigma_X^2} - \frac{2\rho(x-\mu_X)(y-\mu_Y)}{\sigma_X\sigma_Y} + \frac{(y-\mu_Y)^2}{\sigma_Y^2}\right]\right\}.

Theorem 5.4 (Conditional distribution). YX=xN(μY+ρσYσX(xμX), σY2(1ρ2))Y \mid X=x \sim N\left(\mu_Y + \rho\frac{\sigma_Y}{\sigma_X}(x-\mu_X),\ \sigma_Y^2(1-\rho^2)\right) — linear regression function, constant conditional variance.

Theorem 5.5 (Zero correlation     \iff independence, bivariate Normal only). For jointly Normal (X,Y)(X,Y), ρ=0    \rho = 0 \implies the cross term vanishes and f(x,y)f(x,y) factors into fX(x)fY(y)f_X(x)f_Y(y). This equivalence is special to joint normality — in general, zero correlation does not imply independence (a standard counterexample: XN(0,1)X\sim N(0,1), Y=X2Y = X^2; Cov(X,Y)=0\mathrm{Cov}(X,Y)=0 but YY is a deterministic function of XX).

Remark (A famous corollary). Theorem 5.5 is the reason Xˉ\bar X and S2S^2 are independent for a normal random sample X1,,XniidN(μ,σ2)X_1,\dots,X_n\stackrel{iid}\sim N(\mu,\sigma^2): one checks directly that Cov(Xˉ,XiXˉ)=0\mathrm{Cov}(\bar X, X_i-\bar X)=0 for every ii, and (Xˉ,X1Xˉ,,XnXˉ)(\bar X, X_1-\bar X,\dots,X_n-\bar X) is jointly Gaussian (an affine image of (X1,,Xn)(X_1,\dots,X_n), Theorem 5.6 below), so zero cross-covariance upgrades to independence: Xˉ(X1Xˉ,,XnXˉ)\bar X\perp(X_1-\bar X,\dots,X_n-\bar X), hence XˉS2\bar X\perp S^2. This independence is the single fact that makes the tt-distribution — and the entire theory of the one-sample tt-test — tractable.

5.3 Multivariate Normal Distribution

Remark (Why Σ\Sigma is positive semi-definite — true for any random vector). Before specializing to Gaussians: for any random vector Y=(Y1,,Yp)T\mathbf{Y}=(Y_1,\dots,Y_p)^T with finite second moments, Σ=Cov(Y)\Sigma=\mathrm{Cov}(\mathbf{Y}) is automatically positive semi-definite, because for any aRp\mathbf{a}\in\mathbb{R}^p,
aTΣa=Var(aTY)0.\mathbf{a}^T\Sigma\mathbf{a}=\mathrm{Var}(\mathbf{a}^T\mathbf{Y})\ge0.
Σ\Sigma fails to be strictly positive definite exactly when some linear combination aTY\mathbf{a}^T\mathbf{Y} is almost-surely constant, i.e. the law of Y\mathbf{Y} is degenerate, concentrated on a proper affine subspace of Rp\mathbb{R}^p (which has Lebesgue measure zero in Rp\mathbb{R}^p, so no genuine pp-dimensional density can exist there). This is exactly why Definition 5.3 below imposes Σ0\Sigma\succ0: the degenerate case is instead handled through the affine-image construction of Theorem 5.6.

Definition 5.3. XNp(μ,Σ)\mathbf{X} \sim N_p(\boldsymbol{\mu}, \Sigma), Σ\Sigma positive definite, has density
f(x)=1(2π)p/2Σ1/2exp{12(xμ)TΣ1(xμ)}.f(\mathbf{x}) = \frac{1}{(2\pi)^{p/2}|\Sigma|^{1/2}} \exp\left\{-\frac{1}{2}(\mathbf{x}-\boldsymbol{\mu})^T\Sigma^{-1}(\mathbf{x}-\boldsymbol{\mu})\right\}.

Theorem 5.6 (Affine transformations). If XNp(μ,Σ)\mathbf{X}\sim N_p(\boldsymbol\mu,\Sigma) and Y=AX+b\mathbf{Y}=A\mathbf{X}+\mathbf{b} for a q×pq\times p matrix AA, then YNq(Aμ+b,AΣAT)\mathbf{Y}\sim N_q(A\boldsymbol\mu+\mathbf{b},\, A\Sigma A^T) — the multivariate Normal family is closed under affine maps, with no rank restriction on AA (degenerate normals arise when AΣATA\Sigma A^T is singular).

Theorem 5.7 (Marginals). Any sub-vector of a multivariate Normal is multivariate Normal, with the corresponding sub-block of μ\boldsymbol\mu and Σ\Sigma — an immediate corollary of Theorem 5.6 by choosing AA as a selection matrix.

Theorem 5.8 (Quadratic forms and χ2\chi^2). If XNp(0,Σ)\mathbf{X} \sim N_p(\mathbf{0}, \Sigma) with Σ\Sigma invertible, then XTΣ1Xχp2\mathbf{X}^T\Sigma^{-1}\mathbf{X} \sim \chi^2_p.

Proof sketch. Write Σ1=Σ1/2Σ1/2\Sigma^{-1} = \Sigma^{-1/2}\Sigma^{-1/2} (symmetric square root), and let Z=Σ1/2X\mathbf{Z}=\Sigma^{-1/2}\mathbf{X}; by Theorem 5.6, ZNp(0,Ip)\mathbf{Z}\sim N_p(\mathbf{0}, I_p), so XTΣ1X=ZTZ=Zi2χp2\mathbf{X}^T\Sigma^{-1}\mathbf{X}=\mathbf{Z}^T\mathbf{Z}=\sum Z_i^2 \sim \chi^2_p by definition of the chi-squared distribution as a sum of pp iid squared standard Normals. \blacksquare

Challenge Problem 5.1 (Independence of quadratic forms, and the unbiasedness of S2S^2). Let XNp(0,Σ)\mathbf{X}\sim N_p(\mathbf{0}, \Sigma), Σ0\Sigma\succ0, and let A,BA, B be symmetric p×pp\times p matrices.

(a) Show that if AΣB=0A\Sigma B=0, then XTAX\mathbf{X}^TA\mathbf{X} and XTBX\mathbf{X}^TB\mathbf{X} are independent (Craig's theorem, sufficiency direction).

(b) Show Cov(XTAX,XTBX)=2tr(AΣBΣ)\mathrm{Cov}(\mathbf{X}^TA\mathbf{X},\mathbf{X}^TB\mathbf{X})=2\,\mathrm{tr}(A\Sigma B\Sigma), and explain why this shows AΣB=0A\Sigma B=0 is not recoverable from second moments alone.

(c) For X1,,XniidN(μ,σ2)X_1,\dots,X_n\stackrel{iid}\sim N(\mu,\sigma^2) — i.e. XNn(μ1n,σ2In)\mathbf{X}\sim N_n(\mu\mathbf{1}_n,\sigma^2I_n), where 1nRn\mathbf{1}_n\in\mathbb{R}^n is the all-ones vector, not to be confused with the event-indicator 1A\mathbf{1}_A — use the identity E[XTAX]=tr(AΣ)+μTAμE[\mathbf{X}^TA\mathbf{X}]=\mathrm{tr}(A\Sigma)+\boldsymbol\mu^TA\boldsymbol\mu (the mean-adjusted generalization of Theorem 5.8's zero-mean trace identity) to show S2=1n1i=1n(XiXˉ)2S^2=\frac{1}{n-1}\sum_{i=1}^n(X_i-\bar X)^2 is unbiased for σ2\sigma^2.

(d) Show that if QQ is orthogonal and XNp(0,Ip)\mathbf{X}\sim N_p(\mathbf{0},I_p), then QX=dXQ\mathbf{X}\stackrel{d}{=}\mathbf{X}.

Solution.

(a) Write Σ=Σ1/2Σ1/2\Sigma=\Sigma^{1/2}\Sigma^{1/2} and set Z=Σ1/2XNp(0,Ip)\mathbf{Z}=\Sigma^{-1/2}\mathbf{X}\sim N_p(\mathbf{0},I_p) (Theorem 5.6), so X=Σ1/2Z\mathbf{X}=\Sigma^{1/2}\mathbf{Z}. Then XTAX=ZTAZ\mathbf{X}^TA\mathbf{X}=\mathbf{Z}^TA'\mathbf{Z} and XTBX=ZTBZ\mathbf{X}^TB\mathbf{X}=\mathbf{Z}^TB'\mathbf{Z} where A=Σ1/2AΣ1/2A'=\Sigma^{1/2}A\Sigma^{1/2}, B=Σ1/2BΣ1/2B'=\Sigma^{1/2}B\Sigma^{1/2} are symmetric, and
AB=Σ1/2AΣBΣ1/2=Σ1/2(AΣB)Σ1/2=0.A'B'=\Sigma^{1/2}A\,\Sigma\, B\Sigma^{1/2}=\Sigma^{1/2}(A\Sigma B)\Sigma^{1/2}=0.
So it suffices to treat the whitened case Σ=I\Sigma=I: symmetric A,BA',B' with AB=0A'B'=0 (hence also BA=(AB)T=0T=0B'A'=(A'B')^T=0^T=0). Commuting symmetric matrices are simultaneously orthogonally diagonalizable: there is an orthogonal QQ with QTAQ=DA=diag(αi)Q^TA'Q=D_A=\mathrm{diag}(\alpha_i) and QTBQ=DB=diag(βi)Q^TB'Q=D_B=\mathrm{diag}(\beta_i), and DADB=QTABQ=0D_AD_B=Q^TA'B'Q=0 forces αiβi=0\alpha_i\beta_i=0 for every ii — at each coordinate, at most one of αi,βi\alpha_i,\beta_i is nonzero. Let W=QTZNp(0,Ip)\mathbf{W}=Q^T\mathbf{Z}\sim N_p(\mathbf{0},I_p) (Theorem 5.6 again, QQ orthogonal). Then
ZTAZ=WTDAW=iαiWi2,ZTBZ=WTDBW=iβiWi2,\mathbf{Z}^TA'\mathbf{Z}=\mathbf{W}^TD_A\mathbf{W}=\sum_i\alpha_iW_i^2,\qquad\qquad \mathbf{Z}^TB'\mathbf{Z}=\mathbf{W}^TD_B\mathbf{W}=\sum_i\beta_iW_i^2,
and since {i:αi0}\{i:\alpha_i\ne0\} and {i:βi0}\{i:\beta_i\ne0\} are disjoint index sets, these two sums are functions of disjoint subcollections of the mutually independent W1,,WpW_1,\dots,W_p — hence independent. \blacksquare

(b) For XNp(0,Σ)\mathbf{X}\sim N_p(\mathbf{0},\Sigma), expanding XTAX\mathbf{X}^TA\mathbf{X} and XTBX\mathbf{X}^TB\mathbf{X} in the whitened coordinates Z=Σ1/2XN(0,I)\mathbf{Z}=\Sigma^{-1/2}\mathbf{X}\sim N(\mathbf{0},I) as in part (a) and applying Isserlis'/Wick's formula for fourth moments of independent standard Normals yields the general formula
Cov(XTAX,XTBX)=2tr(AΣBΣ).\mathrm{Cov}(\mathbf{X}^TA\mathbf{X},\mathbf{X}^TB\mathbf{X})=2\,\mathrm{tr}(A\Sigma B\Sigma).
(Sanity check: A=B=Ip,Σ=IpA=B=I_p,\Sigma=I_p gives Var(χp2)=2p\mathrm{Var}(\chi^2_p)=2p, correct.) If AΣB=0A\Sigma B=0 then certainly tr(AΣBΣ)=tr(0Σ)=0\mathrm{tr}(A\Sigma B\Sigma)=\mathrm{tr}(0\cdot\Sigma)=0, consistent with part (a)'s stronger conclusion. But the converse is genuinely weaker, because a matrix trace can vanish without the matrix itself vanishing: with Σ=I\Sigma=I, A=(1001)A=\begin{pmatrix}1&0\\0&-1\end{pmatrix}, B=(0110)B=\begin{pmatrix}0&1\\1&0\end{pmatrix} (both symmetric), AB=(0110)AB=\begin{pmatrix}0&1\\-1&0\end{pmatrix} has tr(AB)=0\mathrm{tr}(AB)=0 yet AB0AB\ne0. So vanishing covariance — the second-moment shadow of Craig's condition — cannot by itself certify AΣB=0A\Sigma B=0. The full converse (necessity) of Craig's theorem is true, but it requires matching the entire joint moment generating function E[esXTAX+tXTBX]=I2sA2tB1/2E\big[e^{s\mathbf{X}^TA\mathbf{X}+t\mathbf{X}^TB\mathbf{X}}\big]=|I-2sA-2tB|^{-1/2} against the product I2sA1/2I2tB1/2|I-2sA|^{-1/2}|I-2tB|^{-1/2} to all orders in (s,t)(s,t) — not merely the order-stst term that produces the covariance formula above — a genuinely more delicate argument that we do not pursue here. \blacksquare

(c) Let A=In1nJA=I_n-\frac{1}{n}J where J=1n1nTJ=\mathbf{1}_n\mathbf{1}_n^T is the n×nn\times n all-ones matrix; AA is symmetric, and A1n=1n1n(n1n)=0A\mathbf{1}_n=\mathbf{1}_n-\frac{1}{n}(n\mathbf{1}_n)=\mathbf{0}. With μ=μ1n\boldsymbol\mu=\mu\mathbf{1}_n, Σ=σ2In\Sigma=\sigma^2I_n:
tr(AΣ)=σ2tr(A)=σ2[n1ntr(J)]=σ2[n1nn]=σ2(n1),μTAμ=μ21nTA1n=μ21nT0=0.\mathrm{tr}(A\Sigma)=\sigma^2\,\mathrm{tr}(A)=\sigma^2\Big[n-\frac{1}{n}\,\mathrm{tr}(J)\Big]=\sigma^2\Big[n-\frac{1}{n}\cdot n\Big]=\sigma^2(n-1),\qquad\qquad \boldsymbol\mu^TA\boldsymbol\mu=\mu^2\mathbf{1}_n^TA\mathbf{1}_n=\mu^2\mathbf{1}_n^T\mathbf{0}=0.
So E[XTAX]=σ2(n1)E[\mathbf{X}^TA\mathbf{X}]=\sigma^2(n-1). But algebraically XTAX=XTX1n(1nTX)2=iXi21n(iXi)2=i(XiXˉ)2\mathbf{X}^TA\mathbf{X}=\mathbf{X}^T\mathbf{X}-\frac{1}{n}(\mathbf{1}_n^T\mathbf{X})^2=\sum_iX_i^2-\frac{1}{n}\Big(\sum_iX_i\Big)^2=\sum_i(X_i-\bar X)^2, so E[i(XiXˉ)2]=σ2(n1)E\big[\sum_i(X_i-\bar X)^2\big]=\sigma^2(n-1), i.e.
E[S2]=E[1n1i=1n(XiXˉ)2]=σ2.E[S^2]=E\left[\frac{1}{n-1}\sum_{i=1}^n(X_i-\bar X)^2\right]=\sigma^2.
\blacksquare

(d) By Theorem 5.6, QXNp(Q0,QIpQT)=Np(0,QQT)=Np(0,Ip)Q\mathbf{X}\sim N_p(Q\mathbf{0},\,QI_pQ^T)=N_p(\mathbf{0},\,QQ^T)=N_p(\mathbf{0},I_p) since QQ is orthogonal. A multivariate Normal law is determined entirely by its mean and covariance, so QX=dXQ\mathbf{X}\stackrel{d}{=}\mathbf{X}. \blacksquare

Challenge Problem 5.2 (Orthogonal invariance: radius and direction are independent). Let XNp(0,Ip)\mathbf{X}\sim N_p(\mathbf{0},I_p), p2p\ge2. Define R=XR=\|\mathbf{X}\| and Θ=X/XSp1\boldsymbol\Theta=\mathbf{X}/\|\mathbf{X}\|\in\mathbb{S}^{p-1} (well-defined a.s., since P(X=0)=0P(\mathbf{X}=\mathbf{0})=0). Show that RR and Θ\boldsymbol\Theta are independent, and that Θ\boldsymbol\Theta is uniformly distributed on Sp1\mathbb{S}^{p-1}.

Solution. This is Challenge Problem 5.1(d)'s rotational invariance, pushed to its natural conclusion. Fix any orthogonal QQ. Two deterministic facts about the maps R(),Θ()R(\cdot),\boldsymbol\Theta(\cdot): R(Qx)=Qx=x=R(x)R(Q\mathbf{x})=\|Q\mathbf{x}\|=\|\mathbf{x}\|=R(\mathbf{x}) for every x\mathbf{x} (orthogonal maps preserve norm), and Θ(Qx)=QxQx=Qxx=QΘ(x)\boldsymbol\Theta(Q\mathbf{x})=\dfrac{Q\mathbf{x}}{\|Q\mathbf{x}\|}=Q\dfrac{\mathbf{x}}{\|\mathbf{x}\|}=Q\boldsymbol\Theta(\mathbf{x}). Combined with QX=dXQ\mathbf{X}\stackrel{d}{=}\mathbf{X} (part (d) above), we get, for every orthogonal QQ:
(R,Θ) =d (R(QX),Θ(QX))=(R,QΘ).(R,\boldsymbol\Theta)\ \stackrel{d}{=}\ \big(R(Q\mathbf{X}),\boldsymbol\Theta(Q\mathbf{X})\big)=(R,\,Q\boldsymbol\Theta).
Fix a Borel set A(0,)A\subseteq(0,\infty) and define the finite measure νA(B):=P(RA,ΘB)\nu_A(B):=P(R\in A,\boldsymbol\Theta\in B) on Sp1\mathbb{S}^{p-1}. The displayed distributional identity gives νA(B)=P(RA,QΘB)=P(RA,ΘQ1B)=νA(Q1B)\nu_A(B)=P(R\in A,Q\boldsymbol\Theta\in B)=P(R\in A,\boldsymbol\Theta\in Q^{-1}B)=\nu_A(Q^{-1}B) for every orthogonal QQ; replacing QQ by Q1Q^{-1} (which ranges over the same group) shows νA\nu_A is invariant under every rotation of the sphere. The orthogonal group acts transitively on Sp1\mathbb{S}^{p-1}, and the invariant probability measure under a transitive compact group action is unique (uniqueness of Haar measure, specialized to Sp1O(p)/O(p1)\mathbb{S}^{p-1}\cong O(p)/O(p-1)); hence νA\nu_A must be a constant multiple of the normalized uniform surface measure σ\sigma on Sp1\mathbb{S}^{p-1}. Taking B=Sp1B=\mathbb{S}^{p-1} pins down the constant: νA(Sp1)=P(RA)\nu_A(\mathbb{S}^{p-1})=P(R\in A), so
P(RA,ΘB)=P(RA)σ(B)for all Borel A,B.P(R\in A,\boldsymbol\Theta\in B)=P(R\in A)\cdot\sigma(B)\qquad\text{for all Borel }A,B.
Setting A=(0,)A=(0,\infty) shows Θ\boldsymbol\Theta has law σ\sigma — uniform on the sphere — and then the display is the independence of RR and Θ\boldsymbol\Theta (their joint law factors as a product over the generating rectangles, which extends to the full product σ\sigma-field by a standard π\piλ\lambda argument). \blacksquare

Remark (the computational route, for comparison). One can reach the same conclusion by brute-force integration: the pp-dimensional polar-coordinate volume element is dx=rp1drdσ(θ)d\mathbf{x}=r^{p-1}\,dr\,d\sigma(\boldsymbol\theta) (the (p1)(p-1)-dimensional surface measure at radius rr scales as rp1r^{p-1} times the unit-sphere measure), so the standard Gaussian density (2π)p/2ex2/2(2\pi)^{-p/2}e^{-\|\mathbf{x}\|^2/2} becomes, in (r,θ)(r,\boldsymbol\theta) coordinates,
fR,Θ(r,θ)=(2π)p/2rp1er2/2,f_{R,\boldsymbol\Theta}(r,\boldsymbol\theta)=(2\pi)^{-p/2}r^{p-1}e^{-r^2/2},
which manifestly does not depend on θ\boldsymbol\theta, giving the same factorization and additionally identifying RR's density as proportional to rp1er2/2r^{p-1}e^{-r^2/2} — the χp\chi_p distribution (consistent with R2=XTXχp2R^2=\mathbf{X}^T\mathbf{X}\sim\chi_p^2 from Theorem 5.8 with Σ=I\Sigma=I). The symmetry argument above is preferred here because it needs no unproven formula for the sphere's volume element and cleanly isolates why the result is true: it is nothing but Theorem 5.6's orthogonal invariance, upgraded from a statement about X\mathbf{X} to a statement about Θ\boldsymbol\Theta alone.


Appendix — Master Formula Sheet

DistributionPMF/PDFMeanVarianceMGF
Bernoulli(pp)px(1p)1xp^x(1-p)^{1-x}ppp(1p)p(1-p)1p+pet1-p+pe^t
Binomial(n,pn,p)(nx)px(1p)nx\binom{n}{x}p^x(1-p)^{n-x}npnpnp(1p)np(1-p)(1p+pet)n(1-p+pe^t)^n
Poisson(λ\lambda)eλλx/x!e^{-\lambda}\lambda^x/x!λ\lambdaλ\lambdaeλ(et1)e^{\lambda(e^t-1)}
Geometric(pp)(1p)x1p(1-p)^{x-1}p1/p1/p(1p)/p2(1-p)/p^2pet1(1p)et\frac{pe^t}{1-(1-p)e^t}
Neg. Binomial(r,pr,p)(x1r1)pr(1p)xr\binom{x-1}{r-1}p^r(1-p)^{x-r}r/pr/pr(1p)/p2r(1-p)/p^2[pet1(1p)et]r\left[\frac{pe^t}{1-(1-p)e^t}\right]^r
Hypergeometric(N,K,nN,K,n)(Kx)(NKnx)/(Nn)\binom{K}{x}\binom{N-K}{n-x}/\binom{N}{n}nKNn\frac{K}{N}nKNNKNNnN1n\frac{K}{N}\frac{N-K}{N}\frac{N-n}{N-1}
Uniform(a,ba,b)1ba\frac{1}{b-a}a+b2\frac{a+b}{2}(ba)212\frac{(b-a)^2}{12}etbetat(ba)\frac{e^{tb}-e^{ta}}{t(b-a)}
Normal(μ,σ2\mu,\sigma^2)1σ2πe(xμ)2/2σ2\frac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/2\sigma^2}μ\muσ2\sigma^2eμt+σ2t2/2e^{\mu t + \sigma^2t^2/2}
Exponential(λ\lambda)λeλx\lambda e^{-\lambda x}1/λ1/\lambda1/λ21/\lambda^2λλt,t<λ\frac{\lambda}{\lambda - t}, t<\lambda
Gamma(α,λ\alpha,\lambda)λαΓ(α)xα1eλx\frac{\lambda^\alpha}{\Gamma(\alpha)}x^{\alpha-1}e^{-\lambda x}α/λ\alpha/\lambdaα/λ2\alpha/\lambda^2(λλt)α\left(\frac{\lambda}{\lambda-t}\right)^\alpha
Beta(α,β\alpha,\beta)xα1(1x)β1B(α,β)\frac{x^{\alpha-1}(1-x)^{\beta-1}}{B(\alpha,\beta)}αα+β\frac{\alpha}{\alpha+\beta}αβ(α+β)2(α+β+1)\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}(hypergeometric series)
Cauchy(x0,γx_0,\gamma)1πγ[1+(xx0γ)2]\frac{1}{\pi\gamma[1+(\frac{x-x_0}{\gamma})^2]}undefinedundefineddoes not exist
χk2\chi^2_kGamma(k/2,1/2)(k/2, 1/2)kk2k2k(12t)k/2,t<1/2(1-2t)^{-k/2}, t<1/2

Closing Remark — The Unifying Theme

Beneath the combinatorial identities and distributional families of this treatise lies a single structural fact: the space of random variables with finite second moment, L2(Ω,F,P)L^2(\Omega,\mathcal{F},P), is a Hilbert space, with inner product X,Y=E[XY]\langle X, Y\rangle = E[XY]. Under this lens:

  • Expectation is an inner product with the constant function 11: E[X]=X,1E[X] = \langle X, 1\rangle.
  • Variance is squared distance from the mean: Var(X)=XE[X]2\mathrm{Var}(X) = \|X - E[X]\|^2.
  • Covariance is an inner product between centered variables, and correlation ρ\rho is precisely the cosine of the angle between XμXX-\mu_X and YμYY-\mu_Y — explaining geometrically why Cauchy–Schwarz forces ρ1|\rho|\le 1, with equality exactly when the vectors are collinear (i.e., YY is an affine function of XX).
  • Conditional expectation E[YX]E[Y\mid X] is the orthogonal projection of YY onto the closed subspace MM of σ(X)\sigma(X)-measurable, finite-variance random variables — the random-variable analogue of projecting a vector onto a subspace in Rn\mathbb{R}^n. Concretely: writing Y^=E[YX]\widehat Y=E[Y\mid X], the projection residual YY^Y-\widehat Y is orthogonal to every element of MM, in particular to Y^E[Y]M\widehat Y - E[Y]\in M (constants are trivially σ(X)\sigma(X)-measurable). The Pythagorean theorem applied to (YY^)+(Y^E[Y])(Y-\widehat Y)+(\widehat Y-E[Y]) then gives YE[Y]2=YY^2+Y^E[Y]2\|Y-E[Y]\|^2=\|Y-\widehat Y\|^2+\|\widehat Y-E[Y]\|^2, i.e.
    Var(Y)=E[Var(YX)]YY^2, via the tower property+Var(E[YX])Y^E[Y]2\mathrm{Var}(Y)=\underbrace{E\big[\mathrm{Var}(Y\mid X)\big]}_{\|Y-\widehat Y\|^2\text{, via the tower property}}+\underbrace{\mathrm{Var}\big(E[Y\mid X]\big)}_{\|\widehat Y-E[Y]\|^2}
    Eve's Law is nothing but the Pythagorean theorem, applied to this one projection.
  • The multivariate Normal's covariance matrix Σ\Sigma plays the role of a Gram matrix / positive-definite quadratic form (§5.3's opening Remark makes this precise for any random vector, Gaussian or not), and orthogonal transformations preserving Σ=I\Sigma=I correspond exactly to the rotational symmetry of the standard multivariate Normal density — the content of Challenge Problems 5.1(d) and 5.2, where that symmetry is shown to separate a Gaussian vector cleanly into an independent radius and a uniformly-distributed direction.

Probability theory, viewed this way, is measure theory (for existence and integration — Kolmogorov's axioms, Radon–Nikodym densities, σ\sigma-fields rich enough to avoid Vitali-type pathologies) married to linear algebra (for the geometry of dependence — positive-definite covariance matrices, orthogonal diagonalization, quadratic-form independence) — a synthesis worth carrying forward into statistical inference, where estimators are themselves often best understood as projections in this same L2L^2 space.

+
+
+
+