Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » sci.math.* » sci.math

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jussi Piitulainen

Posts: 355
Registered: 12/12/04
Re: probability question about the dice game
Posted: Feb 14, 2013 8:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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


>>> 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)

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

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.