Skip to content

Definitions

To understand the basis for probability theory, it is important to fully understand every term used. Here are the definitions for the terms we will be using, refer back to this page if there are any confusion on terminology.

A power set "P(S)\mathcal{{"}P{}'}(S) of set SS is the set of all subsets of SS. For example, let S={1,2,3}S = \{1,2,3\}The power set of SS will be P(S)={,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}\mathcal{{'}P{}'}(S) = \{\emptyset, \{1\}, \{2\}, \{3\}, \{1,2\}, \{1,3\}, \{2,3\}, \{1,2,3\}\}

A collection of sets {Ai}iI\{A_i\}_{i \in I} is pairwise disjoint if AiAj=A_i \cap A_j = \emptyset for all iji \neq j.

A binary relation \sim on a set SS is an equivalence relation if it satisfies:

  1. Reflexivity: xxx \sim x.
  2. Symmetry: xy    yxx \sim y \implies y \sim x.
  3. Transitivity: xyyz    xzx \sim y \land y \sim z \implies x \sim z.

The set of all equivalence classes is denoted S/S / \sim (the quotient set).

Given a set SS and an equivalence relation \simThe quotient space S/S / \sim is the set of equivalence classes {[x]:xS}\{ [x] : x \in S \}Where [x]={yS:xy}[x] = \{ y \in S : x \sim y \}.

