Normal numbers
We are going to apply the pointwise ergodic theorem to deduce a famous result of Borel that says almost every number is normal in base 10. We will do this by studying the map
on equipped with Lebesgue measure on the Borel subsets of .
First we check that Lebesgue measure is invariant. It suffices to check that
for all because the collection of sub-intervals of forms, together with the empty set, a π-system. But
is a disjoint union of intervals whose lengths do add up to . Thus is an invariant measure for .
Theorem
The map is ergodic with respect to Lebesgue measure.
Proof:
Fix that is invariant. We wish to prove that is either zero or one. Suppose it is positive and define a measure by
on the Borel subsets of . We will check that for every interval of the form
with and . Intervals of the above kind are called decimal intervals. Since such intervals generate the Borel σ-algebra, this will then imply and by arguments we have seen before.
Fix a decimal interval . To check the above we note that
for all because is invariant and . Next, fixing we choose decimal intervals with
and
using the definition of Lebesgue measure. We can then estimate
for all . One calculates for every that
and thus deduces
whence and are within of each other. Since was arbitrary we are done. ▮
Now that we know is ergodic we can apply the pointwise ergodic theorem. Let us first apply the theorem with to get
for almost every . This means that almost every point has the property that the sequence
spends about 10% of its time in the interval . Formally, the pointwise ergodic theorem gives us a set with such that every has the desired property.
We can reinterpret this by expressing
for natural numbers between zero and nine i.e., by writing the decimal expansion of . In those terms we have if and only if .
Moreover
and belongs to if and only if the second digit in the decimal expansion of is a zero. Repeatedly applying as above, we see that
counts how many of the first digits in the decimal expansion of are equal to 0 and the pointwise ergodic theorem is telling us that almost every point has, asymptotically, the property that about 10% of its decimal digits are equal to 0.
We can, for example, repeat the above argument with . The sum
counts the occurrences of 47 amongst the decimal digits of and the pointwise ergodic theorem provides us with a set of full measure such that every point in has 47 appear in its decimal expansion 1% of the time.
In fact, for every finite string of digits between zero and nine we get a set with and the property that every has the expected frequency - where is the number of digits in - of appearences of in its decimal expansion. A number with this property is sometimes called normal in base 10 and the above argument proves the following theorem.
Theorem (Borel's normal number theorem)
There is a set with and the property that every is normal in base 10.
Proof:
Let be the set of all finite strings of digits between zero and nine. The intersection
is a countable intersection of sets with full measure and therefore has full measure itself. Every number in the intersection is normal. ▮
Despite the theorem guaranteeing an abundance of normal numbers - one would, for example, have to be unlucky not to come across a normal number by randomly choosing digits to define a number's decimal expansion - the theorem does not provide us with a specific example of a normal number! The somewhat artificial number
known as Champernowne's constant is normal by direct verification, and the artificial but interesting number
was proved normal by Copeland and Erdős. It is an infamous problem to determine whether or or are normal.
One can show that the map
is ergodic with respect to the measure
where . Applying the pointwise ergodic theorem to functions such as one can show that almost every number has a normal continued fraction expansion, if one appropriately weights each digit according to the measure .