Purchase Solution

Statistics Matlab Project : Simulate the Number Pi

Not what you're looking for?

Ask Custom Question

5. 'Simulate the number pi'. Simulate n uniformly distributed random points in the square K={?1<x<1. ?1<y<1}
Determine the number of points, m, that fall into the unit disk x2+y2 < 1. Note that the probability for a random point to be in the unit disk is pi/4. By the law of large numbers we expect m/n converges to pi/4 as n--> oo. Then use 4m/n as an estimate of pi. Plot 4m/n as a function of n and check that it converges to pi as n ?> oo. How big n should be
(give a 'ball park's figure') in order for 4m/n to get within &#949; = 0.001 from pi? (Use the central limit theorem.)

simulation, modeling, simulating

Purchase this Solution

Solution Summary

The number 'pi' is simulated using Matlab. The solution is detailed and well presented.

Solution Preview

Please see the attached file for the complete solution.
Thanks for using BrainMass.

Central Limit Theorem: As sample size increases, the sampling distribution of sample means approaches that of a normal distribution with a mean the same as the population and a standard deviation equal to the standard deviation of the population ...

Purchase this Solution


Free BrainMass Quizzes
Measures of Central Tendency

Tests knowledge of the three main measures of central tendency, including some simple calculation questions.

Know Your Statistical Concepts

Each question is a choice-summary multiple choice question that presents you with a statistical concept and then 4 numbered statements. You must decide which (if any) of the numbered statements is/are true as they relate to the statistical concept.

Measures of Central Tendency

This quiz evaluates the students understanding of the measures of central tendency seen in statistics. This quiz is specifically designed to incorporate the measures of central tendency as they relate to psychological research.

Terms and Definitions for Statistics

This quiz covers basic terms and definitions of statistics.