Freigeben über


ANSWER Logic Puzzle: Russian Roulette

Here is my answer to the puzzle that was posted here.

Label the chambers {A,B,C,D,E,F}.

Let chambers {A,B} contain bullets.

Spin the barrel. Our expectation distribution of the current chamber is X={1/6, 1/6, 1/6, 1/6, 1/6, 1/6}.

Fire the gun. We get an observation z that the chamber was empty. We want to update our expectation to P(X|z).

P(X|z) = P(X)*P(z|X)

                (where the ‘equals’ sign really means proportional)

P(z|X) is the likelihood function that we would observe our specific value of z for each value of X.

P(z|x) = {0, 0, 1, 1, 1, 1}

P(X|z) = (0, 0, 1/4, 1/4, 1/4, 1/4}

With this belief distribution we can clearly see that there is only one possible chamber that is adjacent to a bullet. The chance we are on that chamber is 1/4. If they spin, then chance we land on a bullet is 2/6=1/3. Since 1/4 < 1/3 you should ask that they just pull the trigger again.

Comments

  • Anonymous
    August 12, 2008
    PingBack from http://hubsfunnywallpaper.cn/?p=216

  • Anonymous
    August 12, 2008
    The comment has been removed

  • Anonymous
    August 12, 2008
    In that case instead of it being 1/4 for each, it would be 100% chance of which one it is in, so you would always want to spin it.

  • Anonymous
    August 12, 2008
    Its Called as Bayes Theorem. Something taught in 12th Grade.

  • Anonymous
    August 12, 2008
    The comment has been removed

  • Anonymous
    August 13, 2008
    maybe wrong! you forget the gravity... i spin!

  • Anonymous
    August 13, 2008
    Hamzeh, This isn't really a good post for that question, but try using the Context to store the data instead of Session.  Something like: Context.Items["Message"] = "Your password was changed successfully";

  • Anonymous
    August 13, 2008
    How about if it'll be 4 chambers? Basically answer to the question will depend on number of chambers in pistolet?

  • Anonymous
    September 10, 2008
    The comment has been removed