Q.53

Question

A prisoner is trapped in a cell containing 3 doors. The first door leads to a tunnel that returns him to his cell after 2 days’ travel. The second leads to a tunnel that returns him to his cell after 4 days’ travel. The third door leads to freedom after 1 day of travel. If it is assumed that the prisoner will always select doors 1, 2, and 3 with respective probabilities .5, .3, and .2, what is the expected number of days until the prisoner reaches freedom? 

Step-by-Step Solution

Verified
Answer

The expected number of days until the prisoner reaches freedom is 

 E[X]=12.

1Step 1: Given information

Given in the question that, a prisoner is trapped in a cell containing 3 doors. The first door leads to a tunnel that returns him to his cell after 2 days’ travel. The second leads to a tunnel that returns him to his cell after 4 days’ travel. The third door leads to freedom after 1 day of travel. If it is assumed that the prisoner will always select doors 1, 2, and 3 with respective probabilities .5, .3, and .2, what is the expected number of days until the prisoner reaches freedom?

2Step 2: Explanation

Allow X to signify the quantity of days until the detainee get away and Y mean the entryway the detainee picks. Then


E(X)=.5·E[XY=1]+.3·E[XY=2]+.2·E[XY=3]

Now, E[XY=1]=E[X]+2, since the prisoner will essentially get back to the cell and the issue begins once again.

Similarly, E[XY=2]=E[X]+4.E[XY=3]=1, of course. Hence,

E[X]=.5(E[X]+2)+.3(E[X]+4)+.2=.5·E[X]+1+.3·E[X]+1.2+.2=.8·E[X]+2.4

E[X]=12

3Step 3: Final answer

The expected number of days until the prisoner reaches freedom is 

 E[X]=12.