November 8 - A Primer on Measure Theory and Ergodic Theory, leading up to Birkhoff's Ergodic Theorem

As you may know, I've been doing a DRP on Ergodic Theory for the last month and a half. I recently made a twitter post about how I thought Birkhoff's Ergodic Theorem was exceptionally cool, and I got some good feedback from my followers, so I decided I'll write an entire tidbit on some (very) basic Ergodic Theory. My goal here is to write a few paragraphs about basic ideas in Ergodic Theory, focusing on the theorems rather than the proofs. I'm assuming a very cursory knowledge of measure theory - the following will set the level of my explanation: a "measure" of a set is its "area", a set is "measurable" if it has area (most nice sets are measurable), a function is "measurable" if it only sends measurable sets to measurable sets, and a function is "measure-preserving" if the preimage of a measurable set has the same measure.

The first result we get from the above definitions is Poincaré's Recurrence Theorem. Stated simply, suppose you have some measure-preserving transformation T:XXT: X \to X of a probability space (i.e. the whole space has area 1), and you take some subset EXE \subset X with positive measure - imagine a disk or a ball or any set with "area". Then if you keep applying TT, then almost all4 the points will return back to EE in finite time. An important caveat is that they don't always return back to EE at the same time; two points that are right next to each other could return to EE at completely different times. But they will return!5 This theorem blew my mind when I first came across it. You start off with only the restriction that your map has to preserve measure, and you get a result that pretty much every point in your set will loop back to the set.

Now is a good time to define ergodic maps. A map T:XXT: X \to X is ergodic if the only measurable sets BB that satisfy T1B=BT^{-1}B = B have measure 0 or 1. This is the definition given in the textbook I'm using, but a nicer, equivalent definition is that TT is ergodic if for every pair of measurable sets A,BA, B with nonzero measure, the set (TnA)B(T^{-n}A) \cap B has positive measure for some nn. In layman's terms, any measurable set BB will have a not-insignificant chunk of it sent to any other measurable set AA. You can think of this as a really loose kind of mixing - imagine you have a wheel and you want to rotate it by some specific angle, but you can only rotate the wheel by increments of some particular irrational angle. Of course, you won't be able to perfectly rotate your wheel to your desired angle, but you can get pretty damn close. Similarly, if you color a region of the wheel a certain color, and you color a region around the wheel another color, then after some number of rotations you're guaranteed to have those two regions overlap. Another way of thinking about it is that if you take BB, T1BT^{-1}B, T2T^{-2}, etc, and you took their union, you'd get a set of measure 1. So almost every point ends up in BB.

Wheel that we can only rotate by rational angles. The wedge inside the wheel will eventually overlap with the shaded region below.

Finally, we get to talk about Birkhoff's Ergodic Theorem. Suppose we have a measurable function f:XCf: X \to \mathbb{C}, and a measure-preserving map T:XXT: X \to X. Then (1/n)k=0n1f(Tk(x))(1/n)\sum_{k = 0}^{n - 1} f(T^k(x)) converges almost everywhere to some measurable function ff^* with f=f\int f = \int f^*. More importantly, if TT is ergodic, then we can imagine TnT^n as sending xx to all sorts of places around XX; so ff^* must be a constant almost everywhere, and we get (1/n)k=0n1f(Tk(x))f(1/n)\sum_{k = 0}^{n - 1} f(T^k(x)) \to \int f. If you know of the Monte Carlo method, this might look familiar. With Monte Carlo, we take random samples from our sample space, find the value of ff at each of them, and then average them. In our case, we're using TT instead of sampling. Although TT isn't random, it mixes the points of XX up enough for it to act like it's random - at least for the purposes of taking an average. So what Birkhoff says is that the "time average" (i.e. the average of the f(Tk(x))f(T^k(x)) terms) is equal to the "space average" (our integral f\int f, which we're taking across XX).

Lastly, I'll leave you with an application. There's a cool number theory theorem that we can prove using the ergodic theorem: Borel's Theorem on Normal Numbers states that almost all numbers in [0,1)[0, 1), when written in binary form, have the same number of 11's as they do 00's. Here's a quick sketch of the proof. Let T:[0,1)[0,1)T: [0, 1) \to [0, 1) be defined by T(x)=2xmod1T(x) = 2x \mod{1}. This map is measure-preserving and ergodic. If we let YY be the set of points that have a unique binary expansion6, then this set has a countable complement, so the measure of YY is 1. We can write any number with a unique binary expansion as x=i=1ai2ix = \sum_{i = 1}^\infty \frac{a_i}{2^i} for ai{0,1}a_i \in \{0, 1\}; then T(i=1ai2i)=i=1ai+12iT(\sum_{i = 1}^\infty \frac{a_i}{2^i}) = \sum_{i = 1}^\infty \frac{a_{i + 1}}{2^i}. Let f(x)=1f(x) = 1 if x[1/2,1)x \in [1/2, 1) and 00 otherwise. Then f(Tn(x))=an+1f(T^n(x)) = a_{n+1}, so (1/n)k=0n1f(Tk(x))(1/n)\sum_{k = 0}^{n - 1} f(T^k(x)) is the average number of 11's in the first nn binary digits of xx. But we know limn(1/n)k=0n1f(Tk(x))=f\lim_{n \to \infty} (1/n)\sum_{k = 0}^{n - 1}f(T^k(x)) = \int f almost everywhere, and f=12\int f = \frac{1}{2}, so the frequency of 11 in the binary expansion of almost every number x[0,1)x \in [0, 1) is 12\frac{1}{2}. :)

I think this illustrates the usefulness of Ergodic Theory. Hope you learned something, or had fun reading. I'm still learning and I might not be the best at explaining things, so let me know if I made any mistakes or if I should change up the wording or if you have any questions. (Shoot, that reminds me I need a comment box or some better way to reach me. If you don't know me personally, sending me an email is probably your best bet.) Thanks for reading this!

