What is the output of the function random.choices() based on? In excel, the random function is based on the uniform distribution, which means if you generate enough samples you'll just replicate the uniform distribution. "Truly random" random generators technically do not exist, they have to be based on something in order to be programmed. It's important to understand how it works under the hood so you know your conclusions are accurate. It might be good enough!
Well in this case I do not generate a number but I chose from a predetermined list (which I defined to match the actual probabilities of roulette). random.choices() choses per default uniformely.
Ok. Ultimately you are generating a random number- you're generating a random pick from a predefined list. This pick needs to follow some sort of pattern, and it sounds like your code uses the uniform distribution which makes sense for an ideal roulette wheel (a fair roulette wheel). Nice!
In the future you can repeat your entire study, say n=20 more times, and add a random bias to the roulette wheel to favor ever so slightly a section of numbers located near each other. This would simulate real world conditions as there's no such thing as a perfectly ideal roulette wheel. Combine the results together to see if the effect is significant. The results might be interesting!
Viewing a single comment thread. View all comments