Monte Carlo Simulation to calculate the area under the curve

Kiran Prajapati
2 min readJun 3, 2021

--

Monte Carlo Simulation

The model used to predict the probability of different outcomes when the intervention of random variables is present. The basis of a Monte Carlo simulation involves:

  1. Assign multiple values to an uncertain variable to achieve multiple results.
  2. Average the results to obtain an estimate.

Let’s find the area under the sine curve first using calculus and then using Monte Carlo Simulation.

Sine Curve

Lets calculate the area under the curve using Calculus,

Now, lets calculate the same area under the curve using Monte Carlo Simulation,

Here is the visual representation of the area way to calculate the area under the curve using Monte Carlo Simulation.

Theoretical explanation of area under the curve using Monte Carlo Simulation
Area under the curve using Monte Carlo Simulation

By the above observations, we get the following results,

Total number of points dropped = 1000
Total number of points inside the curve = 624
The area under the curve,

We can conclude that area under the curve using calculus and Monte Carlo simulation gives the same result. In this way, we can calculate the area under the curve using Monte Carlo simulation.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Kiran Prajapati
Kiran Prajapati

Written by Kiran Prajapati

ML Engineer | Data Scientist | AI Researcher

No responses yet

Write a response