Griffin
05-16-2004, 12:34 PM
My ability to calculate probabilities isn't what it used to be. In addition to answering the question below, if anyone can point me to their favorite web site that gives a tutorial on probability calculations ( P(A|B), P(A and B), etc.), I would appreciate it.
On to the question....
I ran across a Javascript slot machine game that has 3 wheels with 10 items on each wheel. If any two wheels pair, you win 5 times your bet. If all three wheels pair, you win 10 times your bet. You can bet $5, $50, or $500 each spin.
Now, I seem to remember that for independent events, (P(A and B) = P(A) * P(B)). If that's correct, then with only two wheels spinning, there's only a 1% chance of them matching. How do you write the equation for three wheels?
Would it be P(two wheels matching) = (P(AandB) OR P(AandC) OR P(BandC))?
Even if that is correct, it doesn't take into account all three wheels matching.
What got me curious about this is that after playing the game for a few minutes, I saw multiple two wheel matches and a couple of three wheel matches. It made me wonder if the game is actually playing according to expected probability, or if the code for the game is buggy.
Thanks for any help,
Griff
On to the question....
I ran across a Javascript slot machine game that has 3 wheels with 10 items on each wheel. If any two wheels pair, you win 5 times your bet. If all three wheels pair, you win 10 times your bet. You can bet $5, $50, or $500 each spin.
Now, I seem to remember that for independent events, (P(A and B) = P(A) * P(B)). If that's correct, then with only two wheels spinning, there's only a 1% chance of them matching. How do you write the equation for three wheels?
Would it be P(two wheels matching) = (P(AandB) OR P(AandC) OR P(BandC))?
Even if that is correct, it doesn't take into account all three wheels matching.
What got me curious about this is that after playing the game for a few minutes, I saw multiple two wheel matches and a couple of three wheel matches. It made me wonder if the game is actually playing according to expected probability, or if the code for the game is buggy.
Thanks for any help,
Griff