Little math problem(s) April 2019 - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Little math problem(s) April 2019 (/thread-12853.html) |
Little math problem(s) April 2019 - pier4r - 04-23-2019 09:35 PM There is a deck of 52 cards. 26 red and 26 black. Shuffled. The host is going to turn one card at time. You get 1 dollar/euro/pound/<equivalent unit of money> each time you correctly predict the color of the card turned. You get nothing if you fail. What is the best strategy for the game, to maximize the expected value of the money got from the game? RE: Little math problem(s) April 2019 - ijabbott - 04-23-2019 10:10 PM I think I'd call whichever colour has most cards remaining in the pack (if they are different). RE: Little math problem(s) April 2019 - Albert Chan - 04-24-2019 12:16 AM (04-23-2019 10:10 PM)ijabbott Wrote: I think I'd call whichever colour has most cards remaining in the pack (if they are different). This gives you about $4 more Code: from random import randrange, shuffle >>> n = 10000 >>> print sum(pick_less_seen() for i in range(n)) / n - 26 4.0425 RE: Little math problem(s) April 2019 - David Hayden - 04-24-2019 07:39 PM I guess red every time and win $26. RE: Little math problem(s) April 2019 - ijabbott - 04-24-2019 09:14 PM (04-24-2019 07:39 PM)David Hayden Wrote: I guess red every time and win $26. That's a safe bet as it guarantees winning (at least) 26 hands. However, once 26 reds have been revealed, it would make sense to switch to black! |