Probability spaces and distributions on the real line
All definitions, theorems, proofs and examples appear here verbatim and with the same numbering as in the lecture notes. Shaded boxes marked Learning aid are supplements for practice: learning goals, interactive experiments and self-tests. Proofs are collapsed; “Step by step” reveals them one paragraph at a time.
3.1 Further properties of probability measures
We collect consequences of Definition 1.1 that are used throughout.
Let \((\Omega,\F,\P)\) be a probability space and \(A_1,A_2,\dots\in\F\).
- (i)
\(\sigma\)-subadditivity: \(\P\big(\bigcup_{n=1}^\infty A_n\big)\le\sum_{n=1}^\infty\P(A_n)\).
- (ii)
Continuity from below: if \(A_1\subset A_2\subset\cdots\) and \(A\coloneqq\bigcup_{n=1}^\infty A_n\), then \(\P(A_n)\to\P(A)\) as \(n\to\infty\).
- (iii)
Continuity from above: if \(A_1\supset A_2\supset\cdots\) and \(A\coloneqq\bigcap_{n=1}^\infty A_n\), then \(\P(A_n)\to\P(A)\) as \(n\to\infty\).
- (iv)
Inclusion–exclusion formula: for all \(n\in\N\), \[\P\Big(\bigcup_{i=1}^n A_i\Big)=\sum_{\emptyset\neq J\subset\{1,\dots,n\}}(-1)^{|J|+1}\,\P\Big(\bigcap_{j\in J}A_j\Big).\]
Proof
Let \(B_1\coloneqq A_1\) and \(B_n\coloneqq A_n\setminus\bigcup_{k<n}A_k\) for \(n\ge2\). The sets \(B_n\) are pairwise disjoint, \(B_n\subset A_n\), and \(\bigcup_{k\le n}B_k=\bigcup_{k\le n}A_k\) for all \(n\in\N\cup\{\infty\}\). Hence (i) follows from \(\sigma\)-additivity and monotonicity (Remark 1.2). In the situation of (ii), \(\P(A_n)=\sum_{k\le n}\P(B_k)\) converges to \(\sum_{k=1}^\infty\P(B_k)=\P(A)\). For (iii), we apply (ii) to the increasing sequence \(A_n^{\c}\) with union \(A^{\c}\) and use \(\P(A_n^{\c})=1-\P(A_n)\). Finally, (iv) follows from Remark 1.2 (ii) 2) by induction over \(n\).
□The binomial distribution counts successes in \(n\) independent trials, see Example 3.12 below. If the trials are many and successes are rare, it is well approximated by the Poisson distribution from Example 1.3.
Let \(\lambda\in(0,\infty)\) and let \((p_n)_{n\in\N}\) be a sequence in \([0,1]\) with \(np_n\to\lambda\) as \(n\to\infty\). Then, for every \(k\in\N_0\), \[\Bin_{n,p_n}(k)\xrightarrow[n\to\infty]{}\Poi_\lambda(k).\]
Proof
Let \(k\in\N_0\). Since \(p_n\to0\), we may assume \(n\ge k\) and \(p_n<1\), and we write \[\Bin_{n,p_n}(k)=\frac{n(n-1)\cdots(n-k+1)}{n^k}\cdot\frac{(np_n)^k}{k!}\cdot(1-p_n)^{n}\cdot(1-p_n)^{-k}.\] As \(n\to\infty\), the first factor tends to \(1\), the second to \(\lambda^k/k!\) and the last to \(1\). For the third factor, \(\log(1-u)=-u+O(u^2)\) as \(u\to0\) gives \(n\log(1-p_n)=-np_n+O(np_n^2)\to-\lambda\), and hence \((1-p_n)^n\to\e^{-\lambda}\).
□3.2 Distribution functions and quantiles
Probability measures on \((\R,\B(\R))\) are described by a single real function.
A function \(F\colon\R\to[0,1]\) is called a (cumulative) distribution function if it is non-decreasing and right-continuous with \[\lim_{x\to-\infty}F(x)=0\qquad\text{and}\qquad\lim_{x\to\infty}F(x)=1.\]
For every distribution function \(F\), there is a unique probability measure \(\nu_F\) on \((\R,\B(\R))\) such that \[\nu_F\big((a,b]\big)=F(b)-F(a)\qquad\text{for all }a<b.\] Conversely, for every probability measure \(\nu\) on \((\R,\B(\R))\), the function \(F(x)\coloneqq\nu((-\infty,x])\) is a distribution function, and \(\nu=\nu_F\).
Sketch of proof
For the converse statement, \(F\) is non-decreasing by monotonicity, right-continuous by continuity from above applied to \((-\infty,x+1/n]\), and has the stated limits by continuity from above and from below (Proposition 3.1). Two probability measures that agree on all intervals \((a,b]\) agree, by continuity from below, on all half-lines \((-\infty,x]\). This family is closed under intersections and generates \(\B(\R)\), so the two measures agree on \(\B(\R)\), which proves uniqueness. The existence of \(\nu_F\) is the construction of Lebesgue–Stieltjes measures; see [Klenke2020].
□For a real random variable \(X\), we call \(F_X(x)\coloneqq\P(X\le x)\) the distribution function of \(X\). By Proposition 3.4, \(\P_X=\nu_{F_X}\), so the distribution of \(X\) is determined by \(F_X\).
Let \(F\) be a distribution function and \(F(x-)\coloneqq\lim_{y\uparrow x}F(y)\). Continuity from above applied to \((x-1/n,x]\downarrow\{x\}\) gives \(\nu_F(\{x\})=F(x)-F(x-)\). Hence \(F\) is continuous at \(x\) if and only if \(\nu_F(\{x\})=0\). The distribution function of a discrete random variable is a step function with jumps of height \(\P(X=x)\) at the values \(x\) of \(X\).
If \(f\) is a Lebesgue density as in Example 1.4, then \(F(x)\coloneqq\int_{-\infty}^xf(y)\dd y\) is a continuous distribution function with \(\nu_F(B)=\int_Bf(y)\dd y\) for all \(B\in\B(\R)\). By the fundamental theorem of calculus, \(F'(x)=f(x)\) at every point \(x\) where \(f\) is continuous. Conversely, if \(F\) is a continuous distribution function that is continuously differentiable outside a finite set, then \(F'\), extended arbitrarily to this finite set, is a density of \(\nu_F\). For example, the exponential distribution with parameter \(\lambda>0\) has the distribution function \(F(x)=(1-\e^{-\lambda x})\1\{x\ge0\}\).
Let \(F\) be a distribution function and \(q\in(0,1)\). The number \[F^{-1}(q)\coloneqq\inf\{x\in\R\colon F(x)\ge q\}\] is called the \(q\)-quantile of \(F\), and also of \(\nu_F\) and of every random variable with distribution function \(F\). The map \(F^{-1}\colon(0,1)\to\R\) is called the generalised inverse of \(F\), and \(F^{-1}(1/2)\) is called the median.
The infimum is finite, because \(F(x)\to1>q\) as \(x\to\infty\) and \(F(x)\to0<q\) as \(x\to-\infty\). If \(F\) is continuous and strictly increasing, then \(F^{-1}\) is the usual inverse function.
Let \(F\) be a distribution function. For all \(q\in(0,1)\) and \(x\in\R\), we have \(F^{-1}(q)\le x\) if and only if \(q\le F(x)\).
Proof
If \(q\le F(x)\), then \(x\) belongs to the set in Definition 3.6, so \(F^{-1}(q)\le x\). Conversely, choose \(x_n\downarrow F^{-1}(q)\) with \(F(x_n)\ge q\). Right-continuity gives \(F(F^{-1}(q))\ge q\), and if \(F^{-1}(q)\le x\), then monotonicity gives \(F(x)\ge q\).
□Let \(F\) be a distribution function and let \(U\) be uniformly distributed on \([0,1]\). Then \(X\coloneqq F^{-1}(U)\), defined on the event \(\{0<U<1\}\) of probability one, has distribution function \(F\).
Proof
By Lemma 3.7, \(\P(X\le x)=\P(U\le F(x))=F(x)\) for all \(x\in\R\).
□This is how random numbers with a prescribed distribution are generated from uniform random numbers. For instance, \(-\lambda^{-1}\log(1-U)\) is exponentially distributed with parameter \(\lambda\).
3.3 Independence and conditioning
Independence of a family of events (Definition 1.5) is a stronger requirement than pairwise independence.
Consider two fair coin tosses, modelled by the Laplace experiment on \(\Omega=\{0,1\}^2\), and the events \[A=\{\text{first toss shows }1\},\qquad B=\{\text{second toss shows }1\},\qquad C=\{\text{both tosses agree}\}.\] Each event has probability \(1/2\), and each pairwise intersection equals \(\{(1,1)\}\), which has probability \(1/4\). Hence \(A,B,C\) are pairwise independent. They are not independent, since \(\P(A\cap B\cap C)=1/4\neq1/8=\P(A)\P(B)\P(C)\).
If \(A\) and \(B\) are independent, then so are \(A\) and \(B^{\c}\), since \(\P(A\cap B^{\c})=\P(A)-\P(A\cap B)=\P(A)\P(B^{\c})\). More generally, in an independent family of events, any of the events may be replaced by their complements.
Let \(B\in\F\) with \(\P(B)>0\). The probability measure \(\P(\cdot\lvert B)\) from Remark 1.8 is concentrated on \(B\). Equivalently, it defines a probability measure on \(B\) with the trace \(\sigma\)-algebra \(\F_B\coloneqq\{A\cap B\colon A\in\F\}\). Iterating Definition 1.7 yields the multiplication rule \[\P(A_1\cap\dots\cap A_n)=\P(A_1)\,\P(A_2\lvert A_1)\cdots\P(A_n\lvert A_1\cap\dots\cap A_{n-1}),\] valid whenever \(\P(A_1\cap\dots\cap A_{n-1})>0\).
A disease affects \(1\%\) of a population. A test detects the disease with probability \(0.99\), and it gives a positive result for a healthy person with probability \(0.05\). Let \(B_1\) be the event that a randomly chosen person is ill, \(B_2=B_1^{\c}\), and let \(A\) be the event of a positive test result. Bayes' formula (Remark 1.8) gives \[\P(B_1\lvert A)=\frac{0.99\cdot0.01}{0.99\cdot0.01+0.05\cdot0.99}=\frac16.\] Although the test is accurate, only one in six persons with a positive result is ill, because healthy persons are far more frequent than ill ones.
3.4 Products of finitely many probability spaces
Definition 1.9 extends to finitely many factors. For probability spaces \((\Omega_i,\F_i,\P_i)\), \(i=1,\dots,n\), the product space is \((\Omega_1\times\dots\times\Omega_n,\F_1\otimes\dots\otimes\F_n,\P_1\otimes\dots\otimes\P_n)\), where the product \(\sigma\)-algebra is generated by the sets \(A_1\times\dots\times A_n\) with \(A_i\in\F_i\), and the product measure is the unique probability measure with \[(\P_1\otimes\dots\otimes\P_n)(A_1\times\dots\times A_n)=\prod_{i=1}^n\P_i(A_i)\qquad\text{for all }A_i\in\F_i.\] On the product space, the coordinate projections are independent and the \(i\)-th projection has distribution \(\P_i\).
Let \(p\in[0,1]\) and consider the \(n\)-fold product of the Bernoulli distribution \(\Bin_{1,p}\), that is, \(\Omega=\{0,1\}^n\) with discrete density \(\rho(\omega)=p^{S(\omega)}(1-p)^{n-S(\omega)}\), where \(S(\omega)\coloneqq\sum_{i=1}^n\omega_i\) is the number of successes. Since exactly \(\binom nk\) outcomes satisfy \(S(\omega)=k\), \[\P(S=k)=\binom nk p^k(1-p)^{n-k}=\Bin_{n,p}(k),\qquad k=0,\dots,n.\] Thus \(S\) is binomially distributed and is the sum of \(n\) independent Bernoulli variables \(X_i(\omega)=\omega_i\) with \(\E[X_i]=p\) and \(\Var[X_i]=p(1-p)\). Linearity and Bienaymé's formula (Remark 1.22) give \(\E[S]=np\) and \(\Var[S]=np(1-p)\) without the computations of Example 1.15, Example 1.18.