Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Guide
Derivatives pricing0 / 17
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Options on dividend-paying stocks, indices, currencies and futures14Implied volatility and the volatility smile15Stochastic volatility and the Heston model16Static replication: Breeden–Litzenberger and Carr–Madan17Exotic options: barriers, Asians and digitals
Portfolio & risk0 / 12
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08The Fama–French factor models09Value at Risk and expected shortfall10Systemic risk and contagion11Portfolio constraints and the no-short-sales frontier12Estimating expected returns and covariances
Fixed income0 / 10
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Non-parallel curve moves and key-rate durations06Bond futures and the cheapest-to-deliver07Interest rate swaps08Callable bonds and negative convexity09Credit risk: default probabilities and credit spreads10Real rates, inflation and inflation-linked bonds
Corporate finance0 / 10
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04Project risk: sensitivity, scenarios and Monte Carlo NPV05The weighted average cost of capital06Capital structure and the Modigliani–Miller theorems07Dividends, payout policy and the dividend discount model08Discounted cash flow valuation09Relative valuation with multiples10Real options: the value of flexibility
Probability and measure0 / 13
01Measuring the size of sets02σ-algebras and Borel sets03Lebesgue measure and null sets04Measurable functions05The Lebesgue integral06Convergence theorems07Probability spaces and Kolmogorov's axioms08Random variables and their distributions09Expectation, variance and inequalities10Independence and product measures11Modes of convergence and the law of large numbers12Conditional probability and conditional expectation13Measure theory in option pricing
Stochastic models0 / 17
01Random walks and Brownian motion02The law of large numbers and the central limit theorem03Probability spaces, σ-algebras and random variables04Filtrations, adapted processes and stopping times05Conditional expectation and martingales06Properties of Brownian motion07The reflection principle and first passage times08The Brownian bridge09The Itô integral10Itô's lemma11Kolmogorov equations and the Feynman–Kac formula12Change of measure and Girsanov's theorem13Monte Carlo option pricing14Simulating SDEs: the Euler–Maruyama scheme15Correlated Brownian motions and multi-asset models16Mean reversion: Ornstein–Uhlenbeck and Vasicek17Jumps and the Merton jump-diffusion model
Market microstructure0 / 11
01Market makers and liquidity02The limit order book03Queue position and fill probability04Adverse selection and informed trading05The Glosten–Milgrom model06Measuring and decomposing the bid–ask spread07Informed trading and Kyle's lambda08Price impact and optimal execution09Inventory risk and quote skewing10Optimal quoting: the Avellaneda–Stoikov model11Market making profit and loss attribution
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guides/Probability and measure/03

Lebesgue measure and null sets

Lesson 3 of 13 · 1 min read

The lesson "Measuring the size of sets" listed the rules that any sensible notion of size obeys, with length on [0,1][0, 1][0,1] as one of its main examples, and simply assumed that length exists. "σ-algebras and Borel sets" then showed that this assumption needs care: Vitali's set cannot be given a length at all, so length can only live on a chosen σ-algebra, and the natural choice is the Borel sets. Two questions are left open. Is there really a countably additive length on every Borel set, including sets far stranger than intervals? And what do such sets look like when their length is zero? This lesson answers both. It builds Lebesgue measure by covering sets with intervals, explains why the covers have to be countable, and then studies the sets it calls small: countable sets, the Cantor set, and properties that hold almost everywhere.

Length of intervals

Everything starts from the length of an interval. For a≤ba \le ba≤b,

λ([a,b])=b−a.\lambda([a, b]) = b - a.λ([a,b])=b−a.

The same number is used for (a,b)(a, b)(a,b), [a,b)[a, b)[a,b) and (a,b](a, b](a,b]. This is forced by the rules of a measure, not chosen as a convention: a single point {a}\{a\}{a} lies inside [a,a+ε][a, a + \varepsilon][a,a+ε] for every ε>0\varepsilon > 0ε>0, so by monotonicity its length is at most ε\varepsilonε, hence zero, and adding or removing an endpoint changes nothing.

