Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2005, 10:09 PM
Ed Miller Ed Miller is offline
Senior Member
 
Join Date: Sep 2002
Location: Writing \"Small Stakes Hold \'Em\"
Posts: 4,548
Default A Microsoft Interview Question (aka basic Bayes\' Theorem)

If you don't know or understand Bayes' Theorem, this problem is for you. If you do, this problem will be trivial, and I ask you not to answer. Really, it isn't worth your time. [img]/images/graemlins/smile.gif[/img]

When I worked at Microsoft, I used to ask this as an interview question. Most of the candidates struggled with it. Hopefully you will figure it out quickly. Also, try to figure it out on your own before you read anyone else's answer.

You and a friend are playing Russian Roulette with a six-chambered revolver. You place two rounds in adjacent chambers and give the wheel a final spin. You hand the gun to your friend. He pulls the trigger...

Click. He hands the gun to you. You have a choice. You can spin it again, or you can simply shoot the next chamber. Does it matter which one you choose? If it does, why?
Reply With Quote
  #2  
Old 01-14-2005, 10:32 PM
dtbog dtbog is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

Isn't this sort of like the Monty Hall problem?

-DB

EDIT: Never mind, you said "adjacent chambers". That changes things.
Reply With Quote
  #3  
Old 01-15-2005, 12:26 AM
snowbank snowbank is offline
Junior Member
 
Join Date: Apr 2004
Posts: 10
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

Wouldn't you want to spin it again, because once he hands the gun to you, you would have a 2/5 chance of shooting youself, because the chamber before was empty. If you spun it again, you would have a 2/6 chance of shooting yourself.

Is this correct?
Reply With Quote
  #4  
Old 01-15-2005, 12:37 AM
lossage lossage is offline
Junior Member
 
Join Date: Sep 2004
Location: Chicagoland
Posts: 7
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

[ QUOTE ]
Wouldn't you want to spin it again, because once he hands the gun to you, you would have a 2/5 chance of shooting youself, because the chamber before was empty. If you spun it again, you would have a 2/6 chance of shooting yourself.

Is this correct?

[/ QUOTE ]

Not quite, but you're close. Like the Monty Hall problem, this is an exercise in conditional probability. Think about this: Your friend just pulled the trigger and hit an empty. How many total states could the revolver have been in when your friend shot, and how many of these cause you to blow your own brains out?
Reply With Quote
  #5  
Old 01-15-2005, 01:10 AM
VBM VBM is offline
Junior Member
 
Join Date: Feb 2005
Posts: 0
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

ok, dont' laugh you bayesian snobs, but i drew 6 empty holes in a circle and filled in 2 of them. there are 4 possible states its in when your friend pulls the trigger and didn't kill himself. afterwards, there are only 3 possible empty chambers that won't kill you; b/c if he was on the one just before the filled one, you're on the filled one and you're fcuked. your chances are 3/6 which is not as good as 4/6 so you should spin again and point it at your friend for convincing you to play this stupid game.
Reply With Quote
  #6  
Old 01-15-2005, 01:28 AM
lossage lossage is offline
Junior Member
 
Join Date: Sep 2004
Location: Chicagoland
Posts: 7
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

[ QUOTE ]
there are 4 possible states its in when your friend pulls the trigger and didn't kill himself. afterwards, there are only 3 possible empty chambers that won't kill you; b/c if he was on the one just before the filled one, you're on the filled one and you're fcuked. your chances are 3/6 which is not as good as 4/6 so you should spin again and point it at your friend for convincing you to play this stupid game.

[/ QUOTE ]

I disagree with the "3/6" number, but I agree with turning the game around on your dumbass friend. I'm pretty sure that happened on 24 a couple of seasons ago.
Reply With Quote
  #7  
Old 01-15-2005, 01:56 AM
DQPaulie DQPaulie is offline
Junior Member
 
Join Date: Sep 2002
Posts: 0
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

First look, it is 4/6 to live on first shot and 3/5 to live on second shot. 66% is higher than 60% so spin? But looking at where the first shot could have landed, the next shot will kill 25% and let me live 75% if i just pull the trigger. So I guess no spin ......click.
Reply With Quote
  #8  
Old 01-15-2005, 02:10 AM
VBM VBM is offline
Junior Member
 
Join Date: Feb 2005
Posts: 0
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

[ QUOTE ]
But looking at where the first shot could have landed, the next shot will kill 25% and let me live 75% if i just pull the trigger. So I guess no spin ......click.

[/ QUOTE ]

huh? i got the 1st part on 4/6 vs 3/5 (not 3/6 like i thought)...a little help w/ this part?
Reply With Quote
  #9  
Old 01-15-2005, 02:15 AM
rt1 rt1 is offline
Member
 
Join Date: Jun 2004
Location: irc
Posts: 33
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

i drew this out on a piece of paper and it seemed rather easy to me. and im not smart.

your friend shot and hit a blank. that means that no bullet was about to fire so therefore the trigger wont be on the next bullet or the next empty slot. leaving 1 bullet and 3 empty slots (4 slots total) left for the next pull. 1/4 you kill yourself, 3/4 you live.

if you choose to respin, you land on a bullet 2/6 times or 1/3 of the time.

so, i dont respin, i just pull the trigger.
Reply With Quote
  #10  
Old 01-15-2005, 02:17 AM
RJT RJT is offline
Senior Member
 
Join Date: Nov 2004
Posts: 111
Default Re: A Microsoft Interview Question (aka basic Bayes\' Theorem)

If you spin again you have a 4/6 chance of surviving. The chance that your friend had chamber next to live one is 1 / 4. That leaves 3 /4 chance it wasn’t next to live one. 3 / 4 = 9 /12. 4 /6 = 8/ 12. Chances are better not to spin?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.