Mathematics · Glossary

What is Independence?

Also known as: independent events

Definition 21.19 University Mathematics — Year 2 · Chapter 21 — Probability on Countable Spaces

Events AA and BB are independent if P(AB)=P(A)P(B)\P(A \cap B) = \P(A)\P(B). A family (Ai)iI(A_i)_{i \in I} of events is (mutually) independent if for every finite subset JIJ \subseteq I,

P(iJAi)=iJP(Ai).\P\Bigl(\bigcap_{i \in J} A_i\Bigr) = \prod_{i \in J} \P(A_i) .

Examples

Example 21.21 (Independence read off a product structure)

Roll two fair dice: Ω=[ ⁣[1,6] ⁣]2\Omega = \intint16^2 with uniform weights. Let A=A = {}“first die even” and B=B = {}“second die at least 55”. Counting: A=36=18\abs A = 3\cdot6 = 18, B=62=12\abs B = 6\cdot2 = 12, AB=32=6\abs{A\cap B} = 3\cdot2 = 6, so

P(AB)=636=18361236=P(A)P(B):\P(A\cap B) = \frac6{36} = \frac{18}{36}\cdot\frac{12}{36} = \P(A)\,\P(B) :

independent, and the mechanism is visible — AA constrains only the first coordinate, BB only the second, and the uniform measure on a product set makes coordinate counts multiply. Every claim of the type “events depending on disjoint groups of tosses are independent” (used massively in the weekend problem) is this computation, wearing more indices.

Example 21.8 (The union bound: crude but indestructible)

Subadditivity with finitely many events — the union bound — trades precision for universality. For the birthday problem with 2323 people, bounding the collision probability by the sum over pairs gives

P(collision)(232)1365=2533650.693,\P(\text{collision}) \leq \binom{23}2\cdot\frac1{365} = \frac{253}{365} \approx 0.693 ,

against the true 0.5070.507: off by a wide margin, because collisions overlap. Yet the bound needs no independence, no joint law, nothing but the pair probabilities — which is why, in the weekend problem and throughout Chapter 22, the union bound is the first tool drawn: when it happens to be small, the matter is settled with no further modelling.

Example 21.15 (The birthday collision, by the chain rule)

With nn people whose birthdays are independent and uniform over 365365 days, let Dn=D_n = {}“all nn birthdays differ”. Conditioning person by person (chain rule):

P(Dn)=k=1n1(1k365),\P(D_n) = \prod_{k=1}^{n-1}\Bigl(1 - \frac{k}{365}\Bigr),

each new person having to avoid the kk days already taken. For n=23n = 23: P(D23)0.493\P(D_{23}) \approx 0.493 — a shared birthday is already more likely than not. The heuristic that explains the smallness of 2323: taking logarithms, lnP(Dn)k<nk365=(n2)365-\ln \P(D_n) \approx \sum_{k<n}\frac k{365} = \frac{\binom n2}{365}, and (232)=253\binom{23}2 = 253 gives 253/3650.693ln2253/365 \approx 0.693 \approx \ln 2. What matters is the number of pairs, which grows quadratically: collision problems live on the scale n365n \sim \sqrt{365}, not n365n \sim 365 — the birthday paradox is a square root in disguise.

Read in context →
Definition 22.4 University Mathematics — Year 3 · Chapter 22 — Probability: Foundations and the Law of Large Numbers

Sub-σ\sigma-algebras A1,,AnA\mathcal A_1, \dots, \mathcal A_n \subseteq \mathcal A are independent if P(A1An)=P(Ai)\P(A_1\cap\dots\cap A_n) = \prod\P(A_i) for all AiAiA_i \in \mathcal A_i; events are independent if the σ\sigma-algebras {,Ai,Aic,Ω}\{\varnothing, A_i, A_i^c, \Omega\} are; random variables X1,,XnX_1, \dots, X_n if the σ\sigma-algebras σ(Xi)=Xi1(B(R))\sigma(X_i) = X_i^{-1}(\mathcal B(\R)) are. An infinite family is independent if every finite subfamily is.

Examples

Example 22.7 (The birthday problem, honestly)

Among nn people with independent, uniform birthdays over N=365N = 365 days, the probability that all birthdays differ is

pn=k=1n1(1kN),p_n = \prod_{k=1}^{n-1}\Bigl(1 - \frac kN\Bigr),

by iterated conditioning (or directly: the favorable N(N1)(Nn+1)N(N-1)\cdots(N - n + 1) over the total NnN^n, a counting argument the product formula of independence makes rigorous). Taking logarithms and using ln(1x)=x+O(x2)-\ln(1 - x) = x + O(x^2):

lnpn=n(n1)2N+O(n3N2),sopnen2/2N.\ln p_n = -\frac{n(n-1)}{2N} + O\Bigl(\frac{n^3}{N^2}\Bigr), \qquad\text{so}\qquad p_n \approx \eu^{-n^2/2N} .

The tipping point pn=12p_n = \frac12 sits at n2Nln21.18Nn \approx \sqrt{2N\ln2} \approx 1.18\sqrt N: for N=365N = 365, n=23n = 23 (p23=0.4927p_{23} = 0.4927). Two morals. First, collisions among nn items in NN boxes appear at the scale nNn \sim \sqrt N, not nNn \sim N — the birthday scaling that governs hash collisions and the N\sqrt N cost of birthday attacks in cryptography. Second, the computation is a template: the (n2)\binom n2 pair-collision events are not independent, yet the answer behaves as if they were (e(n2)/N\eu^{-\binom n2/N} is exactly the independent-pairs heuristic) — a first instance of the Poisson approximation made rigorous in Chapter 23’s weekend problem (Le Cam’s inequality).

Example 22.14 (What the strong law buys)

(a) Frequencies: for i.i.d. coin flips, the observed frequency of heads converges a.s. to pp — the empirical justification of probability itself. (b) Monte Carlo: for gL1([0,1])g \in L^1(\intcc01) and (Un)(U_n) i.i.d. uniform (Theorem 22.6), 1nkng(Uk)01g\frac1n\sum_{k\leq n}g(U_k) \to \int_0^1g a.s.: integrals by sampling, in any dimension, at the dimension-independent rate n1/2\sim n^{-1/2} made precise in Chapter 23. (c) Normal numbers: almost every real number has, in its binary expansion, asymptotic frequency 12\frac12 of ones (apply the strong law to the digit variables of Theorem 22.6) — Borel’s theorem, a statement about everyday numbers proved by measure: Problem 22.1 completes it in all bases.

Read in context →