Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: [OT] Statistics question.

by BrowserUk (Pope)
on Jan 30, 2013 at 11:55 UTC ( #1016043=note: print w/ replies, xml ) Need Help??


in reply to Re: [OT] Statistics question.
in thread [OT] Statistics question.

the expectation value is simply 1e6 * P(1) = 1e6 * 1e6/2**32 = 232.83 ... the standard deviation is simply the square root of the expectation value, so 15.5.

Based upon a run of 100 samples, that seems to match quite nicely:

C:\test>bitvec2 -N=100 100 Mean: 230.95 stddev:14.75

I'm doing a run of 1000 samples, and if that shows no surprises, I'll be taking your figures as read and basing my testing upon it.

Thank you.

Update: The 1000 sample run marries well (good enough):

C:\test>bitvec2 -N=1000 1000 Mean: 233.39 stddev:15.79

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^2: [OT] Statistics question.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (16)
As of 2015-07-28 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls