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

...MonteCarloSimulation
Risk analysis is part of every decision we make. We are constantly faced with uncertainty, ambiguity, and variability. And even though we have unprecedented access to information, we can’t accurately predict the future. MonteCarlosimulation (also known as the MonteCarlo Method) lets you see all the possible outcomes of your decisions and assess the impact...

...April 2010
‘The problems of MonteCarloSimulation’ by David Nawrocki
This article describes the problems associated with using the MonteCarloSimulation Model
as a tool for determining future investment outcomes for investors. The tool is widely used
by Financial Advisors as a means of showing investors future returns on investments. The
article discusses why the use of Monte...

...Application of MonteCarloSimulation in Capital Budgeting
| |
|by Prit, Aug 2, 2008 |
|The usefulness of MontecarloSimulation in Capital Budgeting and the processes involved in MonteCarloSimulation. It also |
|highlights the advantages in some...

...Preface
This is a book about MonteCarlo methods from the perspective of ﬁnancial engineering. MonteCarlosimulation has become an essential tool in the pricing of derivative securities and in risk management; these applications have, in turn, stimulated research into new MonteCarlo techniques and renewed interest in some old techniques. This is also a book about ﬁnancial engineering from...

...Business, The George Washington University, Washington, DC 20052,
USA. E-mail: kwak@gwu.edu
A b stra ct
MonteCarlosimulation is a useful technique for modeling and analyzing real-world
systems and situations. This paper is a conceptual paper that explores the applications
of MonteCarlosimulation for managing project risks and uncertainties. The benefits
of MonteCarlo...

... Research one of the MonteCarlo analysis Products listed in the Topic Notes
I reviewed the following products that developed MonteCarlo analysis package:
MonteCarloSimulation within Microsoft Excel Data Analysis and Business
Palisade's @RiskModeling
Oracle's Crystal Ball,
RiskDecision's Predict! Risk Controller
I really found two of the four solutions excellent.
1....

...MonteCarloSimulation in Finance for Calculating European Options Value
1. Introduction
An option is a financial instrument whose value depends on a value of underlying security. Options trade started in 1973 at the Chicago Board Options Exchange (Hull, Fundamentals of futures and options markets 2008). Nowadays, options have become a crucial tool in finance; they have become valuable both for financial institutions and investors. Options are...

...SIMULATION
• WHAT is Simulation ?
• WHY is Simulation required ?
• HOW is Simulation applied ?
• WHERE is Simulation used ?
DEFINITION
• Simulation is a representation of reality through the use of model or
other device, which will react in the same manner as reality under a
given set of conditions.
• Simulation is the use of system model that has the designed
characteristic of...

541 Words |
12 Pages

Share this Document

{"hostname":"studymode.com","essaysImgCdnUrl":"\/\/images-study.netdna-ssl.com\/pi\/","useDefaultThumbs":true,"defaultThumbImgs":["\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_1.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_2.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_3.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_4.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_5.png"],"thumb_default_size":"160x220","thumb_ac_size":"80x110","isPayOrJoin":false,"essayUpload":false,"site_id":1,"autoComplete":false,"isPremiumCountry":false,"userCountryCode":"US","logPixelPath":"\/\/www.smhpix.com\/pixel.gif","tracking_url":"\/\/www.smhpix.com\/pixel.gif","cookies":{"unlimitedBanner":"off"},"essay":{"essayId":37182469,"categoryName":"Periodicals","categoryParentId":"17","currentPage":1,"format":"text","pageMeta":{"text":{"startPage":1,"endPage":3,"pageRange":"1-3","totalPages":3}},"access":"premium","title":"Monte Carlo Simulation","additionalIds":[2,13,157,5],"additional":["Awards \u0026 Events","Health \u0026 Medicine","Health \u0026 Medicine\/Pharmaceuticals","Computer Science"],"loadedPages":{"html":[],"text":[1,2,3]}},"user":null,"canonicalUrl":"http:\/\/www.studymode.com\/course-notes\/Monte-Carlo-Simulation-1468639.html","pagesPerLoad":50,"userType":"member_guest","ct":10,"ndocs":"1,500,000","pdocs":"6,000","cc":"10_PERCENT_1MO_AND_6MO","signUpUrl":"https:\/\/www.studymode.com\/signup\/","joinUrl":"https:\/\/www.studymode.com\/join","payPlanUrl":"\/checkout\/pay","upgradeUrl":"\/checkout\/upgrade","freeTrialUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fcheckout%2Fpay%2Ffree-trial\u0026bypassPaymentPage=1","showModal":"get-access","showModalUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fjoin","joinFreeUrl":"\/essays\/?newuser=1","siteId":1,"facebook":{"clientId":"306058689489023","version":"v2.8","language":"en_US"},"analytics":{"googleId":"UA-32718321-1"}}