Estimating the value of ?. The following figure suggests how to estimate the value of ? with a simulation. In the figure, a circle with area equal to ?/4 is inscribed in a square whose area is equal to 1. One hundred points have been randomly chosen from within the square. The probability that a point is inside the circle is equal to the fraction of the area of the square that is taken up by the circle, which is ?/4. We can therefore estimate the value of ?/4 by counting the number of points inside the circle, which is 79, and dividing by the total number of points, which is 100, to obtain the estimate ?/4 ? 0.79. From this we conclude that ? ? 4(0.79) = 3.16. This exercise presents a simulation experiment that is designed to estimate the value of ? by generating 1000 points

in the unit square.





a. Generate 1000 x coordinates . Use the uniform distribution with minimum value 0 and maximum value 1.

b. Generate 1000 y coordinates again using the uniform distribution with minimum value 0 and maximum value 1.

c. Each point is inside the circle if its distance from the center (0.5, 0.5) is less than 0.5. For each pair , determine whether its distance from the center is less than 0.5. This can be done by computing the value , which is the squared distance, and determining whether it is less than 0.25.

d. How many of the points are inside the circle? What is your estimate of ??


(a-d) Answers will vary.

Trades & Technology

You might also like to view...

Technician A says that a torque arm runs perpendicular the the driveshaft. Technician B says that a torque arm runs parallel to the driveshaft. Which technician is correct?

A) Technician A only B) Technician B only C) Both technicians A and B D) Neither technician A nor B

Trades & Technology

What lubricants can be used with HFCs?

A) Ethylene glycol and propylene glycol B) Polyester and rayon C) Mineral oil and alkyl benzene D) Polyalkylene glycol and polyol ester

Trades & Technology

Convert 103.97' to builder's measure.

Fill in the blank(s) with the appropriate word(s).

Trades & Technology

Dry cleaning powder is used after the completion of a drawing to clean up any specks or smearing.

Answer the following statement true (T) or false (F)

Trades & Technology