Book 3A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 3Book 3A: Measure, Integration and LᵖChapter 4

Measures, Probability and Weights

Abstract measures, densities, and the weighted measures e^(−f) dV that Perelman uses.

58 min read · Updated Nov 18, 2026

Read with Tao, An Introduction to Measure Theory, §1.4 "Abstract measure spaces" (Boolean algebras and σ-algebras, countably additive measures, measurable functions and integration, the convergence theorems) and §2.3 "Probability spaces". The Radon–Nikodym theorem is in Tao, An Epsilon of Room I, §1.2; read its statement now and its proof when you need it.

In this chapter · 10 sections
  1. 4.1From Lebesgue measure to measures in general
  2. 4.2Simulating rare events
  3. 4.3Measure spaces
  4. 4.3.1Generating σ-algebras
  5. 4.3.2Distribution functions
  6. 4.3.3Three kinds of measure
  7. 4.3.4Measures on a manifold, previewed
  8. 4.3.5Sums are integrals
  9. 4.4Pushforward measures
  10. 4.5Densities
  11. 4.5.1The Dirac mass as a limit of densities
  12. 4.5.2Signed measures and total variation
  13. 4.5.3Measures as linear functionals
  14. 4.5.4Weak convergence: what it sees and what it misses
  15. 4.6Probability as measure theory
  16. 4.6.1The Gaussian measure in many dimensions
  17. 4.6.2Variance, Chebyshev and Monte Carlo
  18. 4.6.3The Gaussian's tails
  19. 4.6.4The uniform measure on a sphere
  20. 4.7Weighted measures e−fe^{-f}e−f
  21. 4.7.1Relative entropy, previewed
  22. 4.7.2Why write a density as e−fe^{-f}e−f
  23. 4.8From one measure to products and changes of variables
  24. 4.8.1The partition function knows the averages
  25. 4.9History
  26. 4.10Exercises
  27. ↗Free resources

Everything in 3A.2 Lebesgue Measure and 3A.3 The Lebesgue Integral used only a few properties of Lebesgue measure: it assigns sizes to the sets of a σ-algebra, and it is countably additive. Translation invariance and boxes were needed to build it, but not to integrate against it. So the whole theory works for any countably additive measure on any set. This chapter makes that step, and it pays off at once: sums become integrals, probability becomes measure theory, and changing one measure into another becomes multiplication by a density.

The last idea is the one the guidebook needs most. Perelman never integrates against plain volume. He integrates against the weighted measure (4πτ)−n/2e−f dV(4\pi\tau)^{-n/2}e^{-f}\,dV, a probability measure written with its density in exponential form, exactly as physicists write the Boltzmann distribution e−E/kTe^{-E/kT}. The reasons are the same in both cases: energy and entropy live in the exponent, and normalising the total mass to 11 makes the measure a probability. This chapter sets up that language.

By the end of this chapter you will be able to:

  • define σ-algebras, measures and integrals on an abstract measure space, and recognise sums as integrals against counting measure;
  • compute pushforward measures and use the change-of-variables formula for them;
  • work with measures given by densities, state the Radon–Nikodym theorem, and recognise the Dirac mass as a limit of densities;
  • translate between probability and measure theory: random variables, laws, expectation;
  • reweight a measure by e−fe^{-f}, normalise it, and explain why both statistical mechanics and Perelman write densities this way.

From Lebesgue measure to measures in general

3A.3 The Lebesgue Integral built the Lebesgue integral on Rd\mathbb{R}^d and proved its three limit theorems, then observed that the proofs never used boxes or translations, only countable additivity. It ended with two examples that are not Lebesgue measure at all: a series of non-negative numbers, which is an integral over the integers with each point of size 11, and the expectation of a random variable, which is an integral against a probability. This chapter takes the observation seriously.

A warm-up shows three integrals that are not integrals against length, computed with nothing but the definition of the integral of a simple function. A fair die is a measure on the set {1,…,6}\{1, \ldots, 6\} giving each point mass 16\frac16; the integral of the function k↦kk \mapsto k against it is 16(1+2+⋯+6)=3.5\frac16(1 + 2 + \cdots + 6) = 3.5, the expected value of a roll. Counting measure on the positive integers integrates the function n↦1n2n \mapsto \frac{1}{n^2} to ∑n1n2=π26\sum_n\frac{1}{n^2} = \frac{\pi^2}{6}. And the measure that puts mass 11 at the origin and nothing elsewhere integrates any function gg to the single number g(0)g(0), since the only simple function that matters is g(0)g(0) times the indicator of a set containing the origin. Expectation, summation and evaluation at a point are all integration, against three different measures.

The chapter sets up the general framework, a σ-algebra on any set and a countably additive measure on it, checks that the integral and its limit theorems carry over, and then develops the operations that produce new measures from old. A map pushes a measure forward; a non-negative function reweights it, producing a measure with a density; and the Radon–Nikodym theorem says when a measure has a density at all. The pace is calmer than in 3A.2 Lebesgue Measure: little needs proving, because most proofs are the ones already given, read in a new setting. What is new is a way of thinking, in which a measure is an object that can be transformed, compared and normalised, and that view leads directly to Perelman's probability measures (4πτ)−n/2e−fdV(4\pi\tau)^{-n/2}e^{-f}dV.

Simulating rare events

In the world In use Importance sampling

Engineers estimating the probability that a structure fails, or banks estimating the probability of an extreme loss, often can't compute it exactly and estimate it by simulation instead: draw many random samples and count how often the bad event happens. The trouble is that the event is rare. For a quantity XX with the standard normal distribution, the probability that X>4X > 4 is p≈3.17×10−5p \approx 3.17 \times 10^{-5}. To estimate it to within 10%10\% (relative standard error) by plain sampling, you need about 3.23.2 million samples, because almost all of them land nowhere near the event.

Importance sampling draws from a different distribution instead, one that puts the samples where they matter, and corrects by a weight. Sample YY from a normal distribution centred at 44, and average w(Y) 1{Y>4}w(Y)\,1_{\{Y > 4\}}, where the weight is the ratio of the two densities,

w(y)=p(y)q(y)=e−y2/2e−(y−4)2/2=e8−4y.w(y) = \frac{p(y)}{q(y)} = \frac{e^{-y^2/2}}{e^{-(y-4)^2/2}} = e^{8 - 4y}.

The average is an unbiased estimate of pp, because ∫1{y>4}pq q dy=∫1{y>4}p dy\int 1_{\{y>4\}}\frac{p}{q}\,q\,dy = \int1_{\{y>4\}}p\,dy. Computing the variance shows that about 450450 samples now give the same 10%10\% accuracy, a saving by a factor of about 70007000. The method dates from the early days of Monte Carlo computation (Kahn and Marshall described it in 1953) and is standard in reliability engineering and financial risk. Mathematically it is a single identity: changing the measure you integrate against, and multiplying by the density of one measure with respect to the other. That density is what the Radon–Nikodym theorem below guarantees exists.

The numbers behind the saving. The figures in the box can be checked with Gaussian integrals. Plain sampling averages 1{X>4}\mathbf 1_{\{X > 4\}}, whose variance is p(1−p)≈p≈3.2×10−5p(1 - p) \approx p \approx 3.2\times10^{-5}; for a relative error of 10%10\%, the standard error p/N\sqrt{p/N} must be 0.1p0.1p, which needs N≈100p≈3×106N \approx \frac{100}{p} \approx 3\times10^6 samples. The reweighted estimator averages w(Y)1{Y>4}w(Y)\mathbf 1_{\{Y > 4\}}, whose second moment is ∫4∞p(y)2q(y)dy\int_4^\infty\frac{p(y)^2}{q(y)}dy. Completing the square, p2q=(2π)−1/2e−y2/2−4y+8\frac{p^2}{q} = (2\pi)^{-1/2}e^{-y^2/2 - 4y + 8}, and the integral equals e16 P(Z>8)≈5.5×10−9e^{16}\,\mathbb{P}(Z > 8) \approx 5.5\times10^{-9}, so the variance is about 5.5×10−9−p2≈4.5×10−95.5\times10^{-9} - p^2 \approx 4.5\times10^{-9}. The relative standard deviation per sample is then about 4.5×10−93.2×10−5≈2.1\frac{\sqrt{4.5\times10^{-9}}}{3.2\times10^{-5}} \approx 2.1, and a relative error of 10%10\% needs about (21)2≈450(21)^2 \approx 450 samples. The ratio, about 70007000, is the saving.

Measure spaces

Definition 4.1 σ-algebra, measure, measure space

A σ-algebra on a set XX is a collection B\mathcal{B} of subsets of XX that contains ∅\varnothing and is closed under complements and countable unions. A measure on (X,B)(X, \mathcal{B}) is a function μ:B→[0,+∞]\mu : \mathcal{B} \to [0, +\infty] with μ(∅)=0\mu(\varnothing) = 0 that is countably additive: μ(⋃nEn)=∑nμ(En)\mu\big(\bigcup_nE_n\big) = \sum_n\mu(E_n) for disjoint En∈BE_n \in \mathcal{B}. The triple (X,B,μ)(X, \mathcal{B}, \mu) is a measure space. If μ(X)=1\mu(X) = 1 it is a probability space.

The examples that matter:

  • Lebesgue measure on Rd\mathbb{R}^d with the Lebesgue measurable sets (3A.2 Lebesgue Measure), or its restriction to the Borel sets.
  • Counting measure on any set: #(E)\#(E) is the number of elements of EE (possibly ∞\infty), with every subset measurable.
  • The Dirac mass at a point x0x_0: δx0(E)=1\delta_{x_0}(E) = 1 if x0∈Ex_0 \in E, and 00 otherwise. All the mass at one point.
  • Restrictions and sums. If μ\mu is a measure and AA is measurable, μ⌞A(E)=μ(E∩A)\mu\llcorner A(E) = \mu(E \cap A) is a measure; positive combinations ∑iciμi\sum_ic_i\mu_i of measures are measures.
  • Riemannian volume. On a Riemannian manifold, the volume measure dVdV (9A.1 Riemannian Metrics and Model Spaces), built from Lebesgue measure in coordinate charts.

A function f:X→[0,+∞]f : X \to [0, +\infty] is measurable if {f>t}∈B\{f > t\} \in \mathcal{B} for all tt. The integral ∫f dμ\int f\,d\mu is defined exactly as in 3A.3 The Lebesgue Integral: by simple functions, then by supremum, then by splitting into positive and negative parts. The monotone convergence theorem, Fatou's lemma and the dominated convergence theorem hold, with the same proofs; Tao states them in this generality in §1.4.5. From now on "integrable" means ∫∣f∣ dμ<∞\int|f|\,d\mu < \infty, and L1(μ)L^1(\mu) is the space of such functions (modulo equality μ\mu-almost everywhere).

Generating σ-algebras

A σ-algebra is usually described by naming a few sets it must contain and taking the smallest σ-algebra that does, the one generated by them: the intersection of all σ-algebras containing the named sets, which is again a σ-algebra. The Borel σ-algebra on R\mathbb{R} is generated by the open sets, but equally by the open intervals, or by the half-lines (−∞,t](-\infty, t], because each of these collections can be built from the others by countable operations. That is why a function is measurable as soon as every set {f>t}\{f > t\} is: those sets generate the preimages of all Borel sets.

Generators also decide uniqueness. Two finite measures on R\mathbb{R} that agree on every half-line (−∞,t](-\infty, t] agree on every Borel set. The proof, Dynkin's π–λ theorem, shows that the sets on which the two measures agree form a class closed under the operations needed to reach the whole σ-algebra from the half-lines, which are closed under intersections. The practical consequence is that a measure on the line is determined by much less information than its values on all sets, as the next section uses.

Distribution functions

A finite Borel measure μ\mu on R\mathbb{R} is determined by its distribution function F(t)=μ((−∞,t])F(t) = \mu((-\infty, t]), by the uniqueness just stated. The function FF is nondecreasing, continuous from the right (by continuity of measure from above), with F(−∞)=0F(-\infty) = 0 and F(+∞)=μ(R)F(+\infty) = \mu(\mathbb{R}). Conversely every function with these properties is the distribution function of exactly one measure, the Lebesgue–Stieltjes measure of FF, built as in 3A.2 Lebesgue Measure with the length of an interval (a,b](a, b] replaced by F(b)−F(a)F(b) - F(a). Four examples show the range:

  • F(t)=tF(t) = t on [0,1][0, 1], constant outside: Lebesgue measure on [0,1][0, 1], the uniform distribution.
  • F(t)=1−e−tF(t) = 1 - e^{-t} for t≥0t \geq 0: the exponential distribution, with density e−te^{-t}.
  • F(t)=0F(t) = 0 for t<0t < 0 and 11 for t≥0t \geq 0: the Dirac mass at 00. A jump in FF is a point of positive mass.
  • FF the Cantor function of 3A.2 Lebesgue Measure: a measure on [0,1][0, 1] with no point masses, since FF is continuous, and no density either, since it lives on the Cantor set, which has Lebesgue measure zero. This is the Cantor measure, the uniform distribution on the Cantor set.

Three kinds of measure

The examples are the three pure types, and every σ-finite measure on R\mathbb{R} is a sum of them: an absolutely continuous part with a density, a pure point part made of Dirac masses, and a singular continuous part, like the Cantor measure, that has neither. This is Lebesgue's decomposition. In the analysis of this guide only the first kind appears as a measure one integrates against, and the second as a limit, the Dirac mass that densities concentrate to; the third is a reminder that "no atoms" does not mean "has a density".

Measures on a manifold, previewed

The Riemannian volume in the list above is built with the tools of this chapter. In a coordinate chart, the metric has components gijg_{ij}, and the volume measure is the measure with density det⁡gij\sqrt{\det g_{ij}} with respect to Lebesgue measure in the coordinates. Two charts give the same measure on their overlap, because the change of coordinates multiplies det⁡g\sqrt{\det g} by exactly the inverse of the Jacobian determinant by which it changes Lebesgue measure, the density transformation rule below. A partition of unity (8A.8 Differential Forms and Stokes’ Theorem) glues the local measures into one measure on the whole manifold. So dVdV is a measure with a density in each chart, and the weighted measures e−fdVe^{-f}dV of Perelman's work are measures with density e−fdet⁡ge^{-f}\sqrt{\det g} in coordinates. Everything proved in this chapter for measures on Rd\mathbb{R}^d applies to them chart by chart.

Sums are integrals

Against counting measure on N\mathbb{N}, a function is a sequence ana_n, and

∫a d#=∑nan.\int a\,d\# = \sum_na_n.

So every theorem about integrals is also a theorem about series. Monotone convergence says that sums of non-negative terms can be computed by increasing truncations. Dominated convergence gives Tannery's theorem: if an,k→aka_{n,k} \to a_k as n→∞n \to \infty for each kk, and ∣an,k∣≤Mk|a_{n,k}| \leq M_k with ∑kMk<∞\sum_kM_k < \infty, then ∑kan,k→∑kak\sum_ka_{n,k} \to \sum_ka_k. (For example, (1+xn)n=∑k(nk)xknk→∑kxkk!=ex\big(1 + \frac xn\big)^n = \sum_k\binom nk\frac{x^k}{n^k} \to \sum_k\frac{x^k}{k!} = e^x, with Mk=∣x∣kk!M_k = \frac{|x|^k}{k!}.) And 3A.5 Product Measures and Change of Variables's Tonelli theorem, applied to counting measure twice, says double series of non-negative terms can be summed in either order (2A.8 Infinite Sets).

Pushforward measures

A measurable map carries a measure from one space to another.

Definition 4.2 Pushforward

Let ϕ:X→Y\phi : X \to Y be measurable (preimages of measurable sets are measurable) and μ\mu a measure on XX. The pushforward ϕ∗μ\phi_*\mu is the measure on YY given by ϕ∗μ(A)=μ(ϕ−1(A))\phi_*\mu(A) = \mu(\phi^{-1}(A)).

Proposition 4.3 Change of variables for pushforwards

