Page 1 of 2 12 LastLast
Results 1 to 40 of 54

Thread: probability w/dice

  1. #1

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220

    probability w/dice

    A fair die is tossed four times. What is the probability that it lands with either a 5 or 6 on top at least once?
    - you've been privileged to read a post by Miz

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I'm not sure about this but:
    (N nCr X) * (P^X) * ((1-P)^(N-X))
    can be used to find this where
    N is the total number of throws, X the number we want and P the probability of it happening each time.
    so if N=4, X=1 and P=1/3
    then
    answer = 0.3951
    hmm.. lower than I expected. someone tell me if I'm right.
    Have I helped you? Please Rate my posts.

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Another method that seems to make more sense. The only possible outcome that wouldn't do this is if it NEVER rolled a 5 or a 6. The chances of that is 2/3. The chances of it four times is (2/3)^4
    = 0.19753
    Now, we want all other outcomes so:
    1-0.19753=0.80247
    Have I helped you? Please Rate my posts.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Originally posted by Acidic
    I'm not sure about this but:
    (N nCr X) * (P^X) * ((1-P)^(N-X))
    can be used to find this where
    N is the total number of throws, X the number we want and P the probability of it happening each time.
    so if N=4, X=1 and P=1/3
    then
    answer = 0.3951
    hmm.. lower than I expected. someone tell me if I'm right.
    the binominal distribution can be used but you have to sum the probabilities for where X is 1,2,3 and 4 (but its easier to do it the other way but it only works in that special case)
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    thx for clearing that up for me.
    Have I helped you? Please Rate my posts.

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Lets make this more simple.

    Lets roll 4 dice, what's the chance of getting a 5 or a 6?

    4*6 = 24 possibilities
    4*2 = 8

    8/24 = 1/3

    You have a 1/3 chance.

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Originally posted by DiGiTaIErRoR
    Lets make this more simple.

    Lets roll 4 dice, what's the chance of getting a 5 or a 6?

    4*6 = 24 possibilities
    4*2 = 8

    8/24 = 1/3

    You have a 1/3 chance.
    I don't follow your logic, 4*2?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220
    Originally posted by kedaman
    I don't follow your logic, 4*2?
    i think he means that there are 24 total possibilities (4 * 6) and 8 possibilities that it'll be a five or six (4 * 2)
    - you've been privileged to read a post by Miz

  9. #9
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Originally posted by dolor
    i think he means that there are 24 total possibilities (4 * 6) and 8 possibilities that it'll be a five or six (4 * 2)
    Uhm... yea. But I think that's wrong.

    My final answer is 4/3.

    And I can prove it.

    VB Code:
    1. Dim x As Long, lRnd As Long, lAvg As Long
    2. Dim c As Long, y As Long
    3.  
    4. Randomize
    5. For y = 1 To 1000000
    6.   For x = 1 To 4
    7.     lRnd = Int(Rnd * 6) + 1
    8.     If lRnd = 5 Or lRnd = 6 Then c = c + 1
    9.   Next x
    10.   lAvg = lAvg + c
    11.   c = 0
    12. Next y
    13.  
    14. MsgBox lAvg / 1000000

  10. #10
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    I hope you stopped long enough to consider your logic. Your statement is that the probability of rolling a 5 or a 6 on four dice is equal to the SUM of the probabilities of rolling them on one... which says that not only is it MORE THAN 100% LIKELY to happen, it's even MORE MORE than 100% likely not to happen... and then the universe implodes.

    Well, that or you're wrong, of course.. which you are.

    Your program didn't experimentally determine anything CLOSE to the probability of getting at least one 5 or 6 in four rolls. What it does is add together the number of times a 5 or a 6 is rolled in 4,000,000 rolls, then divides the total by 1,000,000 - how is THAT useful? Try it again and instead of incrementing your total by "c", increment the total by one if "c" is greater than zero.

    The probability of getting a 5 or a 6 on four dice rolls is 65/81 - you can get this mathematically using the formula of the chance of it NOT occurring during each iteration, to the power of the number of attempts... all subtracted from one.. so:

    1 - (4/6)^4

    Or you can write another program and be a bit more careful in it's coding before using it as proof =)
    Last edited by Spajeoly; Nov 28th, 2003 at 05:23 AM.

  11. #11
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    DE: even your original logic seemed better in comparison athough theyre both flawed, a 133% probability



    i think he means that there are 24 total possibilities (4 * 6) and 8 possibilities that it'll be a five or six (4 * 2)
    which permutations exactly? I bet typing out all the 24 and which of 8 contain at least one 5 and 6 can't be that hard.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  12. #12
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    Let X (a DRV) represent the number of times a 5 or 6 is thrown over four throws:

    X ~ B(4, 1/3)

    P(X > 0) = 1 - P(X = 0) = 1 - (2/3)4 = 1 - 0.1975 = 0.8025

  13. #13
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    hehe, all this and I was right (on my second method)
    Have I helped you? Please Rate my posts.

  14. #14
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    Indeed, I only provided my post because it seems a lot of the other posts lacked any kind of systematic method.

  15. #15
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Originally posted by Acidic
    hehe, all this and I was right (on my second method)
    Yes you was, my friend

  16. #16
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170
    make a tree !!!
    the usual and most easy and accurate thing.
    we try 4 times, and if 5 or 6 is there then we dont have to finsih,
    cuz the point is done !!!!
    (starred(**) values should be added)

    -- 5 or 6 : 1/3 (**)
    -- other: 2/3
    -- -- 5 or 6 : 2/3 * 1/3 (**)
    here 2/3 is because in a tree we multiply the previous branch
    probability
    -- -- other: 2/3 * 2/3
    -- -- -- 5 or 6: 2/3 * 2/3 * 1/3 (**)
    -- -- -- other: 2/3 * 2/3 * 2/3
    -- -- -- -- 5 or 6: 2/3 * 2/3 * 2/3 * 1/3 (**)
    -- -- -- -- other: 2/3 * 2/3 * 2/3 * 2/3 (this value makes a trick)

    but here is a trick, dont add the starred values.
    the last value is the only chance for that condition not occuring
    so probability is
    1 - (2/3)^4
    which is 80.2%

  17. #17
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    And after all that you rounded it wrong!

  18. #18

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220
    Originally posted by TheManWhoCan
    And after all that you rounded it wrong!
    ooo! burn! ...now, i just think that's a little too picky but hey, it happens.
    - you've been privileged to read a post by Miz

  19. #19
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170
    i did NOT round it wrong,
    i just gave it to 3 significant figures,
    and for that accuracy i guess im 100% right !!!
    to be more accurate its:
    80.2469%

  20. #20
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    Total possible outcomes = 6+6+6+6 = 24

    Favouravble outcomes = 2+2+2+2 = 8

    probability = 8/24 = 1/3
    Regards

  21. #21

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220
    Originally posted by ZaidGS
    i did NOT round it wrong,
    i just gave it to 3 significant figures,
    and for that accuracy i guess im 100% right !!!
    to be more accurate its:
    80.2469%
    ...fiesty, eh? c'mon, let's step it down a notch
    - you've been privileged to read a post by Miz

  22. #22
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    yeah, after all we are here to help or solve problems for fun, not argue over small things (or getting picky )
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  23. #23
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170
    the are really and ,
    but if sm1 has to be picky he should pick it right!!!!
    not be so picky when he's mistaken !!!!

  24. #24
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I suppose you could say it's 100% probable.

    The likelihood of a 5 or 6 being rolled over 4 rolls is 4/3.

    Probability: A number expressing the likelihood that a specific event will occur, expressed as the ratio of the number of actual occurrences to the number of possible occurrences.

    The probability of it happening on one roll is 1/3. So for every 3 rolls one actual will occur. Every four rolls more than one certain to appear.

    To make a simpler analogy,

    Take a coin. What's the probabilty that if you flip the coin one hundred times it'll be heads atleast once? Now, just about everyone can tell you that on average it'll occur 50 times in one hundred flips. That's 1/2*100=50.

    So, 1/3*4=4/3.

    Follow yet?

    My code from my previous post demonstrates my logic perfectly.

    Using the prior definition, there are only 6 possible occurances. However, with the four rolls, there becomes 8 possible actual occurences. 8/6 = 4/3.

    A coin has 2 possible occurances, over 100 flips, that gives 100 possible actual occurances of either side. 100/2 = 50.

  25. #25
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    Right, so if the probability is 4/3 as you suggest, how come the number of actual occurences is greater than the number of possible occurences...

    Your logic for the entire last post is flawed. With the coins thing, the probability you'll get heads at least once:

    P(H > 0) = 1 - P(0) = 1 - (1/2)100 = 1.0000 to 4 d.p

  26. #26
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330

    probability is 4/3

    probability is 4/3

    how can it be more than 1 (100%) ?????
    Regards

  27. #27
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    it can probably be if you define probability like DE does
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  28. #28
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    He must make his own dice with all 5's & 6's, not to mention, one that will somehow display 2 sides up @ the same time.

    1/3 * 4 = 4/3? Wouldn't it really equal 4/12?

  29. #29
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170
    no offence
    the right answer is 80.2%
    no matter what you say,
    its math not something to be discused freely
    a right answer is a right answer !!!!
    and its 80.2%
    there is nothing in such a problem to get
    a probability over 100% thats non-sense

  30. #30
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Originally posted by ZaidGS
    no offence
    the right answer is 80.2%
    no matter what you say,
    its math not something to be discused freely
    a right answer is a right answer !!!!
    and its 80.2%
    there is nothing in such a problem to get
    a probability over 100% thats non-sense
    even some math is concidered controversial, but in this case we can come to agreement on that the answer is precisely 65/81
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  31. #31
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    agreed, as everyonw should have seen from my post
    Have I helped you? Please Rate my posts.

  32. #32

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220
    nonsense! it's all nonsense. just look at all the different answers we've got. i mean, more than 100%?!?
    - you've been privileged to read a post by Miz

  33. #33
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    count
    Code:
    Main> [(a,b,c,d)|a<-[1..6],b<-[1..6],c<-[1..6],d<-[1..6],a>4||b>4||c>4||d>4]
    [(1,1,1,5),(1,1,1,6),(1,1,2,5),(1,1,2,6),(1,1,3,5),(1,1,3,6),(1,1,4,5),(1,1,4,6),(1,1,5,1),(1,1,5,2),(1,1,5,3),(1,1,5,4),(1,1,5,
    5),(1,1,5,6),(1,1,6,1),(1,1,6,2),(1,1,6,3),(1,1,6,4),(1,1,6,5),(1,1,6,6),(1,2,1,5),(1,2,1,6),(1,2,2,5),(1,2,2,6),(1,2,3,5),(1,2,
    3,6),(1,2,4,5),(1,2,4,6),(1,2,5,1),(1,2,5,2),(1,2,5,3),(1,2,5,4),(1,2,5,5),(1,2,5,6),(1,2,6,1),(1,2,6,2),(1,2,6,3),(1,2,6,4),(1,
    2,6,5),(1,2,6,6),(1,3,1,5),(1,3,1,6),(1,3,2,5),(1,3,2,6),(1,3,3,5),(1,3,3,6),(1,3,4,5),(1,3,4,6),(1,3,5,1),(1,3,5,2),(1,3,5,3),(
    1,3,5,4),(1,3,5,5),(1,3,5,6),(1,3,6,1),(1,3,6,2),(1,3,6,3),(1,3,6,4),(1,3,6,5),(1,3,6,6),(1,4,1,5),(1,4,1,6),(1,4,2,5),(1,4,2,6)
    ,(1,4,3,5),(1,4,3,6),(1,4,4,5),(1,4,4,6),(1,4,5,1),(1,4,5,2),(1,4,5,3),(1,4,5,4),(1,4,5,5),(1,4,5,6),(1,4,6,1),(1,4,6,2),(1,4,6,
    3),(1,4,6,4),(1,4,6,5),(1,4,6,6),(1,5,1,1),(1,5,1,2),(1,5,1,3),(1,5,1,4),(1,5,1,5),(1,5,1,6),(1,5,2,1),(1,5,2,2),(1,5,2,3),(1,5,
    2,4),(1,5,2,5),(1,5,2,6),(1,5,3,1),(1,5,3,2),(1,5,3,3),(1,5,3,4),(1,5,3,5),(1,5,3,6),(1,5,4,1),(1,5,4,2),(1,5,4,3),(1,5,4,4),(1,
    5,4,5),(1,5,4,6),(1,5,5,1),(1,5,5,2),(1,5,5,3),(1,5,5,4),(1,5,5,5),(1,5,5,6),(1,5,6,1),(1,5,6,2),(1,5,6,3),(1,5,6,4),(1,5,6,5),(
    1,5,6,6),(1,6,1,1),(1,6,1,2),(1,6,1,3),(1,6,1,4),(1,6,1,5),(1,6,1,6),(1,6,2,1),(1,6,2,2),(1,6,2,3),(1,6,2,4),(1,6,2,5),(1,6,2,6)
    ,(1,6,3,1),(1,6,3,2),(1,6,3,3),(1,6,3,4),(1,6,3,5),(1,6,3,6),(1,6,4,1),(1,6,4,2),(1,6,4,3),(1,6,4,4),(1,6,4,5),(1,6,4,6),(1,6,5,
    1),(1,6,5,2),(1,6,5,3),(1,6,5,4),(1,6,5,5),(1,6,5,6),(1,6,6,1),(1,6,6,2),(1,6,6,3),(1,6,6,4),(1,6,6,5),(1,6,6,6),(2,1,1,5),(2,1,
    1,6),(2,1,2,5),(2,1,2,6),(2,1,3,5),(2,1,3,6),(2,1,4,5),(2,1,4,6),(2,1,5,1),(2,1,5,2),(2,1,5,3),(2,1,5,4),(2,1,5,5),(2,1,5,6),(2,
    1,6,1),(2,1,6,2),(2,1,6,3),(2,1,6,4),(2,1,6,5),(2,1,6,6),(2,2,1,5),(2,2,1,6),(2,2,2,5),(2,2,2,6),(2,2,3,5),(2,2,3,6),(2,2,4,5),(
    2,2,4,6),(2,2,5,1),(2,2,5,2),(2,2,5,3),(2,2,5,4),(2,2,5,5),(2,2,5,6),(2,2,6,1),(2,2,6,2),(2,2,6,3),(2,2,6,4),(2,2,6,5),(2,2,6,6)
    ,(2,3,1,5),(2,3,1,6),(2,3,2,5),(2,3,2,6),(2,3,3,5),(2,3,3,6),(2,3,4,5),(2,3,4,6),(2,3,5,1),(2,3,5,2),(2,3,5,3),(2,3,5,4),(2,3,5,
    5),(2,3,5,6),(2,3,6,1),(2,3,6,2),(2,3,6,3),(2,3,6,4),(2,3,6,5),(2,3,6,6),(2,4,1,5),(2,4,1,6),(2,4,2,5),(2,4,2,6),(2,4,3,5),(2,4,
    3,6),(2,4,4,5),(2,4,4,6),(2,4,5,1),(2,4,5,2),(2,4,5,3),(2,4,5,4),(2,4,5,5),(2,4,5,6),(2,4,6,1),(2,4,6,2),(2,4,6,3),(2,4,6,4),(2,
    4,6,5),(2,4,6,6),(2,5,1,1),(2,5,1,2),(2,5,1,3),(2,5,1,4),(2,5,1,5),(2,5,1,6),(2,5,2,1),(2,5,2,2),(2,5,2,3),(2,5,2,4),(2,5,2,5),(
    2,5,2,6),(2,5,3,1),(2,5,3,2),(2,5,3,3),(2,5,3,4),(2,5,3,5),(2,5,3,6),(2,5,4,1),(2,5,4,2),(2,5,4,3),(2,5,4,4),(2,5,4,5),(2,5,4,6)
    ,(2,5,5,1),(2,5,5,2),(2,5,5,3),(2,5,5,4),(2,5,5,5),(2,5,5,6),(2,5,6,1),(2,5,6,2),(2,5,6,3),(2,5,6,4),(2,5,6,5),(2,5,6,6),(2,6,1,
    1),(2,6,1,2),(2,6,1,3),(2,6,1,4),(2,6,1,5),(2,6,1,6),(2,6,2,1),(2,6,2,2),(2,6,2,3),(2,6,2,4),(2,6,2,5),(2,6,2,6),(2,6,3,1),(2,6,
    3,2),(2,6,3,3),(2,6,3,4),(2,6,3,5),(2,6,3,6),(2,6,4,1),(2,6,4,2),(2,6,4,3),(2,6,4,4),(2,6,4,5),(2,6,4,6),(2,6,5,1),(2,6,5,2),(2,
    6,5,3),(2,6,5,4),(2,6,5,5),(2,6,5,6),(2,6,6,1),(2,6,6,2),(2,6,6,3),(2,6,6,4),(2,6,6,5),(2,6,6,6),(3,1,1,5),(3,1,1,6),(3,1,2,5),(
    3,1,2,6),(3,1,3,5),(3,1,3,6),(3,1,4,5),(3,1,4,6),(3,1,5,1),(3,1,5,2),(3,1,5,3),(3,1,5,4),(3,1,5,5),(3,1,5,6),(3,1,6,1),(3,1,6,2)
    ,(3,1,6,3),(3,1,6,4),(3,1,6,5),(3,1,6,6),(3,2,1,5),(3,2,1,6),(3,2,2,5),(3,2,2,6),(3,2,3,5),(3,2,3,6),(3,2,4,5),(3,2,4,6),(3,2,5,
    1),(3,2,5,2),(3,2,5,3),(3,2,5,4),(3,2,5,5),(3,2,5,6),(3,2,6,1),(3,2,6,2),(3,2,6,3),(3,2,6,4),(3,2,6,5),(3,2,6,6),(3,3,1,5),(3,3,
    1,6),(3,3,2,5),(3,3,2,6),(3,3,3,5),(3,3,3,6),(3,3,4,5),(3,3,4,6),(3,3,5,1),(3,3,5,2),(3,3,5,3),(3,3,5,4),(3,3,5,5),(3,3,5,6),(3,
    3,6,1),(3,3,6,2),(3,3,6,3),(3,3,6,4),(3,3,6,5),(3,3,6,6),(3,4,1,5),(3,4,1,6),(3,4,2,5),(3,4,2,6),(3,4,3,5),(3,4,3,6),(3,4,4,5),(
    3,4,4,6),(3,4,5,1),(3,4,5,2),(3,4,5,3),(3,4,5,4),(3,4,5,5),(3,4,5,6),(3,4,6,1),(3,4,6,2),(3,4,6,3),(3,4,6,4),(3,4,6,5),(3,4,6,6)
    ,(3,5,1,1),(3,5,1,2),(3,5,1,3),(3,5,1,4),(3,5,1,5),(3,5,1,6),(3,5,2,1),(3,5,2,2),(3,5,2,3),(3,5,2,4),(3,5,2,5),(3,5,2,6),(3,5,3,
    1),(3,5,3,2),(3,5,3,3),(3,5,3,4),(3,5,3,5),(3,5,3,6),(3,5,4,1),(3,5,4,2),(3,5,4,3),(3,5,4,4),(3,5,4,5),(3,5,4,6),(3,5,5,1),(3,5,
    5,2),(3,5,5,3),(3,5,5,4),(3,5,5,5),(3,5,5,6),(3,5,6,1),(3,5,6,2),(3,5,6,3),(3,5,6,4),(3,5,6,5),(3,5,6,6),(3,6,1,1),(3,6,1,2),(3,
    6,1,3),(3,6,1,4),(3,6,1,5),(3,6,1,6),(3,6,2,1),(3,6,2,2),(3,6,2,3),(3,6,2,4),(3,6,2,5),(3,6,2,6),(3,6,3,1),(3,6,3,2),(3,6,3,3),(
    3,6,3,4),(3,6,3,5),(3,6,3,6),(3,6,4,1),(3,6,4,2),(3,6,4,3),(3,6,4,4),(3,6,4,5),(3,6,4,6),(3,6,5,1),(3,6,5,2),(3,6,5,3),(3,6,5,4)
    ,(3,6,5,5),(3,6,5,6),(3,6,6,1),(3,6,6,2),(3,6,6,3),(3,6,6,4),(3,6,6,5),(3,6,6,6),(4,1,1,5),(4,1,1,6),(4,1,2,5),(4,1,2,6),(4,1,3,
    5),(4,1,3,6),(4,1,4,5),(4,1,4,6),(4,1,5,1),(4,1,5,2),(4,1,5,3),(4,1,5,4),(4,1,5,5),(4,1,5,6),(4,1,6,1),(4,1,6,2),(4,1,6,3),(4,1,
    6,4),(4,1,6,5),(4,1,6,6),(4,2,1,5),(4,2,1,6),(4,2,2,5),(4,2,2,6),(4,2,3,5),(4,2,3,6),(4,2,4,5),(4,2,4,6),(4,2,5,1),(4,2,5,2),(4,
    2,5,3),(4,2,5,4),(4,2,5,5),(4,2,5,6),(4,2,6,1),(4,2,6,2),(4,2,6,3),(4,2,6,4),(4,2,6,5),(4,2,6,6),(4,3,1,5),(4,3,1,6),(4,3,2,5),(
    4,3,2,6),(4,3,3,5),(4,3,3,6),(4,3,4,5),(4,3,4,6),(4,3,5,1),(4,3,5,2),(4,3,5,3),(4,3,5,4),(4,3,5,5),(4,3,5,6),(4,3,6,1),(4,3,6,2)
    ,(4,3,6,3),(4,3,6,4),(4,3,6,5),(4,3,6,6),(4,4,1,5),(4,4,1,6),(4,4,2,5),(4,4,2,6),(4,4,3,5),(4,4,3,6),(4,4,4,5),(4,4,4,6),(4,4,5,
    1),(4,4,5,2),(4,4,5,3),(4,4,5,4),(4,4,5,5),(4,4,5,6),(4,4,6,1),(4,4,6,2),(4,4,6,3),(4,4,6,4),(4,4,6,5),(4,4,6,6),(4,5,1,1),(4,5,
    1,2),(4,5,1,3),(4,5,1,4),(4,5,1,5),(4,5,1,6),(4,5,2,1),(4,5,2,2),(4,5,2,3),(4,5,2,4),(4,5,2,5),(4,5,2,6),(4,5,3,1),(4,5,3,2),(4,
    5,3,3),(4,5,3,4),(4,5,3,5),(4,5,3,6),(4,5,4,1),(4,5,4,2),(4,5,4,3),(4,5,4,4),(4,5,4,5),(4,5,4,6),(4,5,5,1),(4,5,5,2),(4,5,5,3),(
    4,5,5,4),(4,5,5,5),(4,5,5,6),(4,5,6,1),(4,5,6,2),(4,5,6,3),(4,5,6,4),(4,5,6,5),(4,5,6,6),(4,6,1,1),(4,6,1,2),(4,6,1,3),(4,6,1,4)
    ,(4,6,1,5),(4,6,1,6),(4,6,2,1),(4,6,2,2),(4,6,2,3),(4,6,2,4),(4,6,2,5),(4,6,2,6),(4,6,3,1),(4,6,3,2),(4,6,3,3),(4,6,3,4),(4,6,3,
    5),(4,6,3,6),(4,6,4,1),(4,6,4,2),(4,6,4,3),(4,6,4,4),(4,6,4,5),(4,6,4,6),(4,6,5,1),(4,6,5,2),(4,6,5,3),(4,6,5,4),(4,6,5,5),(4,6,
    5,6),(4,6,6,1),(4,6,6,2),(4,6,6,3),(4,6,6,4),(4,6,6,5),(4,6,6,6),(5,1,1,1),(5,1,1,2),(5,1,1,3),(5,1,1,4),(5,1,1,5),(5,1,1,6),(5,
    1,2,1),(5,1,2,2),(5,1,2,3),(5,1,2,4),(5,1,2,5),(5,1,2,6),(5,1,3,1),(5,1,3,2),(5,1,3,3),(5,1,3,4),(5,1,3,5),(5,1,3,6),(5,1,4,1),(
    5,1,4,2),(5,1,4,3),(5,1,4,4),(5,1,4,5),(5,1,4,6),(5,1,5,1),(5,1,5,2),(5,1,5,3),(5,1,5,4),(5,1,5,5),(5,1,5,6),(5,1,6,1),(5,1,6,2)
    ,(5,1,6,3),(5,1,6,4),(5,1,6,5),(5,1,6,6),(5,2,1,1),(5,2,1,2),(5,2,1,3),(5,2,1,4),(5,2,1,5),(5,2,1,6),(5,2,2,1),(5,2,2,2),(5,2,2,
    3),(5,2,2,4),(5,2,2,5),(5,2,2,6),(5,2,3,1),(5,2,3,2),(5,2,3,3),(5,2,3,4),(5,2,3,5),(5,2,3,6),(5,2,4,1),(5,2,4,2),(5,2,4,3),(5,2,
    4,4),(5,2,4,5),(5,2,4,6),(5,2,5,1),(5,2,5,2),(5,2,5,3),(5,2,5,4),(5,2,5,5),(5,2,5,6),(5,2,6,1),(5,2,6,2),(5,2,6,3),(5,2,6,4),(5,
    2,6,5),(5,2,6,6),(5,3,1,1),(5,3,1,2),(5,3,1,3),(5,3,1,4),(5,3,1,5),(5,3,1,6),(5,3,2,1),(5,3,2,2),(5,3,2,3),(5,3,2,4),(5,3,2,5),(
    5,3,2,6),(5,3,3,1),(5,3,3,2),(5,3,3,3),(5,3,3,4),(5,3,3,5),(5,3,3,6),(5,3,4,1),(5,3,4,2),(5,3,4,3),(5,3,4,4),(5,3,4,5),(5,3,4,6)
    ,(5,3,5,1),(5,3,5,2),(5,3,5,3),(5,3,5,4),(5,3,5,5),(5,3,5,6),(5,3,6,1),(5,3,6,2),(5,3,6,3),(5,3,6,4),(5,3,6,5),(5,3,6,6),(5,4,1,
    1),(5,4,1,2),(5,4,1,3),(5,4,1,4),(5,4,1,5),(5,4,1,6),(5,4,2,1),(5,4,2,2),(5,4,2,3),(5,4,2,4),(5,4,2,5),(5,4,2,6),(5,4,3,1),(5,4,
    3,2),(5,4,3,3),(5,4,3,4),(5,4,3,5),(5,4,3,6),(5,4,4,1),(5,4,4,2),(5,4,4,3),(5,4,4,4),(5,4,4,5),(5,4,4,6),(5,4,5,1),(5,4,5,2),(5,
    4,5,3),(5,4,5,4),(5,4,5,5),(5,4,5,6),(5,4,6,1),(5,4,6,2),(5,4,6,3),(5,4,6,4),(5,4,6,5),(5,4,6,6),(5,5,1,1),(5,5,1,2),(5,5,1,3),(
    5,5,1,4),(5,5,1,5),(5,5,1,6),(5,5,2,1),(5,5,2,2),(5,5,2,3),(5,5,2,4),(5,5,2,5),(5,5,2,6),(5,5,3,1),(5,5,3,2),(5,5,3,3),(5,5,3,4)
    ,(5,5,3,5),(5,5,3,6),(5,5,4,1),(5,5,4,2),(5,5,4,3),(5,5,4,4),(5,5,4,5),(5,5,4,6),(5,5,5,1),(5,5,5,2),(5,5,5,3),(5,5,5,4),(5,5,5,
    5),(5,5,5,6),(5,5,6,1),(5,5,6,2),(5,5,6,3),(5,5,6,4),(5,5,6,5),(5,5,6,6),(5,6,1,1),(5,6,1,2),(5,6,1,3),(5,6,1,4),(5,6,1,5),(5,6,
    1,6),(5,6,2,1),(5,6,2,2),(5,6,2,3),(5,6,2,4),(5,6,2,5),(5,6,2,6),(5,6,3,1),(5,6,3,2),(5,6,3,3),(5,6,3,4),(5,6,3,5),(5,6,3,6),(5,
    6,4,1),(5,6,4,2),(5,6,4,3),(5,6,4,4),(5,6,4,5),(5,6,4,6),(5,6,5,1),(5,6,5,2),(5,6,5,3),(5,6,5,4),(5,6,5,5),(5,6,5,6),(5,6,6,1),(
    5,6,6,2),(5,6,6,3),(5,6,6,4),(5,6,6,5),(5,6,6,6),(6,1,1,1),(6,1,1,2),(6,1,1,3),(6,1,1,4),(6,1,1,5),(6,1,1,6),(6,1,2,1),(6,1,2,2)
    ,(6,1,2,3),(6,1,2,4),(6,1,2,5),(6,1,2,6),(6,1,3,1),(6,1,3,2),(6,1,3,3),(6,1,3,4),(6,1,3,5),(6,1,3,6),(6,1,4,1),(6,1,4,2),(6,1,4,
    3),(6,1,4,4),(6,1,4,5),(6,1,4,6),(6,1,5,1),(6,1,5,2),(6,1,5,3),(6,1,5,4),(6,1,5,5),(6,1,5,6),(6,1,6,1),(6,1,6,2),(6,1,6,3),(6,1,
    6,4),(6,1,6,5),(6,1,6,6),(6,2,1,1),(6,2,1,2),(6,2,1,3),(6,2,1,4),(6,2,1,5),(6,2,1,6),(6,2,2,1),(6,2,2,2),(6,2,2,3),(6,2,2,4),(6,
    2,2,5),(6,2,2,6),(6,2,3,1),(6,2,3,2),(6,2,3,3),(6,2,3,4),(6,2,3,5),(6,2,3,6),(6,2,4,1),(6,2,4,2),(6,2,4,3),(6,2,4,4),(6,2,4,5),(
    6,2,4,6),(6,2,5,1),(6,2,5,2),(6,2,5,3),(6,2,5,4),(6,2,5,5),(6,2,5,6),(6,2,6,1),(6,2,6,2),(6,2,6,3),(6,2,6,4),(6,2,6,5),(6,2,6,6)
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  34. #34
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    ,(6,3,1,1),(6,3,1,2),(6,3,1,3),(6,3,1,4),(6,3,1,5),(6,3,1,6),(6,3,2,1),(6,3,2,2),(6,3,2,3),(6,3,2,4),(6,3,2,5),(6,3,2,6),(6,3,3,
    1),(6,3,3,2),(6,3,3,3),(6,3,3,4),(6,3,3,5),(6,3,3,6),(6,3,4,1),(6,3,4,2),(6,3,4,3),(6,3,4,4),(6,3,4,5),(6,3,4,6),(6,3,5,1),(6,3,
    5,2),(6,3,5,3),(6,3,5,4),(6,3,5,5),(6,3,5,6),(6,3,6,1),(6,3,6,2),(6,3,6,3),(6,3,6,4),(6,3,6,5),(6,3,6,6),(6,4,1,1),(6,4,1,2),(6,
    4,1,3),(6,4,1,4),(6,4,1,5),(6,4,1,6),(6,4,2,1),(6,4,2,2),(6,4,2,3),(6,4,2,4),(6,4,2,5),(6,4,2,6),(6,4,3,1),(6,4,3,2),(6,4,3,3),(
    6,4,3,4),(6,4,3,5),(6,4,3,6),(6,4,4,1),(6,4,4,2),(6,4,4,3),(6,4,4,4),(6,4,4,5),(6,4,4,6),(6,4,5,1),(6,4,5,2),(6,4,5,3),(6,4,5,4)
    ,(6,4,5,5),(6,4,5,6),(6,4,6,1),(6,4,6,2),(6,4,6,3),(6,4,6,4),(6,4,6,5),(6,4,6,6),(6,5,1,1),(6,5,1,2),(6,5,1,3),(6,5,1,4),(6,5,1,
    5),(6,5,1,6),(6,5,2,1),(6,5,2,2),(6,5,2,3),(6,5,2,4),(6,5,2,5),(6,5,2,6),(6,5,3,1),(6,5,3,2),(6,5,3,3),(6,5,3,4),(6,5,3,5),(6,5,
    3,6),(6,5,4,1),(6,5,4,2),(6,5,4,3),(6,5,4,4),(6,5,4,5),(6,5,4,6),(6,5,5,1),(6,5,5,2),(6,5,5,3),(6,5,5,4),(6,5,5,5),(6,5,5,6),(6,
    5,6,1),(6,5,6,2),(6,5,6,3),(6,5,6,4),(6,5,6,5),(6,5,6,6),(6,6,1,1),(6,6,1,2),(6,6,1,3),(6,6,1,4),(6,6,1,5),(6,6,1,6),(6,6,2,1),(
    6,6,2,2),(6,6,2,3),(6,6,2,4),(6,6,2,5),(6,6,2,6),(6,6,3,1),(6,6,3,2),(6,6,3,3),(6,6,3,4),(6,6,3,5),(6,6,3,6),(6,6,4,1),(6,6,4,2)
    ,(6,6,4,3),(6,6,4,4),(6,6,4,5),(6,6,4,6),(6,6,5,1),(6,6,5,2),(6,6,5,3),(6,6,5,4),(6,6,5,5),(6,6,5,6),(6,6,6,1),(6,6,6,2),(6,6,6,
    3),(6,6,6,4),(6,6,6,5),(6,6,6,6)]
    (90889 reductions, 162987 cells, 1 garbage collection)
    Main>
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  35. #35
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Eh.
    You nut.

  36. #36

    Thread Starter
    Addicted Member dolor's Avatar
    Join Date
    Sep 2002
    Location
    in a place seldom found on a map
    Posts
    220
    Originally posted by kedaman
    count
    Code:
    Main> [(a,b,c,d)|a<-[1..6],b<-[1..6],c<-[1..6],d<-[1..6],a>4||b>4||c>4||d>4]
    [(1,1,1,5),(1,1,1,6),(1,1,2,5),(1,1,2,6),(1,1,3,5),(1,1,3,6),(1,1,4,5),(1,1,4,6),(1,1,5,1),(1,1,5,2),(1,1,5,3),(1,1,5,4),(1,1,5,
    5),(1,1,5,6),(1,1,6,1),(1,1,6,2),(1,1,6,3),(1,1,6,4),(1,1,6,5),(1,1,6,6),(1,2,1,5),(1,2,1,6),(1,2,2,5),(1,2,2,6),(1,2,3,5),(1,2,
    3,6),(1,2,4,5),(1,2,4,6),(1,2,5,1),(1,2,5,2),(1,2,5,3),(1,2,5,4),(1,2,5,5),(1,2,5,6),(1,2,6,1),(1,2,6,2),(1,2,6,3),(1,2,6,4),(1,
    whatever happened to some of the ones w/o a 5 or 6 like (1,1,1,1) ?
    - you've been privileged to read a post by Miz

  37. #37
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    they were excluded from the list with the condition a>4||b>4||c>4||d>4
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  38. #38
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Originally posted by Spajeoly
    He must make his own dice with all 5's & 6's, not to mention, one that will somehow display 2 sides up @ the same time.

    1/3 * 4 = 4/3? Wouldn't it really equal 4/12?
    Uhm. 4/12 = 1/3. Rofl.

    1/3 * 4/1

    Code:
    1*4   4
    - - = -
    3*1   3

  39. #39
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Re: probability is 4/3

    Originally posted by sw_is_great
    probability is 4/3

    how can it be more than 1 (100%) ?????
    Consider my example, 100 coin flips, what's the probability that you'll get heads atleast once? Well, heads will occur 50 times(on average), so I suppose you can say 100%.

    You people are using the wrong method to figure out this particular probility. Your setups are calculating a desired result for each roll. But the problem only needs it to happen on one roll.

  40. #40
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Originally posted by DiGiTaIErRoR
    Uhm. 4/12 = 1/3. Rofl.

    1/3 * 4/1

    Code:
    1*4   4
    - - = -
    3*1   3
    yeah, my bad, i was on 1 hour of sleep when I did that.

    See, that's the trick you need to learn, admit when you're wrong. Nothing can have a 125% of happening.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width