Question: ( based on 6 . 1 2 from UsingR ) We can use probability to estimate a value of . Pick a point at random

(based on 6.12 from UsingR) We can use probability to estimate a value
of . Pick a point at random from a square of side length 2 centered at the
origin. Inside the square draw a circle of radius 1. The probability that
the point is inside the circle is equal to the area of the circle divided by the
area of the square: (\pi 12)/(22)=\pi /4. We can simulate the probability
and then multiply by 4 to estimate \pi . The simulation could be done with
following command:
n =1000; x = runif(n,1,1)
y =runif(n,1,1);sum(x2+ y2<1)/n
Do a simulation to estimate \pi . What do you get? Use the binomial model
and the known value of \pi to find the standard deviation of the random
variable you estimated.

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 Mathematics Questions!