Measure Theory
- 01The uniform dartwhy naive length and Riemann integration break on simple probability questions
- 02The wishlist for sizeformalizing countable additivity and translation invariance
- 03The Vitali impossibilitywhy we cannot assign a valid size to every subset of ℝ
- 04σ-algebras & Borel setsrestricting our domain to sets buildable from intervals
- 05Measures & Carathéodoryconstructing Lebesgue measure via infinite shrink-wrapping
- 06Measurable functionsturning outcomes into numbers without breaking events
- 07The Lebesgue integralaveraging functions by slicing the y-axis instead of the x-axis
- 08Convergence theoremsthe exact rules for swapping limits and integrals
- L^p spacesturning integrability into a complete geometric distance
Why naive length breaks as a probability definition
Setup: Throw a perfectly random dart at the interval , and call the landing point . Because no region is favored over any other, the probability of landing in an interval is simply its length:
If we add the rule that probabilities of non-overlapping pieces add up, we can measure any event made of finitely many intervals:
This can handle most of the basic questions we might have about the dart. But, the machinery breaks the moment we ask a seemingly simple question about a set that isn’t a finite collection of intervals:
Countable vs. uncountable infinity
At first glance, it feels like should be greater than . The fractions are dense in , meaning mathematically that for any real numbers with , there exists some such that , and nearly every number we write down in daily life is rational.
However, density is a statement about arrangement, not about quantity. We are talking about two different sizes of infinity here:
-
The rationals are countable (listable): Even though there are infinitely many fractions in , we can line them up in a single sequence without missing any. Simply order them by their denominator, and then by their numerator (skipping duplicates like ): Every rational number has a specific index where it eventually appears in this list.
import mathdef get_nth_rational(n: int) -> str:"""Returns the n-th rational in 0/1, 1/1, 1/2, 1/3, 2/3, 1/4, 3/4, ..."""if n <= 0:raise ValueError("n must be a positive integer (1-indexed).")if n == 1:return "0/1"if n == 2:return "1/1"remaining = n - 2 # the first two terms (d = 1) are handled aboved = 2while True:# at denominator d, the valid numerators are the k < d coprime to d# this is because for coprimes we can't cancel a common factor in both numerator and denominatorcoprimes = [k for k in range(1, d) if math.gcd(k, d) == 1]if remaining <= len(coprimes):return f"{coprimes[remaining - 1]}/{d}"remaining -= len(coprimes) # skip this denominator's block, keep countingd += 1 -
The full interval is uncountable (unlistable): By Cantor’s diagonal argument, no sequential list can ever hold all real numbers in .
ProofCantor’s Diagonal Argument: why cannot be listed
Suppose someone claims to have a complete list of every real number in , written as infinite decimals:
We can build a brand-new number by walking down the diagonal (the -th digit of the -th number) and picking a different digit at each step, say, pick unless the diagonal digit is , in which case pick .
- For the list above, starts
By construction, differs from in the 1st decimal place, from in the 2nd decimal place, and from in the -th decimal place. Thus is not on the list, contradicting the claim that the list was complete.
∎
Because the entire interval cannot be listed, while the rationals can, the irrationals (like or ) must make up almost the entirety of the line. The rationals are merely a countable dusting of points inside an uncountable continuum, so ought to be .
Two failed attempts using finite intervals
When we try to prove using only finite intervals, we hit a wall from both directions:
| Approach | How it works | Why it fails |
|---|---|---|
| 1. Point-by-point (from inside) | A single point is the degenerate interval of length . Since is the list , we add up the lengths: . | Our rules only allow adding finitely many pieces. Adding across an infinite sequence requires a new axiom (countable additivity), which we haven’t justified yet. |
| 2. Trapping in boxes (from outside) | Cover all rationals in using a finite collection of intervals, and sum their lengths to get an upper bound. | Because rationals sit inside every gap of positive width, any finite set of intervals that covers every rational in must cover the entire segment (except at most finitely many single points). This only proves , which is useless. |
Converting probability to integration: why Riemann also fails
Since trying to trap the rationals in finite external boxes failed to give an answer, we need a more powerful tool which we usually use to “measure” complex sets. We can do this by turning a set into a shape and calculating its area via integration.
To build an intuition for how we measure complex, non-interval sets, consider a famous fractal: the Cantor set.
- Imagine starting with the interval and repeatedly removing the open middle third of every remaining piece infinitely. What is left behind is a “dust” of points, infinitely many of them, and we want to find their total length (probability of the dart landing inside the cantor set). If you try to use a finite collection of external boxes to cover all the remaining pieces as we tried above, any collection of finite boxes spanning from the first piece to the last will inevitably bridge the gaps, leaving you with a useless upper bound of .
- The Formal Problem: Let . At each step , is formed by removing the open middle third of each interval in . The Cantor set is the intersection of all these stages: . We want to compute its total length (measure) .
ProofMeasuring the Cantor set via shrinking approximations
At step , the set consists of disjoint closed intervals, each of length .
The total length (measure) of is the sum of the lengths of these intervals:
Because the Cantor set is contained inside every approximation for all , its measure must be less than or equal to . By taking the limit as :
Even though the Cantor set contains an uncountable infinity of points (just as many as the entire real line), its total measure is strictly because we can trap it inside a sequence of outer approximations whose lengths shrink to zero.
∎
How this helps us solve the rationals problem: This exact strategy, approximating a complex set from the outside using an infinite sequence of shrinking pieces rather than a single finite collection, looks like it can be used to measure the rationals. Because the rationals are countable, we can place a tiny box of length around each rational in our list. By summing these lengths across all infinitely many boxes, we get a total outer measure that can be made arbitrarily small, proving that .
To measure the probability of landing in a set , we can define an indicator function that outputs if and otherwise. For our question about the rationals, this creates the Dirichlet function:
The total area under this function from to represents the expected value, which is our exact probability:
If standard calculus can evaluate , our probability problem is solved. Let’s try using the standard Riemann integral:
- Chop into finitely many narrow vertical strips.
- On each strip, find the upper sum (tallest height width) and lower sum (lowest height width).
- Squeeze the strip widths to zero to see if they converge to the same area.
For , this completely breaks down: every subinterval, no matter how microscopic, contains both a rational () and an irrational ().
- Every upper sum evaluates to .
- Every lower sum evaluates to .
Because the Riemann integral relies on finitely many intervals at each step, it suffers from the exact same flaw as our earlier box-trapping approach: it cannot isolate a countable set of points from the continuum.
Why taking limits breaks the Riemann integral
You might try to bypass this wall by building the Dirichlet function through a sequence of approximations. Let be a function that equals on just the first rationals in our countable list, and everywhere else.
This introduces a critical conflict when we try to pass limits through our integral:
-
Limit Outside (): Here, we integrate each finite approximation first. Because any finite set of rational points has total length zero, for every fixed . Taking the limit as gives .
-
Limit Inside (): Here, we take the limit of the functions first. As , pointwise converges to the Dirichlet function . But when we then try to compute , the integral does not exist because the Riemann upper and lower sums never meet.
Why this failure is fatal for probability
Probability theory is built entirely on limits, such as the Law of Large Numbers, infinite coin tosses, and Markov chain convergence, where we constantly need to swap limits and expectations (integrals).
To see how explicitly this breaks down, consider one of the foundational theorems of probability: Continuity of Probability (or Monotone Convergence for Events).
Suppose we have an expanding sequence of nested events , and we want to find the probability of their infinite union . By definition, we compute this via a limit of finite probabilities:
Expressed as an integral of indicator functions , this theorem relies entirely on the ability to safely swap the limit and the integral:
- Where Riemann fails: As we saw with our sequence of rational approximations , the left side evaluated to , while the right side (integrating the limit function ) completely failed to exist under Riemann rules.
- Why this is a problem: If an integration theory forbids this swap, you cannot even define the probability of infinite events. You would be unable to prove that the probability of an infinite union equals the limit of its finite parts, leaving basic axioms of probability (like countable additivity) unprovable and making it impossible to analyze infinite stochastic processes or limits of random variables.
Where this goes next: All three failures, measuring with points, integrating with Riemann strips, and swapping limits, stem from being restricted to finitely many pieces. To fix probability, we need a modern measure theory that can handle countably many pieces natively.
The wishlist for “size”
We want a size function (Greek lambda, for length) that assigns a length to subsets of the real line .
| Component | Detail |
|---|---|
| Signature | |
| Domain | Ideally, any subset . |
| Codomain | Non-negative real numbers plus (since sets like are infinitely long, with ). |
To solve our dart problems, must obey four foundational rules:
- (W1) Intervals get their length: . Why: Size must agree with basic geometry on simple intervals.
- (W2) Countable additivity: If are pairwise disjoint (non-overlapping, so for ), then: Why countable: This is the exact upgrade that gives and allows limits to work. Why not uncountable: is the disjoint union of its uncountably many individual points . If we allowed uncountable sums, we would get , a contradiction. Countable additivity is the sharpest rule possible without running into contradictions like this.
- (W3) Translation invariance: , where shifts every point in by . Why: A uniform dart has no favorite region, sliding a set sideways cannot alter its length.
- (W4) Universal domain: is defined for every subset . Why: Ideally, we never want to check if an event is “valid” before asking for its probability.
The Vitali impossibility: why W1–W4 cannot coexist
TheoremVitali’s Theorem (1905)
No function can satisfy W1–W4 simultaneously. Specifically, if obeys interval length (W1), countable additivity (W2), and shift invariance (W3), there exists a subset , a Vitali set, that cannot be assigned any length at all.
Proof Strategy: We are trying to cut the 1-unit interval into a countably infinite number of identical, non-overlapping clones that can perfectly reassemble the original interval.
Think of every number in as a person. We assign everyone to a “club” based on one rule: two people are in the same club if the exact distance between them is a fraction (a rational number).
- Person and Person are in the same club (distance is , which is ).
- Person and Person are in different clubs.
Because there are “more” irrational numbers than rational ones, the interval splits into an uncountable number of different clubs. Inside each club, the members are perfectly spaced apart by exact fractions.
We then create a “VIP guest list”, the Vitali set , by picking exactly one person from every single club.
If we take everyone on this list and shift them by every possible fraction (wrapping around if they pass 1), we get a countable list of shifted copies:
Because everyone in a club is separated by fractions, shifting our VIP list by fractions just systematically swaps in different members of the same clubs. The lists never overlap, and together they perfectly tile the entire interval:
By shift invariance (W3), every clone has the exact same length . By countable additivity (W2), the total length of (which is ) must equal added to itself infinitely many times:
- If , the infinite sum is .
- If , the infinite sum is .
Either way, cannot equal any number in , breaking W4. Here is the formal 3-step construction of :
ProofStep-by-step construction of the Vitali set
Step 1: Define “wrap-around shifting” () so shifted sets stay inside If we shift a subset of to the right by , part of it spills past . To keep everything inside , any part that goes past simply wraps around to (addition modulo , like a clock): Does preserve length? Yes. Shifting a set with wrap-around just cuts into two disjoint pieces, the left piece that shifts normally by , and the right piece that shifts by . By W3 and W2:
Step 2: Partition into “rational-difference buckets” and pick one representative from each Put two numbers into the same bucket (equivalence class) if the distance between them, , is a rational number.
- Every bucket is countable (it consists of one starting number plus all rational wrap-around shifts for ).
- Because is uncountable and each bucket is only countable, there are uncountably many disjoint buckets that together fill .
Now form the Vitali set by reaching into each bucket and picking exactly one number from it. (Because there is no formula to pick a “first” number from each uncountable collection of buckets, this step invokes the Axiom of Choice, so exists mathematically, though no one can draw it.)
Step 3: Shift by every rational in to tile List all rationals in as and form the shifted copies . We verify two facts:
- The copies cover every point in : Pick any number . It belongs to some bucket, and contains that bucket’s unique representative . Because and are in the same bucket, their wrap-around difference is some rational , meaning .
- The copies never overlap (pairwise disjoint): Suppose and shared a point. Then for some . Rearranging shows is rational, meaning and live in the same bucket. Since only picked one number per bucket, and must be the exact same number, which forces (so and were the same copy all along).
Conclusion: is a countable disjoint union. Applying W2 and Step 1 gives: A contradiction ( and ). Thus cannot have a length.
∎
Which rule do we sacrifice?
We cannot keep all four wishes.
- Dropping W1 (interval length) or W3 (shift invariance) destroys basic geometry.
- Dropping W2 (countable additivity) leaves us stuck with the Riemann/rational failures of Section 1.
- Dropping W4 (every set has a size) costs us almost nothing in practice: the only sets that break , like the Vitali set , require the non-constructive Axiom of Choice to scatter points so pathologically that no formula can ever define them. Here is what this sentence means:
- What is the Axiom of Choice? Normally, to define a set, you use a rule or a formula (like ” is a number between and ”). But the Axiom of Choice is a rule that says: “Even if you have an infinite number of groups and no formula or rule can tell you how to pick an item from each group, you are legally allowed to just imagine that you reached into all of them simultaneously and grabbed one item anyway.”
- What does the Vitali set look like? Because it was built using that “no-formula” rule, the Vitali set is not a normal geometric shape you can draw, graph, or measure in a physics lab. It is a completely chaotic, infinitely scattered dust cloud where every point is isolated from any recognizable pattern.
- Why it doesn’t hurt us: In real-world math, physics, engineering, and statistics, you never encounter these bizarre, unformulaic dust clouds. Every set you can actually write down, describe, or use to model a real problem is “well-behaved” and gets a valid length just fine. Dropping W4 just bans these ghost-like mathematical anomalies from having a length, leaving all normal math completely untouched.
Our resolution: Keep W1–W3, drop W4, and restrict to a domain of “well-behaved” subsets called measurable sets.
NoteAside: Why dropping W2 wouldn’t even save you in 3D (Banach–Tarski)
On the 1D line (and in 2D), if you weaken W2 to finite additivity (only adding finitely many pieces), you actually can assign a shift-invariant size to every subset.
In 3D (), even finite additivity explodes. In 1924, Stefan Banach and Alfred Tarski used the exact same “Axiom of Choice bucket” trick—replacing rational shifts with 3D rotations—to prove the Banach–Tarski Paradox:
You can take a solid 3D ball of radius , slice it into just 5 disjoint point-cloud pieces, and by doing nothing more than rotating and sliding those 5 rigid pieces through space, reassemble them into two solid balls, each of radius !
The Intuition: The “Dictionary” Paradox The engine of Banach-Tarski isn’t really about geometry; it is an algebraic trick involving rotations. Imagine a dictionary of all possible “words” made of four letters: (where a letter and its inverse cancel out, so you never write ).
You can split this dictionary into four sections based on the starting letter of the word: . Now, look at (all words starting with ). If you append to the front of every word in , the and the cancel out. What are you left with? You get every possible word in the entire dictionary, except words that start with (because an original word couldn’t start with , or it wouldn’t have been in ).
In math terms: . Add back in, and you have the whole dictionary! So just two pieces, and , can recreate the entire dictionary. Similarly, the other two pieces, and , can recreate a second complete dictionary. You just turned 1 dictionary into 2.
If we pick two specific 3D rotations for and , this “dictionary” maps perfectly onto the surface of a sphere. Just like the Vitali set, we group points on the sphere into “clubs” based on whether they can be rotated into each other. We use the Axiom of Choice to pick one VIP from each club, and then we apply our dictionary paradox. Because the rotations double the dictionary, they double the sphere.
ProofFormal Proof of the Banach-Tarski Paradox
Step 1: Construct the Free Group of Rotations We find two 3D rotations, and (e.g., rotations by around the x and z axes), that generate a free group. This means no combination of these rotations ever brings you back to the exact starting position (except the empty sequence, the identity ). Every sequence of these rotations and their inverses () represents a unique rotation in 3D space. Let this group of rotations be .
Step 2: The Paradoxical Decomposition of Let be the set of all rotation sequences in that start with . Define similarly. The entire group is the disjoint union: If we multiply the set by on the left, the and cancel, yielding every word in except those starting with . Thus: We have decomposed into pieces that, when rotated, form two complete copies of .
Step 3: Action on the Sphere and the Axiom of Choice Apply to the surface of a sphere . First, remove the “poles” (the countable set of points that remain fixed under any of the rotations in ). For the remaining points , partition them into “orbits” (two points are in the same orbit if a rotation in maps one to the other). By the Axiom of Choice, construct a set containing exactly one representative from every orbit. Every point in can now be uniquely written as a rotation from applied to a point in .
Step 4: Doubling the Sphere We partition into 4 pieces based on our free group decomposition: , , , . Applying the paradoxical algebra from Step 2:
- (Copy 1)
- (Copy 2) We have successfully doubled the punctured sphere using just 4 pieces and rigid rotations.
Step 5: Fixing the Poles and the Origin To plug the missing poles , we use a “Hilbert’s Hotel” trick: find a rotation axis that doesn’t hit , and rotate by an irrational angle. This maps the missing poles to a sequence of points, allowing us to shift them down the line and “absorb” the holes with one extra piece. Finally, to double the solid ball (not just the sphere surface), we simply draw a line segment from the center origin to every point on our spherical pieces. The center point is handled with a final trivial shift, completing the 5-piece decomposition.
∎
σ-algebras: deciding which sets get a size
Motivation: Having dropped W4, we cannot let our event space be the power set (all subsets of ). Instead, on any sample space of outcomes, we must select a restricted club of “measurable” subsets that are allowed to have a size. What closure rules must this club obey so we never accidentally manufacture an unmeasurable set like while doing probability?
| Rule | Mathematical Statement | Probabilistic Meaning & Why We Need It |
|---|---|---|
| (S1) Contains the whole space | ”Something happens” must be a valid event (so we can set ). | |
| (S2) Closed under complements | If we can find the probability that happens, we must be able to find the probability that does not happen (). | |
| (S3) Closed under countable unions | Required by W2: countable additivity only makes sense if the countable union is itself inside the allowed domain ! |
Definitionσ-algebra and Measurable Space
A collection of subsets of satisfying S1, S2, and S3 is called a -algebra (the Greek stands for countable Summe / union). The pair is called a measurable space.
What comes for free from S1–S3:
- The empty set .
- Countable intersections via De Morgan’s Law: .
- Set differences: .
WarningWhy countable unions, not arbitrary unions?
As we will see below, every single point is a valid measurable set. If allowed uncountable unions, then every subset of , including the Vitali set , would be in (since any set is the union of its points), landing us right back in the Section 3 contradiction! Restricting to countable operations is what keeps pathological sets locked out.
Intuition-algebras as “Available Information”
Beyond avoiding Vitali sets, a -algebra represents what an observer knows. Suppose a die is rolled (), and someone only tells you whether the roll was Even or Odd. The events whose truth value you can now answer are: Notice is a valid -algebra! A coarser (smaller) -algebra means less information; a finer (larger) -algebra means more information.
The Borel -algebra: solving the dart board
Now return to the real line . Which specific -algebra should we use?
- We must include all open intervals so we can measure basic lengths (W1).
- We must not include unnecessary garbage like the Vitali set .
Therefore, we want the smallest possible -algebra that contains all open intervals.
DefinitionGenerated -algebra and the Borel -algebra
Given any starter collection of sets , the generated -algebra is the smallest -algebra containing (defined formally by taking the intersection of all -algebras that contain ).
On , starting with the open intervals gives the Borel -algebra: Any set in is called a Borel set.
Because is closed under complements, countable unions, and countable intersections, starting with just open intervals automatically generates every concrete set we needed in Section 1:
- Single points : Squeeze open intervals down onto : .
- Closed intervals and half-open intervals : .
- The rationals : A countable union of single points: .
- The irrationals : The complement of a Borel set: .
Every set you can ever write down explicitly with formulas and limits is a Borel set. The Vitali set is not.
Measures: the size function, formalized
With the domain restricted from all subsets to a -algebra , we can formalize our size function.
| Component | Detail |
|---|---|
| Signature | |
| Domain | Only the measurable sets (where W4 was dropped). |
| Codomain | Non-negative reals plus . If , is a probability measure . |
DefinitionMeasure and Measure Space
A function on a measurable space is a measure if it satisfies:
- (M1) Empty set has zero size: . (Prevents the degenerate case where every set has size .)
- (M2) Countable additivity: For any sequence of pairwise disjoint sets ,
The triple is called a measure space (or a probability space when ).
Core properties that come for free from M1 & M2
Every measure automatically satisfies four foundational behaviors:
- Monotonicity (): Since is disjoint, .
- Countable subadditivity (even for overlapping sets): . (Shave off overlaps by defining disjoint pieces and apply M2).
- Continuity from below (growing sets): If grows to , then .
- Continuity from above (shrinking sets): If shrinks to and , then .
flowchart LR
subgraph "Continuity from Below: A₁ ⊆ A₂ ⊆ A₃ ..."
direction LR
B1["B₁ = A₁"] --> B2["+ ring B₂ = A₂ \ A₁"] --> B3["+ ring B₃ = A₃ \ A₂"] --> Sum["Disjoint sum = lim μ(Aₙ)"]
end
ProofWhy Countable Additivity forces Continuity of Measure
To prove continuity from below, turn the nested sequence into disjoint “onion rings”: The rings are pairwise disjoint, the first rings form , and all rings together form . By countable additivity (M2) and the definition of an infinite series: (For continuity from above, apply this to . We require so we never subtract ; for example, has for all , yet has measure .)
∎
Immediate payoff: and “Almost Everywhere”
Suppose we have a measure on that assigns intervals their length ().
- Every single point has length .
- By countable additivity (M2), the rationals have length:
DefinitionNull Sets and “Almost Everywhere” (a.e. / a.s.)
- A measurable set with is called a null set (even if it is non-empty or infinite, like ).
- A statement holds almost everywhere (a.e., or almost surely / a.s. in probability) if the set of points where it fails has measure .
- Example: The Dirichlet function equals almost everywhere because has measure .
Constructing Lebesgue measure: Carathéodory’s extension
The Problem: Section 5 assumed a length measure on exists. How do we prove it actually exists? We know the length of a half-open interval is , and we can add lengths of finitely many disjoint intervals. But contains unimaginably complex sets built by infinite intersections and unions of intervals. You cannot write an explicit formula for every Borel set directly.
In 1914, Constantin Carathéodory solved this with a brilliant 3-step pipeline that builds Lebesgue measure from the outside in:
flowchart LR S1["Step 1: Elementary length ℓ\non finite unions of (a,b]"] --> S2["Step 2: Outer measure λ*\nInfinite shrink-wrap on ALL sets"] --> S3["Step 3: Carathéodory cut test\nKeep only sets that split cleanly"]
Step 1: Length on elementary intervals (the Premeasure)
Start with the simple collection of finite disjoint unions of half-open intervals . (We use half-open intervals because they tile cleanly without overlap: ). On , define naive length:
Using the compactness of closed intervals on the real line (the Heine–Borel theorem), one can verify that if an interval is sliced into a countable disjoint union of smaller intervals , its length still equals . A size function on a simple collection that obeys countable additivity whenever the union happens to land back inside is called a premeasure.
Step 2: Outer measure (“infinite shrink-wrapping”)
Next, we define an approximate size, called outer measure , for every subset .
How do you measure an arbitrary, jagged set using only simple intervals? You cover with a countable sequence of intervals such that , add up the lengths of those intervals, and take the tightest possible fit (the infimum / greatest lower bound over all valid covers):
FormulaLebesgue Outer Measure
IntuitionHow countable shrink-wrapping fixes the box trap from Section 1
In Section 1, trapping inside finitely many intervals forced the intervals to span the entire width . Watch what happens when allows countably many intervals:
Pick any tiny error budget . Wrap the 1st rational in an interval of width , the 2nd rational in an interval of width , and the -th rational in an interval of width .
- Together, these countably many intervals completely cover .
- Their total length is the geometric series: Since for every , the tightest fit is !
Step 3: The Carathéodory cut condition
Outer measure is defined on every subset of , matches on intervals, and is shift-invariant. Therefore, by Vitali’s theorem (§3), cannot be countably additive on all sets.
Specifically, when two disjoint sets (like two shifted Vitali sets and ) are pathologically intertwined like Velcro, any interval cover around inevitably overlaps , causing the sum of their individual shrink-wraps to exceed the shrink-wrap of their union: .
To turn into a true countably additive measure, Carathéodory simply filtered out the Velcro sets: keep only the sets that slice every other set cleanly without any overlap penalty.
DefinitionCarathéodory Measurability & Extension Theorem
A set is Carathéodory-measurable (written ) if for every test set :
Carathéodory’s Extension Theorem:
- The collection of sets passing this test forms a -algebra containing all intervals (and therefore contains the entire Borel -algebra ).
- When restricted to , the outer measure becomes a true countably additive measure , called Lebesgue measure.
- Uniqueness: Because can be covered by countably many pieces of finite size (-finite), is the unique measure on that assigns every interval its length .
NotePayoff for Probability: How CDFs build probability distributions
What if you want a non-uniform dart on , described by a Cumulative Distribution Function (such as the Gaussian bell curve)?
Simply replace interval length in Step 1 with ! As long as is non-decreasing, right-continuous, and goes from (at ) to (at ), Carathéodory’s machine runs identically and outputs a unique probability measure on satisfying: This proves why specifying a CDF on intervals is sufficient to uniquely define the probability of every Borel set on .
Measurable functions and random variables
Motivation: In probability, outcomes are physical occurrences (coin flips, weather states, dart positions), and we use a function (a random variable) to turn those outcomes into numerical payoffs. Next, we will want to compute the average of , which requires asking: “What is the probability that the output falls inside some target range ?”
For that probability to exist, the set of inputs that land inside must belong to our measurable -algebra .
| Component | Detail |
|---|---|
| Signature | |
| Preimage | , the set of inputs in that map into the target set . |
| Requirement | Every Borel target set must pull back to a measurable event . |
flowchart RL
B["Target Borel set B ∈ ℬ(ℝ)\ne.g. (-∞, a]"] -- "Preimage f⁻¹(B)\npulls back cleanly" --> A["Event {ω : f(ω) ∈ B}\nMUST lie in ℱ"]
DefinitionMeasurable Function / Random Variable
A function is measurable (and called a random variable when is a probability space) if for every Borel set :
Shortcut (Checking Generators): Because preimages commute with complements and countable unions (), you don’t need to check every Borel set . Since rays generate , is measurable if and only if:
Why this class of functions is bulletproof
Unlike Riemann-integrable functions, the family of measurable functions is closed under virtually every operation in analysis:
- Indicators: is measurable . (Thus the Dirichlet function is Borel-measurable!)
- Algebra & Calculus: Continuous functions, sums , products , and compositions of measurable functions are all measurable.
- Pointwise Limits: If are measurable, then , , , , and are always measurable (because , which is a countable intersection of measurable sets).
The Lebesgue integral: slicing the y-axis
Motivation: Why did the Riemann integral choke on the Dirichlet function in Section 1? Because Riemann slices the input axis (-axis) into narrow intervals and expects to stay roughly flat inside each interval. When a function jumps wildly between and inside every interval, -axis slicing fails.
Henri Lebesgue reversed the geometry: slice the output axis (-axis) into horizontal height levels, collect all inputs where hits a given height , and multiply that height by the measure of that input set.
IntuitionLebesgue’s Coin-Counting Analogy
Imagine counting a pile of coins scattered across a table:
- The Riemann way (-axis slicing): Walk across the table from left to right, picking up coins in the exact spatial order you encounter them: If the denominations are mixed fractally, you get lost.
- The Lebesgue way (-axis slicing): Group the coins by value (output height) first: count how many pennies you have in total, how many nickels, how many quarters, and compute: Because our measure can measure scattered sets (like ), grouping by output height doesn’t care how wildly the inputs are mixed!
We build the Lebesgue integral in three progressive stages:
Stage 1: Simple functions (finitely many output heights)
A simple function is a measurable function that takes only finitely many non-negative values :
Its Lebesgue integral is simply height measure of the level set:
FormulaIntegral of a Simple Function
(Convention: , so a height of over an infinitely wide domain contributes area.)
Immediate Payoff (Solving Problem 2 from §1): The Dirichlet function is already a simple function! On , its Lebesgue integral is:
Stage 2: Non-negative measurable functions ()
For any measurable function , we approximate it from below using simple “staircase” functions that sit underneath (), and take the supremum:
FormulaIntegral of a Non-negative Measurable Function
y (Output sliced into 2⁻ⁿ steps) n ┼─────────────────────────────────── <- Cap at height n │ ╭───╮k/2ⁿ┼..........╭───╯...╰───╮............ <- Slice height aₖ = k·2⁻ⁿ │ │███████│ │ ┼──────────┴───────┴───┴────────────> ω (Input space Ω) └───┬───┘ Measurable set Aₖ = { k·2⁻ⁿ ≤ f < (k+1)·2⁻ⁿ } ∈ ℱSpecifically, we can always construct an explicit sequence of simple functions by slicing the -axis into a grid of spacing (up to height ) and rounding down to the nearest grid line. Because is measurable, each horizontal slice is guaranteed to be a measurable set in !
Stage 3: General signed functions ()
To handle functions that dip below the axis, split into its positive part and negative part , so that and .
FormulaGeneral Lebesgue Integral & Integrability ()
We say is Lebesgue integrable (written ) if the total absolute area is finite: (Requiring both and to be finite avoids the undefined cancellation .)
Key properties of the Lebesgue integral
- Extends Riemann: Every bounded Riemann-integrable function on is Lebesgue integrable and gives the exact same number.
- Blind to Null Sets: Changing on a set of measure does not change at all (because a simple function step over a set of measure adds ). Furthermore, if and , then almost everywhere.
- Probability Expectation: When is a probability space, the Lebesgue integral of a random variable is its expected value: .
Convergence theorems: when can we swap and ?
Motivation: We now return to Problem 3 from Section 1: given a sequence of measurable functions pointwise, when can we guarantee that the limit of the integrals equals the integral of the limit?
Even with the Lebesgue integral, you cannot always swap and , because “area (mass) can escape to infinity” before the limit finishes! There are two classic ways area escapes while at every point :
| Failure Mode | Formula ( pointwise) | Visual Behavior | Why Swap Fails |
|---|---|---|---|
| 1. Escape Horizontally (Moving Bump) | on | A box of height and width slides off to . At any fixed , the box eventually passes by, so . | for all , so . |
| 2. Escape Vertically (Witch’s Hat Spike) | on | A rectangle of height and width squeezes against . At , ; for any , eventually, so . | for all , so . |
Measure theory provides three master theorems that tell us exactly what happens to the area under a limit:
1. Monotone Convergence Theorem (MCT): upward growth never loses mass
If the functions only ever grow upward (), mass cannot slide away or disappear, new area is only ever stacked on top of old area.
TheoremMonotone Convergence Theorem (MCT)
If are measurable and pointwise (or a.e.), then:
Payoffs:
- Solves Problem 3 from §1: For , MCT guarantees .
- Infinite Series Swap: Because partial sums of non-negative functions always increase monotonically, you can always swap an integral and an infinite sum of non-negative terms:
2. Fatou’s Lemma: mass can escape in the limit, but can never be created out of nothing
What if does not increase monotonically (like the Moving Bump or Witch’s Hat)? Then mass might escape on the way to the limit, making the integral of the limit smaller than the limit of the integrals. Can mass ever spontaneously appear in the limit? No.
(Recall is the “eventual floor” of a sequence, which always exists even if oscillates.)
TheoremFatou’s Lemma
For any sequence of non-negative measurable functions : (In both the Moving Bump and Witch’s Hat examples, the left side is and the right side is , showing why the inequality can be strict when mass escapes.)
Proof3-line proof of Fatou’s Lemma from MCT
Define the running floor . As grows, we drop terms from the infimum, so increases monotonically to .
- For every , we have , so . Taking the infimum over gives .
- Take on both sides and apply MCT to the left side () to get .
∎
3. Dominated Convergence Theorem (DCT): trapping functions under a finite roof
How do we prevent both horizontal escape and vertical spikes when can oscillate up and down? Trap the entire sequence underneath a single integrable roof function with finite total area ().
- Because , the roof must taper down to zero at (blocking horizontal escape).
- Because , the roof cannot enclose an infinite-area vertical spike (blocking vertical escape; for the Witch’s Hat , the lowest roof covering all spikes is , which has , so DCT rightly refuses to apply!).
TheoremDominated Convergence Theorem (DCT)
If pointwise (or a.e.) and there exists an integrable roof () such that for all , then:
Probability Corollary (Bounded Convergence): On a probability space (), any constant roof has finite integral . Thus, if and a.s., then automatically!
spaces: geometry and completeness of functions
Motivation: In probability and statistics, we constantly measure the “distance” between two random variables and , for instance, measuring the mean-squared error of an estimator . The Lebesgue integral lets us organize functions into geometric spaces based on their -th power average size.
| Component | Detail |
|---|---|
| -norm () | $|f|p = \left(\int\Omega |
| -norm () | $|f|_\infty = \inf{M \ge 0 : |
| Space | The space of all measurable functions with , where two functions equal a.e. ( a.e.) are treated as the exact same point. |
WarningWhy we must glue together functions that are equal a.e.
A genuine geometric distance requires that . Because the Lebesgue integral is blind to null sets, the Dirichlet function and the zero function have distance . By defining elements of to be equivalence classes of functions that agree almost everywhere, genuinely means in .
Two foundational inequalities and completeness
- Hölder’s Inequality (): .
- For , this is the Cauchy–Schwarz Inequality , which guarantees that correlation always lies in and turns into a Hilbert space with dot product (where conditional expectation is simply an orthogonal projection!).
- On a probability space (), applying Hölder with proves that higher norms dominate lower norms: for , meaning (e.g., finite variance automatically implies finite mean ).
- Minkowski’s Inequality (): (the Triangle Inequality, proving is a valid metric distance).
- Completeness (The Riesz–Fischer Theorem): Every Cauchy sequence in converges to a limit function inside .
IntuitionCompleteness: Riemann is to as the Rationals are to
The rational numbers are full of “pinholes”: the sequence gets closer and closer together (a Cauchy sequence), but its limit falls into a hole outside . Completing by filling in every limit hole gives the real numbers .
In the exact same way, the space of Riemann-integrable functions is full of holes under the distance, sequences of smooth functions can converge in norm to a limit with a vertical asymptote or fractal discontinuities that Riemann cannot integrate. The Riesz–Fischer theorem says has zero holes: every sequence of functions in that gets progressively closer together in distance is guaranteed to converge to a valid measurable function inside .
Translation Dictionary & Summary
| Measure Theory Concept | Probability Meaning | Role in the Architecture |
|---|---|---|
| Sample space | Set of all physical outcomes | The underlying universe before numbers are assigned. |
| -algebra | Allowed events / observer’s information | Excludes Vitali sets so countable additivity never contradicts geometry. |
| Borel -algebra | on the real line | Contains intervals, points, , and all limits, while locking out . |
| Measure (with ) | Probability measure | Countably additive size function; gives on nested events. |
| Null set () & a.e. | Probability- event & almost surely (a.s.) | Allows sets like to be non-empty yet carry zero weight. |
| Carathéodory extension | A CDF uniquely defines a distribution | Extends interval lengths via outer shrink-wrapping . |
| Measurable map | Random variable | Guarantees for every Borel set . |
| Lebesgue integral | Expected value | Slices the -axis into simple staircases so jagged functions integrate cleanly. |
| MCT / Fatou / DCT | Rules for | Prevents probability mass from escaping to during a limit. |
| and | Finite mean () & finite variance | Complete geometric spaces where dot products represent covariance. |