







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








(March, 2018 )
For the purpose of this study we shall consider the stochastic model which involves the one or more probabilistic or uncertain set of outcomes. Prominent in this model is the Monte Carlo simulation model which is considered by most scholars as an ideal tool for analyzing uncertainty based on random sampling. MONTE CARLO SIMULATION The term Monte Carlo was coined after the casino in the municipality of Monte Carlo. Every game in a casino is a game of chance relying on random events such as ball falling into a particular slot on a roulette wheel, being dealt useful cards from a randomly shuffled deck, or the dice falling the right way (Sadus, 2010). It is a method of simulation that relies on repeated random sampling and statistical analysis to compute the results. This method of simulation is very closely related to random experiments, experiments for which the specific result is not known in advance (Raychaudhuri, 2008). It is a modelling scheme that estimates stochastic or deterministic parameter based on random sampling (Hamdy A, 2006). Ekemezie (2015), argues that there are no particular method called monte carlo rather, the term refers to many widely used approach which are series of algorithm based on repeated random sampling, he further avers that these are computational process that uses random numbers to generate outcomes. This method of simulation can be considered amongst others as a methodical way for doing the so-called “WHAT – IF” analysis. In the world of financial planning the method has proven to be a resourceful tool in issues of uncertainty with the generation of possible outcomes that aids proper planning as a statistical method that analysis random phenomena such as market returns. Here a repeated process of randomly selecting annual returns by the computer based on a given statistical parameter, their volatility and correlation is carried out thereby giving one the opportunity to see the range of possible outcome generated in the process (Millares Assest Management, 2009). The basic goal of a Monte Carlo analysis is to characterize, quantitatively, the uncertainty and variability in estimates of exposure or risk and also to identify key sources of variability and uncertainty and to quantify the relative contribution of these sources to the overall variance and range of model results (EPA, 1997). The underpinning idea of Monte Carlo is to learn about a system by simulation it with random sampling. It important to note here as opined by Saharkiz, (2009) that whilst Monte Carlo methods can be a valuable aid to decision making, they should not be used without an understanding of the process being modeled. Typically, in any activity, there are a few critical inputs, and it is these which should be the focus of the analysis, not trying to attribute complex distributions to minor
variables. So, a Monte Carlo analysis should be preceded by a sensitivity analysis to determine what the important parameters are. As important as the Monte Carlo method of simulation is there is need to get the full understanding of not just the variable interplays but the expected uncertainties of the interaction. HISTORICAL BACKGROUND The genesis of using sampling for simulation can be traced back to the work of George Louis LeClrec and Comte de Buffon in the 18th^ century. These influential French scientist used random methods in a number of studies, most famous of these studies is the “Buffon’s Needle”. It was proven by LeClrec that for a needle the same length as the distance between the lines, the probability of the needle intersecting a line was 2/π, thes experiment is considered by most scholars as the first implementation of Monte Carlo simulation method. (Harrison, 2010). Figure 1 :Buffon's Needle: after N tosses, the estimate for pi is (2N/X), where X is the number of times the needle intersects a line Present day Monte Carlo simulation was developed in the 1940s and used in the Manhatta project by Jon Von Neumann and Stanislaw Ulam in the process of developing the Nuclear weapons during World War II for the United States. The method was named after the city of Monte Carlo in Monaco, a city that is well known for her casinos and it suggests the investigation of properties of neutron travel through a radiation shielding. It was used to simulate many nuclear weapons and established the fundamental rules of this method of simulation (Metropils, 1987)
Paxton (2013),is of the view that Monte Carlo analysis can be used for much more than just process assessment and design. Example 1: Consider a large system change where projects are underway to replace an old system that interacts with lots of users. Process engineers can help by leveraging Monte Carlo analysis in the following ways: Organizational Change Management – by using a sample group of participants, you could estimate costs and time involved in migrating users to a new business system. This approach may also help identify trouble areas and where additional resources may be required. Testing – using previous testing data for the corporation, it is possible to provide estimates around the predicted max and minimum amount of time required to test a known amount of test sets and hence a number of testers needed. Project Management – by considering the areas above (and more), Monte Carlo could accurately provide the likely outcome of the whole project schedule and costs based on known variances and historic results for the company. Example 2 : Figure 3 : A unit of a Circle inscribed in a unit of a square Lets consider the Circle in figure 2 inscribed in the middle of a square, and find the area; The area of the circle: ݏܣ = ߨݎଶ= ߨ 1 ଶ= ߨ
The area of the square: 2r^2 = 2^2 = 4 The ratio of the circle to the sqaure: P = ௦
గమ ଶమ^
గ ସ Now the area of the circle is ߨݎଶ^ and the area of the square is (2r) 2 Now we can compute ߨ by measuring the ratio of the area of the circle and the area within the square C Program to Compute PI Using A Monte Carlo Method /* Program to compute Pi using Monte Carlo methods / #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #define SEED 35791246 main(int argc, char argv) { int niter=0; double x,y; int i,count=0; /* # of points in the 1st quadrant of unit circle / double z; double pi; printf("Enter the number of iterations used to estimate pi: "); scanf("%d",&niter); / initialize random numbers / srand(SEED); count=0; for ( i=0; i<niter; i++) { x = (double)rand()/RAND_MAX; y = (double)rand()/RAND_MAX; z = xx+yy; if (z<=1) count++; } pi=(double)count/niter4; printf("# of trials= %d , estimate of pi is %g \n",niter,pi);
Here is an example where we have two players, each with varying skills and talent. Assume they each have played 10 tournaments and we have gotten the minimum and maximum number of wins (assuming winning the tournament has the same number of wins as all the other tournaments). We can also compute the mean win for all the 10 tournaments they have played. The main simulation is done using the following triangular distribution: double[] VarWins = new double[]{player1,player2}]; double[] minWins = new double[]{11,12}; double[] meanWins = new double[]{12.5,13}; double[] maxWins = new double[]{17,15}; double[] results = MonteCarlo.simulate(2, new double[] { 11, 12 }, new double[] { 12.5, 13 }, new double[] { 17, 15 }); public static double triangular(double Min,double Mode,double Max) { // Declarations double R=0.0; // Initialise Random r = new Random(); R = r.NextDouble(); //between 0.0 and 1.0 gaussian // Triangular if ( R == (( Mode - Min) / ( Max - Min))) { return Mode; } else if ( R < (( Mode - Min) / ( Max - Min))) { return Min + Math.Sqrt( R * ( Max - Min) *( Mode - Min)); else { return Max - Math.Sqrt((1 - R) * ( Max - Min) * ( Max - Mode)); } } As seen in the output, player 1 is the most likely to win. However, player 2 is not far behind. So, with a little more practice and training, player 2 manages to reduce the mean number of wins
on the next 10 tournaments. Simulating this again will show that he has greatly improved his performance and is most likely to win over player 1. Output: Simulation Results Wins Wins Player1 win probability 52.
Anu, M. (1997). INTRODUCTION TO MODELING AND SIMULATION. Winter Simulation Conference (pp. 7-13). Atlanta, Georgia, USA: IEEE Computer Society Washington, DC, USA. doi:10.1145/268437. Ekemezie, W. (2015). Modeling, Simulation and Forecasting. Enugu, Nigeria: De-Sanctity Publication. EPA, U. (1997, March). Guiding Principles for Monte Carlo. Retrieved March 8, 2018, from U.S. Environmental Protection Agency (EPA): Risk Assessment Review: https://www.epa.gov/sites/production/files/2014- 11/documents/montecar.pdf Hamdy A, T. (2006). Operations Research: An introduction (8th ed.). Delhi: Prentice Hall of India. Harrison, R. L. (2010). Simulation, Introduction To Monte Carlo. AIP Conf Proc , (pp. 17–21.). doi: 10.1063/1. Kardi, T. (2017). Monte Carlo Simulation Tutorial. Retrieved MARCH 6, 2018, from REVOLEDU: http://people.revoledu.com/kardi/tutorial/Simulation/Weakness.html Metropils, N. (1987). The beginning of the Monte Carlo Method. Los Alamos Science Special , 125-130. Millares Assest Management. (2009, May). Understanding the Basics of Monte Carlo Simulation. Retrieved February 26, 2018, from The Educated investors: http://www.artisanmg.com/millares/pdf/millares_214149.pdf Paxton, C. (2013, September 6). Monte Carlo Simulation and its Use in Everyday Business. Retrieved March 7, 2018, from CapTech: https://www.captechconsulting.com/blogs/monte-carlo-simulation-and-its-use-in- everyday-business Raychaudhuri, S. (2008). Introduction to Monte Carlo simulation. Simulation Conference,. WSC 2008. Winter (p. 1). Miami, FL, USA, USA: IEEE. doi: 10.1109/WSC.2008. Sadus, R. J. (2010). Piazza. Retrieved March 2, 2018, from Center for Molecular Simulation Swinburne University of Technology: https://piazza- resources.s3.amazonaws.com/h6pn68vpa82171/h7ampytiex176c/MonteCarloMethods.pdf?AWSAccess KeyId=AKIAIEDNRLJ4AZKBW6HA&Expires=1520442866&Signature=HSee%2BI%2FshtpelHrwsjUnVaFx% FEE%3D Saharkiz. (2009, January 18). Monte Carlo Simulation. Retrieved March 7, 2019, from Project Code: https://www.codeproject.com/Articles/32654/Monte-Carlo-Simulation Sargent, R. G. (2009). Verification and validation of simulation models. Simulation Conference (WSC), Proceedings of the Winter , (p. 2). Austin, TX, USA, USA. Shannon, R. ( 1975). Systems Simulation – The Art and Science. New Jersey: Prentice-Hall: Englewood Cliffs.