Lorenz System

The Lorenz system may be the most famous example of deterministic chaos and a common entry point to the world of deterministic chaos. It certainly was the first place I learned about this strange world of maths while reading 'Chaos' by James Gleick.

The infamous story goes like this: The Lorenz system of equations was originally developed as a model for weather patterns. Edward Lorenz was a meteorologist in the early 1960's using this set of equations with one of the earliest digital computers to predict what might happen in a toy model of a weather system. One day he had run this system for a while with a certain set of parameters and starting values. He decided that instead of resetting the system he would start from where he had last left off (one can see his motivation when you recall that computers were not quite what they are today in 1961). He entered a set of values midway through the last sequence into the computer and set it running.

When Lorenz looked at the output though it didn't make any sense. Even though he had entered the numbers that he had previously seen in the system (and each step was entirely deterministic from the previous one) the values that were being given off for the steps that he had already passed were completely different. At first Lorenz thought there might be an error in the computer introducing randomness where it shouldn't. Later however he realised what had happened. The values that he had entered had come from the computer's printout which used 3 significant figures of accuracy while the computer itself worked to 6 significant figures.

The tiniest change in the values could lead to completely unpredictable (though entirely deterministic) behaviour for the system.

This story is in fact where the phrase "The Butterfly Effect" comes from. A change, even one as slight as a butterfly flapping it's wings could, according at least to this model, quite literally lead to a hurricane on the other side of the planet. Another reason for the name may be the beautiful plots of this system unfolding (you can see these below) where the different arcs look like the wings of a butterfly.

The Lorenz system is made up of three equations relating variable $x$, $y$ & $z$ along with three parameters $\sigma$, $\rho$, and $\beta$.

These equations come from the way that layer of fluid changes as it is warmed and can be used for that reason to model how air behaves as it moves. Frankly, I was not able to perfectly get the intuition behind the specific paramters and how this relation means they can be used to mode but there is a detailed description on wikipedia if you are interested in pursuing that further. The particular parameters that Lorenz was using (and that are used below) were:

To get a sense for the kind of thing that is happening with this system we can run it once and trace the paths that are made across an x,y,z plane from the first 100 time steps. This is done below and displayed both as a set of line plot for each of the major axes pairs, as well as in 3d.

Acknowledgements

I borrowed from and learned a bunch from these pages as part of putting this notebooks together: