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
Foundations, Combinatorial Probability, and Conditioning
Random Variables, Expectations, and Moments
Univariate Distributions and Transformations
Joint Distributions and Order Statistics
Multivariate Distributions (Multinomial & Normal)
Appendix: Master Formula Sheet
Closing Remark: The Unifying Theme
Conventions and Notation
(Ω,F,P) denotes a probability space; Ω the sample space, F a σ-field of events, P a probability measure.
Random variables are denoted X,Y,Z,…; realizations by lowercase x,y,z.
FX denotes the CDF of X; fX the PDF/PMF.
E[X], Var(X), Cov(X,Y) have their usual meanings.
1A denotes the indicator random variable of event A.
=d denotes equality in distribution; Xn→dX denotes convergence in distribution.
ϕ(t) denotes a characteristic function; MX(t) an MGF.
tr(M) denotes the trace of a square matrix M; Leb denotes Lebesgue measure.
Sp−1={x∈Rp:∥x∥=1} denotes the unit sphere in Rp.
Part 1 — Foundations, Combinatorial Probability, and Conditioning
1.1 Sample Spaces and σ-Fields
Definition 1.1 (Sample space). The sample space Ω is the set of all possible outcomes of a random experiment.
Definition 1.2 (σ-field). A collection F of subsets of Ω is a σ-field if:
(i) Ω∈F; (ii) A∈F⟹Ac∈F; (iii) A1,A2,⋯∈F⟹⋃i=1∞Ai∈F.
Remark (Why restrict to a σ-field at all?). When Ω is uncountable — e.g. Ω=[0,1] with P meant to be "length" — it is a genuine theorem, not a technicality, that no countably additive, translation-invariant P can be defined on every subset of Ω: Vitali-type constructions (using the Axiom of Choice) produce sets to which no consistent length can be assigned. A σ-field is the largest class of sets on which P can be forced to behave consistently, and the Borel σ-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({ω})=0 while P(Ω)=1: for uncountable Ω 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] is a probability measure if:
P(Ω)=1.
P(A)≥0 for all A∈F.
(Countable additivity) For pairwise disjoint A1,A2,⋯∈F, P(⋃i=1∞Ai)=∑i=1∞P(Ai).
Theorem 1.1 (Basic consequences). From the axioms: (a)P(∅)=0; (b)P(Ac)=1−P(A); (c)A⊆B⟹P(A)≤P(B); (d)(continuity from below) if A1⊆A2⊆⋯ then P(⋃nAn)=limnP(An); (e)(continuity from above) if A1⊇A2⊇⋯ then P(⋂nAn)=limnP(An).
Proof.(a) Apply countable additivity to the pairwise disjoint sequence ∅,∅,∅,… (disjointness holds trivially): since ⋃i∅=∅, we get P(∅)=∑i=1∞P(∅). The right side is an infinite sum of copies of the single fixed number P(∅)≥0; this can equal the finite number P(∅) only if P(∅)=0 — any positive value would make the sum diverge to +∞.
(b)Ω=A∪Ac is a disjoint union, so 1=P(Ω)=P(A)+P(Ac) by additivity.
(c)B=A∪(B∖A) is a disjoint union, so P(B)=P(A)+P(B∖A)≥P(A), using P(B∖A)≥0.
(d) Set B1=A1 and Bn=An∖An−1 for n≥2; these are pairwise disjoint, and by induction ⋃i=1nBi=An for every n (the case n=1 is trivial, and ⋃i=1nBi=An−1∪(An∖An−1)=An−1∪An=An using An−1⊆An). Hence ⋃i=1∞Bi=⋃nAn, and countable additivity gives P(⋃nAn)=∑i=1∞P(Bi)=limn→∞∑i=1nP(Bi)=limn→∞P(⋃i=1nBi)=limn→∞P(An).
(e) Apply (d) to the increasing sequence A1c⊆A2c⊆⋯: P(⋃nAnc)=limnP(Anc)=limn[1−P(An)]=1−limnP(An) using (b). By De Morgan, ⋃nAnc=(⋂nAn)c, so the left side equals 1−P(⋂nAn) by (b) again. Equate the two expressions and cancel the 1's. ■
1.2 Combinatorial Probability
Classical model. If Ω is finite and outcomes equally likely, P(A)=∣A∣/∣Ω∣.
Trick (Stars and Bars). The number of ways to distribute n identical objects into k distinct boxes is (k−1n+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,…,An, P(⋃i=1nAi)=∑iP(Ai)−∑i<jP(Ai∩Aj)+⋯+(−1)n+1P(A1∩⋯∩An).
Proof. Induct on n, with base case n=2: P(A∪B)=P(A)+P(B)−P(A∩B), itself immediate from the disjoint decomposition A∪B=A∪(B∖A) together with P(B∖A)=P(B)−P(A∩B) (Theorem 1.1(c)'s argument applied to A∩B⊆B). For the inductive step, write C=A1∪⋯∪An−1 and apply the base case to C∪An: P(⋃i=1nAi)=P(C)+P(An)−P(C∩An).
Now P(C) expands by the inductive hypothesis applied to A1,…,An−1, and C∩An=⋃i=1n−1(Ai∩An), so P(C∩An)also expands by the inductive hypothesis, now applied to the n−1 events A1∩An,…,An−1∩An. Collecting all resulting terms by the size of the index set reproduces exactly the alternating sum claimed for n events; the bookkeeping is routine, but the two invocations of the inductive hypothesis are the entire content of the step. ■
Worked Example 1.1 (Derangements). The probability that a random permutation of n objects has no fixed point (a derangement) is P(Dn)=∑k=0nk!(−1)k→e−1 as n→∞.
Solution. Let Ai={π(i)=i}. For any k fixed indices i1,…,ik, freezing those k positions and permuting the rest freely gives P(Ai1∩⋯∩Aik)=(n−k)!/n!, and there are (kn) such terms of size k, contributing (kn)⋅n!(n−k)!=k!(n−k)!n!⋅n!(n−k)!=k!1
to the k-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!, and P(Dn)=1−P(⋃Ai)=∑k=0n(−1)k/k!, the truncated Taylor series for e−1.
1.3 Conditional Probability and Independence
Definition 1.4.P(A∣B)=P(A∩B)/P(B) for P(B)>0.
Definition 1.5 (Independence).A,B are independent if P(A∩B)=P(A)P(B). Events A1,…,An are mutually independent if for every subset I⊆{1,…,n} with ∣I∣≥2, P(⋂i∈IAi)=∏i∈IP(Ai) — a strictly stronger condition than pairwise independence.
Remark (Pairwise = Mutual, made explicit). Toss two fair coins independently, so Ω={HH,HT,TH,TT} with each outcome having probability 1/4. Let A={HH,HT} (first coin H), B={HH,TH} (second coin H), C={HH,TT} (both coins agree). Then P(A)=P(B)=P(C)=1/2, and in fact A∩B=A∩C=B∩C={HH}, so P(A∩B)=P(A∩C)=P(B∩C)=41=P(A)P(B)=P(A)P(C)=P(B)P(C):pairwise independent.
Yet A∩B∩C={HH} too, so P(A∩B∩C)=41=81=P(A)P(B)P(C): not mutually independent. The failure is driven entirely by the fact that any two of A,B,C logically determine the third.
1.4 Bayes' Theorem and Total Probability
Theorem 1.3 (Law of Total Probability). If {Bi} partitions Ω with P(Bi)>0, then P(A)=∑iP(A∣Bi)P(Bi). The continuous analogue: if Θ has density fΘ, P(A)=∫P(A∣Θ=θ)fΘ(θ)dθ.
Trick 1 (Pólya Urn). An urn starts with b black and r red balls. Draw a ball, replace it along with c balls of the same color, repeat. A key invariant: the probability that the n-th draw is black equals b/(b+r) for everyn. This follows from exchangeability: for any specific sequence of colors with k black and n−k red draws, in any order, the chain rule gives a product of n factors of the form b+r+jcb+jc or b+r+jcr+jc — and multiplying the same n numbers in a different order does not change the product. So every ordering with k 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)).
Trick 2 (Sequential Conditioning / Chain Rule).P(A1∩⋯∩An)=P(A1)P(A2∣A1)⋯P(An∣A1∩⋯∩An−1) — indispensable for problems involving sequential draws without replacement.
Trick 3 (Absorbing Markov Chains for Exact Probabilities). Gambler's ruin-type problems: let pi be the probability of eventual absorption at state N starting from i, with pi=ppi+1+qpi−1 (q=1−p), p0=0, pN=1. The characteristic equation of this linear recurrence is px2−x+q=0; since 1−4pq=(p−q)2, the roots are x=1 and x=q/p. Solving with the boundary conditions gives closed forms in each case: pi=1−(q/p)N1−(q/p)i(p=q),pi=Ni(p=q=21, 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) (in that order, consecutively) before it contains the pattern (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) or of (1,1). The reachable non-absorbing states are start (no progress), "1" (progress shared by both patterns), and "12" (progress exclusive to 123); the absorbing states are A wins (123 completes) and B wins (11 completes). Checking every state against every face of the die:
From state
Roll(s)
Probability
To state
start
1
1/6
"1"
start
2–6
5/6
start
"1"
1
1/6
B wins
"1"
2
1/6
"12"
"1"
3–6
4/6
start
"12"
3
1/6
A wins
"12"
1
1/6
"1"
"12"
2,4,5,6
4/6
start
(The "12" → "1" transition on rolling a 1 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,c denote P(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=65a+61b,b=61(0)+61c+64a,c=61(1)+61b+64a.
The first equation simplifies to a=b. Substituting into the second: a=61c+64a⟹c=2a. Substituting both into the third: 2a=61+61a+64a=61+65a⟹67a=61⟹a=71. P(123 before 11)=71,P(11 before 123)=76.
This lopsided result is intuitive in hindsight: every time progress toward 123 is "almost lost" by rolling a 1 from state "12", the chain lands back at state "1" — which is exactly one more 1 away from an immediate win for pattern 11. The shared prefix systematically favors the shorter, self-overlapping pattern. ■
Part 2 — Random Variables, Expectations, and Moments
2.1 Random Variables and CDFs
Definition 2.1. A random variable X:Ω→R is F-measurable: {ω:X(ω)≤x}∈F for all x. (This apparently weak requirement — checking only half-lines — is equivalent to full Borel measurability, since the sets (−∞,x], x∈R, generate the Borel σ-field B(R).)
Definition 2.2 (CDF).FX(x)=P(X≤x).
Theorem 2.1 (Properties of a CDF).FX is non-decreasing, right-continuous, limx→−∞FX=0, limx→∞FX=1. Conversely, any function with these properties is the CDF of some random variable (existence via the probability integral transform / quantile function FX−1(U) for U∼Unif(0,1)).
Random variables may be discrete (countable support, PMF pX), continuous (FX absolutely continuous, density fX=FX′), 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: X is continuous means its law PX(A):=P(X∈A) — the pushforward of P under X — satisfies PX≪Leb (absolute continuity: Leb(A)=0⟹PX(A)=0). The Radon–Nikodym theorem then guarantees a density fX=dPX/dLeb exists, unique up to a Lebesgue-null set, with P(X∈A)=∫AfXdLeb for every Borel A. The familiar identity fX=FX′ recovers this density in the special case where FX 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+PXsing 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) (discrete) or ∫xfX(x)dx (continuous), when absolutely convergent.
Theorem 2.2 (LOTUS — Law of the Unconscious Statistician).E[g(X)]=∑xg(x)pX(x) or ∫g(x)fX(x)dx — one need not derive the distribution of g(X) to compute its expectation.
Theorem 2.3 (Linearity of Expectation).E[aX+bY]=aE[X]+bE[Y], regardless of dependence between X and Y. This is the single most powerful tool in combinatorial probability.
Trick (Indicator Variable Method). To compute E[N] where N counts occurrences of some event pattern, write N=∑i1Ai and use E[N]=∑iP(Ai), entirely sidestepping the (often intractable) distribution of N itself.
Worked Example 2.1 (Matching Problem via Indicators). For a random permutation of {1,…,n}, let N be the number of fixed points. With Ai={π(i)=i}, P(Ai)=1/n, so E[N]=∑i=1nn1=1 — independent of n, and obtained without ever finding the distribution of N.
Worked Example 2.2 (Variance via indicators, and an MGF cross-check). For Sn=∑i=1nXi with Xi∼iidBernoulli(p): since Xi2=Xi (it is an indicator), Var(Xi)=E[Xi]−E[Xi]2=p−p2=p(1−p), and independence gives Cov(Xi,Xj)=0 for i=j, so Var(Sn)=∑i=1nVar(Xi)+∑i=jCov(Xi,Xj)=np(1−p).
As a cross-check via MSn(t)=(1−p+pet)n: differentiating twice and setting t=0 gives MSn′(0)=np and MSn′′(0)=n(n−1)p2+np, so Var(Sn)=MSn′′(0)−[MSn′(0)]2=n(n−1)p2+np−n2p2=np(1−p) — agreeing exactly, as it must.
Theorem 2.4 (Markov's Inequality). For X≥0 and a>0: P(X≥a)≤E[X]/a.
Proof.E[X]=E[X1X<a]+E[X1X≥a]≥E[X1X≥a]≥aP(X≥a), using E[X1X<a]≥0 for the first inequality and X≥a on {X≥a} for the second. ■
Theorem 2.5 (Chebyshev's Inequality).P(∣X−μ∣≥kσ)≤1/k2. Proof: apply Markov's inequality to the non-negative random variable (X−μ)2 with a=k2σ2. ■
Theorem 2.6 (Cauchy–Schwarz).∣E[XY]∣≤E[X2]E[Y2], with equality iff Y=cX a.s. This underlies ∣Corr(X,Y)∣≤1.
2.4 Moment Generating Functions
Definition 2.5.MX(t)=E[etX], defined for t in some neighborhood of 0.
Theorem 2.7 (Moment recovery).MX(k)(0)=E[Xk], by differentiating under the expectation (Leibniz rule, justified when MX is finite in a neighborhood of 0).
Theorem 2.8 (Uniqueness). If MX(t)=MY(t) for t in a neighborhood of 0, then FX=FY. This makes MGFs a powerful tool for identifying distributions of sums of independent variables: MX+Y(t)=MX(t)MY(t) when X⊥Y.
Remark (PGFs and Characteristic Functions). For non-negative integer-valued X, the probability generating function GX(s)=E[sX] is convenient (e.g., for branching processes). For heavy-tailed distributions where the MGF fails to exist (e.g., Cauchy, where E[etX]=∞ for t=0), the characteristic functionϕX(t)=E[eitX] always exists since ∣eitX∣=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: Xn→dXif and only ifϕXn(t)→ϕX(t) for every t∈R. More usefully, if ϕXn(t)→g(t) pointwise for some function g continuous at t=0, then g is automatically the characteristic function of some random variable X, and Xn→dX. This is the standard mechanism behind a proof of the Central Limit Theorem (identify the pointwise limit of ϕXˉn as the N(0,1) characteristic function e−t2/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).n distinguishable balls are thrown independently and uniformly into m distinguishable boxes. Let W be the number of empty boxes. Find E[W] and Var(W).
Solution. Let Ij=1{box j is empty} for j=1,…,m, so W=∑j=1mIj. Each of the n balls independently avoids box j with probability mm−1, so E[Ij]=P(box j empty)=(mm−1)n=:p1,E[W]=mp1=m(1−m1)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 j=k, both boxes j,k are empty iff every ball avoids both, which happens independently for each ball with probability mm−2 (for m≥2), so E[IjIk]=P(boxes j,k both empty)=(mm−2)n=:p3,Cov(Ij,Ik)=p3−p12.
Also Var(Ij)=p1−p12, since each Ij is Bernoulli. There are m diagonal terms and m(m−1) ordered off-diagonal pairs, so Var(W)=m(p1−p12)+m(m−1)(p3−p12)=mp1+m(m−1)p3−m2p12.
Explicitly, Var(W)=m(mm−1)n+m(m−1)(mm−2)n−m2(mm−1)2n.
(As a check: n=3,m=2 gives E[W]=41, Var(W)=163; direct enumeration of all 23=8 equally likely outcomes confirms both values exactly.) ■
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 k 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
Distribution
PMF
Key property
Bernoulli(p)
px(1−p)1−x, x∈{0,1}
building block
Binomial(n,p)
(xn)px(1−p)n−x
sum of iid Bernoullis
Poisson(λ)
e−λλx/x!
limit of Binomial, np→λ
Geometric(p)
(1−p)x−1p, x≥1
memoryless: P(X>s+t∣X>s)=P(X>t)
Negative Binomial(r,p)
(r−1x−1)pr(1−p)x−r
sum of iid Geometrics
Hypergeometric(N,K,n)
(xK)(n−xN−K)/(nN)
sampling without replacement
Theorem 3.1 (Poisson as limit of Binomial). If Xn∼Binomial(n,λ/n), then P(Xn=k)→e−λλk/k! as n→∞.
Proof sketch. Expand (kn)(λ/n)k(1−λ/n)n−k; the binomial coefficient contributes nk/k! asymptotically, (1−λ/n)n→e−λ, and the remaining factors →1. ■
Trick (Memorylessness characterizes Geometric among discrete distributions). If X is a positive-integer-valued random variable satisfying P(X>s+t∣X>s)=P(X>t) for all integers s,t≥0, then X is Geometric — a useful identification tool in exam problems.
3.2 Standard Continuous Distributions
Distribution
PDF
Notes
Uniform(a,b)
b−a1
Normal(μ,σ2)
σ2π1e−(x−μ)2/2σ2
Exponential(λ)
λe−λx, x>0
memoryless, continuous analogue of Geometric
Gamma(α,λ)
Γ(α)λαxα−1e−λx
sum of iid Exponentials when α∈N
Beta(α,β)
B(α,β)1xα−1(1−x)β−1
conjugate to Binomial; support (0,1)
Cauchy(x0,γ)
πγ[1+(γx−x0)2]1
mean and all higher moments undefined
Remark (Cauchy pathology).∫−∞∞∣x∣f(x)dx=∞, so 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 t-distribution on 1 degree of freedom; its characteristic function ϕ(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), FY(y)=P(g(X)≤y), computed by identifying {x:g(x)≤y} and integrating fX over that set.
Theorem 3.3 (Jacobian / change-of-variables, monotonic case). If g is strictly monotonic and differentiable with inverse g−1, fY(y)=fX(g−1(y))dydg−1(y).
Theorem 3.4 (Non-monotonic case). If g is piecewise monotonic with branches g1,…,gk and corresponding inverses g1−1,…,gk−1, fY(y)=∑i=1kfX(gi−1(y))dydgi−1(y).
Worked Example 3.1. If Z∼N(0,1) and Y=Z2, the two branches z=±y give fY(y)=2πy1e−y/2,y>0,
which is χ12=Gamma(1/2,1/2).
Challenge Problem 3.1 (Cauchy ratio and failure of the CLT). Let X,Y be iid standard Normal. Show that T=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) via X=TY, keeping Y unchanged. The Jacobian of (t,y)↦(x,y)=(ty,y) is det(∂x/∂t∂y/∂t∂x/∂y∂y/∂y)=det(y0t1)=∣y∣.
Since X⊥Y, fT,Y(t,y)=fX(ty)fY(y)∣y∣=2π1∣y∣e−y2(1+t2)/2. Integrating out y (the integrand is even in y): fT(t)=π1∫0∞ye−y2(1+t2)/2dy=π1⋅1+t21∫0∞e−udu=π(1+t2)1,
using the substitution u=y2(1+t2)/2, du=y(1+t2)dy. This is exactly the standard Cauchy density.
For the CLT failure: the characteristic function of standard Cauchy is ϕ(t)=e−∣t∣ (§3.2). For Xˉn=n1∑i=1nXi with Xi∼iidCauchy(0,1), independence gives ϕXˉn(t)=[ϕX(nt)]n=[e−∣t∣/n]n=e−∣t∣=ϕX(t)for every n.
So Xˉn=dX1 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]<∞, in particular E∣X∣<∞); it is a demonstration of why the hypothesis is needed: without a finite mean there is nothing for 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. ■
Challenge Problem 3.2 (The Gamma–Beta algebra). Let X∼Gamma(α,λ) and Y∼Gamma(β,λ) be independent. Show that U=X+Y and V=X/(X+Y) are independent, with U∼Gamma(α+β,λ) and V∼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(1−v) (inverting u=x+y,v=x/(x+y)), for u>0,v∈(0,1). The Jacobian is det(∂x/∂u∂y/∂u∂x/∂v∂y/∂v)=det(v1−vu−u)=∣−uv−u(1−v)∣=u.
By independence of X,Y, fU,V(u,v)=fX(uv)fY(u(1−v))⋅u=Γ(α)λα(uv)α−1e−λuv⋅Γ(β)λβ(u(1−v))β−1e−λu(1−v)⋅u.
Collecting powers of u and using v+(1−v)=1 in the exponent, fU,V(u,v)=Gamma(α+β,λ) density in u[Γ(α+β)λα+βuα+β−1e−λu]×Beta(α,β) density in v[Γ(α)Γ(β)Γ(α+β)vα−1(1−v)β−1],
which factors as a function of u alone times a function of v alone — precisely independence, with both marginals read off directly. ■
Remark. This computation is the engine behind Theorem 4.5's Rényi representation: normalizing k independent Gamma(1,λ)=Exponential(λ) 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.2 (Independence).X⊥Y⟺fX,Y(x,y)=fX(x)fY(y) for all x,y.
Definition 4.3 (Conditional density and expectation).fY∣X(y∣x)=fX,Y(x,y)/fX(x); E[Y∣X=x]=∫yfY∣X(y∣x)dy.
4.2 Adam's and Eve's Laws
Theorem 4.1 (Adam's Law / Law of Total Expectation).E[Y]=E[E[Y∣X]].
Theorem 4.2 (Eve's Law / Law of Total Variance).Var(Y)=E[Var(Y∣X)]+Var(E[Y∣X]).
Proof. Let g(X)=E[Y∣X]. Then Var(Y)=E[Y2]−(E[Y])2. Write E[Y2]=E[E[Y2∣X]]=E[Var(Y∣X)+g(X)2] by Adam's Law applied within each conditional slice. Also (E[Y])2=(E[g(X)])2 by Adam's Law applied to Y itself. Combining: Var(Y)=E[Var(Y∣X)]+(E[g(X)2]−(E[g(X)])2)=E[Var(Y∣X)]+Var(g(X)).■
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).
4.3 Order Statistics
Definition 4.4. For iid X1,…,Xn∼F, the order statistics are the sorted values X(1)≤X(2)≤⋯≤X(n).
Theorem 4.3 (Marginal density of X(k)). fX(k)(x)=(k−1)!(n−k)!n!F(x)k−1[1−F(x)]n−kf(x).
Proof sketch.X(k)∈[x,x+dx) requires exactly k−1 of the n points below x, one in [x,x+dx), and n−k above; the multinomial coefficient counts the assignments, giving the stated density in the limit dx→0. ■
Theorem 4.4 (Joint density of X(1),…,X(n)). fX(1),…,X(n)(x1,…,xn)=n!f(x1)⋯f(xn),x1<x2<⋯<xn.
Corollary (Range and extremes).FX(n)(x)=F(x)n; FX(1)(x)=1−[1−F(x)]n. The distribution of the sample range R=X(n)−X(1) is obtained from the joint density of (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) from Unif(0,1), define spacings Di=U(i)−U(i−1) (with U(0)=0, U(n+1)=1). The vector (D1,…,Dn+1) is exchangeable and distributed as a uniform Dirichlet on the simplex; consequently, each spacing satisfies Di=d∑j=1n+1EjEi for iid Exponential(1) variables Ej — 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 → 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 n indistinguishable units into k non-negative parts is counted by (k−1n+k−1) equally likely compositions. In the continuum, the "total" becomes the unit interval, the "parts" become the k spacings cut out by k−1 random dividers, and the uniform-measure analogue of "every composition equally likely" is precisely the uniform density on the simplex {d≥0:∑idi=1} — the Dirichlet(1,…,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,…,Xn∼iidExponential(λ) with order statistics X(1)≤⋯≤X(n). Prove that the successive gaps Gk=X(k)−X(k−1) (with X(0):=0) are independent, with Gk∼Exponential((n−k+1)λ); deduce closed forms for E[X(k)] and Var(X(k)).
Solution. By Theorem 4.4, the joint density of (X(1),…,X(n)) is n!λne−λ∑xi on x1<⋯<xn. Change variables to the gaps gk=xk−xk−1 (so xk=g1+⋯+gk); this is a linear transformation with unit lower-triangular Jacobian matrix, so ∣det∣=1 — the simplest possible non-trivial instance of a multivariate Jacobian. Each gap gj contributes to xj,xj+1,…,xn, i.e. to (n−j+1) of the xk's, so ∑k=1nxk=∑j=1n(n−j+1)gj.
Hence the joint density of the gaps is f(g1,…,gn)=n!λnexp(−λ∑j=1n(n−j+1)gj),gj>0.
Since ∏j=1n(n−j+1)=n! (it is just n(n−1)⋯1 relabelled), the constant n!λn may be rewritten as ∏j=1n[(n−j+1)λ], and the density factors: f(g1,…,gn)=∏j=1n[(n−j+1)λe−(n−j+1)λgj].
Each factor is exactly an Exponential((n−j+1)λ) density, and a joint density that factors into a product of one-variable densities is precisely the statement that the Gj are independent with those marginals — proving the claim. (Intuition: after the first k−1 failures, the remaining n−k+1 lifetimes are, by memorylessness, still fresh Exponential(λ) variables, and the minimum of n−k+1 independent Exponential(λ)'s is Exponential((n−k+1)λ) — the algebra above is that heuristic made rigorous.)
Since Gj=dEj/[(n−j+1)λ] for iid standard Exponentials Ej, and X(k)=∑j=1kGj, independence of the Gj immediately gives E[X(k)]=∑j=1k(n−j+1)λ1=λ1∑i=n−k+1ni1,Var(X(k))=∑j=1k[(n−j+1)λ]21=λ21∑i=n−k+1ni21. ■
Challenge Problem 4.2 (An indicator count for spacings, and a Poisson-process limit). With D1,…,Dn+1 the uniform spacings of Theorem 4.5, fix c>0 and let Nn(c)=#{i:Di>c/n} count the spacings exceeding threshold c/n. Find E[Nn(c)] exactly using indicator variables, and show Nn(c)/(n+1)→e−c as n→∞.
Solution. By exchangeability (Theorem 4.5), every Di shares the marginal law of D1=U(1), the minimum of the n uniform points — and the Corollary to Theorem 4.3 already gives FX(1)(x)=1−[1−F(x)]n, i.e. for Unif(0,1), P(D1≤t)=1−(1−t)n, so P(Di>t)=(1−t)n for every i. Writing Nn(c)=∑i=1n+11{Di>c/n} and applying linearity of expectation (§2.2) — note this sidesteps entirely the fact that the Di are dependent, exactly as the Indicator Variable Trick intends: E[Nn(c)]=(n+1)P(D1>nc)=(n+1)(1−nc)n(n>c).
Dividing by n+1 and letting n→∞, the standard limit (1−nc)n→e−c gives n+1E[Nn(c)]⟶e−c. ■
Remark (why this is the right answer). The Rényi representation says Di≈Ei/n for large n (since ∑j=1n+1Ej≈n by the Law of Large Numbers), so P(Di>c/n)≈P(Ei>c)=e−c — matching exactly. More is true: near any fixed location, the n uniform points locally resemble a rate-n Poisson process, whose gaps are exactly Exponential(n); Nn(c)/(n+1) is then literally an empirical estimate of the tail probability P(Exponential(1)>c) of the rescaled gap nDi. 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, 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) has joint PMF P(N1=n1,…,Nk=nk)=n1!⋯nk!n!p1n1⋯pknk,∑ni=n.
Theorem 5.1 (Marginals).Ni∼Binomial(n,pi).
Theorem 5.2 (Conditional distribution). Given N1=n1, the remaining counts (N2,…,Nk) are Multinomial(n−n1;1−p1p2,…,1−p1pk).
Theorem 5.3 (Covariance structure).Cov(Ni,Nj)=−npipj for i=j — always negative, reflecting the constraint ∑Ni=n.
5.2 Bivariate Normal Distribution
Definition 5.2.(X,Y) is bivariate Normal with parameters μX,μY,σX2,σY2,ρ if its joint density is f(x,y)=2πσXσY1−ρ21exp{−2(1−ρ2)1[σX2(x−μX)2−σXσY2ρ(x−μX)(y−μY)+σY2(y−μY)2]}.
Theorem 5.5 (Zero correlation ⟺ independence, bivariate Normal only). For jointly Normal (X,Y), ρ=0⟹ the cross term vanishes and f(x,y) factors into fX(x)fY(y). This equivalence is special to joint normality — in general, zero correlation does not imply independence (a standard counterexample: X∼N(0,1), Y=X2; Cov(X,Y)=0 but Y is a deterministic function of X).
Remark (A famous corollary). Theorem 5.5 is the reason Xˉ and S2 are independent for a normal random sample X1,…,Xn∼iidN(μ,σ2): one checks directly that Cov(Xˉ,Xi−Xˉ)=0 for every i, and (Xˉ,X1−Xˉ,…,Xn−Xˉ) is jointly Gaussian (an affine image of (X1,…,Xn), Theorem 5.6 below), so zero cross-covariance upgrades to independence: Xˉ⊥(X1−Xˉ,…,Xn−Xˉ), hence Xˉ⊥S2. This independence is the single fact that makes the t-distribution — and the entire theory of the one-sample t-test — tractable.
5.3 Multivariate Normal Distribution
Remark (Why Σ is positive semi-definite — true for any random vector). Before specializing to Gaussians: for any random vector Y=(Y1,…,Yp)T with finite second moments, Σ=Cov(Y) is automatically positive semi-definite, because for any a∈Rp, aTΣa=Var(aTY)≥0. Σ fails to be strictly positive definite exactly when some linear combination aTY is almost-surely constant, i.e. the law of Y is degenerate, concentrated on a proper affine subspace of Rp (which has Lebesgue measure zero in Rp, so no genuine p-dimensional density can exist there). This is exactly why Definition 5.3 below imposes Σ≻0: the degenerate case is instead handled through the affine-image construction of Theorem 5.6.
Definition 5.3.X∼Np(μ,Σ), Σ positive definite, has density f(x)=(2π)p/2∣Σ∣1/21exp{−21(x−μ)TΣ−1(x−μ)}.
Theorem 5.6 (Affine transformations). If X∼Np(μ,Σ) and Y=AX+b for a q×p matrix A, then Y∼Nq(Aμ+b,AΣAT) — the multivariate Normal family is closed under affine maps, with no rank restriction on A (degenerate normals arise when AΣAT is singular).
Theorem 5.7 (Marginals). Any sub-vector of a multivariate Normal is multivariate Normal, with the corresponding sub-block of μ and Σ — an immediate corollary of Theorem 5.6 by choosing A as a selection matrix.
Theorem 5.8 (Quadratic forms and χ2). If X∼Np(0,Σ) with Σ invertible, then XTΣ−1X∼χp2.
Proof sketch. Write Σ−1=Σ−1/2Σ−1/2 (symmetric square root), and let Z=Σ−1/2X; by Theorem 5.6, Z∼Np(0,Ip), so XTΣ−1X=ZTZ=∑Zi2∼χp2 by definition of the chi-squared distribution as a sum of p iid squared standard Normals. ■
Challenge Problem 5.1 (Independence of quadratic forms, and the unbiasedness of S2). Let X∼Np(0,Σ), Σ≻0, and let A,B be symmetric p×p matrices.
(a) Show that if AΣB=0, then XTAX and XTBX are independent (Craig's theorem, sufficiency direction).
(b) Show Cov(XTAX,XTBX)=2tr(AΣBΣ), and explain why this shows AΣB=0 is not recoverable from second moments alone.
(c) For X1,…,Xn∼iidN(μ,σ2) — i.e. X∼Nn(μ1n,σ2In), where 1n∈Rn is the all-ones vector, not to be confused with the event-indicator 1A — use the identity E[XTAX]=tr(AΣ)+μTAμ (the mean-adjusted generalization of Theorem 5.8's zero-mean trace identity) to show S2=n−11∑i=1n(Xi−Xˉ)2 is unbiased for σ2.
(d) Show that if Q is orthogonal and X∼Np(0,Ip), then QX=dX.
Solution.
(a) Write Σ=Σ1/2Σ1/2 and set Z=Σ−1/2X∼Np(0,Ip) (Theorem 5.6), so X=Σ1/2Z. Then XTAX=ZTA′Z and XTBX=ZTB′Z where A′=Σ1/2AΣ1/2, B′=Σ1/2BΣ1/2 are symmetric, and A′B′=Σ1/2AΣBΣ1/2=Σ1/2(AΣB)Σ1/2=0.
So it suffices to treat the whitened case Σ=I: symmetric A′,B′ with A′B′=0 (hence also B′A′=(A′B′)T=0T=0). Commuting symmetric matrices are simultaneously orthogonally diagonalizable: there is an orthogonal Q with QTA′Q=DA=diag(αi) and QTB′Q=DB=diag(βi), and DADB=QTA′B′Q=0 forces αiβi=0 for every i — at each coordinate, at most one of αi,βi is nonzero. Let W=QTZ∼Np(0,Ip) (Theorem 5.6 again, Q orthogonal). Then ZTA′Z=WTDAW=∑iαiWi2,ZTB′Z=WTDBW=∑iβiWi2,
and since {i:αi=0} and {i:βi=0} are disjoint index sets, these two sums are functions of disjoint subcollections of the mutually independent W1,…,Wp — hence independent. ■
(b) For X∼Np(0,Σ), expanding XTAX and XTBX in the whitened coordinates Z=Σ−1/2X∼N(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Σ).
(Sanity check: A=B=Ip,Σ=Ip gives Var(χp2)=2p, correct.) If AΣB=0 then certainly tr(AΣBΣ)=tr(0⋅Σ)=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, A=(100−1), B=(0110) (both symmetric), AB=(0−110) has tr(AB)=0 yet AB=0. So vanishing covariance — the second-moment shadow of Craig's condition — cannot by itself certify AΣ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]=∣I−2sA−2tB∣−1/2 against the product ∣I−2sA∣−1/2∣I−2tB∣−1/2 to all orders in (s,t) — not merely the order-st term that produces the covariance formula above — a genuinely more delicate argument that we do not pursue here. ■
(c) Let A=In−n1J where J=1n1nT is the n×n all-ones matrix; A is symmetric, and A1n=1n−n1(n1n)=0. With μ=μ1n, Σ=σ2In: tr(AΣ)=σ2tr(A)=σ2[n−n1tr(J)]=σ2[n−n1⋅n]=σ2(n−1),μTAμ=μ21nTA1n=μ21nT0=0.
So E[XTAX]=σ2(n−1). But algebraically XTAX=XTX−n1(1nTX)2=∑iXi2−n1(∑iXi)2=∑i(Xi−Xˉ)2, so E[∑i(Xi−Xˉ)2]=σ2(n−1), i.e. E[S2]=E[n−11∑i=1n(Xi−Xˉ)2]=σ2. ■
(d) By Theorem 5.6, QX∼Np(Q0,QIpQT)=Np(0,QQT)=Np(0,Ip) since Q is orthogonal. A multivariate Normal law is determined entirely by its mean and covariance, so QX=dX. ■
Challenge Problem 5.2 (Orthogonal invariance: radius and direction are independent). Let X∼Np(0,Ip), p≥2. Define R=∥X∥ and Θ=X/∥X∥∈Sp−1 (well-defined a.s., since P(X=0)=0). Show that R and Θ are independent, and that Θ is uniformly distributed on Sp−1.
Solution. This is Challenge Problem 5.1(d)'s rotational invariance, pushed to its natural conclusion. Fix any orthogonal Q. Two deterministic facts about the maps R(⋅),Θ(⋅): R(Qx)=∥Qx∥=∥x∥=R(x) for every x (orthogonal maps preserve norm), and Θ(Qx)=∥Qx∥Qx=Q∥x∥x=QΘ(x). Combined with QX=dX (part (d) above), we get, for every orthogonal Q: (R,Θ)=d(R(QX),Θ(QX))=(R,QΘ).
Fix a Borel set A⊆(0,∞) and define the finite measure νA(B):=P(R∈A,Θ∈B) on Sp−1. The displayed distributional identity gives νA(B)=P(R∈A,QΘ∈B)=P(R∈A,Θ∈Q−1B)=νA(Q−1B) for every orthogonal Q; replacing Q by Q−1 (which ranges over the same group) shows νA is invariant under every rotation of the sphere. The orthogonal group acts transitively on Sp−1, and the invariant probability measure under a transitive compact group action is unique (uniqueness of Haar measure, specialized to Sp−1≅O(p)/O(p−1)); hence νA must be a constant multiple of the normalized uniform surface measure σ on Sp−1. Taking B=Sp−1 pins down the constant: νA(Sp−1)=P(R∈A), so P(R∈A,Θ∈B)=P(R∈A)⋅σ(B)for all Borel A,B.
Setting A=(0,∞) shows Θ has law σ — uniform on the sphere — and then the display is the independence of R and Θ (their joint law factors as a product over the generating rectangles, which extends to the full product σ-field by a standard π–λ argument). ■
Remark (the computational route, for comparison). One can reach the same conclusion by brute-force integration: the p-dimensional polar-coordinate volume element is dx=rp−1drdσ(θ) (the (p−1)-dimensional surface measure at radius r scales as rp−1 times the unit-sphere measure), so the standard Gaussian density (2π)−p/2e−∥x∥2/2 becomes, in (r,θ) coordinates, fR,Θ(r,θ)=(2π)−p/2rp−1e−r2/2,
which manifestly does not depend on θ, giving the same factorization and additionally identifying R's density as proportional to rp−1e−r2/2 — the χp distribution (consistent with R2=XTX∼χp2 from Theorem 5.8 with Σ=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 to a statement about Θ alone.
Appendix — Master Formula Sheet
Distribution
PMF/PDF
Mean
Variance
MGF
Bernoulli(p)
px(1−p)1−x
p
p(1−p)
1−p+pet
Binomial(n,p)
(xn)px(1−p)n−x
np
np(1−p)
(1−p+pet)n
Poisson(λ)
e−λλx/x!
λ
λ
eλ(et−1)
Geometric(p)
(1−p)x−1p
1/p
(1−p)/p2
1−(1−p)etpet
Neg. Binomial(r,p)
(r−1x−1)pr(1−p)x−r
r/p
r(1−p)/p2
[1−(1−p)etpet]r
Hypergeometric(N,K,n)
(xK)(n−xN−K)/(nN)
nNK
nNKNN−KN−1N−n
—
Uniform(a,b)
b−a1
2a+b
12(b−a)2
t(b−a)etb−eta
Normal(μ,σ2)
σ2π1e−(x−μ)2/2σ2
μ
σ2
eμt+σ2t2/2
Exponential(λ)
λe−λx
1/λ
1/λ2
λ−tλ,t<λ
Gamma(α,λ)
Γ(α)λαxα−1e−λx
α/λ
α/λ2
(λ−tλ)α
Beta(α,β)
B(α,β)xα−1(1−x)β−1
α+βα
(α+β)2(α+β+1)αβ
(hypergeometric series)
Cauchy(x0,γ)
πγ[1+(γx−x0)2]1
undefined
undefined
does not exist
χk2
Gamma(k/2,1/2)
k
2k
(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), is a Hilbert space, with inner product ⟨X,Y⟩=E[XY]. Under this lens:
Expectation is an inner product with the constant function 1: E[X]=⟨X,1⟩.
Variance is squared distance from the mean: Var(X)=∥X−E[X]∥2.
Covariance is an inner product between centered variables, and correlation ρ is precisely the cosine of the angle between X−μX and Y−μY — explaining geometrically why Cauchy–Schwarz forces ∣ρ∣≤1, with equality exactly when the vectors are collinear (i.e., Y is an affine function of X).
Conditional expectation E[Y∣X] is the orthogonal projection of Y onto the closed subspace M of σ(X)-measurable, finite-variance random variables — the random-variable analogue of projecting a vector onto a subspace in Rn. Concretely: writing Y=E[Y∣X], the projection residual Y−Y is orthogonal to every element of M, in particular to Y−E[Y]∈M (constants are trivially σ(X)-measurable). The Pythagorean theorem applied to (Y−Y)+(Y−E[Y]) then gives ∥Y−E[Y]∥2=∥Y−Y∥2+∥Y−E[Y]∥2, i.e. Var(Y)=∥Y−Y∥2, via the tower propertyE[Var(Y∣X)]+∥Y−E[Y]∥2Var(E[Y∣X])
— Eve's Law is nothing but the Pythagorean theorem, applied to this one projection.
The multivariate Normal's covariance matrix Σ 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 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, σ-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 L2 space.