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
  • 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

    After the American Revolution, Americans, who had just broken free from the British, completely changed their politics, economy and society. The Founders decided to change how they wanted to run their society, even though, in the end, they went back to a more powerful federal government like Britain. Most people’s daily lives didn’t change much but the principles from the revolution made some try to look for better financial opportunities. Women, slaves, and loyalists were changed a lot in society. Women had more freedoms, some of the slaves were set free, and many loyalists left America. America did not go through much economic change, but it did experience social and political change.…

    • 803 Words
    • 4 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
  • 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
  • Powerful Essays

    Motivation –Adult learner needs to understand the need for the learning without feeling intimidated or offended. Trainers need to build rapport and welcome the learners into an open and friendly climate. Trainers should set an appropriate level of concern depending on the importance of the objective, bearing in mind that learning is best received in a low to moderate stress setting. An appropriate level of difficulty needs to be set to challenge the learner but not too high that they become frustrated with too much information.…

    • 1065 Words
    • 5 Pages
    Powerful 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