Lengths of disjoint intervals add. A finite union of intervals, an elementary set, has as its length the total length of the disjoint pieces it can be cut into. The set [0,0.2]∪[0.5,0.6][0, 0.2] \cup [0.5, 0.6][0,0.2]∪[0.5,0.6] has length 0.2+0.1=0.30.2 + 0.1 = 0.30.2+0.1=0.3. The set [0,0.5]∪[0.3,0.8][0, 0.5] \cup [0.3, 0.8][0,0.5]∪[0.3,0.8] is the single interval [0,0.8][0, 0.8][0,0.8] and has length 0.80.80.8, not 0.5+0.50.5 + 0.50.5+0.5, because the overlap [0.3,0.5][0.3, 0.5][0.3,0.5] may only be counted once; inclusion–exclusion from "Measuring the size of sets" gives the same answer, 0.5+0.5−0.2=0.80.5 + 0.5 - 0.2 = 0.80.5+0.5−0.2=0.8.

Elementary sets are far too few. The Borel sets of "σ-algebras and Borel sets" include the rational numbers, the irrational numbers, and sets built by removing infinitely many intervals, and none of these is a finite union of intervals. What is needed is a way to give a set a length without first writing it as a list of intervals.

Covering a set by intervals

The idea is the one used to estimate the area of an irregular region with square tiles: cover the region, add up the sizes of the tiles, and look for the cheapest covering. Tiles may overlap and may stick out of the region. That only makes the total larger, never smaller, so the cheapest covering is an honest estimate from outside.

Formally, a countable cover of a set A⊆RA \subseteq \mathbb{R}A⊆R is a sequence of intervals I1,I2,…I_1, I_2, \ldotsI1​,I2​,… whose union contains AAA. The outer measure of AAA is the smallest total length that a countable cover can achieve:

λ∗(A)=inf⁡{∑k=1∞λ(Ik)  :  A⊆⋃k=1∞Ik}.\lambda^*(A) = \inf\Big\{ \sum_{k=1}^{\infty} \lambda(I_k) \;:\; A \subseteq \bigcup_{k=1}^{\infty} I_k \Big\}.λ∗(A)=inf{k=1∑∞​λ(Ik​):A⊆k=1⋃∞​Ik​}.

In words, λ∗(A)\lambda^*(A)λ∗(A) is the least amount of interval length it takes to hide AAA. The infimum is needed because the cheapest cover is often approached but not reached: a single point is hidden by an interval of length ε\varepsilonε for every ε>0\varepsilon > 0ε>0, so its outer measure is 0, although every honest interval around it has positive length.

Three properties follow from the definition. Outer measure is monotone: if A⊆BA \subseteq BA⊆B, every cover of BBB also covers AAA, so λ∗(A)≤λ∗(B)\lambda^*(A) \le \lambda^*(B)λ∗(A)≤λ∗(B). It is countably subadditive: λ∗(⋃kAk)≤∑kλ∗(Ak)\lambda^*\big(\bigcup_k A_k\big) \le \sum_k \lambda^*(A_k)λ∗(⋃k​Ak​)≤∑k​λ∗(Ak​). To see this, cover each AkA_kAk​ by intervals of total length at most λ∗(Ak)+ε/2k\lambda^*(A_k) + \varepsilon/2^kλ∗(Ak​)+ε/2k. All these intervals together still form one countable list, they cover the union, and their total length is at most ∑kλ∗(Ak)+ε\sum_k \lambda^*(A_k) + \varepsilon∑k​λ∗(Ak​)+ε; then let ε\varepsilonε shrink to 0. Finally, outer measure gives intervals their length: λ∗([a,b])=b−a\lambda^*([a, b]) = b - aλ∗([a,b])=b−a.

The last property sounds obvious, but it is where the real work hides. The upper bound is free, since [a,b][a, b][a,b] covers itself. The lower bound says that no clever countable cover of [0,1][0, 1][0,1] has total length below 1. The proof idea: enlarge each interval of the cover slightly into an open interval; use the compactness of [0,1][0, 1][0,1], which says that any cover by open intervals contains a finite cover, to keep only finitely many; then walk from 0 to 1 through these overlapping intervals, which shows that their lengths add up to more than 1. This is an outline rather than a full proof, but it shows where the completeness of the real line enters.

Why the covers must be countable

Allowing only finite covers would look more natural, and it was the older approach, called Jordan content. It fails exactly on the sets this lesson cares about. Take the rationals in [0,1][0, 1][0,1] and try to cover them by finitely many closed intervals. Every point of [0,1][0, 1][0,1] is a limit of rationals, and a finite union of closed intervals is a closed set, so it contains all these limits: any finite cover of the rationals covers the whole of [0,1][0, 1][0,1], and its total length is at least 1. The irrationals of [0,1][0, 1][0,1] are just as densely spread, so by the same argument every finite cover of them also costs at least 1.

