Preview

Monte Carlo Simulation

Good Essays
Open Document
Open Document
732 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Monte Carlo Simulation
Calculation of Pi Using the Monte Carlo Method by Eve Andersson

Home : Pi : One Calculation
________________________________________
The "Monte Carlo Method" is a method of solving problems using statistics. Given the probability, P, that an event will occur in certain conditions, a computer can be used to generate those conditions repeatedly. The number of times the event occurs divided by the number of times the conditions are generated should be approximately equal to P.

How this program works:
If a circle of radius R is inscribed inside a square with side length 2R, then the area of the circle will be pi*R^2 and the area of the square will be (2R)^2. So the ratio of the area of the circle to the area of the square will be pi/4.
This means that, if you pick N points at random inside the square, approximately N*pi/4 of those points should fall inside the circle.
This program picks points at random inside the square. It then checks to see if the point is inside the circle (it knows it's inside the circle if x^2 + y^2 < R^2, where x and y are the coordinates of the point and R is the radius of the circle). The program keeps track of how many points it's picked so far (N) and how many of those points fell inside the circle (M).
Pi is then approximated as follows:

4*M pi = --- N

Although the Monte Carlo Method is often useful for solving problems in physics and mathematics which cannot be solved by analytical means, it is a rather slow method of calculating pi. To calculate each significant digit there will have to be about 10 times as many trials as to calculate the preceding significant digit. Great Holiday Gifts!

________________________________________
Eve Andersson (eve@eveandersson.com)
________________________________________
Comments
Regarin the program
Hi eveander This is suresh here, doin my master in computers in ASU .As i'm a graduate student, actully we had a topic on monte carlo (pi

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Equation 4 represents the intersection area between two circles whether the circumference of each circle passes through the centre of the other one and vice versa. Equation 5 is used to the area between two circles. With Equation 6, we formulate the difference between a quarter circle area and a half of A1 area.…

    • 88 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 3

    • 435 Words
    • 2 Pages

    A circle has an area of 153.86 square inches. Using 3.14 for pi, find the radius and circumference of the circle. Round your answer to the nearest hundredth when necessary.....A…

    • 435 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Stat 225

    • 1420 Words
    • 6 Pages

    | A standard 6-sided die is thrown, and the number of dots on the face that turns up is recorded. Each face has an equal chance of turning up.…

    • 1420 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 10

    • 536 Words
    • 3 Pages

    10. A circle with a diameter of 2 inches and a square with 2-inch sides have the same center. Find the area of the region that is inside the square and outside the circle. Use 3.14 for π.…

    • 536 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    MAT 540 Midterm Exam

    • 1001 Words
    • 5 Pages

    15. In the Monte Carlo process, values for a random variable are generated by __________ a probability distribution.…

    • 1001 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Busn311 Unit 2 Ip

    • 1187 Words
    • 5 Pages

    There are several different ways that statistics and probability could be used in the real world. You could see this used in the horse races, the lottery, certain things in the stock market, also in marketing in a corporation.…

    • 1187 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Graphing Round Objects

    • 354 Words
    • 2 Pages

    Conclusion: The relationship between the circumference and diameter of round objects is rather simple. The larger the diameter, the larger the circumference will be. However, they increase proportionately by a ratio of 3.14 or 22/7. This value is infamously known as the value Pi (π) and is the exact proportion between the circumference and diameter of any perfectly round object.…

    • 354 Words
    • 2 Pages
    Good Essays
  • Good Essays

    602.3.5-01 ETT4 Task 1

    • 954 Words
    • 4 Pages

    drawn on the board. These are not just circles; they make up a graphic organizer called a Venn…

    • 954 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Meno's Geometric Argument

    • 1538 Words
    • 7 Pages

    To fully understand the Geometric argument you must know that Socrates believes that souls are immortal and before they inhabit a human’s body they were exposed to everything. In order for a human to learn something, all that person has to do is experience it during their lifetime. This means that everyone has the capacity to learn, they just need to be taught. Socrates takes this example to explain to a slave how he can get a square with the area of eight with using squares with the area of four. Socrates walks the slave through the problem with just questions and diagrams to show the slave what the slave has concluded. The slave at first tries to double the sides of the square from two to four to get a square of area equal to eight. He walks into a problem and realizes himself that the area isn’t eight and actually concludes that the area of this square is 16. Socrates then questions…

    • 1538 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    Overview of Simulation

    • 1912 Words
    • 17 Pages

    This PowerPoint presentation was prepared by Professor Timothy Luehrman for the sole purpose of aiding classroom instructors in the use of Finance Simulation: M&A in Wine…

    • 1912 Words
    • 17 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pi is used a lot in planetology. It is used to search for planets outside our solar systems. It is also used for characterizing them. These planets are called exoplanets. The volume of a planet is approximately 4/3 pi times the radius^3. This formula is necessary to finding the density of a planet. The density of something is equivalent to mass/volume. The density of a planet can tell if a plant is rocky, gaseous, or in between. You can also use pi in the calculations surrounding the atmosphere of an exoplanet. This is because the atmosphere can be represented spherically and spheres always involve pi. You can also use pi to estimate the number of seconds per year-10 million seconds pi. Lastly, pi is also used in the optics equations related…

    • 136 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    |this and work with surface area and they find and justify relationships among many formulas and will learn to measure necessary attributes of shapes to use the…

    • 546 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pi is a mathematical ratio. It is represented by a Greek Letter, . Pi is approximately 3.14. Pi is the number of times that a circles diameter will fit around the circle. There are an infinite number of digits. It is an irrational number, which means that it cannot be written as the ratio of two integer numbers. It has been calculated to two billion two hundred sixty million three hundred twenty one thousand three hundred sixty three digits (2,260,321,363) by the Chudnovsky brothers in 1991.…

    • 370 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Mth 110

    • 4756 Words
    • 20 Pages

    “The area of the circle of radius r is r 2 π” is a statement. So…

    • 4756 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    : How to find the area of a circle by using a formula pi x r2…

    • 899 Words
    • 4 Pages
    Powerful Essays

Related Topics