Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. TWCP OTD - 15th of March, 2017

TWCP OTD - 15th of March, 2017

Scheduled Pinned Locked Moved The Lounge
helpquestion
17 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    BEST CHANCE A man has $300 to take home. A friend offers him a bet to double the money. He has to roll dices... Rolling one to get a 4 or better, rolling two and get 5 or better on one of them at least or rolling 3 and getting 6 on one of them at least... Wont't get the result he looses the $300... Which one our man should choose?

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #2

    Take the dice and go home. Upon reconsideration... offer the "friend" the same wager. ;P I may be way off here, but if my probability-fu hasn't entirely failed me...One die for a 4 or 5 or 6 == 3:6 , 50% , to win even money == "fair game"
    Two dice for at least one 5 or 6 == 8:36 , 22% , to win even money == about a 55% house edge?
    Three dice for at least one 6 == 7:216 , 3% , to win even money == about a 94% house edge?

    One die for a 4 or 5 or 6 == 3:6 , 50% , to win even money == "fair game"
    Two dice for at least one 5 or 6 == 20:36 , 55% , to win even money == -11% house edge?
    Three dice for at least one 6 == 91:216 , 42% , to win even money == about a 16% house edge?

    Not playing is still the best option.

    1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      BEST CHANCE A man has $300 to take home. A friend offers him a bet to double the money. He has to roll dices... Rolling one to get a 4 or better, rolling two and get 5 or better on one of them at least or rolling 3 and getting 6 on one of them at least... Wont't get the result he looses the $300... Which one our man should choose?

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #3

      Bash his friend over the head and take the money.

      OriginalGriffO 1 Reply Last reply
      0
      • R R Giskard Reventlov

        Bash his friend over the head and take the money.

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #4

        I thought of that myself immediately, but decided I like my friends ... :laugh:

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          BEST CHANCE A man has $300 to take home. A friend offers him a bet to double the money. He has to roll dices... Rolling one to get a 4 or better, rolling two and get 5 or better on one of them at least or rolling 3 and getting 6 on one of them at least... Wont't get the result he looses the $300... Which one our man should choose?

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          I Offline
          I Offline
          imzhangqin
          wrote on last edited by
          #5

          Rolling two.

          1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            BEST CHANCE A man has $300 to take home. A friend offers him a bet to double the money. He has to roll dices... Rolling one to get a 4 or better, rolling two and get 5 or better on one of them at least or rolling 3 and getting 6 on one of them at least... Wont't get the result he looses the $300... Which one our man should choose?

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #6
            1. 1 dice, 4, 5, or 6 wins: 3/6 = 50% 2) 2 dice, 5 or 6 wins: (1 - (4/6)^2) = 55.6% 3) 3 dice, 6 wins: (1 - (5/6)^3) = 42.1% So the best options in order are 2, 1, then 3 :thumbsup: EDIT: Including just leaving with $300 (option #4), the option order is 2 > 1 = 4 > 3.
            Kornfeld Eliyahu PeterK P 2 Replies Last reply
            0
            • J Jon McKee
              1. 1 dice, 4, 5, or 6 wins: 3/6 = 50% 2) 2 dice, 5 or 6 wins: (1 - (4/6)^2) = 55.6% 3) 3 dice, 6 wins: (1 - (5/6)^3) = 42.1% So the best options in order are 2, 1, then 3 :thumbsup: EDIT: Including just leaving with $300 (option #4), the option order is 2 > 1 = 4 > 3.
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #7

              These are the chances to go home with $600, but there is the option - of 100% - to take home $300!

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              J 1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                These are the chances to go home with $600, but there is the option - of 100% - to take home $300!

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                J Offline
                J Offline
                Jon McKee
                wrote on last edited by
                #8

                You asked for the best option which would be option #2 statistically speaking - 55.6% to double your money. This can easily be shown with a sample set: 100 rolls, double or nothing @ 55.6% = $333.6 100 rolls, $300 @ 100% = $300

                Kornfeld Eliyahu PeterK 1 Reply Last reply
                0
                • J Jon McKee

                  You asked for the best option which would be option #2 statistically speaking - 55.6% to double your money. This can easily be shown with a sample set: 100 rolls, double or nothing @ 55.6% = $333.6 100 rolls, $300 @ 100% = $300

                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu Peter
                  wrote on last edited by
                  #9

                  Double or nothing means you can not have $333.6... It is either $600 or $0! So 55.6% of $600 is much worst than 100% of $300...

                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  J 1 Reply Last reply
                  0
                  • J Jon McKee
                    1. 1 dice, 4, 5, or 6 wins: 3/6 = 50% 2) 2 dice, 5 or 6 wins: (1 - (4/6)^2) = 55.6% 3) 3 dice, 6 wins: (1 - (5/6)^3) = 42.1% So the best options in order are 2, 1, then 3 :thumbsup: EDIT: Including just leaving with $300 (option #4), the option order is 2 > 1 = 4 > 3.
                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #10

                    If I'm not mistaken... There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners. -- 20 winning outcomes There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners. -- 91 winning outcomes What did I miss? Edit: I was mistaken. I missed a whole bunch of winning outcomes.

                    Kornfeld Eliyahu PeterK L 2 Replies Last reply
                    0
                    • P PIEBALDconsult

                      If I'm not mistaken... There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners. -- 20 winning outcomes There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners. -- 91 winning outcomes What did I miss? Edit: I was mistaken. I missed a whole bunch of winning outcomes.

                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu Peter
                      wrote on last edited by
                      #11

                      PIEBALDconsult wrote:

                      What did I miss?

                      That the outcome of each dice is independent, as there is no meaning of the order or on which dice you got the winner number...

                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                      P 1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        PIEBALDconsult wrote:

                        What did I miss?

                        That the outcome of each dice is independent, as there is no meaning of the order or on which dice you got the winner number...

                        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #12

                        Yes, I understand that, but I see where I went wrong -- I have since decided to graph it out...

                        1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          Double or nothing means you can not have $333.6... It is either $600 or $0! So 55.6% of $600 is much worst than 100% of $300...

                          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                          J Offline
                          J Offline
                          Jon McKee
                          wrote on last edited by
                          #13

                          That's to show general value per roll. Each value is 0 or 600 (double or nothing). (55.6 x 600)/100 = 333.6. Since it's all or nothing, you could also do (600 x .556). Both calculate the same thing - the average value per roll. The point is that the per-roll evaluation of $333.6 is greater than the $300 evaluation (300 x 1.0). This isn't to show the money you earn but to weight and compare the options. If you'd like to include personality, monetary situation, and other per-person variables then even though you will statistically get more value out of the 55.6% option the guaranteed $300 may seem more appealing depending on the relative value of $300 to that individual.

                          1 Reply Last reply
                          0
                          • P PIEBALDconsult

                            If I'm not mistaken... There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners. -- 20 winning outcomes There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners. -- 91 winning outcomes What did I miss? Edit: I was mistaken. I missed a whole bunch of winning outcomes.

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #14

                            PIEBALDconsult wrote:

                            There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners.

                            How did you get 8 winning combinations? If the first die already wins (in twqo out of six cases), the second one is irrelevant in any case. These already are twelve winning combinations. And then those cases where the first die 'misses', but the second one wins are added. Chance that the first one wins: 2/6. Chance that the first one mises, bt the second one wins: 4/6 * 2/6 = 8/36 (probably what you thought) Total chance 2/6 + 8/36 = 12/36 + 8 /36 = 20/36 = 0,56 (rounded).

                            PIEBALDconsult wrote:

                            There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners.

                            Similar calculation: Chance that the first one already wins: 1/6 Chance that the second one wins if the first fails: 5/6 * 1/6 = 5/36 Chance that the third one winds when the first two fail: 5/6 * 5/6 * 1/6 = 25/216 Adding it all up: 1/6 + 5/36 + 25/216 = (36 + 30 + 25) / 216 = 71/216 = 0,33 (rounded).

                            The language is JavaScript. that of Mordor, which I will not utter here
                            This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                            "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                            P J 2 Replies Last reply
                            0
                            • L Lost User

                              PIEBALDconsult wrote:

                              There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners.

                              How did you get 8 winning combinations? If the first die already wins (in twqo out of six cases), the second one is irrelevant in any case. These already are twelve winning combinations. And then those cases where the first die 'misses', but the second one wins are added. Chance that the first one wins: 2/6. Chance that the first one mises, bt the second one wins: 4/6 * 2/6 = 8/36 (probably what you thought) Total chance 2/6 + 8/36 = 12/36 + 8 /36 = 20/36 = 0,56 (rounded).

                              PIEBALDconsult wrote:

                              There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners.

                              Similar calculation: Chance that the first one already wins: 1/6 Chance that the second one wins if the first fails: 5/6 * 1/6 = 5/36 Chance that the third one winds when the first two fail: 5/6 * 5/6 * 1/6 = 25/216 Adding it all up: 1/6 + 5/36 + 25/216 = (36 + 30 + 25) / 216 = 71/216 = 0,33 (rounded).

                              The language is JavaScript. that of Mordor, which I will not utter here
                              This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                              "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                              P Offline
                              P Offline
                              PIEBALDconsult
                              wrote on last edited by
                              #15

                              Yes, I already found and corrected my error.

                              CDP1802 wrote:

                              Chance that the first one mises, bt the second one wins: 4/6 * 2/6 = 8/36 (probably what you thought)

                              Nope.

                              CDP1802 wrote:

                              Adding it all up: 1/6 + 5/36 + 25/216 = (36 + 30 + 25) / 216 = 71/216 = 0,33 (rounded).

                              Recheck your math.

                              1 Reply Last reply
                              0
                              • L Lost User

                                PIEBALDconsult wrote:

                                There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners.

                                How did you get 8 winning combinations? If the first die already wins (in twqo out of six cases), the second one is irrelevant in any case. These already are twelve winning combinations. And then those cases where the first die 'misses', but the second one wins are added. Chance that the first one wins: 2/6. Chance that the first one mises, bt the second one wins: 4/6 * 2/6 = 8/36 (probably what you thought) Total chance 2/6 + 8/36 = 12/36 + 8 /36 = 20/36 = 0,56 (rounded).

                                PIEBALDconsult wrote:

                                There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners.

                                Similar calculation: Chance that the first one already wins: 1/6 Chance that the second one wins if the first fails: 5/6 * 1/6 = 5/36 Chance that the third one winds when the first two fail: 5/6 * 5/6 * 1/6 = 25/216 Adding it all up: 1/6 + 5/36 + 25/216 = (36 + 30 + 25) / 216 = 71/216 = 0,33 (rounded).

                                The language is JavaScript. that of Mordor, which I will not utter here
                                This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                J Offline
                                J Offline
                                Jon McKee
                                wrote on last edited by
                                #16

                                The easier way to calculate this imo is to calculate what loses then subtract that from 1. This way the second example is simply 1 - (5/6)^3 = 0.4213... ~ 42.1%. Also in the last step of the second example, (36 + 30 + 25)/216 = 91/216 ~ 42.1% not 71/216 ~ 33% :thumbsup:

                                L 1 Reply Last reply
                                0
                                • J Jon McKee

                                  The easier way to calculate this imo is to calculate what loses then subtract that from 1. This way the second example is simply 1 - (5/6)^3 = 0.4213... ~ 42.1%. Also in the last step of the second example, (36 + 30 + 25)/216 = 91/216 ~ 42.1% not 71/216 ~ 33% :thumbsup:

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #17

                                  Oooops. It was late. :-)

                                  The language is JavaScript. that of Mordor, which I will not utter here
                                  This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                  "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups