|
|
|
|
|
by baldeagle
3820 days ago
|
|
Isn't this the wrong problem? It lets you enter X dollars, then it simulates if you played $1 on X numbers of sequential drawings... which would have terrible odds.
Wouldn't it be better to simulate X numbers on Y draws, which would lead you to know the number of times/people would have to play to win. I don't think probability is communicative, is it? EDIT: It would also be neat to simulate the number of winners you would have to share the prize with, based on numbers entered in the form from users. |
|
Playing 10,000 times in 1 drawing gives you the probability of winning the jackpot:
0.00003422297813=10000/292201338
Playing 10,000 times in 10,000 drawings gives you the probability of winning the jackpot:
0.00003422239258=1-((292201338-1)/292201338)^10000
The difference gets more significant if you play more. For 10 million plays its:
.0342 vs .0336
If you play only 100 times the probability of a jackpot is the same to 7 significant digits.
-edit I put it on $1M and let it run. I hit the 5 numbers, $1M prize, at some point around $150k spent.