For every measurable g:Y→[0,∞]g : Y \to [0, \infty] (or g∈L1(ϕ∗μ)g \in L^1(\phi_*\mu)),

∫Yg d(ϕ∗μ)=∫Xg∘ϕ dμ.\int_Yg\,d(\phi_*\mu) = \int_Xg\circ\phi\,d\mu.

Proof. For g=1Ag = 1_A this is the definition: both sides equal μ(ϕ−1(A))\mu(\phi^{-1}(A)). By linearity it holds for simple gg, by monotone convergence for non-negative gg, and by splitting into positive and negative parts for integrable gg.

This proof pattern, indicators, then simple functions, then monotone limits, then differences, proves almost every identity about integrals. It is worth recognising on sight.

Example 4.4 Squaring a uniform random number

Let μ\mu be Lebesgue measure on [0,1][0, 1] and ϕ(x)=x2\phi(x) = x^2. For 0≤a≤10 \leq a \leq 1, ϕ∗μ([0,a])=m({x:x2≤a})=a\phi_*\mu([0, a]) = m(\{x : x^2 \leq a\}) = \sqrt a. A measure on [0,1][0, 1] whose distribution function is a\sqrt a has density ddaa=12a\frac{d}{da}\sqrt a = \frac{1}{2\sqrt a}. So if UU is uniform on [0,1][0, 1], then U2U^2 has density 12y\frac{1}{2\sqrt y} on (0,1](0, 1]: squares of uniform numbers pile up near 00.

Two pushforwards that are used constantly. Lebesgue measure on [0,1)[0, 1), pushed forward by θ↦(cos⁡2πθ,sin⁡2πθ)\theta \mapsto (\cos2\pi\theta, \sin2\pi\theta), is arclength on the unit circle divided by 2π2\pi, the uniform probability on the circle. And if FF is a continuous, strictly increasing distribution function, the uniform measure on (0,1)(0, 1) pushed forward by F−1F^{-1} is the measure with distribution function FF: indeed m({u:F−1(u)≤t})=m({u:u≤F(t)})=F(t)m(\{u : F^{-1}(u) \leq t\}) = m(\{u : u \leq F(t)\}) = F(t). This is inverse transform sampling, the way a computer turns uniform random numbers into samples from any distribution: for the exponential law, F−1(u)=−log⁡(1−u)F^{-1}(u) = -\log(1 - u).

A pushforward with two preimages. If XX is a standard normal random variable, with density φ(x)=(2π)−1/2e−x2/2\varphi(x) = (2\pi)^{-1/2}e^{-x^2/2}, the law of X2X^2 has a density on (0,∞)(0, \infty) found by adding the contributions of the two preimages ±y\pm\sqrt y of each value yy: each contributes φ(y)2y\frac{\varphi(\sqrt y)}{2\sqrt y}, by the Jacobian rule below, so the density is

φ(y)y=12πye−y/2.\frac{\varphi(\sqrt y)}{\sqrt y} = \frac{1}{\sqrt{2\pi y}}e^{-y/2} .

This is the chi-squared distribution with one degree of freedom. The density is infinite at y=0y = 0 but integrable there, like y−1/2y^{-1/2}, an example of a perfectly good probability density that is unbounded.

Densities

Definition 4.5 Measure with a density

If ρ≥0\rho \geq 0 is measurable on a measure space (X,μ)(X, \mu), the formula ν(E)=∫Eρ dμ\nu(E) = \int_E\rho\,d\mu defines a measure (countable additivity is monotone convergence). We write dν=ρ dμd\nu = \rho\,d\mu and call ρ\rho the density of ν\nu with respect to μ\mu. Then ∫g dν=∫gρ dμ\int g\,d\nu = \int g\rho\,d\mu for every non-negative measurable gg.

The last identity is again proved by indicators, simple functions and monotone limits. Integrating against ρ dμ\rho\,d\mu is the same as weighting the integrand by ρ\rho. For probability densities on Rd\mathbb{R}^d, ∫ρ dx=1\int\rho\,dx = 1 and ν(E)\nu(E) is the probability that a random point lands in EE.

Which measures have densities? A necessary condition is that ν(E)=0\nu(E) = 0 whenever μ(E)=0\mu(E) = 0: a density can't put mass on a set that μ\mu doesn't see. This is called absolute continuity, ν≪μ\nu \ll \mu. The Dirac mass δ0\delta_0 is not absolutely continuous with respect to Lebesgue measure (m({0})=0m(\{0\}) = 0 but δ0({0})=1\delta_0(\{0\}) = 1), so it has no density, however tempting it is to write "δ(x)\delta(x)". The converse is the theorem.

Absolute continuity in examples. The uniform probability on [0,1][0, 1] is absolutely continuous with respect to Lebesgue measure on R\mathbb{R}, but not conversely: the interval [2,3][2, 3] has Lebesgue measure 11 and uniform probability 00. The standard Gaussian and Lebesgue measure are absolutely continuous with respect to each other, since the Gaussian density is positive everywhere, so they have exactly the same null sets, and "almost everywhere" means the same thing for both. The Dirac mass and Lebesgue measure are mutually singular: each lives on a set the other ignores, the point {0}\{0\} and its complement. Perelman's measure e−fdVe^{-f}dV has a positive density with respect to dVdV, so its null sets are those of the Riemannian volume: reweighting by e−fe^{-f} changes how much each region counts, never whether it counts at all.

Theorem 4.6 Radon–Nikodym theorem

Let μ\mu and ν\nu be σ-finite measures on the same σ-algebra, with ν≪μ\nu \ll \mu. Then there is a measurable ρ≥0\rho \geq 0, unique μ\mu-almost everywhere, with dν=ρ dμd\nu = \rho\,d\mu. It is written ρ=dνdμ\rho = \frac{d\nu}{d\mu}.

(σ-finite means the space is a countable union of sets of finite measure, as Rd\mathbb{R}^d is for Lebesgue measure.) The shortest proof, due to John von Neumann, uses one tool from later in the route: the Riesz representation theorem for Hilbert spaces (4A.5 Hilbert Spaces and Lax–Milgram, whose proof doesn't use this chapter), applied to L2L^2 (3A.7 Lᵖ Spaces and Jensen’s Inequality). Read it now for the idea, or come back after Course 4.

Proof. Uniqueness. If ρ\rho and ρ′\rho' both work and μ\mu is finite, let E={ρ>ρ′}E = \{\rho > \rho'\}. Then ∫E(ρ−ρ′) dμ=ν(E)−ν(E)=0\int_E(\rho - \rho')\,d\mu = \nu(E) - \nu(E) = 0 with a positive integrand on EE, so μ(E)=0\mu(E) = 0 (3A.3 The Lebesgue Integral); likewise {ρ<ρ′}\{\rho < \rho'\}. (If ν(E)=∞\nu(E) = \infty, intersect EE with sets of finite ν\nu-measure first.)

Existence, for finite μ\mu and ν\nu. Let σ=μ+ν\sigma = \mu + \nu, a finite measure. The map h↦∫h dνh \mapsto \int h\,d\nu is linear on L2(σ)L^2(\sigma) and bounded, since by Cauchy–Schwarz ∣∫h dν∣≤∫∣h∣ dσ≤σ(X)1/2∥h∥L2(σ)\big|\int h\,d\nu\big| \leq \int|h|\,d\sigma \leq \sigma(X)^{1/2}\|h\|_{L^2(\sigma)}. By the Riesz representation theorem there is g∈L2(σ)g \in L^2(\sigma) with

∫h dν=∫hg dσfor all h∈L2(σ).(∗)\int h\,d\nu = \int hg\,d\sigma \qquad \text{for all } h \in L^2(\sigma). \tag{$*$}

With h=1Eh = 1_E, ν(E)=∫Eg dσ\nu(E) = \int_Eg\,d\sigma for every EE; since 0≤ν(E)≤σ(E)0 \leq \nu(E) \leq \sigma(E), this forces 0≤g≤10 \leq g \leq 1 σ\sigma-almost everywhere (if g>1g > 1 on a set EE of positive measure, then ν(E)>σ(E)\nu(E) > \sigma(E)). Rewrite (∗)(*) as

