Monte-Carlo Method
Last updated
Was this helpful?
Last updated
Was this helpful?
Let's say we don't know the parameters of Gaussian distribution P, but we can sample as much as we want.
Gaussian distribution has two parameters: mean and standard deviation
We can use Monte-Carlo Method at this situation!
Monte-Carlo Method is a way to get information about the distribution using lots of sampling.
At the example above, we can sample 1,000,000,000 times to get the mean and std of the distribution P. There may be some errors, but as # of sampling gets bigger, error gets smaller.
The circle with radius 1 has area of .
We are going to do 1,000,000,000 sampling in the range of
We are going to say, the sample point is inside the circle if
If N out of 1,000,000,000 points are inside the circle, then we can estimate the as follows: