A14 · Lesson 46 · Measure and the Lebesgue integral
Slicing the range instead of the domain, and why graduate courses need it
The Riemann integral breaks under limits: the indicator of the rationals in [0, 1] is a pointwise limit of functions that are each zero except at finitely many points, and every one of those has integral 0, yet the limit has no Riemann integral at all. Lebesgue fixed this by measuring sets more cleverly and by slicing the range of a function instead of its domain. The payoff is an integral that limits pass through cleanly, a space that's complete, and a rigorous foundation for probability, where an expected value is an integral and an event of probability 0 is a set of measure 0. Graduate courses in signal processing, control and communications assume it; this lesson gives the ideas without the full construction.
- Riemann slices the domain into strips. Lebesgue slices the range: the staircase rounds down to multiples of , then adds up each level times the measure (total length) of the set where f is at that level.
- However wild the function, the rounded version is within of it everywhere (readout), so the sums converge.
- For a function like the indicator of the rationals, the set where f = 1 has measure 0, so Lebesgue gives its integral as 0 at once, where Riemann's upper and lower sums never meet.
Predict
What's the total length (measure) of the rational numbers in [0, 1]?
- The rationals can be listed ; cover by an interval of length , and the whole cover has total length at most ε, for any ε > 0. Any countable set has measure 0, even a dense one. The irrationals in [0, 1] therefore have measure 1.
Name it
Measure
Lebesgue measure extends length from intervals to a huge family of sets: the measure of a set is the smallest total length of countably many intervals covering it. Properties:
- the measure of [a, b] is b − a;
- countably additive: disjoint sets' measures add, even infinitely many;
- every countable set has measure 0; so does the Cantor set (lesson 11), which is uncountable.
A property holds almost everywhere (a.e.) if it fails only on a set of measure 0. Functions equal a.e. have the same integral and are the same element of .
The Lebesgue integral
For a nonnegative measurable f, approximate it from below by simple functions (finitely many levels, each on a measurable set): , and take the supremum. Equivalently, the layer-cake formula:
How it relates to Riemann
- Every Riemann-integrable function is Lebesgue integrable, with the same integral.
- A bounded function on [a, b] is Riemann integrable exactly when its set of discontinuities has measure 0.
- Lebesgue integrates far more (the indicator of the rationals: integral 0) and, crucially, behaves under limits (lesson 47).
Probability
A probability is a measure with total mass 1, an event is a measurable set, a random variable is a measurable function, and . "With probability 1" means "almost everywhere": a uniformly random number in [0, 1] is irrational with probability 1.
Worked example
Compute by the layer-cake formula.
Show the solution
- The level sets. On [0, 1], exactly when , a set of measure (for 0 ≤ t ≤ 1).
- Integrate the measures.
- Check. That's , as expected, found by integrating the measures of the level sets instead of the heights over the strips.
Answer .
Worked example
Cover the rationals in [0, 1] by intervals of total length at most 0.001.
Show the solution
- List the rationals.
- Cover each one. Put an interval of length around .
- Add the lengths.
- Conclude. However small the budget, a cover exists, so the measure is 0.
Answer an interval of length around the kth rational covers them all with total length 0.001, so the rationals in [0, 1] have measure 0.
Worked example
For f(x) = x on [0, 1], compare Chebyshev's (Markov's) bound on with the truth.
Show the solution
- Markov's bound.
- The truth. The actual measure of is 0.2.
- Why use it. The bound is loose but general: it needs only the integral, and it holds for every nonnegative measurable function.
- In probability. It's the reason a random variable can't often be far above its mean, and squaring first (Chebyshev's inequality) sharpens it when the variance is known.
Answer Markov's bound gives 0.625, against an actual measure of 0.2.
Check
Using the layer-cake formula with , what's ?
Check
The rationals in [0, 1] are covered by intervals of length for k = 1, 2, 3, .... What's the total length?
Check
How much total length has been removed after 12 stages of the Cantor construction?
Check
f equals 5 on [0, 3] except at the rational points, where it's 0. What's its Lebesgue integral over [0, 3]?
Check
Rounding a function down to multiples of : how far can the rounded version be from the function, at most?
Check
A number is chosen uniformly at random from [0, 1]. What's the probability it's rational?
Check
on [0, 1].
(a)
What bound does Markov's inequality give on ?
(b)
What is the actual measure?
Check
The layer-cake formula for .
Step 1
With , what is the integral?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Explain why
Why does slicing the range (Lebesgue) handle wild functions that slicing the domain (Riemann) can't?
Riemann's sums need the function to be nearly constant on each small strip of the domain, which fails for a function that jumps around everywhere, like the indicator of the rationals: every strip contains both values, so the upper and lower sums never agree. Lebesgue instead groups the points by the function's value: all the points where f is near a given level, wherever they are, form one set, and its size is measured, however scattered it is. That only requires measuring complicated sets, which Lebesgue measure does, and the rounding error is controlled by the spacing of the levels, not by how the function behaves on strips. So any measurable function can be integrated, and limits of functions are handled level by level.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.