Context in Probability: LpL^p is the quotient space of Lp\mathcal{{'}L{}'}^p (the space of measurable functions with finite pp-semi-norm) under the equivalence relation fg    f=gf \sim g \iff f=g μ\mu-a.e. Formally, Lp=Lp/L^p = \mathcal{{'}L{}'}^p / \sim.

## Topology and Metric Spaces

A topology τ\tau on a set SS is a collection of subsets of SS (i.e., τP(S)\tau \subseteq \mathcal{{'}P{}'}(S)), called open sets, satisfying:

  1. Triviality: ,Sτ\emptyset, S \in \tau

  2. Finite intersection: U1,,Unτ    i=1nUiτ,nNU_1, \dots, U_n \in \tau \implies \bigcap^n_{i=1} U_i \in \tau, n\in \mathbb{{'}N{}'}

  3. Arbitrary union: If {Uα}αA\left\{U_\alpha\right\}_{\alpha \in A} is a collection of sets such that UατU_\alpha \in \tau for all αA\alpha \in AThen αAUατ\bigcup_{\alpha \in A} U_\alpha \in \tau.

A topological space is a pair (S,τ)(S, \tau) where SS is a set and τ\tau is a topology on SS. The elements of τ\tau are definitionally called open sets.

A Metric space is a set MM with a distance function d:M×M[0,)d: M \times M \to [0, \infty) satisfying:

  1. Non-negativity: d(x,y)0d(x,y) \geq 0
  2. Identity of Indiscernibles: d(x,y)=0    x=yd(x,y)=0 \iff x=y
  3. Symmetry: d(x,y)=d(y,x)d(x,y) = d(y,x)
  4. Triangle inequality: d(x,z)d(x,y)+d(y,z)d(x, z) \leq d(x,y)+d(y,z)

A set NSN \subseteq S is a neighborhood of a point xSx \in S if there exists an open set UτU \in \tau such that xUNx \in U \subseteq N. An Open Neighborhood is a neighborhood that is itself an open set.

A set CSC \subseteq S is closed if its complement Cc=SCC^c = S \setminus C is open. In a topological space, closed sets satisfy:

  1. \emptyset and SS are closed.
  2. Finite unions of closed sets are closed.
  3. Arbitrary intersections of closed sets are closed.

Given a set ASA \subseteq S in a topological space:

  • The closure A\overline{A} is the smallest closed set containing AA (intersection of all closed supersets).
  • The interior AA^\circ is the largest open set contained in AA (union of all open subsets).
  • The boundary A=AA\partial A = \overline{A} \setminus A^\circ.

Given metric spaces (X,dX)(X, d_X) and (Y,dY)(Y, d_Y)A function f:XYf: X \to Y is KK-Lipschitz (with K0K \geq 0) if: dY(f(x1),f(x2))KdX(x1,x2)x1,x2Xd_Y(f(x_1), f(x_2)) \leq K \cdot d_X(x_1, x_2) \quad \forall x_1, x_2 \in X

The Lipschitz constant (or Lipschitz semi-norm) is defined as: fLip=supxydY(f(x),f(y))dX(x,y)\lVert f \rVert_{\mathrm{Lip}{}} = \sup_{x \neq y} \frac{d_Y(f(x), f(y))}{d_X(x, y)}

The set of 1-Lipschitz functions consists of all functions satisfying fLip1\lVert f \rVert_{\mathrm{Lip}{}} \leq 1.

In Wasserstein GANs, the discriminator (critic) must be 1-Lipschitz. This is often enforced via Gradient Penalty or Spectral Normalization.

A topological space (S,τ)(S, \tau) is a Polish Space if it is:

  1. Separable: Contains a countable dense subset.
  2. Completely Metrizable: There exists a metric dd inducing τ\tau such that (S,d)(S, d) is a complete metric space (every Cauchy sequence converges).

Relevance to ML: Rn\mathbb{{'}R{}'}^nInfinite sequences R\mathbb{{'}R{}'}^\inftyAnd space of continuous functions C[0,1]C[0,1] are Polish. This property ensures regular conditional probabilities exist.

Let (S,τ)(S, \tau) be a topological space, the Borel σ\sigma-algebra, denoted B(S)\mathcal{{'}B{}'}(S)Is the σ\sigma-algebra generated by topology τ\tau:

B(S)=σ(τ)\begin{equation} \mathcal{{'}B{}'}(S) = \sigma (\tau) \end{equation}

The pair (S,B(S))(S, \mathcal{{'}B{}'}(S)) is called a Borel space.

A measurable space (Ω,F)(\Omega, \mathcal{{'}F{}'}) is a standard Borel space if there exists a bimeasurable bijection (a bijection ff where both ff and f1f^{-1} are measurable) between (Ω,F)(\Omega, \mathcal{{'}F{}'}) and (B,B(B))(B, \mathcal{{'}B{}'}(B)) where BB is a Borel subset of a Polish space SS.

Note: By Kuratowski’s theorem, all uncountable standard Borel spaces are isomorphic to each other (and to [0,1][0,1] with its Borel σ\sigma-algebra). Including Borel subsets (rather than just Polish spaces) ensures discrete/finite spaces and intervals like (0,1](0,1] are covered.

Multivariate Calculus & Differential Geometry

Section titled “Multivariate Calculus & Differential Geometry”

A map ϕ:UV\phi: U \to V between open sets in Rd\mathbb{{'}R{}'}^d is a CkC^k-diffeomorphism if it is a bijection, kk-times continuously differentiable, and its inverse ϕ1\phi^{-1} is also kk-times continuously differentiable. In ML contexts, k=1k=1 (C1C^1-diffeomorphism) or k=k=\infty (CC^\infty-diffeomorphism, smooth).

Crucial for Normalizing Flows/Change of Variables.

Let T:UVT: U \to V be a differentiable map between open sets in Rd\mathbb{{'}R{}'}^d. The Jacobian matrix of TT at point xxDenoted JT(x)\mathbf{{'}J{}'}_T(x)Is the d×dd \times d matrix of all first-order partial derivatives:

JT(x)=(T1x1(x)T1xd(x)Tdx1(x)Tdxd(x))\mathbf{{'}J{}'}_T(x) = \begin{pmatrix} \frac{\partial T_1}{\partial x_1}(x) & \cdots & \frac{\partial T_1}{\partial x_d}(x) \\ \vdots & \ddots & \vdots \\ \frac{\partial T_d}{\partial x_1}(x) & \cdots & \frac{\partial T_d}{\partial x_d}(x) \end{pmatrix}

The Jacobian determinant detJT(x)|\det \mathbf{{'}J{}'}_T(x)| measures the local volume distortion factor of the transformation TT at point xx.

Relevance: Essential for Normalizing Flows, where the log-determinant of the Jacobian must be tractable to compute the transformed density. Also appears in backpropagation (chain rule) and neural network optimization.

Let XX be a random variable with PDF pXp_X on an open set URdU \subseteq \mathbb{{'}R{}'}^d. Let T:UVT: U \to V be a C1C^1-diffeomorphism. Let Y=T(X)Y = T(X). The PDF of YY is given by:

PY(y)=pX(T1(y))detJT1(y)P_Y(y) = p_X(T^{-1}(y)) \cdot \left| \det \mathbf{{'}J{}'}_{T^{-1}}(y) \right|

Using the Inverse Function Theorem, this is equivalent to:

PY(y)=pX(T1(y))detJT(T1(y))1P_Y(y) = p_X(T^{-1}(y)) \cdot | \det \mathbf{{'}J{}'}_T(T^{-1}(y)) |^{-1}

Where JT1(y)\mathbf{{'}J{}'}_{T^{-1}}(y) is the Jacobian matrix of the inverse transformation evaluated at yy.

Given a non-empty set Ω\OmegaThe σ\sigma-algebra F\mathcal{{'}F{}'} is a sub-collection of the power set P(Ω)\mathcal{{'}P{}'}(\Omega) whose elements are called measurable sets, where F\mathcal{{'}F{}'} satisfies:

  1. Triviality: ΩF\Omega \in \mathcal{{'}F{}'}
  2. Closure under complement: AF    AcFA \in \mathcal{{'}F{}'} \implies A^c \in \mathcal{{'}F{}'}
  3. Closure under countable Union: A1,A2,F    i=1AiFA_1, A_2, \dots \in \mathcal{{'}F{}'} \implies \bigcup^\infty_{i=1} A_i \in \mathcal{{'}F{}'}
### Sub-$\sigma$-algebra

Given a measurable space (Ω,F)(\Omega, \mathcal{{'}F{}'})A collection GF\mathcal{{'}G{}'}\subseteq \mathcal{{'}F{}'} is a sub-σ\sigma-algebra if G\mathcal{{'}G{}'} is itself a σ\sigma-algebra on Ω\Omega.

Intuition: A sub-σ\sigma-algebra represents a coarser information structure---it contains fewer events, corresponding to having less information about the outcome.

A measurable space is a tuple (Ω,F)(\Omega, \mathcal{{'}F{}'}) consisting of any non-empty set (sample space) Ω\Omega and σ\sigma-algebra FP(Ω)\mathcal{{'}F{}'} \subseteq \mathcal{{'}P{}'}(\Omega).

Let CP(S)\mathcal{{'}C{}'} \subseteq \mathcal{{'}P{}'}(S) be any collection of subsets of SSThe σ\sigma-algebra generated by C\mathcal{{'}C{}'}Denoted σ(C)\sigma(\mathcal{{'}C{}'}) is the intersection of all σ\sigma-algebras containing C\mathcal{{'}C{}'}Hence the smallest σ\sigma-algebra containing C\mathcal{{'}C{}'}. This is denoted:

\begin{equation} \sigma(\mathcal{{'}C{}'}) = \bigcap \left\{\mathcal{{'}G{}'}:\mathcal{{'}C{}'} \subseteq \mathcal{{'}G{}'}, \mathcal{{'}G{}'} \mathrm{ is} a $\sigma$-algebra on {}S \right\} \end{equation}

Let (Ω1,F1)(\Omega_1, \mathcal{{'}F{}'}_1) and (Ω2,F2)(\Omega_2, \mathcal{{'}F{}'}_2) be measurable spaces. A function f:Ω1Ω2f: \Omega_1 \to \Omega_2 is measurable (or F1/F2\mathcal{{'}F{}'}_1/\mathcal{{'}F{}'}_2-measurable) if the pre-image of every measurable set in the target is a measurable set in the source:

BF2,f1(B){ωΩ1:f(ω)B}F1\forall B \in \mathcal{{'}F{}'}_2, \quad f^{-1}(B) \triangleq \{\omega \in \Omega_1 : f(\omega) \in B\} \in \mathcal{{'}F{}'}_1

Note: This is the foundational definition before introducing Random Elements.

In a measurable space (Ω,F)(\Omega, \mathcal{{'}F{}'})A measure is a function μ:F[0,]\mu : \mathcal{{'}F{}'} \rightarrow [0,\infty]Satisfying:

  1. Null set: μ()=0\mu(\emptyset) = 0
  2. Countable additivity: For any countable collection of pairwise disjoint sets {Ai}i=1F\{A_i\}^\infty_{i=1} \subseteq \mathcal{{'}F{}'}:
μ(i=1Ai)=i=1μ(Ai)\mu \left(\bigcup^\infty_{i=1} A_i\right) = \sum^\infty_{i=1} \mu (A_i)

Two functions f,gf, g are equivalent (fgf \sim g) if they are equal almost everywhere, meaning:

μ({xΩ:f(x)g(x)})=0\mu(\left\{ x\in \Omega: f(x) \neq g(x)\right\}) = 0

Assuming the set {xΩ:f(x)g(x)}\{x \in \Omega : f(x) \neq g(x)\} is measurable.

### Completeness of a Measure Space

A measure space (Ω,F,μ)(\Omega, \mathcal{{'}F{}'}, \mu) is complete if every subset of a null set is measurable (and hence also a null set). Formally:

IfNFwithμ(N)=0andAN,thenAF\mathrm{If} {} N \in \mathcal{{'}F{}'} \mathrm{ with} {} \mu(N) = 0 \mathrm{ and} {} A \subseteq N, \mathrm{ then} {} A \in \mathcal{{'}F{}'}

Note: The Lebesgue measure on Rd\mathbb{{'}R{}'}^d is complete by construction. Any measure space can be “completed” by adding all subsets of null sets to the σ\sigma-algebra. The completion of a Borel measure yields the larger σ\sigma-algebra of Lebesgue-measurable sets.

A measure μ\mu on (Ω,F)(\Omega, \mathcal{{'}F{}'}) is σ\sigma-finite if Ω\Omega can be written as a countable union of measurable sets with finite measures:

Ω=n=1An,AnF,μ(An)<\Omega = \bigcup^\infty_{n=1} A_n, \quad A_n \in \mathcal{{'}F{}'}, \quad \mu(A_n) < \infty

The reference measure λ\lambda is a fixed σ\sigma-finite measure on a measurable space (S,F)(S, \mathcal{{'}F{}'}).

Given two measures ν\nu and μ\mu on the same measurable space (Ω,F)(\Omega, \mathcal{{'}F{}'})We say ν\nu is absolutely continuous with respect to μ\muDenoted νμ\nu \ll \muIf:

μ(A)=0    ν(A)=0AF\mu(A) = 0 \implies \nu(A) = 0 \quad \forall A \in \mathcal{{'}F{}'}

Intuition: If νμ\nu \ll \muThen ν\nu cannot “create probability out of thin air” where μ\mu says there is none. This is the prerequisite for the existence of the Radon-Nikodym derivative.

Let T:(Ω1,F1)(Ω2,F2)T: (\Omega_1, \mathcal{{'}F{}'}_1) \to (\Omega_2, \mathcal{{'}F{}'}_2) be a measurable mapping. Given a measure μ\mu on (Ω1,F1)(\Omega_1, \mathcal{{'}F{}'}_1)The pushforward measure T#μT_\#\mu on (Ω2,F2)(\Omega_2, \mathcal{{'}F{}'}_2) is defined as:

T#μ(B)=μ(T1(B))forallBF2T_\# \mu(B) = \mu(T^{-1}(B)) \quad \mathrm{for} all {} B \in \mathcal{{'}F{}'}_2

Note: This is a pure measure-theoretic concept. When TT is a random element and μ=P\mu = PThe pushforward becomes the law/induced distribution.

ML Context: In Generative Models (GANs/VAEs), the pushforward measure is the foundation of the Generator. If zN(0,I)z \sim \mathcal{{'}N{}'}(0, I) is a latent variable and GθG_\theta is a neural network, the generated data distribution is exactly the pushforward measure Gθ#N(0,I){G_\theta}_\# \mathcal{{'}N{}'}(0, I).

Let (Ω1,F1,μ1)(\Omega_1, \mathcal{{'}F{}'}_1, \mu_1) and (Ω2,F2,μ2)(\Omega_2, \mathcal{{'}F{}'}_2, \mu_2) be two σ\sigma-finite measure spaces. The product σ\sigma-algebra, denoted F1F2\mathcal{{'}F{}'}_1 \otimes \mathcal{{'}F{}'}_2 is the σ\sigma-algebra generated by measurable rectangles A×BA \times B where AF1,BF2A \in \mathcal{{'}F{}'}_1, B \in \mathcal{{'}F{}'}_2. There exists a unique measure π=μ1μ2\pi = \mu_1 \otimes \mu_2 on F1F2\mathcal{{'}F{}'}_1 \otimes \mathcal{{'}F{}'}_2 such that for all measurable rectangles:

π(A×B)=μ1(A)μ2(B)\begin{equation} \pi(A \times B) = \mu_1(A)\mu_2(B) \end{equation}

Let (Ω,F)(\Omega,\mathcal{{'}F{}'}) be a measurable space equipped with two σ\sigma-finite measures μ\mu and ν\nu. If ν\nu is absolutely continuous with respect to μ\mu (denoted νμ\nu \ll \mu), meaning that AF,(μ(A)=0    ν(A)=0)\forall A \in \mathcal{{'}F{}'}, (\mu(A)=0 \implies \nu(A)=0)Then there exists a measurable function f:Ω[0,)f: \Omega \to [0,\infty)Unique μ\mu-almost everywhere, such that for every AFA \in \mathcal{{'}F{}'}:

ν(A)=Afdμ\nu(A) = \int_A f d\mu

The function ff is called the Radon-Nikodym derivative and is denoted f=dνdμf = \frac{d\nu}{d\mu}.

Let (S,B(S))(S, \mathcal{{'}B{}'}(S)) be a measurable space and xSx \in S be a fixed point. The Dirac measure δx\delta_x is defined as:

AB(S),δx(A)={1ifxA0ifxA\forall A \in \mathcal{{'}B{}'}(S), \quad \delta_x(A) = \begin{cases} 1 & \mathrm{if} {} x\in A\\ 0 & \mathrm{if} {} x\notin A \end{cases}

Let (S,F)(S, \mathcal{{'}F{}'}) be a measurable space and x1,,xnSx_1, \dots, x_n \in S be fixed observations. The empirical measure P^n\hat{P}_n is defined as:

P^n(A)=1ni=1nδxi(A)={i:xiA}n,AF\hat{P}_n(A) = \frac{1}{n} \sum_{i=1}^n \delta_{x_i}(A) = \frac{ | \{i : x_i \in A\} | }{n}, \quad \forall A \in \mathcal{{'}F{}'}

Where | \cdot | denotes the cardinality (number of elements) of the set, not absolute value.

### Support of a Measure

Given a Borel probability measure μ\mu on a topological space (S,τ)(S, \tau)The support of μ\muDenoted supp(μ)\mathrm{supp}{}(\mu)Is the set of all points xSx \in S for which every open neighborhood of xx has positive measure. Equivalently, it is the intersection of all closed sets with full measure:

supp(μ)={CS:Cisclosedandμ(C)=1}\mathrm{supp}{}(\mu) = \bigcap \{ C \subseteq S : C \mathrm{ is} closed and {} \mu(C) = 1 \}

A probability measure PP is a measure on (Ω,F)(\Omega, \mathcal{{'}F{}'}) such that P(Ω)=1P(\Omega) = 1. It must satisfy Countable Additivity: For any countable sequence of pairwise disjoint events {Ai}i=1F\{A_i\}_{i=1}^\infty \subseteq \mathcal{{'}F{}'}:

P(i=1Ai)=i=1P(Ai)P\left(\bigcup_{i=1}^\infty A_i\right) = \sum_{i=1}^\infty P(A_i)

Let (S,B(S))(S, \mathcal{{'}B{}'}(S)) be a measurable space. The space of probability measures M1(S)\mathcal{{'}M{}'}_1(S) is the set of all probability measures on (S,B(S))(S, \mathcal{{'}B{}'}(S)) such that μ(S)=1\mu(S) = 1 for all μM1(S)\mu \in \mathcal{{'}M{}'}_1(S).

### Probability Space

A probability space is a tuple (Ω,F,P)(\Omega, \mathcal{{'}F{}'}, P)Where (Ω,F)(\Omega, \mathcal{{'}F{}'}) is the measurable space defined previously and PP is the probability measure where PM1(Ω,F)P \in \mathcal{{'}M{}'}_1(\Omega, \mathcal{{'}F{}'}).

Outcome ωΩ\omega \in \Omega is an element of some space Ω\Omega.

Let Ω\Omega be a set and R\mathcal{{'}R{}'} be a Ring of subsets (closed under finite union and relative complement). Let μ0:R[0,]\mu_0: \mathcal{{'}R{}'} \to [0, \infty] be a pre-measure (countably additive on R\mathcal{{'}R{}'}). Theorem: There exists a measure μ\mu on the σ\sigma-algebra generated by R\mathcal{{'}R{}'}Denoted σ(R)\sigma(\mathcal{{'}R{}'})Such that μ(A)=μ0(A)\mu(A) = \mu_0(A) for all ARA \in \mathcal{{'}R{}'}. Furthermore, if μ0\mu_0 is σ\sigma-finite, this extension μ\mu is unique.

This theorem allows us to define the Lebesgue measure on R\mathbb{{'}R{}'} by defining the length of intervals, and guarantees a valid probability measure exists on the complex Borel σ\sigma-algebra.

Kolmogorov Extension Theorem (Kolmogorov-Bochner)

Section titled “Kolmogorov Extension Theorem (Kolmogorov-Bochner)”

Let TT be an index set ( T=RT = \mathbb{{'}R{}'} or T=NT = \mathbb{{'}N{}'} for time). For each finite subset J={t1,,tn}TJ = \{t_1, \dots, t_n\} \subset TLet μJ\mu_J be a probability measure on (RJ,B(RJ))(\mathbb{{'}R{}'}^J, \mathcal{{'}B{}'}(\mathbb{{'}R{}'}^J)) (a finite-dimensional distribution or FDD).

Consistency Condition: The family {μJ}\{\mu_J\} is consistent if for any finite subsets JKTJ \subseteq K \subset TThe marginal of μK\mu_K onto coordinates JJ equals μJ\mu_J:

μJ(A)=μK(A×RKJ),AB(RJ)\mu_J(A) = \mu_K(A \times \mathbb{{'}R{}'}^{K \setminus J}), \quad \forall A \in \mathcal{{'}B{}'}(\mathbb{{'}R{}'}^J)

Theorem: If {μJ}\{\mu_J\} is a consistent family of finite-dimensional distributions, there exists a unique probability measure PP on the product space (RT,B(RT))(\mathbb{{'}R{}'}^T, \mathcal{{'}B{}'}(\mathbb{{'}R{}'}^T)) such that for every finite JTJ \subset TThe marginal distribution of PP on RJ\mathbb{{'}R{}'}^J is μJ\mu_J.

Relevance: This theorem is essential for rigorously defining stochastic processes. It guarantees that the Wiener Process (Brownian Motion) and Markov Chains exist as well-defined probability measures on path space, given only their finite-dimensional distributions.

Given a measurable space (Ω,F)(\Omega, \mathcal{{'}F{}'})An event is a measurable set AFA \in \mathcal{{'}F{}'} to which a probability P(A)P(A) can be assigned.

An elementary event is a set containing a single outcome, {ω}Ω\{\omega\} \subset \Omega. For singletons in Ω\Omega to be measurable, we must assume the σ\sigma-algebra F\mathcal{{'}F{}'} contains all singletons, or equivalently, that Ω\Omega is equipped with a topology making it a Standard Borel space (e.g., Ω\Omega is itself a Polish space).

Note: This is distinct from singletons in the target space SS. When SS is a Polish space equipped with its Borel σ\sigma-algebra B(S)\mathcal{{'}B{}'}(S)All singletons {s}S\{s\} \subset S are indeed measurable because Polish spaces are T1T_1 (singletons are closed, hence Borel-measurable).

The complement of an event AA is defined as Ac=ΩAA^c = \Omega \setminus A.

By the additivity axiom of probability measures, this yields the property:

P(AAc)=P(Ω)=1P(A \cup A^c) = P(\Omega) = 1

If two events A,BFA, B \in \mathcal{{'}F{}'} the probability of their intersection is denoted P(AB)P(A \cap B). Using the additivity of measures, the inclusion-exclusion principle is as follows:

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)

Info: You are reminded that mutually exclusive events have the property P(AB)=0P(A \cap B) = 0

For events A,BF,P(B)>0A, B \in \mathcal{{'}F{}'}, P(B) > 0The conditional probability of AA given BB is defined as the normalized measure of the intersection:

P(AB)P(AB)P(B),P(B)(0,1]P(A|B) \triangleq \frac{P(A\cap B)}{P(B)}, \quad P(B) \in (0, 1]

A finite collection of events A1,,AnFA_1, \dots, A_n \in \mathcal{{'}F{}'} is mutually independent (or independent) if for every subset of indices I{1,,n}I \subseteq \{1, \dots, n\}:

P(iIAi)=iIP(Ai)P\left(\bigcap_{i\in I} A_i\right) = \prod_{i\in I}P(A_i)### Conditional Independence

Given that event CFC \in \mathcal{{'}F{}'} holds, event A,BFA, B \in \mathcal{{'}F{}'} are conditionally independent if:

P(ABC)=P(AC)P(BC)P(A\cap B| C) = P(A|C)P(B|C)

This is often denoted as ABCA \perp B | C.

The random elements can map to spaces other than the real line, random variable (strictly real number line) is not enough to measure the full domain of a random source. Therefore, random element should be strictly defined. Let (Ω,F)(\Omega, \mathcal{{'}F{}'}) be a measurable space (the source of randomness), and (S,B(S))(S, \mathcal{{'}B{}'}(S)) be a measurable space (the target). A function X:ΩSX:\Omega \rightarrow S is a random element if it is measurable, i.e., the pre-image of every measurable set in the target is a measurable set in the source:

BB(S),X1(B){ωΩ:X(ω)B}F\forall B \in \mathcal{{'}B{}'}(S), X^{-1}(B) \triangleq \{\omega \in \Omega : X(\omega) \in B\} \in \mathcal{{'}F{}'}

A random variable is a specific case of random element where the target space is the real line:

(S,B(S))=(R,B(R))(S, \mathcal{{'}B{}'}(S)) = (\mathbb{{'}R{}'}, \mathcal{{'}B{}'}(\mathbb{{'}R{}'}))

A random vector is a specific case of random element where the target space is the Euclidean space Rd\mathbb{{'}R{}'}^d:

(S,B(S))=(Rd,B(Rd))(S, \mathcal{{'}B{}'}(S)) = (\mathbb{{'}R{}'}^d, \mathcal{{'}B{}'}(\mathbb{{'}R{}'}^d))

A random vector X=(X1,,Xd)\mathbf{{'}X{}'} = (X_1, \dots, X_d)^\top can be viewed as a collection of dd real-valued random variables.

Two σ\sigma-algebras G,HF\mathcal{{'}G{}'}, \mathcal{{'}H{}'} \subseteq \mathcal{{'}F{}'} are independent if for all GGG \in \mathcal{{'}G{}'} and HHH \in \mathcal{{'}H{}'}, P(GH)=P(G)P(H)P(G \cap H) = P(G)P(H).

Random elements X,YX, Y on (Ω,F,P)(\Omega, \mathcal{{'}F{}'}, P) are independent if their generated σ\sigma-algebras σ(X)={X1(B):BB(S)}\sigma(X) = \{X^{-1}(B) : B \in \mathcal{{'}B{}'}(S)\} and σ(Y)\sigma(Y) are independent.

The Law of random element XX is the probability measure PXM1(S,B(S))P_X \in \mathcal{{'}M{}'}_1(S, \mathcal{{'}B{}'}(S))Defined by the pushforward XPXX\sim P_X:

PX(B)=P(X1(B))P_X(B) = P(X^{-1}(B))

If PXλP_X \ll \lambdaThe probability density function would be the Radon-Nikodym derivative f=dPXdλf=\frac{d P_X}{d \lambda}Satisfying:

PX(B)=Bf dλ\begin{equation} P_X(B) = \int_B f \space d \lambda \end{equation}

Note: The PDF ff is unique only up to λ\lambda-null sets. If ff and gg differ only on a set of λ\lambda-measure zero, they define the same probability measure PXP_X.

A random element XX is absolutely continuous with respect to a reference measure λ\lambda if its induced law PXP_X is absolutely continuous with respect to λ\lambdaI.e., PXλP_X \ll \lambda. This means that for all measurable sets BB in the target space, λ(B)=0    PX(B)=0\lambda(B) = 0 \implies P_X(B) = 0.

Let (X,Y)(X, Y) be a pair of random elements with joint distribution PXYP_{XY} on the product space (S×T,ST)(S \times T, \mathcal{{'}S{}'} \otimes \mathcal{{'}T{}'}). The marginal distribution of XX is the pushforward of PXYP_{XY} under the projection map πX:S×TS\pi_X: S \times T \to SDefined as:

PX(A)=PXY(A×T)=(πX)#PXY(A),ASP_X(A) = P_{XY}(A \times T) = (\pi_X)_\# P_{XY}(A), \quad \forall A \in \mathcal{{'}S{}'}

Equivalently, PXP_X is the law of XX when treating XX as a random element in isolation.

Note: The term “marginal” refers to the fact that in the discrete case, summing the joint probability table over YY yields the marginal probabilities of XX in the margins of the table.

Independent and Identically Distributed (IID)

Section titled “Independent and Identically Distributed (IID)”

Given a sequence of random elements X1,,XnX_1, \dots, X_nIf their joint law is the product of their marginal laws:

P(X1,,Xn)=PX1PXnP_{(X_1, \dots, X_n)} = P_{X_1} \otimes \dots \otimes P_{X_n}

And all marginal laws are identical (PX1==PXn=PXP_{X_1} = \dots = P_{X_n} = P_X), then the sequence is IID. Equivalently, the random elements are pairwise independent and all share the same distribution.

Note: This definition requires the concepts of Random Elements, Joint Laws, and Marginal Laws, which is why it is placed here rather than in the Probability Properties section.

Indicator function 1A:Ω{1,0}1_A:\Omega \rightarrow \{1,0\} satisfies:

1A(ω)={1ifωA0else1_A(\omega) = \begin{cases} 1 & \mathrm{if} {} \omega \in A\\ 0 & \mathrm{else}{} \end{cases}

A function s:ΩRs: \Omega \rightarrow \mathbb{{'}R{}'} is a simple function if it takes on a finite number of values. This can be written as a linear combination of indicator functions:

S(ω)=i=1nαi1Ai(ω),αiR,AiFS(\omega) = \sum^n_{i=1} \alpha_i 1_{A_i} (\omega), \quad \alpha_i \in \mathbb{{'}R{}'}, \quad A_i \in \mathcal{{'}F{}'}

Where αiR\alpha_i \in \mathbb{{'}R{}'} are real coefficients and AiFA_i \in \mathcal{{'}F{}'} are pairwise disjoint measurable sets.

### Lebesgue Integral

This is an integral constructed from 33 steps:

  1. Simple functions: Given a simple function s=αi1As=\sum \alpha_i 1_AThe integral is sdμ=i=1nαiμ(Ai)\int s d\mu = \sum^n_{i=1} \alpha_i \mu (A_i).
  2. Non-negative Measurable Functions: For any f:Ω[0,]f: \Omega \rightarrow [0, \infty]Defined as the supremum of integrals of simple functions bounded by f: fdμ=sup{sdμ:0sf,sissimple}\int f d\mu = \sup \left\{\int s d\mu : 0\leq s \leq f, s \mathrm{ is} simple{}\right\}
  3. General Measurable Functions: For a measurable function f:ΩRf: \Omega \rightarrow \mathbb{{'}R{}'}Decompose into positive and negative parts f=f+ff = f^+ - f^- (where f+=max(f,0)f^+ = \max(f, 0) and f=max(f,0)f^- = \max(-f, 0)). The integral is defined as: fdμ=f+dμfdμ\int f d \mu = \int f^+ d\mu - \int f^- d\mu
### Expectation (Real-valued)

For a real-valued random variable X:ΩRX: \Omega \to \mathbb{{'}R{}'}The expectation is the standard Lebesgue integral with respect to the probability measure PP:

E[X]=ΩX(ω)dP(ω)\mathbb{{'}E{}'}[X] = \int_\Omega X(\omega) \, dP(\omega)

If XX has a density fXf_X with respect to Lebesgue measure λ\lambdaThis becomes:

E[X]=RxfX(x)dλ(x)\mathbb{{'}E{}'}[X] = \int_{\mathbb{{'}R{}'}} x \cdot f_X(x) \, d\lambda(x)

For a real-valued random variable XX and kNk \in \mathbb{{'}N{}'}:

  • The kk-th moment (about the origin) is E[Xk]\mathbb{{'}E{}'}[X^k]Provided E[Xk]<\mathbb{{'}E{}'}[|X|^k] < \infty.
  • The kk-th central moment is E[(XE[X])k]\mathbb{{'}E{}'}[(X - \mathbb{{'}E{}'}[X])^k].

The variance of XX is the second central moment:

Var(X)=E[(XE[X])2]=E[X2](E[X])2\mathrm{Var}{}(X) = \mathbb{{'}E{}'}[(X - \mathbb{{'}E{}'}[X])^2] = \mathbb{{'}E{}'}[X^2] - (\mathbb{{'}E{}'}[X])^2

The standard deviation is σX=Var(X)\sigma_X = \sqrt{\mathrm{Var}{}(X)}.

Properties:

  • Var(X)0\mathrm{Var}{}(X) \geq 0
  • Var(aX+b)=a2Var(X)\mathrm{Var}{}(aX + b) = a^2 \mathrm{Var}{}(X) for constants a,ba, b
  • Var(X)=0    X=E[X]\mathrm{Var}{}(X) = 0 \iff X = \mathbb{{'}E{}'}[X] almost surely

Law of the Unconscious Statistician (LOTUS)

Section titled “Law of the Unconscious Statistician (LOTUS)”

Let X:ΩSX: \Omega \to S be a random element with law PXP_XAnd let f:SRf: S \to \mathbb{{'}R{}'} be measurable. If ff is non-negative, or if E[f(X)]<\mathbb{{'}E{}'}[|f(X)|] < \infty, then the expectation of f(X)f(X) can be computed either in the sample space or the target space:

E[f(X)]=Ωf(X(ω))dP(ω)=Sf(x)dPX(x)\mathbb{{'}E{}'}[f(X)] = \int_\Omega f(X(\omega)) \, dP(\omega) = \int_S f(x) \, dP_X(x)

Intuition: LOTUS justifies computing expectations using the pushforward measure (distribution) rather than the underlying probability space. In ML, this is why we can compute E[f(X)]\mathbb{{'}E{}'}[f(X)] using the density pX(x)p_X(x) without knowing Ω\Omega or PP.

For two random variables X,YX, Y with finite second moments, the covariance is defined as:

Cov(X,Y)=E[(XE[X])(YE[Y])]\mathrm{Cov}{}(X, Y) = \mathbb{{'}E{}'}[(X - \mathbb{{'}E{}'}[X])(Y - \mathbb{{'}E{}'}[Y])]

Equivalently, Cov(X,Y)=E[XY]E[X]E[Y]\mathrm{Cov}{}(X, Y) = \mathbb{{'}E{}'}[XY] - \mathbb{{'}E{}'}[X]\mathbb{{'}E{}'}[Y].

Properties:

  • Cov(X,X)=Var(X)\mathrm{Cov}{}(X, X) = \mathrm{Var}{}(X)
  • Cov(X,Y)=Cov(Y,X)\mathrm{Cov}{}(X, Y) = \mathrm{Cov}{}(Y, X) (symmetry)
  • Cov(aX,bY)=abCov(X,Y)\mathrm{Cov}{}(aX, bY) = ab \cdot \mathrm{Cov}{}(X, Y) (bilinearity)
  • If XX and YY are independent, Cov(X,Y)=0\mathrm{Cov}{}(X, Y) = 0 (but converse is not true)

For a random vector XRd\mathbf{{'}X{}'} \in \mathbb{{'}R{}'}^d with finite second moments, the covariance matrix ΣRd×d\Sigma \in \mathbb{{'}R{}'}^{d \times d} is defined as:

Σ=Cov(X)=E[(XE[X])(XE[X])]\Sigma = \mathrm{Cov}{}(\mathbf{{'}X{}'}) = \mathbb{{'}E{}'}\left[(\mathbf{{'}X{}'} - \mathbb{{'}E{}'}[\mathbf{{'}X{}'}])(\mathbf{{'}X{}'} - \mathbb{{'}E{}'}[\mathbf{{'}X{}'}])^\top\right]

The (i,j)(i,j)-th entry is Σij=Cov(Xi,Xj)\Sigma_{ij} = \mathrm{Cov}{}(X_i, X_j). The covariance matrix is symmetric and positive semi-definite.

Lebesgue pp-spaces (Lp\mathcal{{'}L{}'}^p)

Section titled “Lebesgue ppp-spaces (′L′p\mathcal{{'}L{}'}^p′L′p)”

For p[1,)p \in [1, \infty)The space Lp(Ω,μ)\mathcal{{'}L{}'}^p(\Omega, \mu) consists of all measurable functions f:ΩRf: \Omega \to \mathbb{{'}R{}'} such that the norm is finite:

fp(Ωf(ω)pdμ(ω))1/p<\lVert f \rVert_p \triangleq \left( \int_\Omega |f(\omega)|^p \, d\mu(\omega) \right)^{1/p} < \infty

The space LpL^p is the quotient space of Lp\mathcal{{'}L{}'}^p modulo the equivalence relation fg    f=gf \sim g \iff f=g μ\mu-almost everywhere. LpL^p is a Banach space under the norm p\lVert \cdot \rVert_p.

Generalization: For vector-valued functions, the Bochner space Lp(Ω,μ;V)\mathcal{{'}L{}'}^p(\Omega, \mu; \mathbb{{'}V{}'}) consists of strongly measurable functions f:ΩVf: \Omega \to \mathbb{{'}V{}'} where fp=(Ωf(ω)pdμ(ω))1/p<\lVert f \rVert_p = \left( \int_\Omega \lVert f(\omega) \rVert^p \, d\mu(\omega) \right)^{1/p} < \infty.

For vector-valued functions taking values in a Banach space, the Bochner integral extends the Lebesgue integral. The formal definition requires concepts from Functional Analysis (Banach spaces, strong measurability) and is deferred to the Functional Analysis and Bochner Integration section below.

Intuition: A function f:ΩVf: \Omega \to \mathbb{{'}V{}'} is Bochner integrable if it is the limit of simple Banach-valued functions and its norm is Lebesgue integrable: Ωf(ω)dμ(ω)<\int_\Omega \lVert f(\omega) \rVert \, d\mu(\omega) < \infty.

### Fubini-Tonelli Theorem

Let (Ω1,F1,μ1)(\Omega_1, \mathcal{{'}F{}'}_1, \mu_1) and (Ω2,F2,μ2)(\Omega_2, \mathcal{{'}F{}'}_2, \mu_2) be σ\sigma-finite measure spaces. The Fubini-Tonelli Theorem states:

  1. Tonelli (non-negative measurable functions): If f:Ω1×Ω2[0,]f: \Omega_1 \times \Omega_2 \to [0,\infty] is measurable, then: Ω1×Ω2fd(μ1μ2)=Ω1(Ω2f(x,y)dμ2(y))dμ1(x)\int_{\Omega_1 \times \Omega_2} f d(\mu_1 \otimes \mu_2) = \int_{\Omega_1} \left(\int_{\Omega_2} f(x,y) d\mu_2 (y) \right)d\mu_1(x)
  2. Fubini (integrable functions): If ff is integrable (fL1(μ1μ2)f \in L^1 (\mu_1 \otimes \mu_2)), then the order of integration can be swapped, and the equality holds for the signed integral.

A function f:VRf: V \to \mathbb{{'}R{}'} on a vector space is convex if x,yV,λ[0,1]\forall x, y \in V, \lambda \in [0,1]: f(λx+(1λ)y)λf(x)+(1λ)f(y)f(\lambda x + (1-\lambda)y) \leq \lambda f(x) + (1-\lambda)f(y) (Crucial for Jensen’s inequality and Optimization).

Given a probability space (Ω,F,P)(\Omega, \mathcal{{'}F{}'}, P)A real-valued random variable X:ΩRX: \Omega \to \mathbb{{'}R{}'} and a convex function φ:RR\varphi: \mathbb{{'}R{}'} \to \mathbb{{'}R{}'}:

φ(E[X])E[φ(X)]\varphi(\mathbb{{'}E{}'}[X]) \leq \mathbb{{'}E{}'}[\varphi(X)]

Let XX be a non-negative random variable and a>0a > 0. Then:

P(Xa)E[X]aP(X \geq a) \leq \frac{\mathbb{{'}E{}'}[X]}{a}

Let XX be a random variable with finite mean μ\mu and finite non-zero variance σ2\sigma^2. For any k>0k > 0:

P(Xμkσ)1k2P(|X - \mu| \geq k\sigma) \leq \frac{1}{k^2}

Functional Analysis and Bochner Integration

Section titled “Functional Analysis and Bochner Integration”

A Normed Vector Space is a pair (V,)(V, \lVert \cdot \rVert) where VV is a vector space over field K\mathbb{{'}K{}'} ( R\mathbb{{'}R{}'} or C\mathbb{{'}C{}'}) and :V[0,)\lVert \cdot \rVert: V \to [0, \infty) is a norm satisfying:

  1. Positive Definiteness: x=0    x=0V\lVert x \rVert = 0 \iff x = 0_V.
  2. Absolute Homogeneity: αx=αx\lVert \alpha x \rVert = |\alpha| \lVert x \rVert for all scalars αK\alpha \in \mathbb{{'}K{}'}.
  3. Triangle Inequality: x+yx+y\lVert x + y \rVert \leq \lVert x \rVert + \lVert y \rVert.

Note: Every normed space induces a metric d(x,y)=xyd(x,y) = \lVert x - y \rVert.

On Rd\mathbb{{'}R{}'}^dThe Euclidean norm (or 2\ell^2-norm) is defined as:

x2=i=1dxi2=x,x\lVert x \rVert_2 = \sqrt{\sum_{i=1}^d x_i^2} = \sqrt{\langle x, x \rangle}

Where ,\langle \cdot, \cdot \rangle denotes the standard dot product. The Euclidean norm is the norm induced by the standard inner product on Rd\mathbb{{'}R{}'}^d.

Note: While general norms (defined above) apply to any normed vector space, the Euclidean norm is specific to finite-dimensional real spaces equipped with the standard inner product. All norms on Rd\mathbb{{'}R{}'}^d are equivalent, but the Euclidean norm has special properties: it is strictly convex, rotation-invariant, and induces the familiar Euclidean geometry.

A sequence (xn)nN(x_n)_{n \in \mathbb{{'}N{}'}} in a normed vector space (V,)(V, \lVert \cdot \rVert) is a Cauchy sequence if ϵ>0,NN\forall \epsilon>0, \exists N \in \mathbb{{'}N{}'} such that n,mN,xnxm<ϵ\forall n, m \geq N, \lVert x_n - x_m \rVert < \epsilon.

Note: In a general metric space (M,d)(M, d)The condition is d(xn,xm)<ϵd(x_n, x_m) < \epsilon. Since every normed space induces a metric d(x,y)=xyd(x,y) = \lVert x - y \rVertThe norm formulation is equivalent but more natural in the context of Banach spaces.

A Banach space (V,)(\mathbb{{'}V{}'}, \lVert \cdot \rVert) is a vector space V\mathbb{{'}V{}'} equipped with a norm \lVert \cdot \rVert that is complete. “Complete” means every Cauchy sequence in V\mathbb{{'}V{}'} converges to a limit within V\mathbb{{'}V{}'}.

Rd\mathbb{{'}R{}'}^d is a Banach space under any norm because in finite dimensions, all norms are equivalent and complete. When equipped specifically with the Euclidean inner product and its induced norm, Rd\mathbb{{'}R{}'}^d becomes a Hilbert space (a specialized subset of Banach spaces).

An inner product space is a vector space VV over a field K\mathbb{{'}K{}'} ( R\mathbb{{'}R{}'} or C\mathbb{{'}C{}'}) equipped with an inner product ,:V×VK\langle \cdot, \cdot \rangle: V \times V \to \mathbb{{'}K{}'} satisfying:

  1. Conjugate Symmetry: x,y=y,x\langle x, y \rangle = \overline{\langle y, x \rangle} (symmetry for real spaces: x,y=y,x\langle x, y \rangle = \langle y, x \rangle).
  2. Linearity in first argument: ax+by,z=ax,z+by,z\langle ax + by, z \rangle = a\langle x, z \rangle + b\langle y, z \rangle.
  3. Positive Definiteness: x,x0\langle x, x \rangle \geq 0 with equality iff x=0x = 0.

By conjugate symmetry, the inner product is conjugate linear (anti-linear) in the second argument for complex spaces: x,ay=aˉx,y\langle x, ay \rangle = \bar{a}\langle x, y \rangle.

The inner product induces a norm: x=x,x\lVert x \rVert = \sqrt{\langle x, x \rangle}.

A Hilbert space is a real or complex inner product space that is also a complete metric space with respect to the distance function induced by the inner product.

Given a normed vector space VV over field K\mathbb{{'}K{}'}The (topological) dual space VV^* is the space of all continuous linear functionals f:VKf: V \to \mathbb{{'}K{}'}.

Key Results:

  • For finite-dimensional spaces, VV^* is isomorphic to VV.
  • For Hilbert spaces H\mathcal{{'}H{}'}The Riesz Representation Theorem states that every fHf \in \mathcal{{'}H{}'}^* corresponds to a unique yHy \in \mathcal{{'}H{}'} such that f(x)=x,yf(x) = \langle x, y \rangle.
  • For Banach spaces, VV^* may be strictly larger than VV.

Relevance: The characteristic function of a Banach-space-valued random variable uses the dual space: φX(t)=E[eit(X)]\varphi_X(t) = \mathbb{{'}E{}'}[e^{i t(X)}] where tBt \in B^*.

Given a Banach space V\mathbb{{'}V{}'}A function X:ΩVX: \Omega \to \mathbb{{'}V{}'} is strongly measurable if it is the pointwise limit of a sequence of simple functions. Pettis Measurability Theorem states XX is strongly measurable iff XX is weakly measurable and has a separable range (This is essential for Polish spaces).

This is an integral constructed from:

  1. Banach valued simple function: s:ΩVs: \Omega \to \mathbb{{'}V{}'}Taking finite values v1,,vnv_1, \dots, v_n on disjoint sets AiA_i: ΩsdP=i=1nviP(Ai)\int_\Omega s dP = \sum^n_{i=1} v_i P(A_i)
  2. Bochner Integrable: A function X:ΩVX: \Omega \to \mathbb{{'}V{}'} is Bochner integrable if there exists a sequence of simple functions sns_n converging to XX pointwise PP-almost everywhere (snXs_n \to X PP-a.e.) such that: limnΩXsndP=0\lim_{n \to \infty} \int_\Omega \lVert X-s_n\rVert dP = 0
  3. The integral: E[X]=limnΩsndP\mathbb{{'}E{}'}[X] = \lim_{n \to \infty} \int_\Omega s_n dP

Kernel (Reproducing Kernel Hilbert Space context)

Section titled “Kernel (Reproducing Kernel Hilbert Space context)”

Let H\mathcal{{'}H{}'} be a Hilbert space of functions f:XRf: \mathcal{{'}X{}'} \to \mathbb{{'}R{}'}. H\mathcal{{'}H{}'} is an RKHS if the evaluation functional δx:ff(x)\delta_x: f \mapsto f(x) is a bounded (continuous) linear operator for all xXx \in \mathcal{{'}X{}'}. By Riesz Representation Theorem, there exists a unique function k(,x)Hk(\cdot, x) \in \mathcal{{'}H{}'} such that: f(x)=f,k(,x)Hf(x) = \langle f, k(\cdot, x) \rangle*\mathcal{{'}H{}'} The function k(x,y)=k(,x),k(,y)Hk(x, y) = \langle k(\cdot, x), k(\cdot, y) \rangle*\mathcal{{'}H{}'} is called the Reproducing Kernel.

A function k:X×XRk: \mathcal{{'}X{}'} \times \mathcal{{'}X{}'} \to \mathbb{{'}R{}'} is a positive definite kernel if:

  1. Symmetry: k(x,y)=k(y,x)k(x, y) = k(y, x) for all x,yXx, y \in \mathcal{{'}X{}'}
  2. Positive semi-definiteness: For any nNn \in \mathbb{{'}N{}'}Any x1,,xnXx_1, \dots, x_n \in \mathcal{{'}X{}'}And any c1,,cnRc_1, \dots, c_n \in \mathbb{{'}R{}'}: i=1nj=1ncicjk(xi,xj)0\sum_{i=1}^n \sum_{j=1}^n c_i c_j k(x_i, x_j) \geq 0

For every positive definite kernel kkThere exists a unique RKHS Hk\mathcal{{'}H{}'}_k for which kk is the reproducing kernel.

Relevance: This theorem guarantees that we can work with kernels directly (e.g., RBF, polynomial) without explicitly constructing the RKHS.

For vector-valued random elements, expectations are defined over Banach spaces via the Bochner integral. Given a probability space (Ω,F,P)(\Omega,\mathcal{{'}F{}'}, P)And a Banach space (V,)(\mathbb{{'}V{}'}, \lVert \cdot \rVert)For a random element X:ΩVX: \Omega \rightarrow \mathbb{{'}V{}'}The expectation (expected value) is the Bochner integral of XX with respect to probability measure PP denoted as E[X]\mathbb{{'}E{}'}[X]. This exists if XX is strongly measurable and ΩX(ω)dP(ω)<\int_\Omega \lVert X(\omega) \rVert dP(\omega) < \infty and is denoted as:

E[X]=ΩX(ω)dP(ω),ωΩ\mathbb{{'}E{}'}[X] = \int_\Omega X(\omega)dP(\omega), \quad \omega \in \Omega

A sequence of random variables XnX_n converges almost surely to XX if the event where they differ has a probability 00:

P({ωΩ:limnXn(ω)=X(ω)})=1P\left(\left\{\omega \in \Omega: \lim_{n\rightarrow \infty} X_n (\omega) = X(\omega)\right\}\right)= 1

Let XnX_n and XX be random elements defined on the same probability space (Ω,F,P)(\Omega, \mathcal{{'}F{}'}, P)Taking values in a metric space (S,d)(S, d). We say XnX_n converges in probability to XXDenoted XnPXX_n \xrightarrow{P} XIf for every ϵ>0\epsilon > 0:

limnP(d(Xn(ω),X(ω))>ϵ)=0\lim_{n\rightarrow \infty} P\left(d(X_n(\omega), X(\omega)) > \epsilon \right) = 0### Weak Convergence

Let Xn,XX_n, X be random elements in a metric space SS. XnX_n converges weakly to XXDenoted XndXX_n \xrightarrow{d} XIf for every bounded continuous function f:SRf: S \rightarrow \mathbb{{'}R{}'}:

limnE[f(Xn)]=E[f(X)]\lim_{n \rightarrow \infty} \mathbb{{'}E{}'}[f(X_n)] = \mathbb{{'}E{}'}[f(X)]

If {fn}\{f_n\} is a sequence of non-negative measurable functions such that fnff_n \uparrow f pointwise, then:

limnfndμ=fdμ\lim_{n \to \infty} \int f_n \, d\mu = \int f \, d\mu

(This is a prerequisite for proving Fatou’s Lemma and DCT).

Let {fn}\{f_n\} be a sequence of non-negative measurable functions. Then:

lim infnfndμlim infnfndμ\int \liminf_{n \to \infty} f_n \, d\mu \leq \liminf_{n \to \infty} \int f_n \, d\mu

Intuition: Fatou’s Lemma provides a one-sided bound for the integral of a limit. The inequality can be strict---mass can “escape to infinity” in the limit, causing the integral of the limit to be less than the limit of integrals.

Relevance: One of the “Big Three” convergence theorems (alongside MCT and DCT). Heavily used in risk minimization proofs, establishing lower bounds in variational inference, and proving the existence of minimizers in optimization problems.

Let (fn)(f_n) be a sequence of measurable functions on (Ω,F,μ)(\Omega, \mathcal{{'}F{}'}, \mu) such that fn(ω)f(ω)f_n(\omega) \to f(\omega) pointwise almost everywhere. Theorem: If there exists a measurable function gL1(μ)g \in L^1(\mu) (the “dominating function”) such that fn(ω)g(ω)|f_n(\omega)| \leq g(\omega) almost everywhere for all nnThen ff is integrable and:

limnΩfndμ=Ωfdμ\lim_{n \to \infty} \int_\Omega f_n \, d\mu = \int_\Omega f \, d\mu

Justifies swapping limits and expectations. Essential for proving convergence of Stochastic Gradient Descent (SGD) and differentiating under the integral sign (common in Variational Inference).

For random elements Xn,XX_n, X in a metric space SSThe following are equivalent definitions of weak convergence (XndXX_n \xrightarrow{d} X):

  1. E[f(Xn)]E[f(X)]\mathbb{{'}E{}'}[f(X_n)] \to \mathbb{{'}E{}'}[f(X)] for all bounded continuous ff.
  2. E[f(Xn)]E[f(X)]\mathbb{{'}E{}'}[f(X_n)] \to \mathbb{{'}E{}'}[f(X)] for all bounded Lipschitz ff.
  3. lim supP(XnC)P(XC)\limsup P(X_n \in C) \leq P(X \in C) for all closed sets CC.
  4. lim infP(XnU)P(XU)\liminf P(X_n \in U) \geq P(X \in U) for all open sets UU.
  5. P(XnA)P(XA)P(X_n \in A) \to P(X \in A) for all continuity sets AB(S)A \in \mathcal{{'}B{}'}(S) (i.e., Borel sets where P(XA)=0P(X \in \partial A) = 0With A=AA\partial A = \overline{A} \setminus A^\circ denoting the boundary).

For a random variable XX taking values in an inner product space ( Rd\mathbb{{'}R{}'}^d or a Hilbert space H\mathcal{{'}H{}'}), the characteristic function is defined as: $$ \varphi_X(t) = \mathbb{{‘}E{}’}\left[ e^{i \langle t, X \rangle} \right], \quad t \in \mathcal{{‘}H{}’}

Where $\langle \cdot, \cdot \rangle$ denotes the inner product. For $\mathbb{{'}R{}'}^d$This reduces to $\varphi_X(t) = \mathbb{{'}E{}'}\left[ e^{i t^\top X} \right]$ with $t \in \mathbb{{'}R{}'}^d$. <aside class="starlight-aside starlight-aside--note"> space $B$ (which may lack an inner product), $t$ belongs to the _dual space_ $B^*$And the characteristic function is defined as $\varphi_X(t) = \mathbb{{'}E{}'}\left[ e^{i t(X)} \right]$ where $t: B \to \mathbb{{'}R{}'}$ is a continuous linear functional. For Hilbert spaces, the Riesz Representation Theorem identifies $B^*$ with $B$Recovering the inner product formulation. </aside> ### Levy's Continuity Theorem Let $X_n$ be random variables with characteristic functions $\varphi_n(t)$. 1. If $X_n \xrightarrow{d} X$Then $\varphi_n(t) \to \varphi_X(t)$ pointwise. 2. If $\varphi_n(t)$ converges pointwise to a function $\varphi(t)$ which is continuous at $t=0$Then $\varphi$ is the characteristic function of some random variable $X$And $X_n \xrightarrow{d} X$. ### Law of Large Numbers (LLN) Let $X_1, X_2, \dots$ be i.i.d. Random variables with $\mathbb{{'}E{}'}[X_1] = \mu$. **Weak Law of Large Numbers (WLLN):** $\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i \xrightarrow{P} \mu$ **Strong Law of Large Numbers (SLLN):** $\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i \xrightarrow{a.s.} \mu$ <aside class="starlight-aside starlight-aside--caution"> risk of a _single, fixed_ hypothesis converges to its true risk. To justify Empirical Risk Minimization (ERM) where we search for the _minimum_ across a hypothesis class $\mathcal{{'}H{}'}$We need the **Uniform Law of Large Numbers (ULLN)** to prevent overfitting. See Glivenko-Cantelli theorem. </aside> ### Central Limit Theorem (CLT) Let $X_1, X_2, \dots$ be i.i.d. Random variables with mean $\mu$ and finite covariance $\Sigma$. Then: $$\sqrt{n}(\bar{X}_n - \mu) \xrightarrow{d} \mathcal{{'}N{}'}(0, \Sigma)$$ Where $\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i$. _Relevance:_ Foundation of asymptotic normality, Fisher Information properties, and explains why neural network weights are often initialized with Gaussian distributions. ## Statistical Learning Theory ### Uniform Law of Large Numbers (ULLN) / Glivenko-Cantelli Let $\mathcal{{'}F{}'}$ be a class of measurable functions. The empirical measure $\hat{P}_n$ satisfies the ULLN if:

\sup_{f \in \mathcal{{‘}F{}’}} \left| \int f , d\hat{P}_n - \int f , dP \right| \xrightarrow{a.s.} 0

A function class $\mathcal{{'}F{}'}$ is called **Glivenko-Cantelli** if this holds. This is the actual theoretical backbone of Statistical Learning Theory and ERM, ensuring uniform convergence across the entire hypothesis class. ### True Risk and Empirical Risk Let $\ell: \mathcal{{'}Y{}'} \times \mathcal{{'}Y{}'} \to \mathbb{{'}R{}'}$ be a loss function and $f: \mathcal{{'}X{}'} \to \mathcal{{'}Y{}'}$ be a hypothesis (predictor). The **True Risk** (or expected risk) is the expected loss under the true data distribution:

\mathcal{{‘}R{}’}(f) = \mathbb{{‘}E{}’}_{(X,Y) \sim P}[\ell(f(X), Y)]

TheEmpiricalRiskistheaveragelossovertheobservedtrainingsamples:The **Empirical Risk** is the average loss over the observed training samples:

\hat{\mathcal{{‘}R{}‘}}n(f) = \frac{1}{n}\sum{i=1}^n \ell(f(x_i), y_i)

_Connection to LLN:_ The Law of Large Numbers guarantees $\hat{\mathcal{{'}R{}'}}_n(f) \to \mathcal{{'}R{}'}(f)$ for a _fixed_ $f$. The ULLN extends this to uniform convergence over a hypothesis class $\mathcal{{'}H{}'}$. ### Concentration Inequalities **Hoeffding's Inequality:** Let $X_1, \dots, X_n$ be independent random variables bounded such that $a_i \leq X_i \leq b_i$. Then for any $t > 0$:

P\left( \left| \frac{1}{n}\sum*{i=1}^n X_i - \mathbb{{‘}E{}’}\left[\frac{1}{n}\sum*{i=1}^n X*i\right] \right| \geq t \right) \leq 2\exp\left(-\frac{2n^2t^2}{\sum_{i=1}^n(b_i - a_i)^2}\right)

_Relevance:_ Provides high-probability bounds for bounded random variables; foundational for generalization bounds in SLT. **McDiarmid's Inequality (Bounded Differences):** Let $X_1, \dots, X_n$ be independent random variables. If $f: \mathcal{{'}X{}'}^n \to \mathbb{{'}R{}'}$ satisfies the bounded differences condition:

\sup*{x_1, \dots, x_n, x_i’} |f(x_1, \dots, x_n) - f(x_1, \dots, x*{i-1}, x*i’, x_{i+1}, \dots, x_n)| \leq c_i

Then for any $t > 0$:

P(|f(X*1, \dots, Xn) - \mathbb{{‘}E{}’}[f(X_1, \dots, X_n)]| \geq t) \leq 2\exp\left(-\frac{2t^2}{\sum{i=1}^n c_i^2}\right)

_Relevance:_ Generalizes Hoeffding to functions of random variables; used to prove generalization bounds for arbitrary learning algorithms. ### Rademacher Complexity Let $\mathcal{{'}F{}'}$ be a class of functions $f: \mathcal{{'}X{}'} \to \mathbb{{'}R{}'}$ and let $S = \{x_1, \dots, x_n\}$ be a fixed sample. The **empirical Rademacher complexity** of $\mathcal{{'}F{}'}$ with respect to $S$ is:

\hat{\mathfrak{{‘}R{}‘}}S(\mathcal{{‘}F{}’}) = \mathbb{{‘}E{}’}\sigma\left[ \sup_{f \in \mathcal{{‘}F{}’}} \frac{1}{n}\sum_{i=1}^n \sigma_i f(x_i) \right]

Where $\sigma_1, \dots, \sigma_n$ are i.i.d. Rademacher random variables ($P(\sigma_i = +1) = P(\sigma_i = -1) = 1/2$). The **Rademacher complexity** of $\mathcal{{'}F{}'}$ is $\mathfrak{{'}R{}'}_n(\mathcal{{'}F{}'}) = \mathbb{{'}E{}'}_S[\hat{\mathfrak{{'}R{}'}}_S(\mathcal{{'}F{}'})]$. _Intuition:_ Measures the capacity of a function class to fit random noise. Higher complexity implies greater risk of overfitting. _Relevance:_ Provides tight generalization bounds; the complexity of neural networks can be bounded via Rademacher complexity of their weight matrices. ### VC Dimension The **Vapnik-Chervonenkis (VC) dimension** of a hypothesis class $\mathcal{{'}H{}'}$ is the largest number of points that can be shattered by $\mathcal{{'}H{}'}$. A set $\{x_1, \dots, x_d\}$ is shattered by $\mathcal{{'}H{}'}$ if for every binary labeling $(y_1, \dots, y_d) \in \{0, 1\}^d$There exists $h \in \mathcal{{'}H{}'}$ such that $h(x_i) = y_i$ for all $i$. _Relevance:_ A finite VC dimension implies the class is Glivenko-Cantelli. VC theory provides the classical foundation for structural risk minimization. ## Stochastic Processes and Conditioning ### Stochastic Process A **stochastic process** is a collection of random elements $\{X_t\}_{t \in T}$ indexed by a set $T$ ( time, discrete or continuous), all defined on the same probability space $(\Omega, \mathcal{{'}F{}'}, P)$ and taking values in a measurable space $(S, \mathcal{{'}S{}'})$. ### Wiener Process (Brownian Motion) A stochastic process $\{W_t\}_{t \geq 0}$ is a **Wiener process** (or standard Brownian motion) if: 1. $W_0 = 0$ almost surely 2. $W_t$ has independent increments: $W_t - W_s \perp W_u - W_v$ for disjoint intervals 3. $W_t - W_s \sim \mathcal{{'}N{}'}(0, t-s)$ for $t > s$ 4. $t \mapsto W_t$ is continuous almost surely _Relevance:_ The foundational continuous-time martingale; essential for diffusion models. ### Stochastic Differential Equation (SDE) An SDE describes the evolution of a stochastic process: $$dX_t = f(X_t, t)dt + g(X_t, t)dW_t$$ Where $f$ is the drift function, $g$ is the diffusion coefficient, and $W_t$ is a Wiener process. _Relevance:_ Score-based generative models and diffusion models are formulated as SDEs, where the Stein score $\nabla_x \log p_t(x)$ appears in the reverse-time SDE. ### Filtration A **filtration** $\{\mathcal{{'}F{}'}_t\}_{t \geq 0}$ is an increasing family of $\sigma$-algebras indexed by time (discrete or continuous):

\mathcal{{‘}F{}’}_s \subseteq \mathcal{{‘}F{}’}_t \subseteq \mathcal{{‘}F{}’} \quad \mathrm{for} all {} s \leq t

_Intuition:_ $\mathcal{{'}F{}'}_t$ represents the information available at time $t$. As time progresses, we gain more information (the $\sigma$-algebra grows). _Relevance:_ Essential for Diffusion Models (SDEs), Reinforcement Learning (partially observable Markov decision processes), and sequential decision making. ### Adapted Process A stochastic process $\{X_t\}_{t \geq 0}$ is **adapted** to a filtration $\{\mathcal{{'}F{}'}_t\}$ if $X_t$ is $\mathcal{{'}F{}'}_t$-measurable for every $t$. Equivalently, the value of $X_t$ is fully determined by the information available at time $t$. _Intuition:_ An adapted process cannot "see into the future." At each time $t$, $X_t$ depends only on information in $\mathcal{{'}F{}'}_t$. ### Martingale A stochastic process $\{X_t\}_{t \geq 0}$ adapted to a filtration $\{\mathcal{{'}F{}'}_t\}$ is a **martingale** if:

\mathbb{{‘}E{}’}[X_t | \mathcal{{‘}F{}’}_s] = X_s \quad \mathrm{for} all {} s \leq t

_Variants:_ - **Sub-martingale:** $\mathbb{{'}E{}'}[X_t | \mathcal{{'}F{}'}_s] \geq X_s$ - **Super-martingale:** $\mathbb{{'}E{}'}[X_t | \mathcal{{'}F{}'}_s] \leq X_s$ _Relevance:_ Martingales appear in the analysis of stochastic gradient descent, diffusion processes, and optimal stopping problems. ### Markov/Transition Kernel Let $(S, \mathcal{{'}S{}'})$ and $(T, \mathcal{{'}T{}'})$ be measurable spaces. A function $\kappa: S \times \mathcal{{'}T{}'} \to [0, 1]$ is a Markov Kernel (or probability kernel) if: 1. For every fixed $B \in \mathcal{{'}T{}'}$The map $s \mapsto \kappa(s, B)$ is $\mathcal{{'}S{}'}$-measurable. 2. For every fixed $s \in S$The map $B \mapsto \kappa(s, B)$ is a probability measure on $(T, \mathcal{{'}T{}'})$. ### Markov Chain A sequence of random variables $X_0, X_1, X_2, \dots$ taking values in a measurable space $(S, \mathcal{{'}S{}'})$ is a **Markov Chain** if it satisfies the Markov property:

P(X*{n+1} \in B | X_0, \dots, X_n) = P(X*{n+1} \in B | X_n) = \kappa(X_n, B)

Where $\kappa$ is the transition kernel. ### Stationary Distribution A probability measure $\pi$ on $(S, \mathcal{{'}S{}'})$ is a **stationary distribution** (or invariant measure) for a Markov kernel $\kappa$ if:

\pi(B) = \int_S \kappa(x, B) , d\pi(x) \quad \forall B \in \mathcal{{‘}S{}’}

_Relevance:_ Required for MCMC algorithms. The chain converges to $\pi$ under appropriate conditions. ### Regular Conditional Probability Let $(\Omega, \mathcal{{'}F{}'}, P)$ be a probability space and let $\mathcal{{'}G{}'} \subseteq \mathcal{{'}F{}'}$ be a sub-$\sigma$-algebra. A **Regular Conditional Probability** (RCP) is a kernel $\kappa: \Omega \times \mathcal{{'}F{}'} \to [0, 1]$ such that: 1. For $P$-almost all $\omega$, $\kappa(\omega, \cdot)$ is a probability measure on $(\Omega, \mathcal{{'}F{}'})$. 2. For every $A \in \mathcal{{'}F{}'}$, $\omega \mapsto \kappa(\omega, A)$ is $\mathcal{{'}G{}'}$-measurable and is a version of the conditional expectation: $\kappa(\cdot, A) = \mathbb{{'}E{}'}[1_A | \mathcal{{'}G{}'}]$. 3. **Disintegration Property:** For any $A \in \mathcal{{'}F{}'}$ and $G \in \mathcal{{'}G{}'}$: $$ P(A \cap G) = \int_G \kappa(\omega, A) \, dP(\omega) $$ _Critical Note:_ An RCP evaluates events in the **source** $\sigma$-algebra $\mathcal{{'}F{}'}$. The existence of RCP is guaranteed when $(\Omega, \mathcal{{'}F{}'})$ is a Standard Borel space. ### Disintegration Theorem Let $(S, \mathcal{{'}B{}'}(S))$ and $(T, \mathcal{{'}B{}'}(T))$ be Standard Borel spaces. Let $\mu$ be a probability measure on the product space $S \times T$And let $\nu$ be the marginal distribution of $\mu$ on $S$ (defined by $\nu(A) = \mu(A \times T)$). There exists a family of probability measures $\{\mu_x\}_{x \in S}$ on $T$Unique $\nu$-almost everywhere, such that for every bounded measurable function $f: S \times T \to \mathbb{{'}R{}'}$:

\int_{S \times T} f(x, y) , d\mu(x, y) = \int_S \left( \int_T f(x, y) , d\mu_x(y) \right) d\nu(x)

The measures $\mu_x$ are called the conditional probabilities of $Y$ given $X=x$Formally justifying the notation $P(Y \in B | X=x)$. ### Regular Conditional Distribution Instead of asking "What is the expected value of $X$ given $\mathcal{{'}G{}'}$?", we ask "What is the full distribution of $X$ given $\mathcal{{'}G{}'}$?". Let $(\Omega, \mathcal{{'}F{}'}, P)$ be a probability space, let $(S, \mathcal{{'}S{}'})$ be a measurable space (the target space of our random element), and let $X: \Omega \to S$ be a Random Element. Let $\mathcal{{'}G{}'} \subseteq \mathcal{{'}F{}'}$ be a sub-$\sigma$-algebra. A Regular Conditional Distribution (or Conditional Kernel) of $X$ given $\mathcal{{'}G{}'}$ is a function $\kappa: \Omega \times \mathcal{{'}S{}'} \to [0, 1]$ such that: 1. Measure: For almost every fixed $\omega \in \Omega$The map $B \mapsto \kappa(\omega, B)$ is a probability measure on $(S, \mathcal{{'}S{}'})$. 2. Measurability: For every fixed set $B \in \mathcal{{'}S{}'}$The map $\omega \mapsto \kappa(\omega, B)$ is $\mathcal{{'}G{}'}$-measurable. 3. Consistency: For every $B \in \mathcal{{'}S{}'}$ and $G \in \mathcal{{'}G{}'}$:

\int_G \kappa(\omega, B) , dP(\omega) = P(X^{-1}(B) \cap G)

**Key Distinction from Regular Conditional Probability:** - **Regular Conditional Probability** evaluates the probability of target sets given a sub-$\sigma$-algebra $\mathcal{{'}G{}'}$. - **Regular Conditional Distribution** is specifically the conditional law of a Random Element $X$ given $\mathcal{{'}G{}'}$. ### Conditional Expectation Let $(\Omega, \mathcal{{'}F{}'}, P)$ be a probability space and let $X \in L^1(\Omega, \mathcal{{'}F{}'}, P)$ be an integrable random variable. Let $\mathcal{{'}G{}'} \subseteq \mathcal{{'}F{}'}$ be a sub-$\sigma$-algebra. The conditional expectation of $X$ given $\mathcal{{'}G{}'}$Denoted $\mathbb{{'}E{}'}[X|\mathcal{{'}G{}'}]$Is the unique (up to almost sure equivalence) random variable $Z$ satisfying: 1. Measurability: $Z$ is $\mathcal{{'}G{}'}$-measurable. 2. Integral Invariance: For all $G \in \mathcal{{'}G{}'}$:

\int_G Z , dP = \int_G X , dP

Note that $\mathbb{{'}E{}'}[X|\mathcal{{'}G{}'}]$ is the orthogonal projection of $X$ onto the subspace of $\mathcal{{'}G{}'}$-measurable functions if $X \in L^2$. If regular conditional distribution $\kappa$ exists, then:

\mathbb{{‘}E{}’}[X|\mathcal{{‘}G{}’}] (\omega) = \int_S s , \kappa(\omega, ds)

### Conditional Fréchet Mean If $S$ is a metric space $(S, d)$The Conditional Fréchet Mean is the minimizer of the conditional Fréchet variance. Given the Regular Conditional Distribution $\kappa(\omega, \cdot)$ defined above:

\mu_{\mathcal{{‘}G{}’}}(\omega) = \underset{y \in S}{\arg\min} \int_S d^2(y, s) , \kappa(\omega, ds)

<aside class="starlight-aside starlight-aside--caution"> conditional expectation (and for the Fréchet mean to be well-defined via Bochner integration), $S$ cannot be an arbitrary metric space. It must be a subset of a vector space (specifically, a Banach space) where addition and scalar multiplication are defined, enabling the Bochner integral. For general metric spaces, the Fréchet mean is defined via the minimization formulation above, which does not require linear structure. </aside> ## Statistical Models and Information Geometry ### Parameter Space A parameter space is a measurable space $(\Theta, \mathcal{{'}A{}'})$. ### Parametrization A parametrization $\psi$ is a mapping $\psi: \Theta \rightarrow \mathcal{{'}M{}'}_1(S, \mathcal{{'}B{}'}(S))$ that assigns a probability measure on each parameter $\Theta$. We denote the measure $P_\theta = \psi(\theta)$. ### Parameter A parameter is an element $\theta \in \Theta$ used as an argument for $\psi$. ### Statistical Model A statistical model is the image of parametrization: $\mathcal{{'}Q{}'}= \{P_\theta \in \mathcal{{'}M{}'}_1(S, \mathcal{{'}B{}'}(S)) : P_\theta = \psi(\theta), \theta \in \Theta\}$ ### Exponential Family A parametric family of distributions $\{P_\theta : \theta \in \Theta\}$ with densities $p(x|\theta)$ belongs to the **exponential family** if it can be written in the form:

P(x|\theta) = h(x) \exp\left(\langle \eta(\theta), T(x) \rangle - A(\theta)\right)

Where: - $h(x) \geq 0$ is the **base measure** (does not depend on $\theta$) - $\eta(\theta) \in \mathbb{{'}R{}'}^d$ is the **natural parameter** - $T(x) \in \mathbb{{'}R{}'}^d$ is the **sufficient statistic** - $A(\theta) = \log \int h(x) \exp(\langle \eta(\theta), T(x) \rangle) \, dx$ is the **log-partition function** (normalization constant) _Canonical Form:_ When $\eta(\theta) = \theta$The family is in canonical form: $p(x|\eta) = h(x) \exp(\langle \eta, T(x) \rangle - A(\eta))$. _Examples:_ Gaussian, Bernoulli, Poisson, Gamma, Beta, Dirichlet, Categorical (with fixed support size), Wishart. _Relevance:_ Exponential families have closed-form conjugate priors, tractable M-projections, and Fisher Information equal to the Hessian of $A(\theta)$. They are foundational in Variational Inference, Generalized Linear Models, and natural gradient methods. ### Dominated Statistical Model The model $\mathcal{{'}Q{}'}_\theta : \theta \in \Theta$ is called dominated if there exists a $\sigma$-finite reference measure $\lambda$ such that $\forall \theta \in \Theta, P_\theta \ll \lambda$. ### Likelihood Function Given a dominated model with reference measure $\lambda$The density $f_\theta = \frac{dP_\theta}{d\lambda}$ exists. For a fixed observation $s \in S$The likelihood function $L_s: \Theta \rightarrow [0, \infty)$ is defined by:

\begin{equation} Ls(\theta) = f\theta(s), \quad \mathrm{where} {} f*\theta = \frac{dP*\theta}{d\lambda} \end{equation}

### Bayes' Theorem (Measure-Theoretic) Let $(\Theta, \mathcal{{'}A{}'})$ be a parameter space equipped with a prior probability measure $\Pi$. Let $P_\theta$ be the likelihood (data distribution) for each $\theta \in \Theta$. Given an observation $x$The **posterior distribution** $\Pi(\cdot | x)$ is defined via the Radon-Nikodym derivative:

\frac{d\Pi(\cdot | x)}{d\Pi}(\theta) = \frac{p(x | \theta)}{\int_\Theta p(x | \theta’) , d\Pi(\theta’)}

Equivalently,inmeasurenotation:Equivalently, in measure notation:

\Pi(d\theta | x) = \frac{p(x | \theta)}{\int_\Theta p(x | \theta’) , \Pi(d\theta’)} \Pi(d\theta)

Where $p(x | \theta) = \frac{dP_\theta}{d\lambda}(x)$ is the likelihood density with respect to a reference measure $\lambda$. _Requirements:_ The denominator (marginal likelihood / evidence) must be finite and non-zero for the posterior to be well-defined. _Relevance:_ This is the rigorous foundation of Bayesian ML, Variational Autoencoders (VAEs), and posterior inference. The measure-theoretic formulation handles both continuous and discrete parameter spaces uniformly. ### Score Function (Fisher Score) Let $\{P_\theta : \theta \in \Theta\}$ be a parametric model with densities $f(x; \theta)$. The **Fisher score function** is the gradient of the log-likelihood with respect to parameters:

S(x; \theta) = \nabla_\theta \log f(x; \theta)

_Properties:_ - $\mathbb{{'}E{}'}_{x \sim P_\theta}[s(x; \theta)] = 0$ (under regularity conditions) - $\mathrm{Cov}{}(s(x; \theta)) = \mathcal{{'}I{}'}(\theta)$ (Fisher Information Matrix) _Relevance:_ Essential for the REINFORCE algorithm in Reinforcement Learning and Fisher Information analysis. ### Stein Score (Data Score) In modern ML, particularly Score-Based Generative Models and Diffusion Models, the "score" refers to the **Stein score** (or data score):

S(x) = \nabla_x \log p(x)

This is the gradient of the log-density with respect to the **data** $x$Not the parameters $\theta$. The Stein score points in the direction of steepest increase in log-probability within the data space. _Key Distinction:_ - **Fisher Score** $\nabla_\theta \log p(x; \theta)$: Gradient in parameter space; used in classical statistics and RL. - **Stein Score** $\nabla_x \log p(x)$: Gradient in data space; used in Langevin Dynamics, Score Matching, and Diffusion Models. ### Total Variation Distance For two probability measures $P$ and $Q$ on $(\Omega, \mathcal{{'}F{}'})$:

\delta(P, Q) = \sup_{A \in \mathcal{{‘}F{}’}} |P(A) - Q(A)|

If measures possess densities $p$ and $q$ w.r.t a reference measure $\mu$:

\delta(P, Q) = \frac{1}{2} \int_\Omega |p(x) - q(x)| , d\mu(x)

### Fisher Information (Matrix) Let $\{P_\theta : \theta \in \Theta\}$ be a parametric model with densities $f(x; \theta)$. Under regularity conditions (twice differentiability), the Fisher Information Matrix $\mathcal{{'}I{}'}(\theta)$ is:

\mathcal{{‘}I{}’}(\theta){ij} = \mathbb{{‘}E{}’}{x \sim P_\theta} \left[ \frac{\partial}{\partial \theta_i} \log f(x; \theta) \cdot \frac{\partial}{\partial \theta_j} \log f(x; \theta) \right]

It represents the curvature of the KL-divergence near $\theta$. ### Kullback-Leibler Divergence Let $P$ and $Q$ be two probability measures on $(S, \mathcal{{'}F{}'})$. If $P \ll Q$The Kullback-Leibler Divergence is defined as the expectation of the log-likelihood ratio with respect to $P$:

D*{KL}(P | Q) = \int_S \log \left( \frac{dP}{dQ} \right) , dP = \mathbb{{‘}E{}’}*{x \sim P} \left[ \log \frac{dP}{dQ}(x) \right]

If $P \not\ll Q$Then $D_{KL}(P \| Q) = +\infty$. <aside class="starlight-aside starlight-aside--caution"> Despite its widespread use, KL divergence fails to satisfy the axioms of a metric: 1. **Asymmetry:** $D_{KL}(P \| Q) \neq D_{KL}(Q \| P)$ . This is why I-Projection and M-Projection yield different results. 2. **Triangle inequality violation:** $D_{KL}(P \| R) \not\leq D_{KL}(P \| Q) + D_{KL}(Q \| R)$ . This motivates the use of alternative divergences that **are** proper metrics: - **Wasserstein Metric:** A true metric with meaningful gradients even for disjoint supports. - **Jensen-Shannon Divergence:** Symmetric and bounded; $\sqrt{D_{JS}}$ is a true metric. </aside> ### Jensen-Shannon Divergence The Jensen-Shannon Divergence (JSD) is a symmetrized and smoothed version of KL divergence: $$D_{JS}(P \| Q) = \frac{1}{2} D_{KL}(P \| M) + \frac{1}{2} D_{KL}(Q \| M)$$ Where $M = \frac{1}{2}(P + Q)$. _Properties:_ - Symmetric: $D_{JS}(P \| Q) = D_{JS}(Q \| P)$ - Bounded: $0 \leq D_{JS}(P \| Q) \leq \log 2$ - $D_{JS}(P \| Q) = 0 \iff P = Q$ _Relevance:_ The original GAN objective minimizes JSD between the data distribution and generated distribution. ### Chain Rule for KL Divergence Let $X, Y$ be random variables with joint distributions $P_{XY}$ and $Q_{XY}$. Assuming the joint distributions factorize as $P_{XY} = P_X P_{Y|X}$ and $Q_{XY} = Q_X Q_{Y|X}$Then: $$ D_{KL}(P_{XY} \| Q_{XY}) = D_{KL}(P_X \| Q_X) + \mathbb{E}_{x \sim P_X} [D_{KL}(P_{Y|X=x} \| Q_{Y|X=x})]

Let XX and YY be random variables with joint distribution PXYP_{XY} and marginals PXP_X, PYP_Y. The Mutual Information I(X;Y)I(X; Y) is the KL divergence between the joint and the product of marginals:

I(X;Y)=DKL(PXYPXPY)=EPXY[logp(x,y)p(x)p(y)]I(X; Y) = D_{KL}(P_{XY} \| P_X \otimes P_Y) = \mathbb{{'}E{}'}_{P_{XY}}\left[\log \frac{p(x,y)}{p(x)p(y)}\right]

Properties:

  • I(X;Y)=I(Y;X)I(X; Y) = I(Y; X) (symmetry)
  • I(X;Y)=0    XYI(X; Y) = 0 \iff X \perp Y
  • I(X;Y)=H(X)H(XY)=H(Y)H(YX)I(X; Y) = H(X) - H(X|Y) = H(Y) - H(Y|X)

Relevance: Essential for InfoGAN, Contrastive Learning (InfoNCE), and representation learning.

For a probability measure PP with density p=dP/dλp = dP/d\lambda with respect to a reference measure λ\lambda:

  • Differential Entropy (continuous case): H(P)=EP[logp(X)]=p(x)logp(x)dλ(x)H(P) = -\mathbb{{'}E{}'}_P[\log p(X)] = -\int p(x) \log p(x) \, d\lambda(x)
  • Shannon Entropy (discrete case): H(P)=xp(x)logp(x)H(P) = -\sum_{x} p(x) \log p(x)

Note: Differential entropy can be negative (unlike Shannon entropy which is non-negative). Entropy measures the average uncertainty or “surprise” in a distribution.

The cross-entropy H(P,Q)H(P, Q) is fundamentally defined as the expected negative log-likelihood under PP:

H(P,Q)ExP[logq(x)]=p(x)logq(x)dλ(x)H(P, Q) \triangleq -\mathbb{{'}E{}'}_{x \sim P}[\log q(x)] = -\int p(x) \log q(x) \, d\lambda(x)

This decomposes into:

H(P,Q)=H(P)+DKL(PQ)H(P, Q) = H(P) + D_{KL}(P \Vert Q)

Intuition: DKLD_{KL} measures the “extra” bits needed to encode data from PP using a code optimized for QQWhile Cross-Entropy H(P,Q)H(P, Q) measures the “total” bits. Minimizing cross-entropy is equivalent to minimizing KL divergence since H(P)H(P) is constant with respect to QQ.

### Information Projection (I-Projection) vs. Moment Projection (M-Projection)

Given a distribution PP and a family of distributions Q\mathcal{{'}Q{}'}:

M-Projection (Moment Projection / Forward KL):

QM=argminQQDKL(PQ)Q^*_{M} = \arg\min_{Q \in \mathcal{{'}Q{}'}} D_{KL}(P \| Q)
  • Mass-covering behavior: Since PP is in the numerator, wherever P(x)>0P(x) > 0, Q(x)Q(x) must also be >0> 0 to avoid infinite penalty. This forces QQ to spread out and cover all modes of PP.
  • Used in Maximum Likelihood Estimation (MLE) and Expectation Propagation
  • Tends to overestimate variance

I-Projection (Information Projection / Reverse KL):

QI=argminQQDKL(QP)Q^*_{I} = \arg\min_{Q \in \mathcal{{'}Q{}'}} D_{KL}(Q \| P)
  • Mode-seeking behavior: Since QQ is in the numerator, wherever P(x)0P(x) \approx 0, Q(x)Q(x) must also be 0\approx 0 to avoid penalizing the objective. This causes QQ to collapse onto a single mode of PP.
  • Used in Variational Inference (VI)
  • Tends to underestimate variance

For a latent variable model with observed data xxLatent variables zzAnd approximate posterior qϕ(zx)q_\phi(z|x):

logp(x)Eqϕ(zx)[logp(x,z)]Eqϕ(zx)[logqϕ(zx)]=L(ϕ)\log p(x) \geq \mathbb{{'}E{}'}_{q_\phi(z|x)}[\log p(x,z)] - \mathbb{{'}E{}'}_{q_\phi(z|x)}[\log q_\phi(z|x)] = \mathcal{{'}L{}'}(\phi)

Equivalently:

L(ϕ)=Eqϕ(zx)[logp(xz)]DKL(qϕ(zx)p(z))\mathcal{{'}L{}'}(\phi) = \mathbb{{'}E{}'}_{q_\phi(z|x)}[\log p(x|z)] - D_{KL}(q_\phi(z|x) \| p(z))

Relevance: Foundation of Variational Autoencoders (VAEs) and Variational Inference.

Probability Metrics and Generative Foundations

Section titled “Probability Metrics and Generative Foundations”

To compute gradients of expectations ϕEzqϕ[f(z)]\nabla_\phi \mathbb{{'}E{}'}_{z \sim q_\phi}[f(z)]We cannot directly push the gradient through the distribution. The reparameterization trick rewrites the sampling process using a deterministic transformation:

If z=Tϕ(ϵ)z = T_\phi(\epsilon) where ϵp(ϵ)\epsilon \sim p(\epsilon) (a fixed, parameter-free distribution) and TϕT_\phi is a diffeomorphism, then by LOTUS:

ϕEzqϕ[f(z)]=ϕEϵp[f(Tϕ(ϵ))]=Eϵp[ϕf(Tϕ(ϵ))]\nabla_\phi \mathbb{{'}E{}'}_{z \sim q_\phi}[f(z)] = \nabla_\phi \mathbb{{'}E{}'}_{\epsilon \sim p}[f(T_\phi(\epsilon))] = \mathbb{{'}E{}'}_{\epsilon \sim p}[\nabla_\phi f(T_\phi(\epsilon))]

Relevance: Foundation of VAE training and differentiable Monte Carlo estimation.

Wasserstein Metric (Kantorovich-Rubinstein)

Section titled “Wasserstein Metric (Kantorovich-Rubinstein)”

Let μ,νP(S)\mu, \nu \in \mathcal{{'}P{}'}(S) where (S,d)(S, d) is a Polish space. The pp-Wasserstein distance is: Wp(μ,ν)=(infγΠ(μ,ν)S×Sd(x,y)pdγ(x,y))1/pW_p(\mu, \nu) = \left( \inf_{\gamma \in \Pi(\mu, \nu)} \int_{S \times S} d(x, y)^p \, d\gamma(x, y) \right)^{1/p} Where Π(μ,ν)\Pi(\mu, \nu) is the set of joint distributions (couplings) with marginals μ\mu and ν\nu.

Duality (for p=1p=1): Via Kantorovich-Rubinstein, W1(μ,ν)=sup{Eμ[f]Eν[f]:fLip1}W_1(\mu, \nu) = \sup \{ \mathbb{{'}E{}'}_\mu[f] - \mathbb{{'}E{}'}_\nu[f] : \lVert f \rVert_{\mathrm{Lip}{}} \leq 1 \}.

Relevance: Foundation of Wasserstein GANs; provides meaningful gradients even when distributions have disjoint support.

A metric on the space of probability measures derived from an RKHS. Let P,QP, Q be probability measures and H\mathcal{{'}H{}'} be an RKHS with unit ball F\mathcal{{'}F{}'}.

MMD(P,Q)=supfF(ExP[f(x)]EyQ[f(y)])\mathrm{MMD}{}(P, Q) = \sup_{f \in \mathcal{{'}F{}'}} \left( \mathbb{{'}E{}'}_{x \sim P}[f(x)] - \mathbb{{'}E{}'}_{y \sim Q}[f(y)] \right)

Relevance: Used in Generative Moment Matching Networks (GMMN) and as a critic in GANs. Can be computed efficiently via kernel tricks without explicit density estimation.

The Fisher Divergence (or Score Matching objective) measures the discrepancy between score functions of two distributions. For data distribution pdatap_{\mathrm{data}{}} and model distribution pθp_\theta:

J(θ)=Epdata[xlogpdata(x)xlogpθ(x)2]J(\theta) = \mathbb{{'}E{}'}_{p_{\mathrm{data}{}}}\left[ \lVert \nabla_x \log p_{\mathrm{data}{}}(x) - \nabla_x \log p_\theta(x) \rVert^2 \right]

Key Property: Minimizing the Fisher divergence is equivalent to Score Matching. Unlike KL divergence, it does not require computing the normalizing constant of pθp_\theta.

Relevance: Foundation of Score-Based Generative Modeling and denoising score matching.

Pinsker’s Inequality bounds the Total Variation distance using KL divergence:

δ(P,Q)12DKL(PQ)\delta(P, Q) \leq \sqrt{\frac{1}{2} D_{KL}(P \| Q)}

Where δ(P,Q)\delta(P, Q) is the Total Variation distance and DKL(PQ)D_{KL}(P \| Q) is the KL divergence.

Relevance: Provides a bridge between information-theoretic bounds and probabilistic bounds. Frequently used in generative modeling proofs to convert KL bounds into TV bounds.

Tightness: A family of probability measures P\mathcal{{'}P{}'} on a Polish space (S,d)(S, d) is tight if for every ϵ>0\epsilon > 0There exists a compact set KϵSK_\epsilon \subseteq S such that:

supμPμ(SKϵ)<ϵ\sup_{\mu \in \mathcal{{'}P{}'}} \mu(S \setminus K_\epsilon) < \epsilon

Intuition: Tightness prevents probability mass from “escaping to infinity.”

Prokhorov’s Theorem: Let (S,d)(S, d) be a Polish space. A family of probability measures P\mathcal{{'}P{}'} is relatively compact (every sequence has a weakly convergent subsequence) if and only if P\mathcal{{'}P{}'} is tight.

Relevance: Provides the theoretical foundation for why Wasserstein spaces are well-behaved. Essential for proving existence of limiting distributions in generative model training.

Langevin Dynamics is an SDE that samples from a target distribution p(x)p(x) using its Stein score:

DXt=xlogp(Xt)dt+2dWtDX_t = \nabla_x \log p(X_t) \, dt + \sqrt{2} \, dW_t

Where WtW_t is a Wiener process and xlogp(x)\nabla_x \log p(x) is the Stein score.

Discretization (Unadjusted Langevin Algorithm):

Xt+1=xt+ηxlogp(xt)+2ηϵt,ϵtN(0,I)X_{t+1} = x_t + \eta \nabla_x \log p(x_t) + \sqrt{2\eta} \, \epsilon_t, \quad \epsilon_t \sim \mathcal{{'}N{}'}(0, I)

Relevance: Under appropriate conditions, the stationary distribution of Langevin Dynamics is exactly p(x)p(x). This is the foundation of Score-Based Generative Models: the reverse-time SDE in diffusion models uses the Stein score to guide sampling.

All mathematical axioms above are accepted by all schools, but there is a divide on the interpretation of probability measure PP and the nature of parameter θ\theta. This divide is based on the Frequentist and Bayesian interpretations.

Frequentist view probability as an expected fraction of frequency of event occurring as the number of repetition approaches infinity. This leads to the following viewpoints:

The measure P(A)P(A) represent the limit of relative frequency of event AA in an infinite sequence of identical, independent repetition of the experiment.

The parameter θ\theta is fixed, non-random element of the set Θ\ThetaAn unknown constant of nature. A probability measure on Θ\Theta will therefore be undefined.

Bayesian interpretation views probability as the degree of belief of an event occurring. With the viewpoints:

The measure P(A)P(A) represent a degree of belief of event AA given the current state of information.

The parameter θ\theta itself is treated as a random element mapping from an underlying probability space Ω\Omega to the parameter space Θ\Theta.

Info: In practice, we often work directly with a prior probability measure defined on the parameter space Θ\Theta

The uncertainty led by ignorance of underlying causes or mechanism generating data.

Intrinsic variability that cannot be reduced even with a larger data set. For example, a coin toss has a probability of p=0.5p = 0.5There is no epistemic uncertainty here but the outcome is unpredictable because of data uncertainty.

Let X=Rd\mathcal{{'}X{}'} = \mathbb{{'}R{}'}^d be the ambient data space. The Manifold Hypothesis states that the probability mass of the data distribution PdataP_{data} is supported on (or concentrated near) a topological manifold MRd\mathcal{{'}M{}'} \subseteq \mathbb{{'}R{}'}^d where dim(M)d\dim(\mathcal{{'}M{}'}) \ll d. Formally, supp(Pdata)M\mathrm{supp}{}(P_{data}) \subseteq \mathcal{{'}M{}'}. Explains why high-dimensional generative models (GANs, VAEs) work: they map a low-dimensional latent space ZRk\mathcal{{'}Z{}'} \subseteq \mathbb{{'}R{}'}^k to M\mathcal{{'}M{}'}.

  1. Not making connections between different topics within the subject to build a coherent understanding.

  2. Ignoring feedback from marked work and failing to address recurring weaknesses.

  3. Focusing only on content knowledge without developing exam technique and question-answering skills.

  4. Memorising content without understanding the underlying principles. This leads to poor application in unfamiliar contexts.

The key principles covered in this topic are linked in the sub-pages above. Focus on understanding the definitions, applying the formulas or frameworks, and evaluating strengths and limitations of each approach.

Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.

Probability theory is the mathematics of uncertainty. Think of it like a weather forecast - you cannot predict exactly if it will rain, but you can say there is a 70% chance. Sets are like labeled containers - you can put items in them, combine them, or find what is common between them. Random variables are like dice rolls - they produce different outcomes with different probabilities. The expectation is like the average outcome if you rolled the dice many times. The key insight is that probability is not about what will happen, but about what is likely to happen and how confident we are in our predictions. This framework lets us make decisions under uncertainty, which is the heart of machine learning.