Little explorations with HP calculators (no Prime)
|
12-27-2018, 04:59 PM
Post: #319
|
|||
|
|||
RE: Little explorations with HP calculators (no Prime)
After running a bunch of iterations of the previously-posted routines, I became curious about the distribution of counts of matches (where a "match" is defined by a proper mix of 50/20 colored balls).
Knowing that it would be too slow to attempt this on a 50g, I opted to attempt this with python running on my laptop (I'm still in a learning mode with python -- please be kind). I came up with the following to generate one million random lists of 100 blue/40 white balls, then summed the individual counts to see how they were distributed: Code: import random The final result of the above is a tab-delimited list of counts and quantities, and the following is a sample of one run: Code: 1 60726 Placing that data into an Excel spreadsheet and plotting the result gives a very familiar shape: I suspect the probability of randomly generating a list that has 71 "matches" is quite small. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 14 Guest(s)