∫h(1−g) dν=∫hg dμ.\int h(1 - g)\,d\nu = \int hg\,d\mu.

On N={g=1}N = \{g = 1\}, taking h=1Nh = 1_N gives μ(N)=0\mu(N) = 0, hence ν(N)=0\nu(N) = 0 by absolute continuity. Now take h=1E(1+g+⋯+gk−1)h = 1_E(1 + g + \cdots + g^{k-1}), which is bounded: ∫E(1−gk) dν=∫Eg(1+⋯+gk−1) dμ\int_E(1 - g^k)\,d\nu = \int_Eg(1 + \cdots + g^{k-1})\,d\mu. As k→∞k \to \infty, gk→0g^k \to 0 off NN, so the left side tends to ν(E∖N)=ν(E)\nu(E \setminus N) = \nu(E) (dominated convergence), and the right side increases to ∫Eρ dμ\int_E\rho\,d\mu with ρ=g1−g\rho = \frac{g}{1 - g} off NN (monotone convergence). So ν(E)=∫Eρ dμ\nu(E) = \int_E\rho\,d\mu.

σ-finite case. Cut XX into countably many disjoint sets on which both μ\mu and ν\nu are finite, find the density on each, and add them up, using countable additivity.

In importance sampling, the weight p/qp/q is dPdQ\frac{dP}{dQ}, and the identity that makes the method unbiased is ∫g dP=∫g dPdQ dQ\int g\,dP = \int g\,\frac{dP}{dQ}\,dQ.

Densities transform with a Jacobian. When a measure with a density is pushed forward by a smooth invertible map, the result has a density too, and the formula anticipates 3A.5 Product Measures and Change of Variables. If dμ=ρ dxd\mu = \rho\,dx on Rd\mathbb{R}^d and ϕ\phi is a diffeomorphism, then

d(ϕ∗μ)dy(y)=ρ(ϕ−1(y))∣det⁡Dϕ(ϕ−1(y))∣.\frac{d(\phi_*\mu)}{dy}(y) = \frac{\rho(\phi^{-1}(y))}{|\det D\phi(\phi^{-1}(y))|} .

For the squaring map on [0,1][0, 1] with ρ=1\rho = 1, ϕ−1(y)=y\phi^{-1}(y) = \sqrt y and ϕ′(y)=2y\phi'(\sqrt y) = 2\sqrt y, so the density is 12y\frac{1}{2\sqrt y}, as in the example above. The Jacobian factor records how much the map stretches volume: where it stretches, the same mass is spread thinner, and the density drops.

Chain rules for densities. Radon–Nikodym derivatives behave like ordinary derivatives. If ν≪μ≪λ\nu \ll \mu \ll \lambda, then dνdλ=dνdμ⋅dμdλ\frac{d\nu}{d\lambda} = \frac{d\nu}{d\mu}\cdot\frac{d\mu}{d\lambda}, and if μ\mu and ν\nu are mutually absolutely continuous, dμdν=(dνdμ)−1\frac{d\mu}{d\nu} = \big(\frac{d\nu}{d\mu}\big)^{-1}. In importance sampling, the weight is dPdQ\frac{dP}{dQ}, and reversing the roles of the two distributions inverts it. Both rules are proved by checking them on indicators and passing to limits, the pattern above.

Why σ-finiteness is needed. The Radon–Nikodym theorem assumes σ-finite measures, and the hypothesis cannot be dropped. On [0,1][0, 1], let μ\mu be counting measure, which is not σ-finite since [0,1][0, 1] is uncountable, and ν\nu Lebesgue measure. Then ν≪μ\nu \ll \mu, since the only set of counting measure zero is the empty set. A density would have to satisfy ν({x})=ρ(x)μ({x})\nu(\{x\}) = \rho(x)\mu(\{x\}), that is 0=ρ(x)0 = \rho(x) for every xx, and then ν\nu would be zero. So there is no density. The σ-finite hypothesis rules out measures like counting measure on an uncountable set, which see every point but cannot be cut into countably many pieces of finite size.

Conditional expectation. The Radon–Nikodym theorem defines one of the central notions of probability. If XX is an integrable random variable and G\mathcal G is a smaller σ-algebra, representing partial information, the formula ν(A)=E[X1A]\nu(A) = \mathbb{E}[X\mathbf 1_A] for A∈GA \in \mathcal G defines a signed measure on G\mathcal G that is absolutely continuous with respect to P\mathbb{P} restricted to G\mathcal G. Its density is a G\mathcal G-measurable random variable, the conditional expectation E[X ∣ G]\mathbb{E}[X\,|\,\mathcal G], the best guess of XX given the information in G\mathcal G. The martingales and stochastic integrals of 6D.2 Martingales and the Itô Integral, and through them the mathematics of finance, are built on it.

A density is defined only almost everywhere. Changing a density on a null set does not change the measure it defines, so "the value of the density at a point" has no meaning in general: the density of the uniform distribution on [0,1][0, 1] could be 11 on [0,1][0, 1], or 11 on the irrationals and 77 on the rationals, and both define the same measure. The Radon–Nikodym theorem accordingly asserts uniqueness only almost everywhere. There is nevertheless a canonical value at almost every point, the limit of ν(B(x,r))m(B(x,r))\frac{\nu(B(x, r))}{m(B(x, r))} as r→0r \to 0, the mass of a small ball divided by its volume; Lebesgue's differentiation theorem of 3A.6 Modes of Convergence and Differentiation shows that this limit exists and equals the density almost everywhere. So a density is recovered, almost everywhere, by measuring small balls, which is how a physicist would define it in the first place.

The Dirac mass as a limit of densities

The Dirac mass has no density, but it is a limit of densities in a precise sense.

Proposition 4.7 Concentrating densities converge to δ\delta

Let ρ≥0\rho \geq 0 be integrable on Rd\mathbb{R}^d with ∫ρ=1\int\rho = 1, and ρε(x)=ε−dρ(x/ε)\rho_\varepsilon(x) = \varepsilon^{-d}\rho(x/\varepsilon). Then for every bounded continuous gg,

∫g ρε dx⟶g(0)=∫g dδ0(ε→0).\int g\,\rho_\varepsilon\,dx \longrightarrow g(0) = \int g\,d\delta_0 \qquad (\varepsilon \to 0).

Proof. Substituting x=εyx = \varepsilon y (the scaling rule m(λE)=λdm(E)m(\lambda E) = \lambda^dm(E) of 3A.2 Lebesgue Measure, extended to integrals in 3A.5 Product Measures and Change of Variables), ∫gρε dx=∫g(εy)ρ(y) dy\int g\rho_\varepsilon\,dx = \int g(\varepsilon y)\rho(y)\,dy. The integrand converges to g(0)ρ(y)g(0)\rho(y) and is dominated by (sup⁡∣g∣)ρ(\sup|g|)\rho, which is integrable. By dominated convergence the integral tends to g(0)∫ρ=g(0)g(0)\int\rho = g(0).

Figure 4.1. Gaussian densities with standard deviations 1,12,14,1101, \tfrac12, \tfrac14, \tfrac1{10}, each of total mass 11. Integrated against a continuous function, they give values closer and closer to the function's value at 00: they converge to the Dirac mass δ0\delta_0 (arrow) in the sense of Proposition 4.7.

The rescaled family ρε\rho_\varepsilon is the approximate identity of 2B.5 Uniform Convergence and Arzelà–Ascoli and 2B.7 Fourier Series and the First Heat Equation, now seen as a family of measures converging to a point mass. This kind of convergence, testing against continuous functions, is called weak convergence of measures. The heat kernel at time t→0t \to 0 converges to δ0\delta_0 in exactly this sense (6A.3 The Heat Equation on ℝⁿ), which is what it means for the heat equation to start from given initial data. In 12A.9 Pseudolocality, Perelman's conjugate heat kernel starts as a Dirac mass at a point and spreads backwards in time.

Signed measures and total variation

