In 1946, Stanislaw Ulam was lying in bed, recovering from an illness that had forced him into brain surgery which temporarily deprived him of his ability to speak.
A few years before, he was one of the many physicists, mathematicians, and engineers at Los Alamos tasked with creating the atomic bomb before Nazi Germany could. The fate of the world was literally in his hands. The mathematician was trying to understand how neutrons collide and interact with each other inside of a nuclear weapon. Now, Ulam was bedridden; he had too much time on his hands and nothing to do. So, he played Solitaire. Despite his immobile body, his mind (as most mathematicians’ minds do), was racing. His question was this: what percent of Solitaire deals are winnable if they are played perfectly? I’m Adam, and this is another post of the Common Denominator.
Unfortunately, Ulam quickly stumbled upon a problem. There are 52! possible shuffled decks (assuming a standard, 52 card deck). This tedious calculation was not worth his time, he reasoned. There must be another way to estimate this. Then, he realized: if he would deal a bunch of random games and see what percent of those games was winnable, then he could estimate the probability of winning a game (assuming he plays every game optimally). This idea of replacing tedious or impossible calculations with random samples was the foundation of the Monte Carlo method. Ulam had found out how to use randomness and unpredictability to create patterns.
Ulam saw that this didn’t just apply to Solitaire, it could also be applied to continuing his neutron research. Ulam and his former Los Alamos counterparts had a lot of raw data from observations and prior experiments. Where an electron has been and how it interacts with other subatomic particles is all basically random. While the scientists were having trouble solving for a perfect solution, Ulam proposed using many random experiments to accurately estimate a solution instead of wasting time trying to find that perfect solution. They also observed something else: as the number of experiments and samples grew, the data became more accurate.
Many scientists saw the potential of Ulam’s idea. By 1948, a team of scientists had used ENIAC, a computer capable of fully automating the Monte Carlo calculations, on their experiments. Later on in the 1950s Monte Carlo also became a powerful tool in the development of the hydrogen bomb.
Monte Carlo also found many applications far beyond nuclear physics. In the math field for example, it can be used to approximate integrals (the area under the curve) of complicated equations that are hard or even impossible to solve. Today this integration method has been dubbed as Monte Carlo integration. Monte Carlo also has applications in many other places, but it is most apparent in finance. Monte Carlo simulations are a way to check what might happen to a portfolio based on many random simulations of the future. This tool has become a vital part of the finance world. Today, firms and analysts use Monte Carlo simulations to make major economic decisions. What started from one man being bored turned into one of the greatest tools of applicable math.
Monte Carlo area estimate
196 points inside the curve
Ulam’s Monte Carlo is living proof of how math impacts all parts of our life. Whether it be the online map you use to find the fastest route to school every day, or the weather app telling you that there's a 40% chance of rain, chances are that Monte Carlo was involved. Here at the Common Denominator, we strive to find these connections and shed some light on them so that others see not only the beauty of theoretical, high level math, but also the down to earth daily used math that most people don't even know exists.