November 1 - Updates, plan for site, some sample math

It's crazy how fast a month can go by. It's getting much more chillier in Madison (I would be so much more enthusiastic about it if my radiator worked). I wanted to write something to start off the month.

One exciting update about the site: I added footnote support to Kobo, and by extension, this site you're reading right now.1 My vision is that these footnotes would be helpful when writing math notes. I feel like one of the main themes of math textbook discourse is bevity v.s. verbosity. A lot of people complain about textbooks saying something along the lines of "xyz follows simply from abc" when xyz doesn't follow simply from abc. This is especially the case for textbooks that are concise, like Lang's Algebra. On the other hand, if you spell out every single part of your proof you end up with really dense proofs that span multiple pages and are a pain in the ass to work through (as is the case with some of the proofs in Dummit & Foote). My proposed solution is to write the nice prose like you would see in Lang, with lots of footnotes within the prose pointing to the verbose mathematical derivation and symbolic manipulation.2

My other updates are a bit less exciting. I went to Boston to meet up with some friends and see a concert. I started reading Matsumura's Commutative Ring Theory, and I'm also planning on picking up Milnor. We've reached mixing in my Ergodic Theory DRP. My delete key on my macbook is gummy and is messing with my ability to write up pset solutions and tidbits. I started learning haskell, and I'm working through the Project Euler problems using haskell as an exercise3.

One last update: I'm going to give a talk on Category Theory sometime later this month. It's going to be an introduction to Category Theory, specifically using Ologs as a way of introducing important Category Theory concepts (like composition, functors, limits, presheafs, etc). I'll upload the slides (and maybe a recording!) once that's done. That's it for now I guess.

Footnotes


  1. Test testing test 

  2. Test to see that katex properly renders in footnotes: f(z)=12πiγf(ζ)ζzdζf(z) = \frac{1}{2\pi i}\int_\gamma \frac{f(\zeta)}{\zeta - z}\,d\zeta 

  3. Here's the repo to my solutions. I'm still ass at haskell and FP in general, so any feedback is welcome! 

  4. "Almost all" is an actual technical term. Specifically, FEF \subset E is almost all points of EE if FF and EE have the same measure. Take for example the two intervals [1,2][1, 2] and (1,2)(1, 2). Then (1,2)[1,2](1, 2) \subset [1, 2], but they both have the same length of 1. That's because the points 11 and 22 on the ends of [1,2][1, 2] have 0 length (because they're points), so hacking them off doesn't change the length of our interval. 

  5. At least, almost all of them will. 

  6. Some numbers don't have a unique binary expansion. For instance, 0.1=0.0111110.1 = 0.011111\dots. In fact, all of these numbers are finite sequences that end with a 1, so they're countable.