stephen
stephen
  • Threads: 1
  • Posts: 28
Joined: Jan 5, 2010
January 5th, 2010 at 7:57:45 AM permalink
I have what is likely a fairly simple question that I can't figure out how to answer. It has to do with the chances of rolling a 2 on 2 six sided dice over an arbitrary number of rolls. Given n rolls, I know the chances of rolling a 2 at least once are 1-(35/36)^n, correct? My thinking is to calculate the chance of an event happening at least once, you calculate the chance it never occurs and take its complement.

But how do I calculate the chances of rolling a 2 at least twice? Or 3 times? Etc. I can pretty easily just simulate it to find out but I'm more interested in understanding the math. Is there a simple formula for figuring this kind of question out?
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
January 5th, 2010 at 8:54:54 AM permalink
Stephen.

The odds of rolling a 2 is 1 / 36.

Then we look at the binomial probability, which states

P(k out of n) = (n! / ((k!)(n-k)!)) * p^k * q^(n-k), where

P = probability
k = number of instances of desired result
n = number of trials
p = probability of trial being true
q = probability of trial being false = (1-p)

So lets say you have 72 rolls and you want the odds of rolling 3 twos in those 72 rolls.

P(3 of 72) = 72!/3!69! * (1/36)^3 x (35/36)^69
P(3 of 72) = (72*71*70)/(3*2*1) * .0000214335 * .143160
P(3 of 72) = .1830

You can chart this nicely in Excel. n! is a formula FACT(n). Using the fixed references, you can put p in a cell, n on the left and k across the top, and create a nice table that lists P based on k successes over n trials based on the probability of success p.

The problem is that you can only go up to about n=170 in excel. After that you need to deal with the binomial approximation.
----- You want the truth! You can't handle the truth!
stephen
stephen
  • Threads: 1
  • Posts: 28
Joined: Jan 5, 2010
January 5th, 2010 at 10:04:37 AM permalink
Thanks boymimbo. However, after building the Excel chart and reading up on the binomial probability, it seems like that gives me probability of rolling my number exactly k times in n tries. So if k = 3, then the binomial probability excludes results where I rolled a 2 four times in n rolls.

How can I figure out the chances of rolling a number *at least* k times (but possibly more) in n iterations?
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
January 5th, 2010 at 2:19:11 PM permalink
Just take 1 - p(k=3, 2, 1) to get the probability of more then 4 times.
----- You want the truth! You can't handle the truth!
justagambler
justagambler
  • Threads: 0
  • Posts: 1
Joined: Jan 5, 2010
January 5th, 2010 at 11:39:36 PM permalink
I was looking at the Pai Gow Poker odds and was trying to figure out how you came up with the percentages. The Wizard of Odds states that there are 154,143,080 total combinations. It also says that there are 64,221,960 combinations of a pair equaling 0.41663862. I entered this information into a conversion calculator and got this:

64221960 is what percent of 154143080? Answer: 41.6638619132023

I was curious why you guys show 0.4166... and the calculator shows 41.66...

Thanks,
justagambler
stephen
stephen
  • Threads: 1
  • Posts: 28
Joined: Jan 5, 2010
January 6th, 2010 at 8:10:13 AM permalink
boymimbo, thanks again for the help but I'm challenged here. Could you break it down a little more for me? I don't entirely follow you.

Let's go back to original example of n = 72. In that case, p(k=1) is .27063, p(k=2) is .2745, and p(k=3) is .183. Using that data, how can I derive the probability that in 72 rolls, I roll a 2 at least 3 times?

Oh, and justagambler: 0.4166 is the same as 41.66%. Probabilities are usually expressed as decimals rather than percentages, the idea being that the probabilities of all of the possible outcomes for an event add up to 1 (which is the same as 100%). Translating between them is easy: just move the decimal over two places.
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
January 6th, 2010 at 10:57:16 AM permalink
P(k>=3) = 1 - P(k=2) - P(k=1) - P(k=0)
----- You want the truth! You can't handle the truth!
stephen
stephen
  • Threads: 1
  • Posts: 28
Joined: Jan 5, 2010
January 6th, 2010 at 11:47:21 AM permalink
boymimbo: Ah hah! I get it, then. I wasn't thinking about the P(k=0) case.
wildqat
wildqat
  • Threads: 4
  • Posts: 157
Joined: Nov 11, 2009
January 6th, 2010 at 6:24:11 PM permalink
Quote: boymimbo

The problem is that you can only go up to about n=170 in excel. After that you need to deal with the binomial approximation.


Or you could use BINOMDIST(k,n,p,0) :^)

(Or BINOMDIST(k,n,p,1) for up to k times instead of exactly k times.)
patty3230
patty3230
  • Threads: 0
  • Posts: 1
Joined: Jan 7, 2010
January 7th, 2010 at 12:52:57 AM permalink
What does ANZ means in a instant scratch off game, I would like to know the amount I have won?
  • Jump to: