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.
Sets and Relations
Section titled “Sets and Relations”Power Set
Section titled “Power Set”A power set of set is the set of all subsets of . For example, let The power set of will be
Disjoint Sets
Section titled “Disjoint Sets”A collection of sets is pairwise disjoint if for all .
Equivalence Relation
Section titled “Equivalence Relation”A binary relation on a set is an equivalence relation if it satisfies:
- Reflexivity: .
- Symmetry: .
- Transitivity: .
The set of all equivalence classes is denoted (the quotient set).
Quotient Space
Section titled “Quotient Space”Given a set and an equivalence relation The quotient space is the set of equivalence classes Where .
Context in Probability: is the quotient space of (the space of measurable functions with finite -semi-norm) under the equivalence relation -a.e. Formally, .
## Topology and Metric SpacesTopology
Section titled “Topology”A topology on a set is a collection of subsets of (i.e., ), called open sets, satisfying:
Triviality:
Finite intersection:
Arbitrary union: If is a collection of sets such that for all Then .
Topological Space
Section titled “Topological Space”A topological space is a pair where is a set and is a topology on . The elements of are definitionally called open sets.
Metric Space
Section titled “Metric Space”A Metric space is a set with a distance function satisfying:
- Non-negativity:
- Identity of Indiscernibles:
- Symmetry:
- Triangle inequality:
Neighborhood
Section titled “Neighborhood”A set is a neighborhood of a point if there exists an open set such that . An Open Neighborhood is a neighborhood that is itself an open set.
Closed Set
Section titled “Closed Set”A set is closed if its complement is open. In a topological space, closed sets satisfy:
- and are closed.
- Finite unions of closed sets are closed.
- Arbitrary intersections of closed sets are closed.
Closure and Interior
Section titled “Closure and Interior”Given a set in a topological space:
- The closure is the smallest closed set containing (intersection of all closed supersets).
- The interior is the largest open set contained in (union of all open subsets).
- The boundary .
Lipschitz Continuity
Section titled “Lipschitz Continuity”Given metric spaces and A function is -Lipschitz (with ) if:
The Lipschitz constant (or Lipschitz semi-norm) is defined as:
The set of 1-Lipschitz functions consists of all functions satisfying .
In Wasserstein GANs, the discriminator (critic) must be 1-Lipschitz. This is often enforced via Gradient Penalty or Spectral Normalization.
Polish Space
Section titled “Polish Space”A topological space is a Polish Space if it is:
- Separable: Contains a countable dense subset.
- Completely Metrizable: There exists a metric inducing such that is a complete metric space (every Cauchy sequence converges).
Relevance to ML: Infinite sequences And space of continuous functions are Polish. This property ensures regular conditional probabilities exist.
Borel -algebra
Section titled “Borel σ\sigmaσ-algebra”Let be a topological space, the Borel -algebra, denoted Is the -algebra generated by topology :
Borel Space
Section titled “Borel Space”The pair is called a Borel space.
Standard Borel Space
Section titled “Standard Borel Space”A measurable space is a standard Borel space if there exists a bimeasurable bijection (a bijection where both and are measurable) between and where is a Borel subset of a Polish space .
Note: By Kuratowski’s theorem, all uncountable standard Borel spaces are isomorphic to each other (and to with its Borel -algebra). Including Borel subsets (rather than just Polish spaces) ensures discrete/finite spaces and intervals like are covered.
Multivariate Calculus & Differential Geometry
Section titled “Multivariate Calculus & Differential Geometry”Diffeomorphism
Section titled “Diffeomorphism”A map between open sets in is a -diffeomorphism if it is a bijection, -times continuously differentiable, and its inverse is also -times continuously differentiable. In ML contexts, (-diffeomorphism) or (-diffeomorphism, smooth).
Crucial for Normalizing Flows/Change of Variables.
Jacobian Matrix
Section titled “Jacobian Matrix”Let be a differentiable map between open sets in . The Jacobian matrix of at point Denoted Is the matrix of all first-order partial derivatives:
The Jacobian determinant measures the local volume distortion factor of the transformation at point .
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.
Change of Variables (Diffeomorphism)
Section titled “Change of Variables (Diffeomorphism)”Let be a random variable with PDF on an open set . Let be a -diffeomorphism. Let . The PDF of is given by:
Using the Inverse Function Theorem, this is equivalent to:
Where is the Jacobian matrix of the inverse transformation evaluated at .
Measure Theory Foundations
Section titled “Measure Theory Foundations”Given a non-empty set The -algebra is a sub-collection of the power set whose elements are called measurable sets, where satisfies:
- Triviality:
- Closure under complement:
- Closure under countable Union:
Given a measurable space A collection is a sub--algebra if is itself a -algebra on .
Intuition: A sub--algebra represents a coarser information structure---it contains fewer events, corresponding to having less information about the outcome.
Measurable Space
Section titled “Measurable Space”A measurable space is a tuple consisting of any non-empty set (sample space) and -algebra .
Generated -algebra
Section titled “Generated σ\sigmaσ-algebra”Let be any collection of subsets of The -algebra generated by Denoted is the intersection of all -algebras containing Hence the smallest -algebra containing . 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}Measurable Function
Section titled “Measurable Function”Let and be measurable spaces. A function is measurable (or -measurable) if the pre-image of every measurable set in the target is a measurable set in the source:
Note: This is the foundational definition before introducing Random Elements.
Measure
Section titled “Measure”In a measurable space A measure is a function Satisfying:
- Null set:
- Countable additivity: For any countable collection of pairwise disjoint sets :
Almost Everywhere and Equivalence
Section titled “Almost Everywhere and Equivalence”Two functions are equivalent () if they are equal almost everywhere, meaning:
Assuming the set is measurable.
### Completeness of a Measure SpaceA measure space is complete if every subset of a null set is measurable (and hence also a null set). Formally:
Note: The Lebesgue measure on is complete by construction. Any measure space can be “completed” by adding all subsets of null sets to the -algebra. The completion of a Borel measure yields the larger -algebra of Lebesgue-measurable sets.
-finite Measure
Section titled “σ\sigmaσ-finite Measure”A measure on is -finite if can be written as a countable union of measurable sets with finite measures:
Reference Measure
Section titled “Reference Measure”The reference measure is a fixed -finite measure on a measurable space .
Absolute Continuity of Measures
Section titled “Absolute Continuity of Measures”Given two measures and on the same measurable space We say is absolutely continuous with respect to Denoted If:
Intuition: If Then cannot “create probability out of thin air” where says there is none. This is the prerequisite for the existence of the Radon-Nikodym derivative.
Pushforward Measure
Section titled “Pushforward Measure”Let be a measurable mapping. Given a measure on The pushforward measure on is defined as:
Note: This is a pure measure-theoretic concept. When is a random element and The pushforward becomes the law/induced distribution.
ML Context: In Generative Models (GANs/VAEs), the pushforward measure is the foundation of the Generator. If is a latent variable and is a neural network, the generated data distribution is exactly the pushforward measure .
Product Measure
Section titled “Product Measure”Let and be two -finite measure spaces. The product -algebra, denoted is the -algebra generated by measurable rectangles where . There exists a unique measure on such that for all measurable rectangles:
Radon-Nikodym Derivative
Section titled “Radon-Nikodym Derivative”Let be a measurable space equipped with two -finite measures and . If is absolutely continuous with respect to (denoted ), meaning that Then there exists a measurable function Unique -almost everywhere, such that for every :
The function is called the Radon-Nikodym derivative and is denoted .
Dirac Measure
Section titled “Dirac Measure”Let be a measurable space and be a fixed point. The Dirac measure is defined as:
Empirical Measure
Section titled “Empirical Measure”Let be a measurable space and be fixed observations. The empirical measure is defined as:
Where denotes the cardinality (number of elements) of the set, not absolute value.
### Support of a MeasureGiven a Borel probability measure on a topological space The support of Denoted Is the set of all points for which every open neighborhood of has positive measure. Equivalently, it is the intersection of all closed sets with full measure:
Probability Measure
Section titled “Probability Measure”A probability measure is a measure on such that . It must satisfy Countable Additivity: For any countable sequence of pairwise disjoint events :
Space of Probability Measure
Section titled “Space of Probability Measure”Let be a measurable space. The space of probability measures is the set of all probability measures on such that for all .
### Probability SpaceA probability space is a tuple Where is the measurable space defined previously and is the probability measure where .
Outcome
Section titled “Outcome”Outcome is an element of some space .
Carathéodory’s Extension Theorem
Section titled “Carathéodory’s Extension Theorem”Let be a set and be a Ring of subsets (closed under finite union and relative complement). Let be a pre-measure (countably additive on ). Theorem: There exists a measure on the -algebra generated by Denoted Such that for all . Furthermore, if is -finite, this extension is unique.
This theorem allows us to define the Lebesgue measure on by defining the length of intervals, and guarantees a valid probability measure exists on the complex Borel -algebra.
Kolmogorov Extension Theorem (Kolmogorov-Bochner)
Section titled “Kolmogorov Extension Theorem (Kolmogorov-Bochner)”Let be an index set ( or for time). For each finite subset Let be a probability measure on (a finite-dimensional distribution or FDD).
Consistency Condition: The family is consistent if for any finite subsets The marginal of onto coordinates equals :
Theorem: If is a consistent family of finite-dimensional distributions, there exists a unique probability measure on the product space such that for every finite The marginal distribution of on is .
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.
Probability Properties
Section titled “Probability Properties”Given a measurable space An event is a measurable set to which a probability can be assigned.
Elementary Event
Section titled “Elementary Event”An elementary event is a set containing a single outcome, . For singletons in to be measurable, we must assume the -algebra contains all singletons, or equivalently, that is equipped with a topology making it a Standard Borel space (e.g., is itself a Polish space).
Note: This is distinct from singletons in the target space . When is a Polish space equipped with its Borel -algebra All singletons are indeed measurable because Polish spaces are (singletons are closed, hence Borel-measurable).
Complementary Event
Section titled “Complementary Event”The complement of an event is defined as .
By the additivity axiom of probability measures, this yields the property:
Joint Probability
Section titled “Joint Probability”If two events the probability of their intersection is denoted . Using the additivity of measures, the inclusion-exclusion principle is as follows:
Info: You are reminded that mutually exclusive events have the property
Conditional Probability
Section titled “Conditional Probability”For events The conditional probability of given is defined as the normalized measure of the intersection:
Mutual Independence
Section titled “Mutual Independence”A finite collection of events is mutually independent (or independent) if for every subset of indices :
### Conditional IndependenceGiven that event holds, event are conditionally independent if:
This is often denoted as .
Random Elements and Distributions
Section titled “Random Elements and Distributions”Random Element
Section titled “Random Element”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 be a measurable space (the source of randomness), and be a measurable space (the target). A function 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:
Random Variable
Section titled “Random Variable”A random variable is a specific case of random element where the target space is the real line:
Random Vector
Section titled “Random Vector”A random vector is a specific case of random element where the target space is the Euclidean space :
A random vector can be viewed as a collection of real-valued random variables.
Independence of -algebras
Section titled “Independence of σ\sigmaσ-algebras”Two -algebras are independent if for all and , .
Independence of Random Elements
Section titled “Independence of Random Elements”Random elements on are independent if their generated -algebras and are independent.
The Law/Induced Distribution
Section titled “The Law/Induced Distribution”The Law of random element is the probability measure Defined by the pushforward :
Probability Density Function
Section titled “Probability Density Function”If The probability density function would be the Radon-Nikodym derivative Satisfying:
Note: The PDF is unique only up to -null sets. If and differ only on a set of -measure zero, they define the same probability measure .
Absolutely Continuous Random Element
Section titled “Absolutely Continuous Random Element”A random element is absolutely continuous with respect to a reference measure if its induced law is absolutely continuous with respect to I.e., . This means that for all measurable sets in the target space, .
Marginal Distribution
Section titled “Marginal Distribution”Let be a pair of random elements with joint distribution on the product space . The marginal distribution of is the pushforward of under the projection map Defined as:
Equivalently, is the law of when treating 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 yields the marginal probabilities of in the margins of the table.
Independent and Identically Distributed (IID)
Section titled “Independent and Identically Distributed (IID)”Given a sequence of random elements If their joint law is the product of their marginal laws:
And all marginal laws are identical (), 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.
Integration and Expectation
Section titled “Integration and Expectation”Indicator Function ()
Section titled “Indicator Function (1A1_A1A)”Indicator function satisfies:
Simple Function
Section titled “Simple Function”A function is a simple function if it takes on a finite number of values. This can be written as a linear combination of indicator functions:
Where are real coefficients and are pairwise disjoint measurable sets.
### Lebesgue IntegralThis is an integral constructed from steps:
- Simple functions: Given a simple function The integral is .
- Non-negative Measurable Functions: For any Defined as the supremum of integrals of simple functions bounded by f:
- General Measurable Functions: For a measurable function Decompose into positive and negative parts (where and ). The integral is defined as:
For a real-valued random variable The expectation is the standard Lebesgue integral with respect to the probability measure :
If has a density with respect to Lebesgue measure This becomes:
Moments and Variance
Section titled “Moments and Variance”For a real-valued random variable and :
- The -th moment (about the origin) is Provided .
- The -th central moment is .
The variance of is the second central moment:
The standard deviation is .
Properties:
- for constants
- almost surely
Law of the Unconscious Statistician (LOTUS)
Section titled “Law of the Unconscious Statistician (LOTUS)”Let be a random element with law And let be measurable. If is non-negative, or if , then the expectation of can be computed either in the sample space or the target space:
Intuition: LOTUS justifies computing expectations using the pushforward measure (distribution) rather than the underlying probability space. In ML, this is why we can compute using the density without knowing or .
Covariance
Section titled “Covariance”For two random variables with finite second moments, the covariance is defined as:
Equivalently, .
Properties:
- (symmetry)
- (bilinearity)
- If and are independent, (but converse is not true)
Covariance Matrix
Section titled “Covariance Matrix”For a random vector with finite second moments, the covariance matrix is defined as:
The -th entry is . The covariance matrix is symmetric and positive semi-definite.
Lebesgue -spaces ()
Section titled “Lebesgue ppp-spaces (′L′p\mathcal{{'}L{}'}^p′L′p)”For The space consists of all measurable functions such that the norm is finite:
The space is the quotient space of modulo the equivalence relation -almost everywhere. is a Banach space under the norm .
Generalization: For vector-valued functions, the Bochner space consists of strongly measurable functions where .
Bochner Integrability (Preview)
Section titled “Bochner Integrability (Preview)”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 is Bochner integrable if it is the limit of simple Banach-valued functions and its norm is Lebesgue integrable: .
### Fubini-Tonelli TheoremLet and be -finite measure spaces. The Fubini-Tonelli Theorem states:
- Tonelli (non-negative measurable functions): If is measurable, then:
- Fubini (integrable functions): If is integrable (), then the order of integration can be swapped, and the equality holds for the signed integral.
Inequalities
Section titled “Inequalities”Convex Function
Section titled “Convex Function”A function on a vector space is convex if : (Crucial for Jensen’s inequality and Optimization).
Jensen’s Inequality
Section titled “Jensen’s Inequality”Given a probability space A real-valued random variable and a convex function :
Markov’s Inequality
Section titled “Markov’s Inequality”Let be a non-negative random variable and . Then:
Chebyshev’s Inequality
Section titled “Chebyshev’s Inequality”Let be a random variable with finite mean and finite non-zero variance . For any :
Functional Analysis and Bochner Integration
Section titled “Functional Analysis and Bochner Integration”Normed Vector Space
Section titled “Normed Vector Space”A Normed Vector Space is a pair where is a vector space over field ( or ) and is a norm satisfying:
- Positive Definiteness: .
- Absolute Homogeneity: for all scalars .
- Triangle Inequality: .
Note: Every normed space induces a metric .
Euclidean Norm
Section titled “Euclidean Norm”On The Euclidean norm (or -norm) is defined as:
Where denotes the standard dot product. The Euclidean norm is the norm induced by the standard inner product on .
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 are equivalent, but the Euclidean norm has special properties: it is strictly convex, rotation-invariant, and induces the familiar Euclidean geometry.
Cauchy Sequence
Section titled “Cauchy Sequence”A sequence in a normed vector space is a Cauchy sequence if such that .
Note: In a general metric space The condition is . Since every normed space induces a metric The norm formulation is equivalent but more natural in the context of Banach spaces.
Banach Space
Section titled “Banach Space”A Banach space is a vector space equipped with a norm that is complete. “Complete” means every Cauchy sequence in converges to a limit within .
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, becomes a Hilbert space (a specialized subset of Banach spaces).
Inner Product Space
Section titled “Inner Product Space”An inner product space is a vector space over a field ( or ) equipped with an inner product satisfying:
- Conjugate Symmetry: (symmetry for real spaces: ).
- Linearity in first argument: .
- Positive Definiteness: with equality iff .
By conjugate symmetry, the inner product is conjugate linear (anti-linear) in the second argument for complex spaces: .
The inner product induces a norm: .
Hilbert Space
Section titled “Hilbert Space”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.
Dual Space
Section titled “Dual Space”Given a normed vector space over field The (topological) dual space is the space of all continuous linear functionals .
Key Results:
- For finite-dimensional spaces, is isomorphic to .
- For Hilbert spaces The Riesz Representation Theorem states that every corresponds to a unique such that .
- For Banach spaces, may be strictly larger than .
Relevance: The characteristic function of a Banach-space-valued random variable uses the dual space: where .
Strongly Measurable
Section titled “Strongly Measurable”Given a Banach space A function is strongly measurable if it is the pointwise limit of a sequence of simple functions. Pettis Measurability Theorem states is strongly measurable iff is weakly measurable and has a separable range (This is essential for Polish spaces).
Bochner Integral
Section titled “Bochner Integral”This is an integral constructed from:
- Banach valued simple function: Taking finite values on disjoint sets :
- Bochner Integrable: A function is Bochner integrable if there exists a sequence of simple functions converging to pointwise -almost everywhere ( -a.e.) such that:
- The integral:
Kernel (Reproducing Kernel Hilbert Space context)
Section titled “Kernel (Reproducing Kernel Hilbert Space context)”Let be a Hilbert space of functions . is an RKHS if the evaluation functional is a bounded (continuous) linear operator for all . By Riesz Representation Theorem, there exists a unique function such that: The function is called the Reproducing Kernel.
Positive Definite Kernel
Section titled “Positive Definite Kernel”A function is a positive definite kernel if:
- Symmetry: for all
- Positive semi-definiteness: For any Any And any :
Moore-Aronszajn Theorem
Section titled “Moore-Aronszajn Theorem”For every positive definite kernel There exists a unique RKHS for which is the reproducing kernel.
Relevance: This theorem guarantees that we can work with kernels directly (e.g., RBF, polynomial) without explicitly constructing the RKHS.
Expectation (Vector-valued / Bochner)
Section titled “Expectation (Vector-valued / Bochner)”For vector-valued random elements, expectations are defined over Banach spaces via the Bochner integral. Given a probability space And a Banach space For a random element The expectation (expected value) is the Bochner integral of with respect to probability measure denoted as . This exists if is strongly measurable and and is denoted as:
Convergence
Section titled “Convergence”Convergence Almost Surely
Section titled “Convergence Almost Surely”A sequence of random variables converges almost surely to if the event where they differ has a probability :
Convergence In Probability
Section titled “Convergence In Probability”Let and be random elements defined on the same probability space Taking values in a metric space . We say converges in probability to Denoted If for every :
### Weak ConvergenceLet be random elements in a metric space . converges weakly to Denoted If for every bounded continuous function :
Monotone Convergence Theorem (MCT)
Section titled “Monotone Convergence Theorem (MCT)”If is a sequence of non-negative measurable functions such that pointwise, then:
(This is a prerequisite for proving Fatou’s Lemma and DCT).
Fatou’s Lemma
Section titled “Fatou’s Lemma”Let be a sequence of non-negative measurable functions. Then:
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.
Dominated Convergence Theorem (DCT)
Section titled “Dominated Convergence Theorem (DCT)”Let be a sequence of measurable functions on such that pointwise almost everywhere. Theorem: If there exists a measurable function (the “dominating function”) such that almost everywhere for all Then is integrable and:
Justifies swapping limits and expectations. Essential for proving convergence of Stochastic Gradient Descent (SGD) and differentiating under the integral sign (common in Variational Inference).
Portmanteau Theorem
Section titled “Portmanteau Theorem”For random elements in a metric space The following are equivalent definitions of weak convergence ():
- for all bounded continuous .
- for all bounded Lipschitz .
- for all closed sets .
- for all open sets .
- for all continuity sets (i.e., Borel sets where With denoting the boundary).
Characteristic Function
Section titled “Characteristic Function”For a random variable taking values in an inner product space ( or a Hilbert space ), 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)]
\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’)}
\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})]Mutual Information
Section titled “Mutual Information”Let and be random variables with joint distribution and marginals , . The Mutual Information is the KL divergence between the joint and the product of marginals:
Properties:
- (symmetry)
Relevance: Essential for InfoGAN, Contrastive Learning (InfoNCE), and representation learning.
Entropy (Shannon and Differential)
Section titled “Entropy (Shannon and Differential)”For a probability measure with density with respect to a reference measure :
- Differential Entropy (continuous case):
- Shannon Entropy (discrete case):
Note: Differential entropy can be negative (unlike Shannon entropy which is non-negative). Entropy measures the average uncertainty or “surprise” in a distribution.
Cross-entropy
Section titled “Cross-entropy”The cross-entropy is fundamentally defined as the expected negative log-likelihood under :
This decomposes into:
Intuition: measures the “extra” bits needed to encode data from using a code optimized for While Cross-Entropy measures the “total” bits. Minimizing cross-entropy is equivalent to minimizing KL divergence since is constant with respect to .
### Information Projection (I-Projection) vs. Moment Projection (M-Projection)Given a distribution and a family of distributions :
M-Projection (Moment Projection / Forward KL):
- Mass-covering behavior: Since is in the numerator, wherever , must also be to avoid infinite penalty. This forces to spread out and cover all modes of .
- Used in Maximum Likelihood Estimation (MLE) and Expectation Propagation
- Tends to overestimate variance
I-Projection (Information Projection / Reverse KL):
- Mode-seeking behavior: Since is in the numerator, wherever , must also be to avoid penalizing the objective. This causes to collapse onto a single mode of .
- Used in Variational Inference (VI)
- Tends to underestimate variance
Evidence Lower Bound (ELBO)
Section titled “Evidence Lower Bound (ELBO)”For a latent variable model with observed data Latent variables And approximate posterior :
Equivalently:
Relevance: Foundation of Variational Autoencoders (VAEs) and Variational Inference.
Probability Metrics and Generative Foundations
Section titled “Probability Metrics and Generative Foundations”Reparameterization Trick
Section titled “Reparameterization Trick”To compute gradients of expectations We cannot directly push the gradient through the distribution. The reparameterization trick rewrites the sampling process using a deterministic transformation:
If where (a fixed, parameter-free distribution) and is a diffeomorphism, then by LOTUS:
Relevance: Foundation of VAE training and differentiable Monte Carlo estimation.
Wasserstein Metric (Kantorovich-Rubinstein)
Section titled “Wasserstein Metric (Kantorovich-Rubinstein)”Let where is a Polish space. The -Wasserstein distance is: Where is the set of joint distributions (couplings) with marginals and .
Duality (for ): Via Kantorovich-Rubinstein, .
Relevance: Foundation of Wasserstein GANs; provides meaningful gradients even when distributions have disjoint support.
Maximum Mean Discrepancy (MMD)
Section titled “Maximum Mean Discrepancy (MMD)”A metric on the space of probability measures derived from an RKHS. Let be probability measures and be an RKHS with unit ball .
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.
Fisher Divergence
Section titled “Fisher Divergence”The Fisher Divergence (or Score Matching objective) measures the discrepancy between score functions of two distributions. For data distribution and model distribution :
Key Property: Minimizing the Fisher divergence is equivalent to Score Matching. Unlike KL divergence, it does not require computing the normalizing constant of .
Relevance: Foundation of Score-Based Generative Modeling and denoising score matching.
Pinsker’s Inequality
Section titled “Pinsker’s Inequality”Pinsker’s Inequality bounds the Total Variation distance using KL divergence:
Where is the Total Variation distance and 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 and Prokhorov’s Theorem
Section titled “Tightness and Prokhorov’s Theorem”Tightness: A family of probability measures on a Polish space is tight if for every There exists a compact set such that:
Intuition: Tightness prevents probability mass from “escaping to infinity.”
Prokhorov’s Theorem: Let be a Polish space. A family of probability measures is relatively compact (every sequence has a weakly convergent subsequence) if and only if 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
Section titled “Langevin Dynamics”Langevin Dynamics is an SDE that samples from a target distribution using its Stein score:
Where is a Wiener process and is the Stein score.
Discretization (Unadjusted Langevin Algorithm):
Relevance: Under appropriate conditions, the stationary distribution of Langevin Dynamics is exactly . This is the foundation of Score-Based Generative Models: the reverse-time SDE in diffusion models uses the Stein score to guide sampling.
Philosophy
Section titled “Philosophy”Probability
Section titled “Probability”All mathematical axioms above are accepted by all schools, but there is a divide on the interpretation of probability measure and the nature of parameter . This divide is based on the Frequentist and Bayesian interpretations.
Frequentist
Section titled “Frequentist”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 represent the limit of relative frequency of event in an infinite sequence of identical, independent repetition of the experiment.
The parameter is fixed, non-random element of the set An unknown constant of nature. A probability measure on will therefore be undefined.
Bayesian
Section titled “Bayesian”Bayesian interpretation views probability as the degree of belief of an event occurring. With the viewpoints:
The measure represent a degree of belief of event given the current state of information.
The parameter itself is treated as a random element mapping from an underlying probability space to the parameter space .
Info: In practice, we often work directly with a prior probability measure defined on the parameter space
Uncertainty
Section titled “Uncertainty”Epistemic/Model Uncertainty
Section titled “Epistemic/Model Uncertainty”The uncertainty led by ignorance of underlying causes or mechanism generating data.
Aleatoric/Data Uncertainty
Section titled “Aleatoric/Data Uncertainty”Intrinsic variability that cannot be reduced even with a larger data set. For example, a coin toss has a probability of There is no epistemic uncertainty here but the outcome is unpredictable because of data uncertainty.
Manifold Hypothesis
Section titled “Manifold Hypothesis”Let be the ambient data space. The Manifold Hypothesis states that the probability mass of the data distribution is supported on (or concentrated near) a topological manifold where . Formally, . Explains why high-dimensional generative models (GANs, VAEs) work: they map a low-dimensional latent space to .
Common Pitfalls
Section titled “Common Pitfalls”Not making connections between different topics within the subject to build a coherent understanding.
Ignoring feedback from marked work and failing to address recurring weaknesses.
Focusing only on content knowledge without developing exam technique and question-answering skills.
Memorising content without understanding the underlying principles. This leads to poor application in unfamiliar contexts.
Summary
Section titled “Summary”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
Section titled “Worked Examples”Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.
Intuition
Section titled “Intuition”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.
Cross-References
Section titled “Cross-References”- Supervised Learning - How probability theory is applied to training predictive models
- Probabilistic ML Introduction - Overview of probabilistic approaches to machine learning