With finite covers, then, the rationals and the irrationals would both have size 1, although together they make up [0,1][0, 1][0,1], which also has size 1. Additivity would claim 1+1=11 + 1 = 11+1=1. Countable covers repair this, because a countable list of intervals can visit each rational separately with an interval as short as you like, as the next section shows. This is why measure theory insists on countable covers and countable additivity: they let a notion of size see individual points.

Countable sets have length zero

A single point xxx is covered by [x−ε/2,x+ε/2][x - \varepsilon/2, x + \varepsilon/2][x−ε/2,x+ε/2], of length ε\varepsilonε, for every ε>0\varepsilon > 0ε>0, so λ∗({x})=0\lambda^*(\{x\}) = 0λ∗({x})=0. Finitely many points are covered just as cheaply. The interesting case is a countably infinite set, and the standard example is the set of rationals in [0,1][0, 1][0,1].

The rationals can be listed one after another, q1,q2,q3,…q_1, q_2, q_3, \ldotsq1​,q2​,q3​,…, for example by denominator: 0,1,12,13,23,14,34,15,…0, 1, \tfrac12, \tfrac13, \tfrac23, \tfrac14, \tfrac34, \tfrac15, \ldots0,1,21​,31​,32​,41​,43​,51​,…. Fix a budget ε>0\varepsilon > 0ε>0 and give the kkk-th rational an interval of length ε/2k\varepsilon/2^kε/2k centred on it. The first interval uses half the budget, the second a quarter, the third an eighth, and the whole list never exceeds the budget:

∑k=1∞ε2k=ε(12+14+18+⋯)=ε.\sum_{k=1}^{\infty} \frac{\varepsilon}{2^k} = \varepsilon\Big(\frac12 + \frac14 + \frac18 + \cdots\Big) = \varepsilon.k=1∑∞​2kε​=ε(21​+41​+81​+⋯)=ε.

Since ε\varepsilonε was arbitrary, the rationals of [0,1][0, 1][0,1] have outer measure 0. They are dense, with one inside every interval however short, and yet together they fill no room at all. Length measures how much room a set occupies, not how widely its points are scattered. The same argument works for every countable set: the integers, the numbers of the form k/2nk/2^nk/2n, and the endpoints of the intervals in the Cantor construction below.

Worked example

Covering the rationals with a budget of 0.01

  1. The interval around q1q_1q1​ uses half the budget:

    0.01/2\displaystyle 0.01/20.01/2=0.005
  2. The interval around q2q_2q2​ uses a quarter of it:

    0.01/4\displaystyle 0.01/40.01/4=0.0025
  3. The first ten intervals together:

    0.01 (1−2−10)\displaystyle 0.01\,(1 - 2^{-10})0.01(1−2−10)=0.0099902
  4. All of them together, at most:

    0.01∑k≥12−k\displaystyle 0.01 \sum_{k \ge 1} 2^{-k}0.01k≥1∑​2−k=0.01
  5. For comparison, a finite cover by closed intervals covers all of [0,1][0, 1][0,1], so it costs at least:

    λ([0,1])\displaystyle \lambda([0, 1])λ([0,1])=1

A countable union of null sets is null: cover the kkk-th set by intervals of total length ε/2k\varepsilon/2^kε/2k, and all these intervals together form one countable list of total length at most ε\varepsilonε. The rationals are this rule applied to countably many single points.

Measurable sets

Outer measure is defined for every subset of R\mathbb{R}R, so it is tempting to call it length and stop. Vitali's set from "σ-algebras and Borel sets" shows why that cannot work: [0,1)[0, 1)[0,1) splits into countably many shifted copies of that set, and no single number can be the length of all of them. Outer measure still gives the Vitali set a number, but on such sets it is only subadditive: the outer measures of the pieces add up to more than the outer measure of the whole. The cheapest covers of different pieces are forced to overlap.

Carathéodory found a test that picks out the sets on which this never happens. A set EEE is Lebesgue-measurable if it splits every set cleanly:

