Question: please do in python and provide me source code . please see the figure also. Marks ] See the figure below. We will estimate the

please do in python and provide me source code . please see the figure also. Marks] See the figure below. We will estimate the value of using this figure.We will estimate the value of usina this fiaure.
(a) Simulate sampling 1000 data points (RANDOM DATA) and the equation taught in the class to estimate the area of the circle.
1. We define the system, its necessary conditions
2. Take random data points
3. Process
4. Observe the outcome and Calculate the result
So, the Probability of Hit
=(no. of darts inside the circle/ no. of total darts thrown)=(Area of Circle/ Area of Rectangle)
= pi r2/(2r *2r)[for fig left (high prob)]
= pi /4
So, Pi =4*(no of hits/ no. total darts)
Area:
Again lets consider the Prob. of hit where we dont know the Area of the Circle.
the Probability of Hit
=(no. of darts inside the circle/ no. of total darts thrown)=(Area of Circle/ Area of Rectangle)
= Area of Circle /(L * W)
= Area of Circle /(L * W)
So, Area of Circle =(L * W)*(no of hits/ no. total darts)
(b) Make a scatter plot with your sampled data points. Mark points inside the circle red and outside the circle green.
 please do in python and provide me source code . please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!