Measurable functions
"Lebesgue measure and null sets" built length for every Borel set, and "σ-algebras and Borel sets" explained which sets may be measured at all: the sets of a chosen σ-algebra, the events one can answer questions about. So far the objects being measured have been sets. But most of what one wants to know about a space is described by functions on it: a score, a temperature, a position. A function has no length. What can be measured is how much of the space the function sends into a given range of values, the length of . This lesson asks which functions allow that question to be answered for every Borel set , calls them measurable, and shows that nearly every function met in practice is one. It then introduces two tools that the following lessons build on: simple functions, which approximate any measurable function from below, and image measures, which record where a measure ends up after a function has moved its points.
Preimages
Take the function on , with length as the measure. How much of is sent into the range of values from to ? Since exactly when , and exactly when , the answer is the interval , which has length . The set of points whose value falls in a given set is called the preimage of :
Here is the space where lives, and is a set of values. The notation does not mean that has an inverse function: on certainly has none, because and share the value .
A preimage can have several pieces. Let , a hump that rises from 0 at to 1 at and falls back to 0 at . The points with a value in form the single interval , because , and its length is . The points with a value in form two intervals, one on the rising side and one on the falling side. Solving gives . For this is and , for it is and , so the preimage is , of total length .
Preimages are the right tool because they respect every operation on sets that a σ-algebra is built from:
Each identity takes one line. A point lies in exactly when is not in , that is, exactly when is not in . A point lies in exactly when is in some , that is, exactly when is in some . The reason is that every point has exactly one value, so the question "is in ?" has a yes-or-no answer for each separately. For on the set has the preimage , and its complement has the preimage , which is the complement of in .
Forward images do not behave like this. Let on , and . The two sets meet only in the point , so , yet . Different points can share a value, and the forward image forgets which point a value came from. This is why measurability is defined through preimages.
Measurable functions
Let be a measurable space, as in "σ-algebras and Borel sets". A function is measurable if the preimage of every Borel set lies in :
In words: for every question of the form "does the value of fall in ?", the set of points where the answer is yes is an event. If is a measure on , then is defined for every Borel set , and this is the number that says how much of has its value in .
Each ingredient of the definition has a job. The condition on guarantees that the preimages can be measured at all. The Borel sets on the value side are the sets of that are meaningful to ask about, and they cannot be replaced by all subsets of : with , the Borel sets as , and the identity function , the preimage of Vitali's set is itself, which is not in .
The half-line test
There are far too many Borel sets to check one by one. Luckily it is enough to check the half-lines. Write for the set . If for every real number , then is measurable. The argument has three steps, and its idea is used again and again.
- Collect the good sets: let be the family of all for which . This family is a σ-algebra. It contains , because . It is closed under complements and countable unions, because preimages turn complements into complements and unions into unions, and is closed under both.
- By assumption, contains every half-line .
- The Borel sets are the smallest σ-algebra that contains the half-lines ("σ-algebras and Borel sets"). A σ-algebra that contains the half-lines contains the smallest one, so contains every Borel set, which says that is measurable.
Other half-lines work just as well, because each can be built from another by complements and countable operations: is the complement of , and . Later lessons use whichever form is most convenient.
As an example, take on . The set is for , empty for , and all of for : always an interval, so is measurable. For the hump and , is , again a Borel set.
Examples and a non-example
Most functions one meets are measurable, and several familiar kinds are quickly seen to be.
- Continuous functions. If is continuous, the preimage of an open set is open, and open sets are Borel. Open sets generate the Borel sets, so the good-sets argument gives for every Borel .
- Monotone functions. If is increasing, then is an interval: if and , then . So monotone functions are measurable even when they jump.
- Indicators. The indicator equals 1 on and 0 elsewhere. A preimage under is , , or , depending on whether contains neither of the values 0 and 1, only 1, only 0, or both. So is measurable exactly when .
- Step functions. A function that takes finitely many values on intervals is measurable, because each preimage is a finite union of those intervals. The step function of the figure below is on , on and on ; then , of length .
Continuity is not required. The function , equal to 1 at the rationals and 0 at the irrationals, is discontinuous at every point of , yet it is measurable, because the rationals form a countable, hence Borel, set. Measurability asks only that the level sets can be measured, not that the function varies smoothly.
A non-example comes from the one place where measurability can fail. With Vitali's set and the Borel sets as , the indicator is not measurable, because is not an event. A function is non-measurable exactly when it hides a non-measurable set, and every such example needs the same exotic constructions as Vitali's set itself. Every function that can be written down by a formula, a limit or an explicit rule is measurable.
Measurability on a partition
Measurability is easiest to understand when is finite. Let be the σ-algebra generated by a partition, as in "σ-algebras and Borel sets", whose pieces are the atoms. Every event is a union of atoms, and a function is measurable exactly when it is constant on every atom.
To see why, suppose takes two different values on one atom, at points and . The preimage of the single value contains but not . It is an event, hence a union of atoms, hence it contains whenever it contains , because and lie in the same atom. This is a contradiction. In the other direction, if is constant on every atom, every preimage is a union of whole atoms, which is an event.
The running example of the die makes this concrete. Let and let the observer who sees only the parity of the face have the σ-algebra , with the two atoms and . The function "face mod 2", equal to 1 on odd faces and 0 on even faces, is constant on both atoms, hence measurable, and its preimages are for the value 0 and for the value 1. The function , the face itself, is not measurable: it takes the values 1 and 3 on the atom , and the event "the face is 1" is not one the parity observer can answer. The observer who sees only "at most 2" has the atoms and , and a function is measurable for this observer exactly when it is a pair of numbers, one for each atom.
In words, a function is measurable when its value can be computed from the information the σ-algebra stands for: the parity observer can compute "face mod 2" but not the face, and an observer who knows nothing can compute only constants.
The σ-algebra generated by a function
Every function carries some information, namely the information that is revealed by knowing its value. This is captured by the collection of all preimages of Borel sets:
Since preimages keep complements and countable unions, is a σ-algebra, and it is the smallest one for which is measurable: any σ-algebra that makes measurable contains all these preimages. It consists of the events whose truth can be decided by looking at alone.
On the die, let if and otherwise. The preimages are and , and so , exactly the "at most 2" observer. A function with more values knows more. Let , the squared distance of the face from the middle. Its values are for the faces and , for and , and for and . The atoms of are , and , and has events. Squaring has lost the side of the middle on which the face lies; no event separating from is in . The same happens for on , where contains only the Borel sets that are symmetric about 0.
Combining measurable functions
New measurable functions come from old ones, and the rules explain why measurability is so rarely a problem. Let and be measurable. The sum is measurable, and the proof shows how countability enters. A point satisfies exactly when some rational number separates the two parts, with and :
If , then , and a rational number fits strictly between them. The right side is a countable union of events, so it is an event.
The other rules use the same half-line test. The maximum and minimum satisfy and . The square is measurable, since is for and otherwise, and the product follows from . If is a Borel function, such as or a continuous function, then is measurable, because and is Borel.
The strongest rules concern sequences. If are measurable, then so are and , since
The supremum exceeds exactly when some term does. These functions may take the value or , and the half-line test works unchanged for functions with values in . From suprema and infima come and , and so the pointwise limit , wherever it exists, which is where and agree.
A pointwise limit of continuous functions need not be continuous, but it is measurable. The functions on are all continuous. At they take the values , which tend to 0, while at they stay at 1. The limit is therefore on and at the single point , which is : not continuous, but measurable, and equal to the zero function almost everywhere.
One last rule concerns null sets. Suppose equals the measurable function except on a null set . Then and differ at most inside , so is measurable for the completed σ-algebra of "Lebesgue measure and null sets". It need not be Borel measurable: if is a subset of the Cantor set that is not Borel, then equals the zero function almost everywhere, yet is not Borel.
Simple functions
The simplest nonconstant measurable functions take only finitely many values. A simple function is a finite combination
It is measurable because each indicator is measurable and sums and constant multiples are. The sets may overlap. For example, on equals on , where only the first indicator is on, on , where both are on, and on . Its standard form uses the distinct values and the disjoint sets on which they are taken, . The sets then partition , with lengths , and . A simple function is a finite list of values, each with the event where it is taken.
The reason for introducing simple functions is that every nonnegative measurable function is a limit of them. Given and a level of detail , round every value down to a multiple of (a dyadic grid), and cap the result at :
The cap keeps the number of values finite, even if is unbounded: for at , where , the value of is . This is simple. It takes values for , and the set where it takes the value is , or for the largest value. These are events because is measurable. Moreover , and , since a finer grid can only move the rounded-down value up, and the cap only grows. Finally pointwise: once the cap is inactive and .
For at , where , the approximations are , , , and . They rise towards and stay below it, and at the error is below .
What matters most is how cuts up the problem. It slices the range of into bands of height and records, for each band, the set of points whose value falls in it. It does not slice the domain into pieces of equal width. For and the bands are , , and , and their preimages are , , and , with lengths , , and , which add up to 1. Each preimage is a Borel set, which is exactly where measurability is needed. The next lesson, "The Lebesgue integral", multiplies every value of by the length of its set and adds up.
Image measures
A measurable function moves a measure from the space where it lives to the number line. Let be a measure space and measurable. The image measure of under , also called the pushforward, is
The picture is sand. Think of as an amount of sand spread over , and let carry each grain from to the position on the number line. Then is the amount of sand that ends up in . It is defined for every Borel set exactly because is measurable, since the preimages must be sets that can measure.
It is a measure on . The empty set has an empty preimage, so it receives 0. If are disjoint, their preimages are disjoint, since a point has only one value, and the preimage of the union is the union of the preimages, so countable additivity of carries over:
Grains are moved, never created or destroyed, so the total mass is unchanged: . A probability measure becomes a probability measure.
Take on and the step function of the figure. It sends the interval to the position , to and to , so all the sand ends up at three positions: , a combination of point masses as in "Measuring the size of sets". The band contains the positions and , so it receives , which is also the length of its preimage.
For the result is smoother. The set has length , so . The quarter of the number line receives , half of all the sand, while receives only . The squaring crowds the values towards 0. For an interval the amount is , which is the area under the curve between and , because has the derivative . So the image measure has the density on , which is large near 0, where the sand piles up.
The hump is different. Every height below the top is reached twice, so is the interval from to , of length : for and for .
The figure shows all of this. Choose a function and move the ends and of the band on the vertical axis. The thick pieces on the horizontal axis form the preimage , listed with its length, and the last readout shows the same number as the amount of sand the image measure places in . With the default and the preimage is , of length . For the hump with it is , of length , and with it has two pieces of total length . For the step function and the pieces touch and are listed as , of length .
- f⁻¹(B)
- [0.500, 0.800]
- λ(f⁻¹(B))
- 0.3000
- Image measure of B
- 0.3000
Move c and d to slide the band B up and down the vertical axis; the thick pieces on the horizontal axis are every x whose value lands in B.
The probability part of this track gives these objects new names: a measurable function on a probability space is called a random variable, and its image measure is called its distribution. Nothing in the construction changes. Everything in that part is built on the pushforward described here.
Summary
- The preimage collects the points whose value lies in ; unlike forward images, preimages keep complements, unions and intersections.
- A function is measurable if every preimage of a Borel set is an event; it is enough to check the sets , because the good sets form a σ-algebra that contains the half-lines.
- Continuous, monotone, step functions and indicators of events are measurable, as are sums, products, maxima, minima, suprema, infima and pointwise limits of sequences; the only failures come from non-measurable sets such as Vitali's set.
- On a finite σ-algebra a function is measurable exactly when it is constant on every atom, and is the information revealed by knowing .
- Simple functions take finitely many values on events, and the dyadic functions rise to any nonnegative measurable by slicing its range.
- The image measure is the measure on the value side that records how much of lands in each Borel set; it has the same total mass as .