Differences of measures are useful too. A signed measure is a countably additive function on a σ-algebra with values in R\mathbb{R}; the standard example is ν(E)=∫Ef dμ\nu(E) = \int_Ef\,d\mu for an integrable ff of either sign. The Hahn–Jordan decomposition splits any finite signed measure as ν=ν+−ν−\nu = \nu^+ - \nu^-, a difference of two measures living on disjoint sets, and for ν=f dμ\nu = f\,d\mu these are f+dμf^+d\mu and f−dμf^-d\mu. The total variation ∣ν∣=ν++ν−|\nu| = \nu^+ + \nu^- measures the size of ν\nu regardless of sign.

For two probability measures with densities pp and qq with respect to μ\mu, the total variation distance

sup⁡E∣P(E)−Q(E)∣=12∫∣p−q∣ dμ\sup_E|P(E) - Q(E)| = \frac12\int|p - q|\,d\mu

is the largest difference in probability that any event can show between them. It is bounded by the relative entropy of the end of this chapter through Pinsker's inequality, sup⁡E∣P(E)−Q(E)∣≤12H(P ∣ Q)\sup_E|P(E) - Q(E)| \leq \sqrt{\frac12H(P\,|\,Q)}: small relative entropy forces small total variation. Entropy is the stronger measure of difference, and controlling it, as the log-Sobolev inequalities of 6A.12 Entropy, Information and Diffusion do, controls everything weaker.

Measures as linear functionals

A measure can be recovered from its integrals of continuous functions, and this is the deepest reason weak convergence is natural. On Rd\mathbb{R}^d, or any reasonable space, every positive linear map Λ\Lambda from continuous functions of compact support to R\mathbb{R}, positive meaning that Λ(g)≥0\Lambda(g) \geq 0 when g≥0g \geq 0, is integration against exactly one measure that is finite on compact sets: Λ(g)=∫g dμ\Lambda(g) = \int g\,d\mu. This is the Riesz–Markov representation theorem. The Dirac mass is the functional g↦g(0)g \mapsto g(0), Lebesgue measure is the Riemann integral of continuous functions, and a probability density is the functional g↦∫gρ dxg \mapsto \int g\rho\,dx. Seen this way, a measure is an object that eats continuous functions and returns numbers linearly and positively, and convergence of measures is naturally convergence of what they return, which is weak convergence. Functional analysis (4A.5 Hilbert Spaces and Lax–Milgram) takes this point of view systematically.

Weak convergence: what it sees and what it misses

The convergence of densities to the Dirac mass tests measures against continuous functions, and its examples clarify what it means. The Dirac masses δ1/n\delta_{1/n} converge weakly to δ0\delta_0, since g(1n)→g(0)g(\frac1n) \to g(0) for continuous gg, yet δ1/n({0})=0\delta_{1/n}(\{0\}) = 0 for every nn while δ0({0})=1\delta_0(\{0\}) = 1. Weak convergence does not give convergence on every set; it gives convergence on sets whose boundary carries no mass of the limit, and {0}\{0\} is all boundary. The Dirac masses δn\delta_n at the integers n→∞n \to \infty converge to nothing as probability measures: tested against a continuous function that vanishes at infinity, they converge to 00, but the total mass 11 has escaped. That is the horizontal escape of 3A.3 The Lebesgue Integral for measures, and the condition that excludes it is tightness: for every ε\varepsilon there is a compact set carrying all but ε\varepsilon of the mass of every measure in the family. Prokhorov's theorem says that a tight family of probability measures always has a weakly convergent subsequence, the measure-theoretic counterpart of the compactness theorems of 2B.5 Uniform Convergence and Arzelà–Ascoli.

Point masses in physics. The Dirac mass entered physics as the density of a point charge or a point mass. A charge qq at the origin has charge density qδ0q\delta_0, a measure rather than a function, and the electrostatic potential it produces solves Poisson's equation with that measure on the right-hand side; the solution, q4πε0∣x∣\frac{q}{4\pi\varepsilon_0|x|} in three dimensions, is the Green's function of the Laplacian. Paul Dirac's "delta function" of the 1920s was a convenient fiction until Laurent Schwartz's theory of distributions made it rigorous, and in measure theory it was never a fiction at all: it is the simplest measure there is. The heat kernel started from a point, in 3A.8 Convolution and Mollifiers and 6A.3 The Heat Equation on ℝⁿ, is the solution of the heat equation with initial value δ0\delta_0, and its convergence to δ0\delta_0 as t→0t \to 0 is the weak convergence above.

Probability as measure theory

Kolmogorov's 1933 axioms identify probability with measure theory of total mass 11.

Probability Measure theory
sample space Ω\Omega, events, probability P\mathbb{P} measure space with P(Ω)=1\mathbb{P}(\Omega) = 1
random variable XX measurable function X:Ω→RX : \Omega \to \mathbb{R}
law (distribution) of XX pushforward X∗PX_*\mathbb{P} on R\mathbb{R}
density of XX Radon–Nikodym derivative dX∗Pdm\frac{dX_*\mathbb{P}}{dm}
expectation E[g(X)]\mathbb{E}[g(X)] ∫g∘X dP=∫g d(X∗P)\int g\circ X\,d\mathbb{P} = \int g\,d(X_*\mathbb{P})
almost surely P\mathbb{P}-almost everywhere
independence product measure (3A.5 Product Measures and Change of Variables)

What the axioms leave to construct. Kolmogorov's axioms say what a probability space is, but they do not by themselves produce the spaces that probability needs. A sequence of independent fair coin tosses requires a probability measure on the set of all infinite sequences of heads and tails, consistent with the probabilities of every finite string, and its existence is a theorem, Kolmogorov's extension theorem, proved by building an outer measure from the finite strings and applying Carathéodory's criterion of 3A.2 Lebesgue Measure. For coin tosses, the binary-digit model of 3A.2 Lebesgue Measure gives the measure directly as Lebesgue measure on [0,1][0, 1]. Brownian motion, a random continuous path, needs the same kind of construction on a space of functions (6D.1 Brownian Motion). Measure theory is what makes these objects exist; the axioms only say what to require of them.

Example 4.8 Mean and variance from a density

Let XX have the exponential law, density e−te^{-t} on [0,∞)[0, \infty) (Exercise 4.10). Its mean is EX=∫0∞te−t dt=1\mathbb{E}X = \int_0^\infty te^{-t}\,dt = 1 (integrate by parts, or differentiate ∫0∞e−atdt=1a\int_0^\infty e^{-at}dt = \frac1a under the integral sign at a=1a = 1, 3A.3 The Lebesgue Integral), and EX2=∫0∞t2e−tdt=2\mathbb{E}X^2 = \int_0^\infty t^2e^{-t}dt = 2, so the variance is EX2−(EX)2=1\mathbb{E}X^2 - (\mathbb{E}X)^2 = 1. Markov's inequality gives P(X≥5)≤15\mathbb{P}(X \geq 5) \leq \frac15; the truth is e−5≈0.0067e^{-5} \approx 0.0067. Markov is crude, but it needs only the mean, and that is its virtue: it is the inequality that turns integral bounds into bounds on the size of exceptional sets, all through Book 4A.

The pushforward formula, Proposition 4.3, is the statement that the expectation of g(X)g(X) can be computed either on the sample space or on the real line using the law of XX. Markov's inequality (3A.3 The Lebesgue Integral) becomes P(X≥t)≤E[X]/t\mathbb{P}(X \geq t) \leq \mathbb{E}[X]/t for X≥0X \geq 0, and applied to (X−EX)2(X - \mathbb{E}X)^2 it becomes Chebyshev's inequality, from which the weak law of large numbers follows in a line (Exercise 4.12).

The Gaussian measure in many dimensions

The standard Gaussian measure on Rn\mathbb{R}^n is dγn=(2π)−n/2e−∣x∣2/2dxd\gamma_n = (2\pi)^{-n/2}e^{-|x|^2/2}dx, a probability measure whose normalisation is computed in 3A.5 Product Measures and Change of Variables. Since e−∣x∣2/2=∏ie−xi2/2e^{-|x|^2/2} = \prod_ie^{-x_i^2/2}, it is the product of nn one-dimensional Gaussians: its coordinates are independent standard normal random variables. Since ∣x∣2|x|^2 is unchanged by rotations, it is rotation invariant: pushed forward by any orthogonal map, it is unchanged. These two properties characterise it among product measures, and they are why the Gaussian appears in every rotation-invariant problem, including the heat kernel.

In high dimensions it behaves unexpectedly. The expected value of ∣x∣2|x|^2 is nn, the sum of nn unit variances, and its fluctuations are of order n\sqrt n, so ∣x∣|x| is close to n\sqrt n for most of the mass: the Gaussian measure in high dimension concentrates near the sphere of radius n\sqrt n, not near the origin where its density is largest. The density is largest at the origin, but there is so little volume near the origin that almost none of the mass lives there. This concentration of measure is a first warning that, in high dimensions, densities and volumes compete, and the balance between them is what an entropy measures.

Variance, Chebyshev and Monte Carlo

The variance of a random variable with mean mm is Var⁡X=E[(X−m)2]\operatorname{Var}X = \mathbb{E}[(X - m)^2]. Markov's inequality applied to (X−m)2(X - m)^2 gives Chebyshev's inequality,

P(∣X−m∣≥t)≤Var⁡Xt2,\mathbb{P}(|X - m| \geq t) \leq \frac{\operatorname{Var}X}{t^2},

which says a random variable rarely strays far from its mean by more than a few standard deviations. For the average XˉN\bar X_N of NN independent copies of XX, the variance is Var⁡XN\frac{\operatorname{Var}X}{N}, so the average is within about σN\frac{\sigma}{\sqrt N} of the mean, with σ\sigma the standard deviation. That is the accuracy of a Monte Carlo estimate, and it explains the importance sampling example: the cost of an estimate is set by the variance of what is averaged, and reweighting reduces that variance. The strong law of large numbers says more, that XˉN→m\bar X_N \to m almost surely, a statement about a null set of exceptional infinite sequences of samples, exactly the kind of statement measure theory was built to make.

The Gaussian's tails

The importance sampling example estimated the probability that a standard normal variable exceeds 44. Measure theory gives a quick bound. For t>0t > 0 and any λ>0\lambda > 0, Markov's inequality applied to eλXe^{\lambda X} gives P(X≥t)≤e−λt EeλX\mathbb{P}(X \geq t) \leq e^{-\lambda t}\,\mathbb{E}e^{\lambda X}, and completing the square in the Gaussian integral gives EeλX=eλ2/2\mathbb{E}e^{\lambda X} = e^{\lambda^2/2}. Choosing λ=t\lambda = t,

P(X≥t)≤e−t2/2.\mathbb{P}(X \geq t) \leq e^{-t^2/2} .

At t=4t = 4 this is e−8≈3.4×10−4e^{-8} \approx 3.4\times10^{-4}, an overestimate by a factor of about ten of the true value, about 3.2×10−53.2\times10^{-5}, but of the right exponential type. This Chernoff bound is the simplest instance of a large deviation estimate: rare events for sums of random variables have probabilities that decay exponentially, at a rate given by an optimisation over λ\lambda, and the optimising tilt eλxe^{\lambda x} is exactly the reweighting that importance sampling uses.

The uniform measure on a sphere

Rotation invariance of the Gaussian gives a clean description of the uniform probability on the sphere Sn−1S^{n-1}. Push the Gaussian measure on Rn\mathbb{R}^n forward by x↦x∣x∣x \mapsto \frac{x}{|x|}, defined except at the origin, a null set. The result is a probability measure on the sphere that is invariant under every rotation, because the Gaussian is, and the uniform measure is the only rotation-invariant probability on the sphere. So a uniformly random point on a sphere of any dimension can be produced from nn independent normal samples by normalising. The same idea, writing a rotation-invariant measure on Rn\mathbb{R}^n as a radial part times the uniform measure on spheres, is polar coordinates, the subject of 3A.5 Product Measures and Change of Variables.

Expectations from tails. For a non-negative random variable, the layer cake formula of 3A.3 The Lebesgue Integral reads

EX=∫0∞P(X>t) dt.\mathbb{E}X = \int_0^\infty\mathbb{P}(X > t)\,dt .

For the exponential law, P(X>t)=e−t\mathbb{P}(X > t) = e^{-t}, and the integral is 11, the mean computed above. The formula turns tail estimates into estimates of expectations, and it is how bounds like Chebyshev's and Chernoff's below are converted into bounds on moments.

Weighted measures e−fe^{-f}

A positive density can always be written as ρ=e−f\rho = e^{-f}, with f=−log⁡ρf = -\log\rho. There are good reasons to do so.

In the world Model The Boltzmann distribution

In a physical system in equilibrium with its surroundings at temperature TT, the probability of finding it in a state of energy EE is proportional to e−E/kTe^{-E/kT}, where kk is Boltzmann's constant. As a measure on the space of states, the equilibrium distribution is

dμ=1Z e−E/kT d(states),Z=∫e−E/kT d(states),d\mu = \frac{1}{Z}\,e^{-E/kT}\,d(\text{states}), \qquad Z = \int e^{-E/kT}\,d(\text{states}),

the normalising constant ZZ being the partition function. Writing the density as an exponential puts the energy in the exponent, where it adds: two independent systems have energies that add and densities that multiply. Low-energy states are exponentially favoured, and temperature sets the exchange rate. Quantities like the entropy −∫ρlog⁡ρ-\int\rho\log\rho and the free energy then become integrals of EE and log⁡Z\log Z against the measure, which is how thermodynamics is computed from statistical mechanics.

Figure 4.2. Densities ρ=e−f/Z\rho = e^{-f}/Z for three potentials ff (faint curves): a single well, a double well, and a tilted double well. Wherever ff is low, the measure is concentrated. Changing ff by a constant changes nothing after normalisation; changing it by a small function reweights the measure smoothly.
In the world In use Bayesian updating is reweighting

In Bayesian statistics, beliefs about an unknown parameter θ\theta are a probability measure, the prior π(dθ)\pi(d\theta). Observing data DD with likelihood L(D∣θ)L(D \mid \theta) replaces it by the posterior

π(dθ∣D)=L(D∣θ)∫L(D∣θ′) π(dθ′) π(dθ).\pi(d\theta \mid D) = \frac{L(D \mid \theta)}{\int L(D \mid \theta')\,\pi(d\theta')}\,\pi(d\theta).

The posterior has density L/ZL/Z with respect to the prior: Bayes' rule is a Radon–Nikodym reweighting. Writing L=e−ℓL = e^{-\ell} (with ℓ\ell the negative log-likelihood) puts the data in the exponent, and the posterior is a Boltzmann distribution with ℓ\ell as its energy, which is exactly how sampling algorithms for posteriors treat it.

Where this goes Perelman's probability measures

In 12A.2 Ricci Flow as a Gradient Flow Perelman considers a Riemannian manifold with metric gg and a function ff, and the measure e−f dVe^{-f}\,dV. His first move is to fix the measure: he lets ff evolve so that e−fdVe^{-f}dV stays constant in time, and with that normalisation Ricci flow becomes the gradient flow of the functional F(g,f)=∫(R+∣∇f∣2)e−fdV\mathcal{F}(g, f) = \int(R + |\nabla f|^2)e^{-f}dV. In 12A.3 The 𝓦-Entropy the weight becomes

dμ=(4πτ)−n/2 e−f dV,∫dμ=1,d\mu = (4\pi\tau)^{-n/2}\,e^{-f}\,dV, \qquad \int d\mu = 1,

a probability measure with a scale parameter τ\tau, and the W\mathcal{W}-entropy is an integral against it. The factor (4πτ)−n/2(4\pi\tau)^{-n/2} is the normalisation of the Gaussian (computed in 3A.5 Product Measures and Change of Variables): on flat Rn\mathbb{R}^n, with f=∣x∣2/4τf = |x|^2/4\tau, dμd\mu is exactly the Gaussian probability measure, the heat kernel. The language of this chapter (densities, normalisation, reweighting, integrals against a probability measure) is the language in which Perelman's entropy is written. Thread E runs from here through entropy and the log-Sobolev inequality (3A.7 Lᵖ Spaces and Jensen’s Inequality, 6A.12 Entropy, Information and Diffusion) to W\mathcal{W}.

