2080 11

CSC328 ยท 2080 ยท 5 marks

Explain Monte Carlo simulation method with example.

Explain Monte Carlo simulation method with example. [5]

Simulation and ModelingChapter 2: Simulation of Continuous and Discrete SystemProbability and Monte Carlo Simulation

Quick answer

Monte Carlo simulation is a computerized mathematical technique that generates random sample data based on some known distribution for numerical experiments. It is applied to risk quantitative analysis and decision making problems, and is used by professionals in finance, project management, energy, manufacturing, engineering, research & development, transportation, and other fields.

Monte Carlo Simulation Method

Definition


Key Characteristics

Monte Carlo method has three important characteristics:

  1. The output must generate random samples
  2. The input distribution must be known
  3. The result must be known while performing an experiment

Flowchart for Monte Carlo Simulation

        Start
          |
          v
  Define the Problem
          |
          v
  Identify Input Variables
  (with known distributions)
          |
          v
  Generate Random Numbers
          |
          v
  Simulate the Experiment
  (compute output for each sample)
          |
          v
  Repeat N times
          |
          v
  Aggregate and Analyze Results
          |
          v
        Stop

Example: Estimating the Value of ฯ€

Problem: Use Monte Carlo simulation to estimate the value of ฯ€.

Approach:

  • Consider a unit square of side 1 and a quarter circle of radius 1 inscribed in it.
  • Area of quarter circle = ฯ€/4
  • Area of square = 1

Steps:

  1. Generate random points (x, y) where x and y are uniformly distributed between 0 and 1.
  2. Check if the point falls inside the quarter circle using the condition:

$$x^2 + y^2 \leq 1$$

  1. Count the number of points inside the circle (M) out of total points (N).
  2. Estimate ฯ€ as:

$$\pi \approx 4 \times \frac{M}{N}$$

Numerical Illustration:

Trialxyxยฒ + yยฒInside Circle?
10.30.60.45Yes
20.80.71.13No
30.50.40.41Yes
40.20.90.85Yes
50.90.81.45No
  • Total points N = 5
  • Points inside circle M = 3

$$\pi \approx 4 \times \frac{3}{5} = 4 \times 0.6 = \mathbf{2.4}$$

Note: As N increases (more random samples), the estimate converges closer to the true value of ฯ€ โ‰ˆ 3.14159.


Applications

  • Financial risk analysis
  • Project scheduling and management
  • Engineering design optimization
  • Manufacturing process simulation
  • Transportation and logistics planning

Summary

Monte Carlo simulation is a powerful technique that uses repeated random sampling to obtain numerical results. The more iterations performed, the more accurate and reliable the result becomes. It is especially useful when analytical solutions are difficult or impossible to obtain.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.