Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A funny probability problem for the younger ones

  1. Jun 15, 2016 #1
    1. The problem statement, all variables and given/known data

    This is a problem that I really liked and that I want to share with you. Firstly because of the story around it, secondly because of the unexpected solution, and finally because it can be investigated with a computer for those who are the least comfortable with maths.
    Everybody is invited to participate, but don't forget this is for the 16 to 18 years old.


    problem:
    The chief of the forty thieves is finally captured and brought before the sultan, chained, and surrounded by 12 janissaries (https://en.wikipedia.org/wiki/Janissaries). The sultan tells him 'you can still save your life. Here are five black balls, and five white balls. Distribute them as you wish between these two boxes. I will then make them indistinguishable, and will shake them. You will then be blindfolded by one of my janissaries, and you will have to choose a box, and pick a ball. If the ball is white, I will spare you. If it is black ... ' and he shows him the shiny blade of his guard's scimitar (https://en.wikipedia.org/wiki/Scimitar).

    How should the chief of the forty thieves make his choice in order to maximize his chances of survival ?
     
  2. jcsd
  3. Jun 15, 2016 #2

    Jonathan Scott

    User Avatar
    Gold Member

    A couple of requests for clarification:

    1. Does "distribute them as you wish" include the possibility of zero in one of the boxes? If so, this conflicts with the subsequent instruction to "pick a ball" as this will not be possible, so it seems likely that this was not intended.

    2. And does "choose a box" permit handling it in advance in such a way that one might be able to tell whether it contains zero, one or more balls?
     
  4. Jun 15, 2016 #3

    BiGyElLoWhAt

    User Avatar
    Gold Member

    Wow, you can get surprisingly high probability for choosing white.
     
  5. Jun 15, 2016 #4
    1- Any choice is allowed, knowing that the only thing that will save him is to pick a white ball. An empty box leads to his execution
    2- No handling possible after the distribution
     
  6. Jun 15, 2016 #5

    RUber

    User Avatar
    Homework Helper

    The best I can find is about 72%. Is there a better way?
     
  7. Jun 15, 2016 #6

    BiGyElLoWhAt

    User Avatar
    Gold Member

    72.2222222222, that's a little better, no?
     
  8. Jun 15, 2016 #7
    I feel that @BiGyElLoWhAt won't resist long before giving away his solution ;-)
     
  9. Jun 15, 2016 #8

    BiGyElLoWhAt

    User Avatar
    Gold Member

    I'm trying... so ever hard... haha =D
     
  10. Jun 15, 2016 #9
    Distribute the balls as one wishes. I would be tempted to disregard black balls to the floor / trashcan , and distribute 2 white balls into box A and 3 white balls into box 2...
    100%

    If that is illegal, then I suppose that 72.22% recurring is correct. ( as a fraction it would be 13/18)
    that woudl be the overall chances of living
     
  11. Jun 15, 2016 #10

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    between the boxes.

    13/18 is indeed optimal.

    If we don't have to first pick a box and then a ball, 100% are possible.
     
  12. Jun 15, 2016 #11

    mathman

    User Avatar
    Science Advisor
    Gold Member

    Hint: 13=4+9.
     
  13. Jun 15, 2016 #12

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

    The answer 13/18 ≈ 0.7222 is provably optimal.
     
  14. Jun 15, 2016 #13
    Ok, thank you everybody for your participation. I think that this game can end now as it does not interest the public it is for. I hope that you liked the problem as much as I did.
    @BiGyElLoWhAt , if you still want to give away the solution, the last word belongs to you.
     
  15. Jun 15, 2016 #14
    I used tree diagram and pen-and-paper. That seemed like a good way to begin the problem because of tthe either-or-choice in the beginning with the choice of box.
     
  16. Jun 16, 2016 #15
    for either-or-probability... the sultan seems to give this kind of choice

    the initial choice would be random at 50% 50%

    Only by the act of picking a white ball could we be saved. Evidently all of the 10 balls must be utilized in the two boxes.

    It leads to believe that the best way to distribute 5 white and 5 blacks would be in such a manner that both of two boxes A and B would have individually good chances of surviving (because only one box can be chosen, and it will be random choice at 50%)
    If the choice was not completely random, and you could feel how the box sounds, when you rattle it. Then you could always win this kind of challenge. Because 1 ball inside a box, sounds totally different compared to multiple balls inside a box.

    In plain language, you have plan A of surviving. And then you have plan B of surviving.
    plan A involves being lucky with a coin toss and receiving the 1 white ball inside the box...The box only contains one ball, which will be automatically chosen. This is also incidentally the best possible plan individually for a box to contain the surviving odds. 1 ball chosen from 1 ball= 100%
    This is "the cheapest" way to have the winning ticket in one box. The other balls would go to the other box.
    0.5*[(1 favorable)/(1 total)]= 0.5

    plan B involves being unlucky with a coin toss. But... you still have some chances. And those chances are 4 white balls amongst (9 balls). You have to win an "unfavorable coin toss" at this stage to survive.

    overall chances of living =
    P(A) + P(B) = 0.5*(1/1) + 0.5*(4/9) =13/18
     
  17. Jun 17, 2016 #16
    The chief of the forty thieves has to devise a strategy that will give him the highest possible probability of survival.

    Let us call strategy ##(\alpha,\beta)## the strategy that consists in placing ##\alpha## white and ##\beta## black balls in box 1, and let us define the events
    ##A##: 'blindfolded, the chief picks box 1'
    ##B##: 'blindfolded, the chief picks a white ball '

    Let us call ##p(\alpha,\beta)## the probability of survival associated to the strategy ##(\alpha,\beta)##, for ##0\le \alpha,\beta \le 5##.
    Since ##A## and ##\bar A## form a complete system of events, the law of total probability tells us that ##p(\alpha,\beta) = P(B) = P(A) P(B/A) + P(\bar A) P(B/\bar A) ##

    We find ##p(0,0) = p(5,5) = 1/4 ##, and ##p(\alpha,\beta) = \frac{1}{2} ( \frac{\alpha}{\alpha + \beta} + \frac{5-\alpha}{10 - \alpha - \beta }) ## otherwise. Using a spreadsheet to calculate and record these probabilities, we see that the strategy ##(1,0)## is, by far, the best strategy. Note that the strategies consisting in placing only white balls in a box, this is to say the ##(\alpha,0)##-strategies, offer better chances of survival.

    For those who liked it, you can show that the strategy ##(1,0)## remains the best choice in case the sultan does not give five balls of each color, but any number of each.
     
  18. Jun 17, 2016 #17

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    The (0,0) and (5,5) cases leave one box empty, which leads to an undefined situation if that box is chosen.
     
  19. Jun 17, 2016 #18

    micromass

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2016 Award

    It doesn't according to post 4.
     
  20. Jun 17, 2016 #19
    I suppose so

    when you plug into the function

    alfa= 0
    beta= 0

    0.5* (0/0) + 0.5* (5/10)

    0/0 is undefined in a standard sense. Though when one thinks about it in common sense. It is clear that this is simply an empty box entirely. Empty box was allowed as per Sultan's instructions, but it would not really help us a lot in terms of surviving.
     
  21. Jun 17, 2016 #20

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Oh, I missed that.

    It is quite easy to show that:
    - if one box does not contain a ball at all, moving a white ball into it increases the chance to survive
    - moving all black balls to the box with more white balls increases the chance to survive
    - moving a white ball from a box with at least two white balls and no black balls increases the chance to survive
    Combining those three rules always leads to the same optimal final state, one box has a single white ball and the other box has everything else.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: A funny probability problem for the younger ones
  1. Probability problem (Replies: 3)

Loading...