Your Choice Kills You

You and 4 prisoners are sentenced in jail. You can't believe this is happening. The police caught you too fast... way too fast.

After a week of being in jail, the jail warden gives all of you a chance. You guys will individually enter a room, and pick one colour: red or blue. The minority will be able to leave jail. For example, if 3 people chose Red and 2 people chose Blue, those 2 people will be able to leave.

Of course, there are no rules here, you and the 4 prisoners can discuss about the game. However, each of you desperately want to leave jail, and therefore may lie about their choice. You want to live your life free again. In the room, you decided to choose the colour Blue.

Given that you have no idea what the 4 prisoners individually chosen, what's the probability of you being able to leave jail?

31.25% 25% 50% 40%

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

David Vreken
Mar 5, 2019

If you choose blue, you either need exactly 0 0 out of the 4 4 prisoners to choose blue or exactly 1 1 out of the 4 4 prisoners to choose blue to be in the minority and be able to leave jail.

The probability of exactly 0 0 out of the 4 4 prisoners choosing blue is ( 4 0 ) 2 4 = 1 16 \frac{4 \choose 0}{2^4} = \frac{1}{16} , and the probability of exactly 1 1 out of the 4 4 prisoners choosing blue is ( 4 1 ) 2 4 = 1 4 \frac{4 \choose 1}{2^4} = \frac{1}{4} .

The probability of either of these happening is 1 16 + 1 4 = 5 16 = 31.25 % \frac{1}{16} + \frac{1}{4} = \frac{5}{16} = \boxed{31.25 \%} .


Since the numbers are somewhat small, all the possible ways of the prisoner choices can also be drawn out. (The first ball is your choice, and the next 4 4 balls are the other prisoner choices. The boxed choices are the situations where blue is in the minority and you will be able to leave jail.)

There are 5 5 out of 16 16 situations in which you would be able to leave jail, for a probability of 5 16 = 31.25 % \frac{5}{16} = \boxed{31.25 \%}

Why does the order matter ? It should just be 2/6 possibilities right ?

Apoorva Singal - 2 years, 2 months ago

Log in to reply

Since your outcome doesn't change if say Prisoner 1 and Prisoner 2 swap colors, order does not matter. That's why I used the combination/choose equation in my solution.

David Vreken - 2 years, 2 months ago
Kyle T
Mar 11, 2019

<?php
//treat 0 as blue, 1 as red
//each entry in the array represents the choices of the other 4 prisoners (0000 means they all chose blue, etc.)
$arr = array(0,1);
do{
$newarr = array();
foreach($arr as $a){
$newarr[] = $a.'0';
$newarr[] = $a.'1';
}
$arr = $newarr;
} while(strlen($arr[0])<4);
//in order to remain in the minority, we're only looking for scenarios in which no more than one other person also chooses blue
$c = 0;
foreach($arr as $a){
if(substr_count($a,'0')<=1){
$c++;
}
}
echo $c / count($arr); //0.3125
?>


lol brute force coding also y dont u yse code formatting btw it shoudl be something like ```php then code then three apostrathing again https://brilliant.org/math-formatting-guide/

chase marangu - 2 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...