Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Π appears in the formula for the standard normal distribution, the most important probability distribution in statistics. Why not give it a try to calculate π using statistics! In fact, you'll use a simulation technique called the Monte Carlo Method.

Recall that the area of a circle of radius r is A = πr2. Therefore the area of a circle of radius 1, aka a unit circle, is π. You'll compute an approximation to the area of this circle using the Monte Carlo Method.

a) The Monte Carlo Method uses random numbers to simulate some process. Here the process is throwing darts at a square. Assume the darts are uniformly distributed over the square. Imagine a unit circle enclosed by a square whose sides are of length 2. Set an R variable area.square to be the area of a square whose sides are of length 2.

b) The points of the square can be given x-y coordinates. Let both x and y range from -1 to +1 so that the square is centred on the origin of the coordinate system. Throw some darts at the square by generating random numeric vectors x and y, each of length N = 10,000. Set R variables x and y each to be uniformly distributed random numbers in the range -1 to +1. (hint: runif() generates random number for the uniform distribution)

c) Now count how many darts landed inside the unit circle. Recall that a point is inside the unit circle when x2 + y2 < 1. Save the result of sucessfull hits in a variable named hit. (hint: a for loop over the length of x and y is one option to reach hit)

d) The probability that a dart hits inside the circle is proportional to the ratio of the area of the circle to the area of the square. Use this fact to calculate an approximation to Π and print the result.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92048724
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

1 suppose you purchase anbsp30-year zero-coupon bond with a

1) Suppose you purchase a 30?-year, ?zero-coupon bond with a yield to maturity of 6.5 % You hold the bond for five years before selling it. i.  If the? bond's yield to maturity is 6.5 % when you sell? it, what is the ann ...

A researcher randomly assigned 160 subjects into one of two

A researcher randomly assigned 160 subjects into one of two groups: Atkins diet or Weight Watchers. The response variable was weight change in pounds after 6 weeks. The t-test results showed a p-value=.049. What can be c ...

Waterton lakes national park in alberta has 6 trails that

Waterton Lakes National Park in Alberta has 6 trails that reach the icefields. If a hiker wishes to reach the icefields in 3 different ways during a visit, how many different possibilities would there be?

New york graduates tend to leave the state after graduating

New York graduates tend to leave the state after graduating. A study asked the students of NYU "Are you planning to stay in NY after graduation?" In the sample, only 37% answered yes. The study explained that with a 95% ...

What is an important benchmark for any kind of business and

What is an important benchmark for any kind of business and for business how would you use break even in making business decisions?

The december cbot treasury bond futures contract is quoted

The December CBOT Treasury bond futures contract is quoted at 92-19. If annual interest rates go up by 1.50 percentage points, what is the gain or loss on the futures contract? (Assume a $1,000 par value, and round to th ...

A process is normally distributed with a mean of 104

A process is normally distributed with a mean of 104 rotations per minute and a standard deviation of 8.2 rotations per minute. If a randomly selected minute has 118 rotations per minute, would the process be considered ...

The average price of a television on a certain web site is

The average price of a television on a certain Web site is ?$770. Assume the price of these televisions follows the normal distribution with a standard deviation of ?$170. Complete parts a through d below. a.  What is th ...

For each of the following describe1 the direction of the

For each of the following describe: 1. The direction of the relationship 2. The strength of the relationship 3. A verbal description of the relationship between the variables. r = -.96 between the craving for Taco Bell a ...

Given a normally distributed random variable x with mean mu

Given a normally distributed random variable, X, with mean (μ) and standard deviation (σ) shown on the right, calculate P(a μ =15 s = 2 a =16 b =20 Given a normally distributed random variable, X, with mean (μ) and stand ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As