λ∗(A)=λ∗(A∩E)+λ∗(A∖E)for every A⊆R.\lambda^*(A) = \lambda^*(A \cap E) + \lambda^*(A \setminus E) \qquad \text{for every } A \subseteq \mathbb{R}.λ∗(A)=λ∗(A∩E)+λ∗(A∖E)for every A⊆R.

In words: whatever test set AAA you take, cutting it along EEE produces two pieces whose outer measures add up exactly to that of AAA; the cut wastes nothing. An interval passes the test. For E=[0,0.5]E = [0, 0.5]E=[0,0.5] and the test set A=[0.25,0.75]A = [0.25, 0.75]A=[0.25,0.75], the two pieces are [0.25,0.5][0.25, 0.5][0.25,0.5] and (0.5,0.75](0.5, 0.75](0.5,0.75], of outer measure 0.250.250.25 each, and 0.25+0.25=0.5=λ∗(A)0.25 + 0.25 = 0.5 = \lambda^*(A)0.25+0.25=0.5=λ∗(A). The Vitali set fails the test: its points are spread so irregularly that some test sets lose length-additivity when cut along it.

Carathéodory's theorem says three things. The Lebesgue-measurable sets form a σ-algebra. This σ-algebra contains every interval, and therefore every Borel set, because the Borel sets form the smallest σ-algebra that contains the intervals. And on it, outer measure is countably additive. Restricted to the measurable sets, λ∗\lambda^*λ∗ is called Lebesgue measure and written λ\lambdaλ. The proof is a page of careful inequalities and is not reproduced here. What matters is the outcome, which settles the first question of this lesson: length exists on every Borel set and obeys all the rules of "Measuring the size of sets".

Uniqueness, shifts and scaling

Could another measure on the Borel sets also give every interval its length, but disagree with λ\lambdaλ somewhere else? No: two measures that agree on all intervals of [0,1][0, 1][0,1] agree on every Borel subset of [0,1][0, 1][0,1]. The intuition is this. The sets on which the two measures agree are closed under complements and under countable disjoint unions, they contain every interval, and the intersection of two intervals is again an interval. These three facts are enough to force agreement on the whole σ-algebra that the intervals generate; the precise statement is Dynkin's π–λ theorem. So length on the Borel sets is not a choice: once intervals are fixed, everything else is fixed too.

Two symmetry rules follow from uniqueness. Shifting a set does not change its length, λ(A+x)=λ(A)\lambda(A + x) = \lambda(A)λ(A+x)=λ(A), because A↦λ(A+x)A \mapsto \lambda(A + x)A↦λ(A+x) is again a measure that gives every interval its length. Stretching a set by a factor ccc multiplies its length by ∣c∣|c|∣c∣, λ(cA)=∣c∣ λ(A)\lambda(cA) = |c|\,\lambda(A)λ(cA)=∣c∣λ(A), because A↦λ(cA)/∣c∣A \mapsto \lambda(cA)/|c|A↦λ(cA)/∣c∣ also gives every interval its length. On the whole line λ(R)=∞\lambda(\mathbb{R}) = \inftyλ(R)=∞, but R\mathbb{R}R is the countable union of the intervals [n,n+1][n, n + 1][n,n+1], each of length 1, and that is all the theory needs to carry over from [0,1][0, 1][0,1] to R\mathbb{R}R.

The Cantor set

Countable sets are not the only sets of length zero. The Cantor set is built by removing middle thirds again and again:

  1. Start with C0=[0,1]C_0 = [0, 1]C0​=[0,1].
  2. Remove the open middle third (13,23)(\tfrac13, \tfrac23)(31​,32​). What is left, C1=[0,13]∪[23,1]C_1 = [0, \tfrac13] \cup [\tfrac23, 1]C1​=[0,31​]∪[32​,1], consists of 2 intervals of length 13\tfrac1331​.
  3. From each interval left, remove its open middle third. C2C_2C2​ consists of 4 intervals of length 19\tfrac1991​.
  4. Repeat. After nnn steps, CnC_nCn​ consists of 2n2^n2n intervals of length 3−n3^{-n}3−n, with total length (2/3)n(2/3)^n(2/3)n.
  5. The Cantor set is what is never removed: C=C0∩C1∩C2∩⋯C = C_0 \cap C_1 \cap C_2 \cap \cdotsC=C0​∩C1​∩C2​∩⋯.