Relative entropy, previewed

Given two probability measures with P≪QP \ll Q and density ρ=dPdQ\rho = \frac{dP}{dQ}, the relative entropy of PP with respect to QQ is

H(P ∣ Q)=∫ρlog⁡ρ dQ=∫log⁡ρ dP.H(P\,|\,Q) = \int\rho\log\rho\,dQ = \int\log\rho\,dP .

It is non-negative, and zero only when P=QP = Q, by Jensen's inequality (3A.7 Lᵖ Spaces and Jensen’s Inequality, where it is proved). It measures how far PP is from QQ in a way adapted to densities: a measure concentrated on a small part of the space has a large density there and a large relative entropy. Perelman's measure dμ=(4πτ)−n/2e−fdVd\mu = (4\pi\tau)^{-n/2}e^{-f}dV fits this directly. Its density with respect to dVdV is ρ=(4πτ)−n/2e−f\rho = (4\pi\tau)^{-n/2}e^{-f}, so log⁡ρ=−f−n2log⁡(4πτ)\log\rho = -f - \frac n2\log(4\pi\tau), and

∫ρlog⁡ρ dV=−∫f dμ−n2log⁡(4πτ).\int\rho\log\rho\,dV = -\int f\,d\mu - \frac n2\log(4\pi\tau) .

The term ∫f dμ\int f\,d\mu in his entropy W\mathcal W is therefore, up to sign and a constant, the entropy of μ\mu relative to the volume. Writing densities as e−fe^{-f} makes this term appear in its simplest form, which is one more reason for the convention.

Why write a density as e−fe^{-f}

The world boxes give physical and statistical reasons; there are mathematical ones too. A density of the form e−fe^{-f} is automatically positive, so no constraint needs to be imposed when ff is varied, which matters when the density is an unknown in a variational problem, as Perelman's is. Its logarithmic derivative is simple: ∇log⁡ρ=−∇f\nabla\log\rho = -\nabla f, so integration by parts against the weighted measure produces the term −⟨∇f,⋅⟩-\langle\nabla f, \cdot\rangle, the drift of the weighted Laplacian Δf=Δ−⟨∇f,∇⋅⟩\Delta_f = \Delta - \langle\nabla f, \nabla\cdot\rangle of 11B.1 Ricci Solitons. Products of densities become sums of potentials, so independent pieces combine additively. And the normalising constant becomes a shift of ff by a constant, which changes no derivative of ff. Each property simplifies a computation that Perelman performs.

From one measure to products and changes of variables

The chapter has generalised the integral to any measure space and developed the operations on measures: pushforward along maps, reweighting by densities, the Radon–Nikodym theorem, weak limits that produce Dirac masses, and the dictionary between probability and measure theory. It has also used, more than once, facts that it has not proved: the normalising constant (2π)−n/2(2\pi)^{-n/2} of the Gaussian measure, the scaling of integrals under x↦εxx \mapsto \varepsilon x, and the Jacobian factor in the density of a pushforward.

The Gaussian is the example to keep in mind. Its density on Rn\mathbb{R}^n factors as a product of one-dimensional densities, and to integrate it one would like to integrate one coordinate at a time, which needs a theorem about integrals over products. Its normalisation in one dimension, ∫e−x2/2dx=2π\int e^{-x^2/2}dx = \sqrt{2\pi}, is classically computed by squaring the integral and changing to polar coordinates in the plane, which needs a change of variables formula for Lebesgue integrals. And the factor (4πτ)−n/2(4\pi\tau)^{-n/2} in Perelman's measure is exactly this normalisation, rescaled.

3A.5 Product Measures and Change of Variables supplies both tools. It builds product measures, proves the Fubini and Tonelli theorems that let a double integral be computed one variable at a time, and proves the change of variables formula with its Jacobian, including polar coordinates. Then it computes the Gaussian integral, the volumes of balls and spheres in every dimension, and the scaling rules that every later estimate uses. What to carry forward from this chapter: measure spaces and the integral on them; counting measure and Dirac masses; distribution functions and the three kinds of measure; pushforwards and the change of variables formula for them; densities, absolute continuity and the Radon–Nikodym theorem; weak convergence and tightness; the probability dictionary; and the weighted measures e−fe^{-f}, with their normalisation and relative entropy.

The partition function knows the averages

The normalising constant of a weighted measure is not just a nuisance; it contains information. For the family dμβ=1Z(β)e−βE dλd\mu_\beta = \frac1{Z(\beta)}e^{-\beta E}\,d\lambda, with Z(β)=∫e−βE dλZ(\beta) = \int e^{-\beta E}\,d\lambda and β\beta an inverse temperature, differentiating under the integral sign (3A.3 The Lebesgue Integral) gives

ddβlog⁡Z(β)=1Z∫(−E)e−βE dλ=−∫E dμβ,\frac{d}{d\beta}\log Z(\beta) = \frac{1}{Z}\int(-E)e^{-\beta E}\,d\lambda = -\int E\,d\mu_\beta,

minus the average energy, and a second derivative gives its variance. Statistical mechanics computes averages this way, from a single function ZZ. Perelman's normalisation (4πτ)−n/2(4\pi\tau)^{-n/2} plays the same role for a family indexed by the scale τ\tau: it is the factor that keeps the total mass 11 as τ\tau changes, and the way it depends on τ\tau enters every derivative of his entropy with respect to the scale. On flat space, where f=∣x∣24τf = \frac{|x|^2}{4\tau}, the normalisation is the Gaussian integral of 3A.5 Product Measures and Change of Variables, and the average of ff against μ\mu is exactly n2\frac n2, a value that reappears as the constant in his functional.

History

Johann Radon proved the density theorem for measures on Rn\mathbb{R}^n in 1913, and Otto Nikodym extended it to abstract measure spaces in 1930. Maurice Fréchet had already defined integrals on abstract sets in 1915. Andrei Kolmogorov's Grundbegriffe der Wahrscheinlichkeitsrechnung (1933) founded probability on measure theory. Ludwig Boltzmann introduced the exponential distribution of energies in the 1860s and 1870s, and J. Willard Gibbs systematised it as the canonical ensemble in his Elementary Principles in Statistical Mechanics (1902). Importance sampling appears in Herman Kahn and Andy Marshall's 1953 paper on reducing sample sizes in Monte Carlo computations.

Recall Where we stand

A measure space is a σ-algebra with a countably additive measure, and integration and its convergence theorems work in that generality. Counting measure turns sums into integrals; Dirac masses put all the mass at a point; measurable maps push measures forward, and expectations can be computed on either side. A measure with a density is ρ dμ\rho\,d\mu; the Radon–Nikodym theorem gives densities for absolutely continuous measures; concentrating densities converge to Dirac masses. Probability is measure theory with total mass 11. Writing densities as e−fe^{-f} puts energy in the exponent, as in the Boltzmann distribution, Bayes' rule and Perelman's weighted measures. 3A.5 Product Measures and Change of Variables builds product measures, proves Fubini–Tonelli and the change-of-variables formula in Rn\mathbb{R}^n, and computes the Gaussian integral that normalises (4πτ)−n/2e−f(4\pi\tau)^{-n/2}e^{-f}.

Exercises

Exercise 4.9 Integrating against simple measures

Compute ∫f dμ\int f\,d\mu for (a) μ=δ2\mu = \delta_2 and f(x)=x2f(x) = x^2; (b) μ=∑n≥12−nδn\mu = \sum_{n\geq1}2^{-n}\delta_n (on R\mathbb{R}) and f(x)=xf(x) = x; (c) μ=12δ0+12m⌞[0,1]\mu = \tfrac12\delta_0 + \tfrac12m\llcorner[0, 1] and f(x)=exf(x) = e^x. Which of these measures have a density with respect to Lebesgue measure?

Solution

(a) 44. (b) ∑n2−n=2\sum n2^{-n} = 2. (c) 12+12(e−1)=e2\tfrac12 + \tfrac12(e - 1) = \tfrac e2. None of them: each puts positive mass on a Lebesgue-null set of points.

Exercise 4.10 Pushforwards

