Question: MATLAB Problem 3: In this problem you will be creating estimates of. One way to estimate the outcome of for a problem is to use
MATLAB


Problem 3: In this problem you will be creating estimates of. One way to estimate the outcome of for a problem is to use a Monte Carlo simulation which uses a large number of random numbers and then compares the results of these numbers. For estimating , we can visualize a circle of radius 1 inside a square with a side of 2, both centered on zero. -1 -1 The area of the square is 4 and the area of the circle is . The ratio of the area of the circle to the area of the square is /4. Consequently, if a large number of points (N) with x and y values varying between 1 and -1 is generated, the number of points falling inside the circle would be Points in circle = N*t/4 The number of points falling inside the circle can be determined by the condition x2 + y2 1. Generate row vectors of uniformly distributed random numbers containing 10000 x-values and 10000 y-values and 1000000 x-values and 1000000-y values. All these values should be between -1 and 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