The sets CnC_nCn​ shrink, C0⊇C1⊇C2⊇⋯C_0 \supseteq C_1 \supseteq C_2 \supseteq \cdotsC0​⊇C1​⊇C2​⊇⋯, and each has finite length, so continuity from above, from "Measuring the size of sets", gives the length of their intersection as the limit of their lengths:

λ(C)=lim⁡n→∞λ(Cn)=lim⁡n→∞(23)n=0.\lambda(C) = \lim_{n \to \infty} \lambda(C_n) = \lim_{n \to \infty} \Big(\frac{2}{3}\Big)^n = 0.λ(C)=n→∞lim​λ(Cn​)=n→∞lim​(32​)n=0.

A second argument uses the symmetry rules. The Cantor set is made of two copies of itself shrunk by a factor 3: C=13C ∪ (13C+23)C = \tfrac13 C \,\cup\, \big(\tfrac13 C + \tfrac23\big)C=31​C∪(31​C+32​), the left copy inside [0,13][0, \tfrac13][0,31​] and the right copy inside [23,1][\tfrac23, 1][32​,1]. Scaling and shifting give λ(C)=13λ(C)+13λ(C)=23λ(C)\lambda(C) = \tfrac13\lambda(C) + \tfrac13\lambda(C) = \tfrac23\lambda(C)λ(C)=31​λ(C)+31​λ(C)=32​λ(C), and the only finite number equal to two thirds of itself is 0.

Yet CCC is anything but small when its points are counted. Write the numbers of [0,1][0, 1][0,1] in base 3, with digits 0, 1 and 2. The first step removes the numbers whose first ternary digit has to be 1, the second step those whose second digit has to be 1, and so on. So CCC consists exactly of the numbers that have a ternary expansion using only the digits 0 and 2. Some of them are endpoints, such as 13=0.0222…3\tfrac13 = 0.0222\ldots_331​=0.0222…3​, but most are not: 14=0.020202…3\tfrac14 = 0.020202\ldots_341​=0.020202…3​ lies in CCC and is the endpoint of no removed interval. Now replace every digit 2 by a 1 and read the result in base 2, so that 0.0202…30.0202\ldots_30.0202…3​ becomes 0.0101…20.0101\ldots_20.0101…2​. Every number of [0,1][0, 1][0,1] has a binary expansion, so this map from CCC onto [0,1][0, 1][0,1] misses nothing, and CCC has at least as many points as [0,1][0, 1][0,1]: it is uncountable. A set can have as many points as an interval and still have length zero.

The fat Cantor set

The opposite surprise comes from removing less. The fat Cantor set removes, at step kkk, an open middle interval of length 4−k4^{-k}4−k from each of the 2k−12^{k-1}2k−1 pieces present. Step 1 removes (38,58)(\tfrac38, \tfrac58)(83​,85​), of length 14\tfrac1441​; step 2 removes an interval of length 116\tfrac1{16}161​ from the middle of each of the two pieces; and so on. The total length removed is

∑k=1∞2k−1⋅4−k=∑k=1∞12k+1=12,\sum_{k=1}^{\infty} 2^{k-1} \cdot 4^{-k} = \sum_{k=1}^{\infty} \frac{1}{2^{k+1}} = \frac12,k=1∑∞​2k−1⋅4−k=k=1∑∞​2k+11​=21​,

so after nnn steps the length left is 12+2−(n+1)\tfrac12 + 2^{-(n+1)}21​+2−(n+1), and the limit set has length 12\tfrac1221​. The pieces shrink to width zero, so every interval of [0,1][0, 1][0,1] eventually has a hole punched into it, and the fat Cantor set contains no interval at all. Still, it occupies half of [0,1][0, 1][0,1]. Containing an interval is a statement about shape; length is a statement about amount, and the two are independent.

The figure runs both constructions. Choose the construction, move the number of steps nnn, and compare the readouts. With middle thirds and the default n=4n = 4n=4 there are 16 intervals, the smallest of length 1/81≈0.01231/81 \approx 0.01231/81≈0.0123, and the length left is 16/81≈0.197516/81 \approx 0.197516/81≈0.1975, on its way to 0. Switching to the fat set at the same nnn leaves 0.53130.53130.5313, on its way to 0.50.50.5.

