<Iggl...@officeformac.com> wrote in message news:59bb7...@webcrossing.JaKIaxP2ac0...
On 5/5/10 2:38 PM, in article 59bb7...@webcrossing.JaKIaxP2ac0,
"Iggl...@officeformac.com" <Iggl...@officeformac.com> wrote:
You are creating 4000 random events of the digits 1 to 6
Mean should be n*p or 4000*1/6 which is 666
Standard deviation of this should be sqrt(n*p*(1-p) = sqrt(4000*1/6*5/6) or
about 23
So 68% of the time they should be in the range of 666�23 or 643 to 689
And 95% of the time they should be between 666�46 or 620 to 712
The differences should be less than 2*23*sqrt(2) (I think) 95% of the
time.
So your worst case of 61 seems pretty much bang on.
Look it up in a basic stats text - it is fun!
Bob J.
I suggest you learn about the "standard error of the mean," e.g., in
Wikipedia
http://en.wikipedia.org/wiki/Standard_error_(statistics)
or other sources, like a basic statistics book or web searches.
Although a Monte Carlo simulation of 1,000 trials may be satisfactory for
determining the general shape of a distribution, the appropriate number of
trials when estimating the mean depends on the confidence interval you wish
to construct. For example, to reduce the width of a specific confidence
interval in half, you need a sample size four times as large.
- Mike
http://www.MikeMiddleton.com
<Iggl...@officeformac.com> wrote in message
news:59bb7...@webcrossing.JaKIaxP2ac0...
Mike -- you're right about CLT vs. large numbers, of course. I was
This may be a matter of terminology, but I suggest that when you are using
RAND the way you described in your previous messages you are "sampling."
When you sample a total (sum of two dice) or a mean (based on two or more
random numbers) as you described, the central limit theorem applies and the
normal distribution becomes relevant.
There is variation from sample to sample, even with a sample size of 4,000
or 40,000, but that variation can be described using the standard error and
normal distribution.
As far as I know, the random number generator in Mac Excel 2008 is the same
one that was first implemented in Excel 2003, and it passes the standard
tests for randomness.
For more information, see the Microsoft Knowledge Base article 828795
"Description of the RAND function in Excel 2007 and in Excel 2003"
http://support.microsoft.com/kb/828795
- Mike
http://www.MikeMiddleton.com
<Iggl...@officeformac.com> wrote in message
news:59bb7...@webcrossing.JaKIaxP2ac0...