Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Probability (http://archives2.twoplustwo.com/forumdisplay.php?f=23)
-   -   A Microsoft Interview Question (aka basic Bayes' Theorem) (http://archives2.twoplustwo.com/showthread.php?t=177321)

Ed Miller 01-14-2005 10:09 PM

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?

dtbog 01-14-2005 10:32 PM

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.

snowbank 01-15-2005 12:26 AM

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?

lossage 01-15-2005 12:37 AM

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?

VBM 01-15-2005 01:10 AM

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.

lossage 01-15-2005 01:28 AM

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.

DQPaulie 01-15-2005 01:56 AM

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.

VBM 01-15-2005 02:10 AM

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?

rt1 01-15-2005 02:15 AM

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.

RJT 01-15-2005 02:17 AM

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?


All times are GMT -4. The time now is 07:48 PM.

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