Removing middles: the Cantor set and a fat Cantor setOpen in Lebesgue Measure
4
08
01/32/31
Intervals
16
Smallest interval
0.0123
Length left = P(U ∈ Cₙ)
0.1975
Length removed
0.8025
Length as n → ∞
0.0

A uniform draw U lands in what is left with probability equal to its length.

Counting points, spread and length are three different ways to describe a set. The rationals are countable and dense, with length 0; the Cantor set is uncountable and contains no interval, with length 0; the fat Cantor set is uncountable and contains no interval, with length 1/2.

Null sets and almost everywhere

A set of measure zero is a null set. Every countable set is null, the Cantor set is null, and so is every subset of a null set and every countable union of null sets. Null sets are the sets a measure cannot see: removing one from a set, or adding one to it, leaves the measure unchanged.

This makes a new kind of statement possible. A property holds almost everywhere (a.e.) if the set where it fails is null. Almost every number in [0,1][0, 1][0,1] is irrational, because the exceptions, the rationals, form a null set. The indicator 1Q\mathbf{1}_{\mathbb{Q}}1Q​, equal to 1 at the rationals and 0 elsewhere, equals the zero function almost everywhere, although it differs from it at infinitely many points of every interval. Later lessons of this track use this all the time: functions that agree almost everywhere have the same integral, and in probability the same idea is called almost surely.

A more striking example comes from decimal digits. Which numbers of [0,1][0, 1][0,1] never use the digit 7? After one digit, they lie in 9 of the 10 intervals [0,0.1),[0.1,0.2),…,[0.9,1][0, 0.1), [0.1, 0.2), \ldots, [0.9, 1][0,0.1),[0.1,0.2),…,[0.9,1], with total length 0.90.90.9. After two digits they lie in 92=819^2 = 8192=81 of the 100 intervals of length 0.010.010.01, with total length 0.810.810.81. After nnn digits the length left is 0.9n0.9^n0.9n. The numbers with no 7 at all lie inside every one of these sets, so their length is at most 0.9n0.9^n0.9n for every nnn: they form a null set. Almost every number has a 7 somewhere in its decimal expansion. The same argument works for any digit and for any finite string of digits, so almost every number contains every string of digits somewhere in its expansion. Yet the exceptional set is not empty, since 0.50.50.5 and 19=0.111…\tfrac19 = 0.111\ldots91​=0.111… avoid the digit 7, and by the digit argument used for the Cantor set it is even uncountable.

Worked example

Numbers without the digit 7

  1. After one digit, 9 of the 10 intervals of length 0.1 remain:

    9⋅0.1\displaystyle 9 \cdot 0.19⋅0.1=0.9
  2. After two digits, 81 of the 100 intervals of length 0.01 remain:

    81⋅0.01\displaystyle 81 \cdot 0.0181⋅0.01=0.81
  3. After ten digits:

    0.910\displaystyle 0.9^{10}0.910=0.348678
  4. After fifty digits:

    0.950\displaystyle 0.9^{50}0.950=0.005154
  5. The first nnn for which the length left drops below 0.01:

    min⁡{n:0.9n<0.01}\displaystyle \min\{n : 0.9^n < 0.01\}min{n:0.9n<0.01}=44
  6. The numbers with no 7 at all lie inside every one of these sets, so their length is:

    lim⁡n→∞0.9n\displaystyle \lim_{n \to \infty} 0.9^nn→∞lim​0.9n=0

Null is not the same as empty, and once length is read as probability, null is not the same as impossible either. A number drawn uniformly from [0,1][0, 1][0,1] lands in the Cantor set with probability zero, and it equals 0.50.50.5 with probability zero. Yet the number drawn has to be some number, and every single number has probability zero. Probability zero says that a set is too thin to be hit with any positive frequency, not that it has no points.

Completion

Lebesgue measure, as Carathéodory's test builds it, lives on a σ-algebra slightly larger than the Borel sets: it also contains every subset of every Borel null set, with measure zero. This enlargement is the completion of the Borel σ-algebra. The extra sets are many. The Cantor set has as many points as [0,1][0, 1][0,1], so it has as many subsets as [0,1][0, 1][0,1] has, all of them null and Lebesgue-measurable, and there are more of them than there are Borel sets. But completion adds no new lengths, only new null sets, and it never changes the measure of a set that already had one. Its use is convenience: a statement such as "f=gf = gf=g almost everywhere" can refer to the set where f≠gf \ne gf=g without first checking that this set is Borel.

