Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Testing for randomness

by eric256 (Parson)
on Oct 23, 2003 at 15:17 UTC ( [id://301608]=note: print w/replies, xml ) Need Help??


in reply to Testing for randomness

500 heads followed by 500 tails, realy could happen in truly random data. I think thats part of why testing for such is impossible. It would be far better to show what algorithm you are using, so that we could then invistigate it for obvious bias. Just my 2 cents.

Dictionary.com defines random as - Of or relating to a type of circumstance or event that is described by a probability distribution.

Given that definition you could just pick 1000 numbers and then make sure that they present a distribution that you expect. Good luck.


___________
Eric Hodges

Replies are listed 'Best First'.
Re: Re: Testing for randomness
by DrHyde (Prior) on Oct 23, 2003 at 19:41 UTC
    Yes 500 heads followed by 500 tails could come from a fair coin. It's pretty damned unlikely to be random though, yet the example in Jon Orwant's module's documentation says that such an outcome is over 90% likely to be from a random source!

    The suggestion someone else put forward of instead of putting individual values into the buckets for the test to put sequences of values in would solve that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found