(a) Let UU be uniform on [0,1][0, 1]. Find the density of −log⁡U-\log U. (b) Let Θ\Theta be uniform on [0,2π)[0, 2\pi). Find the density of cos⁡Θ\cos\Theta on (−1,1)(-1, 1). (c) Explain why (a) is how computers generate exponentially distributed random numbers from uniform ones.

Solution

(a) P(−log⁡U>t)=P(U<e−t)=e−t\mathbb{P}(-\log U > t) = \mathbb{P}(U < e^{-t}) = e^{-t}, so the density is e−te^{-t} on [0,∞)[0, \infty), the exponential distribution. (b) 1π1−y2\frac{1}{\pi\sqrt{1 - y^2}}, the arcsine density. (c) A uniform random number pushed forward by −log⁡-\log has exactly the exponential law (inverse transform sampling).

Exercise 4.11 Tannery's theorem

Use the dominated convergence theorem for counting measure to show lim⁡n→∞∑k=0n(nk)1nk=e\lim_{n\to\infty}\sum_{k=0}^n\binom nk\frac{1}{n^k} = e, checking the domination carefully. (Show (nk)n−k≤1k!\binom nk n^{-k} \leq \frac1{k!}.)

Solution

Let an,k=(nk)n−ka_{n,k} = \binom nk n^{-k} for k≤nk \leq n and 00 for k>nk > n. Then an,k=1k!⋅n(n−1)⋯(n−k+1)nk=1k!∏j<k(1−jn)a_{n,k} = \frac{1}{k!}\cdot\frac{n(n-1)\cdots(n - k + 1)}{n^k} = \frac1{k!}\prod_{j<k}\big(1 - \frac jn\big), which lies in [0,1k!][0, \frac1{k!}] and tends to 1k!\frac1{k!} as n→∞n \to \infty for each fixed kk. Since ∑k1k!<∞\sum_k\frac1{k!} < \infty, dominated convergence (Tannery) gives ∑kan,k→∑k1k!=e\sum_ka_{n,k} \to \sum_k\frac1{k!} = e. The left side is (1+1n)n(1 + \frac1n)^n by the binomial theorem.

Exercise 4.12 The weak law of large numbers

Let X1,X2,…X_1, X_2, \ldots be random variables with mean EXi=m\mathbb{E}X_i = m, variance E(Xi−m)2=σ2\mathbb{E}(X_i - m)^2 = \sigma^2, and E[(Xi−m)(Xj−m)]=0\mathbb{E}[(X_i - m)(X_j - m)] = 0 for i≠ji \neq j (for instance, independent). Let Xˉn=1n∑i≤nXi\bar X_n = \frac1n\sum_{i\leq n}X_i. Show E(Xˉn−m)2=σ2/n\mathbb{E}(\bar X_n - m)^2 = \sigma^2/n, and use Chebyshev's inequality to show P(∣Xˉn−m∣≥t)≤σ2nt2→0\mathbb{P}(|\bar X_n - m| \geq t) \leq \frac{\sigma^2}{nt^2} \to 0. Explain how this predicts that plain Monte Carlo needs about 100/p100/p samples for 10%10\% accuracy on an event of probability pp.

Solution

Expanding the square, the cross terms vanish, leaving 1n2⋅nσ2\frac{1}{n^2}\cdot n\sigma^2. For an indicator of an event of probability pp, σ2=p(1−p)\sigma^2 = p(1 - p), so the relative standard error is (1−p)/(np)\sqrt{(1-p)/(np)}; setting it to 0.10.1 gives n≈100/pn \approx 100/p.

Exercise 4.13 Absolute continuity and the chain rule

Let λ≪ν≪μ\lambda \ll \nu \ll \mu be σ-finite. Show that dλdμ=dλdνdνdμ\frac{d\lambda}{d\mu} = \frac{d\lambda}{d\nu}\frac{d\nu}{d\mu} μ\mu-almost everywhere. (Integrate an indicator against both sides.) In importance sampling, what are λ\lambda, ν\nu and μ\mu when one first changes from the true distribution to a proposal and then evaluates against Lebesgue measure?

Solution

For a measurable EE, λ(E)=∫Edλdν dν=∫Edλdνdνdμ dμ\lambda(E) = \int_E\frac{d\lambda}{d\nu}\,d\nu = \int_E\frac{d\lambda}{d\nu}\frac{d\nu}{d\mu}\,d\mu, using ∫g dν=∫gdνdμdμ\int g\,d\nu = \int g\frac{d\nu}{d\mu}d\mu for non-negative gg (Definition 4.5). So the product is a density of λ\lambda with respect to μ\mu, and by uniqueness in Radon–Nikodym it equals dλdμ\frac{d\lambda}{d\mu} almost everywhere. In importance sampling, λ\lambda is the true law PP, ν\nu the proposal QQ, and μ\mu Lebesgue measure: dPdm=dPdQ⋅dQdm\frac{dP}{dm} = \frac{dP}{dQ}\cdot\frac{dQ}{dm}, that is, p=pq⋅qp = \frac pq\cdot q.

Exercise 4.14 Computing Radon–Nikodym derivatives

(a) On [0,1][0, 1], let ν(E)=∫E3x2 dx\nu(E) = \int_E 3x^2\,dx. Find dνdm\frac{d\nu}{dm} and dmdν\frac{dm}{d\nu} (on (0,1](0, 1]). (b) Let μ=δ0+m⌞[0,1]\mu = \delta_0 + m\llcorner[0, 1] and ν=2δ0+x dx\nu = 2\delta_0 + x\,dx on [0,1][0, 1]. Show ν≪μ\nu \ll \mu and find dνdμ\frac{d\nu}{d\mu}.

Solution

(a) dνdm=3x2\frac{d\nu}{dm} = 3x^2, and dmdν=13x2\frac{dm}{d\nu} = \frac{1}{3x^2} on (0,1](0, 1] (both measures give {0}\{0\} measure zero). (b) If μ(E)=0\mu(E) = 0 then 0∉E0 \notin E and m(E)=0m(E) = 0, so ν(E)=0\nu(E) = 0. The density is 22 at the point 00 and xx elsewhere: check ∫Eρ dμ=2⋅1E(0)+∫Ex dx=ν(E)\int_E\rho\,d\mu = 2\cdot1_E(0) + \int_Ex\,dx = \nu(E).

Exercise 4.15 Rehearsal: two ways to write the same weighted energy

Let ff be smooth on Rn\mathbb{R}^n (or on a closed manifold) and u=e−f/2u = e^{-f/2}, so that u2=e−fu^2 = e^{-f}. Show that

∣∇f∣2e−f=4∣∇u∣2.|\nabla f|^2e^{-f} = 4|\nabla u|^2.

Deduce that ∫∣∇f∣2e−f dV=4∫∣∇u∣2 dV\int|\nabla f|^2e^{-f}\,dV = 4\int|\nabla u|^2\,dV. (On Rn\mathbb{R}^n, assume enough decay for the integrals to converge.) In 12A.2 Ricci Flow as a Gradient Flow this substitution turns Perelman's F(g,f)=∫(R+∣∇f∣2)e−fdV\mathcal{F}(g, f) = \int(R + |\nabla f|^2)e^{-f}dV into ∫(4∣∇u∣2+Ru2) dV\int(4|\nabla u|^2 + Ru^2)\,dV with ∫u2 dV=1\int u^2\,dV = 1, a Rayleigh quotient, so its infimum λ\lambda is the lowest eigenvalue of the operator −4Δ+R-4\Delta + R; the same substitution rewrites the W\mathcal{W}-entropy in 12A.3 The 𝓦-Entropy. The quantity ∫∣∇log⁡ρ∣2ρ\int|\nabla\log\rho|^2\rho for a probability density ρ\rho is the Fisher information, and this identity says it equals 4∫∣∇ρ∣24\int|\nabla\sqrt\rho|^2.

Solution

∇u=−12∇f e−f/2\nabla u = -\tfrac12\nabla f\,e^{-f/2}, so ∣∇u∣2=14∣∇f∣2e−f|\nabla u|^2 = \tfrac14|\nabla f|^2e^{-f}. Integrate.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.

Read

Watch 2 lectures and talks

© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.