Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: probability question about the dice game
Replies: 21   Last Post: Feb 18, 2013 2:47 PM

 Messages: [ Previous | Next ]
 Jussi Piitulainen Posts: 355 Registered: 12/12/04
Re: probability question about the dice game
Posted: Feb 14, 2013 10:09 AM

David C. Ullrich writes:

> On 14 Feb 2013 15:50:27 +0200, Jussi Piitulainen wrote:
>

> >starwayinc@gmail.com writes:
> >

> >> two players Ann and Bob roll the dice. each rolls twice, Ann wins if
> >> her higher score of the two rolls is higher than Bobs, other wise
> >> Bob wins. please give the analyse about what is the probability that
> >> Ann will win the game
> >>

> >
> > Because
> >

> > >>> from itertools import product
> > >>> die = {1,2,3,4,5,6}
> > >>> dice = set(product(die, die, die, die))
> > >>> sum(int(max(a,b) > max(c,d)) for a,b,c,d in dice)

> > 505
> > >>> sum(int(max(a,b) <= max(c,d)) for a,b,c,d in dice)
> > 791
>
> Cool.
>

> > I'd say her odds are 505 for and 791 against. I hope my gambling
> > vocabulary is not too far off.

>
> The terminology would be "her odds of winning are 505 to 791".

Thanks, that looks familiar. I'm sure I've also seen "for" (or maybe
"on") and "against" _somewhere_ in such expressions.

Date Subject Author
2/14/13 Jussi Piitulainen
2/14/13 David C. Ullrich
2/14/13 Jussi Piitulainen
2/14/13 Paul
2/14/13 Paul
2/14/13 Jussi Piitulainen
2/14/13 Paul
2/14/13 quasi
2/15/13 David C. Ullrich
2/15/13 Paul
2/15/13 Paul
2/15/13 David C. Ullrich
2/14/13 bacle
2/18/13 Bacle H
2/14/13 RGVickson@shaw.ca
2/14/13 Jussi Piitulainen
2/14/13 RGVickson@shaw.ca
2/14/13 Jussi Piitulainen
2/14/13 quasi
2/15/13 Frederick Williams
2/14/13 RGVickson@shaw.ca