Measurable sets are nearly intervals

After the Cantor sets, measurable sets may look hopelessly wild. In a precise sense they are not: every measurable set can be squeezed between an open set and a closed set whose lengths are as close as you like. For a measurable E⊆[0,1]E \subseteq [0, 1]E⊆[0,1] and any ε>0\varepsilon > 0ε>0 there are an open set UUU and a closed set FFF with

F⊆E⊆Uandλ(U∖F)<ε.F \subseteq E \subseteq U \qquad \text{and} \qquad \lambda(U \setminus F) < \varepsilon.F⊆E⊆Uandλ(U∖F)<ε.

The open set comes straight from the definition of outer measure: take a cover of EEE by intervals with total length below λ(E)+ε\lambda(E) + \varepsilonλ(E)+ε and enlarge each interval slightly into an open one. For the rationals, UUU is the union of the short intervals of the worked example, with a budget below ε\varepsilonε, and FFF can be the empty set. For the fat Cantor set, FFF is the fat Cantor set itself, which is closed, and UUU is a slightly enlarged step CnC_nCn​ of its construction.

An open subset of [0,1][0, 1][0,1] is a countable union of disjoint open intervals, and since their total length is finite, all but finitely many of them together have negligible length. So there is even a finite union of intervals GGG with λ(E △ G)<ε\lambda(E \,\triangle\, G) < \varepsilonλ(E△G)<ε, where E△GE \triangle GE△G is the set of points that lie in one of the two sets but not in the other. The mathematician J. E. Littlewood summarised this as his first principle: every measurable set is nearly a finite union of intervals. Lebesgue measure extends length to strange sets, but only to sets that intervals approximate arbitrarily well, which is why its values agree with intuition wherever intuition has something to say.

Area and volume

The construction works in any dimension. In the plane, cover a set by countably many rectangles [a1,b1]×[a2,b2][a_1, b_1] \times [a_2, b_2][a1​,b1​]×[a2​,b2​], add up their areas (b1−a1)(b2−a2)(b_1 - a_1)(b_2 - a_2)(b1​−a1​)(b2​−a2​) and take the infimum. Carathéodory's test then picks out the measurable sets, and on them this outer measure is two-dimensional Lebesgue measure: area. It gives a disc of radius rrr the area πr2\pi r^2πr2, which can be checked by filling the disc from inside and covering it from outside with thin rectangles. It gives every line segment area 0, since a segment of length ℓ\ellℓ fits inside a rectangle of area ℓε\ell\varepsilonℓε for every ε>0\varepsilon > 0ε>0, and for the same reason the graph of any continuous function on [0,1][0, 1][0,1] has area 0. In three dimensions, boxes give volume. Everything in this lesson, null sets, almost everywhere and the approximation by simple sets, carries over unchanged.

Summary

  • Lebesgue measure λ\lambdaλ gives every interval its length; outer measure λ∗(A)\lambda^*(A)λ∗(A), the cheapest total length of a countable cover of AAA by intervals, extends it to every set.
  • The covers must be countable: with finite covers, the rationals and the irrationals of [0,1][0, 1][0,1] would both have size 1, and additivity would fail.
  • Carathéodory's test picks out the measurable sets; they form a σ-algebra containing every Borel set, on which λ\lambdaλ is countably additive, unique, unchanged by shifts and scaled by stretches.
  • Null sets include every countable set and the uncountable Cantor set; the fat Cantor set contains no interval yet has length 1/2.
  • A property holds almost everywhere if it fails only on a null set: almost every number is irrational and contains every digit in its decimal expansion.
Try itOpen the Lebesgue measure lab
Previous · 02σ-algebras and Borel setsNext · 04Measurable functions
Connections

Lebesgue measure and null sets

Open the full graph
Builds on
05.02σ-algebras and Borel sets05.01Measuring the size of sets
Leads to
05.04Measurable functions05.05The Lebesgue integral05.06Convergence theorems05.07Probability spaces and Kolmogorov's axioms05.08Random variables and their distributions05.10Independence and product measures05.11Modes of convergence and the law of large numbers05.13Measure theory in option pricing
See it in the knowledge graph
Labs for this lesson
Lebesgue Measure