Docsity

Monte Carlo Simulation: A Mathematical Approach to Finding Probabilities - Prof. Timothy C, Study notes of Mathematics

Partial preview of the text

Download Monte Carlo Simulation: A Mathematical Approach to Finding Probabilities - Prof. Timothy C and more Study notes Mathematics in PDF only on Docsity!

Monte Carlo Simulation

Tim Chartier

University of Washington

Math 381

Lotsa Data

Computers can process huge amounts of data – far beyond the capabilities of a human or group of people.

Computing Division, Veterans Bureau, Washington, DC, early 1920s. At least 30 workers photographed using Burroughs electric adding machines to compute bonuses for World War I veterans.

Entering the Math Pub

Let us enter the Math Pub where all things mathematical but not necessarily physical can occur. We have a circular dart board with unit radius. Then, the area of the circle is A = π r^2 = π. Now, let us inscribe the circle in a square with an area of 4 as seen below.

Throwing Mathematical Darts

Suppose we randomly throw a dart at the board and we are guaranteed to hit the board every time and that we indeed throw it randomly somewhere on the board. Question What is the probability of a dart landing in the circle?

Discrete Darts

Assume we are looking at a quarter of the circle. Then the probability of throwing a dart in a quarter of the circle is π/4. Rather than choosing random real numbers, we will choose numbers from 1-6 by rolling 2 dice.

Dicey Challenge

Question How do we know if we are in the circle by looking at the two dice? Hint We want to approximate our underlying continuous probability as closely as we can. We have 36 outcomes with the dice and want n of these outcomes to represent landing in the circle and 36 − n to represent not landing in the circle. Challenge Find n such that we approximately π/4 as closely as we can. We will actually approximate

Continuous π

Suppose we do indeed pick random real numbers over and over and calculate π. What will we get? Let’s use a program to find out. Here we are picking random x and y such that − 1 ≤ x , y ≤ 1 as discussed earlier. Remember it depends on the random numbers.

A Klutzy Simulation

Note, we aren’t yet modeling. We are computing probabilities. We will use a similar idea to build a model in a coming lecture. Now, let us look at a related application. Did you know that if you dropped a pencil on the Husky football field (many times) you could estimate π? How? This is a method developed over 200 years ago.