• We are pleased to announce that the winner of our Feedback Prize Draw for the Winter 2024-25 session and winning £150 of gift vouchers is Zhao Liang Tay. Congratulations to Zhao Liang. If you fancy winning £150 worth of gift vouchers (from a major UK store) for the Summer 2025 exam sitting for just a few minutes of your time throughout the session, please see our website at https://www.acted.co.uk/further-info.html?pat=feedback#feedback-prize for more information on how you can make sure your name is included in the draw at the end of the session.
  • Please be advised that the SP1, SP5 and SP7 X1 deadline is the 14th July and not the 17th June as first stated. Please accept out apologies for any confusion caused.

probability

A

asmkdas

Member
A miner is trapped in a mine containing 3 doors.The first door leads to a tunnel that will take him to safety after 3 hours of travel,The second door leads to a tunnel that will return him to the mine after 5 hours of travel. The third door leads to a tunnel that will return him to the mine after7 hours of travel. If we assume that the miner is at all times equally likely to choose anyone of the doors, find the expected time for him to get to safety.
 
it is approximately between 12.75 and 13 hours.!
is it ??
 
Last edited by a moderator:
A miner is trapped in a mine containing 3 doors.The first door leads to a tunnel that will take him to safety after 3 hours of travel,The second door leads to a tunnel that will return him to the mine after 5 hours of travel. The third door leads to a tunnel that will return him to the mine after7 hours of travel. If we assume that the miner is at all times equally likely to choose anyone of the doors, find the expected time for him to get to safety.

Reminds of me a old problem when I did when I was preparing for CT4 a couple of years back - so concepts maybe a bit edgy

Let X = expected time to go out of mine

X = (1/3)*(expected time to go out of mine from door 1 = 3 hours) + (1/3)*(X + 5) + (1/3)*(X + 7)

X + 5 stems from the fact that if he chooses door 2, he will have to get back to the mine but will have an additional 5 hours wasted (same with door 3)

=> X = 15 hours.
 
15 is correct.

MATLAB Code to solve the same using Monte Carlo:
Code:
n = 100000;
total_hours = zeros(n,1);

for i = 1:n
    exit = 0;
    hours = 0;
    while exit == 0;
        Door = ceil(rand*3);
        switch Door
            case 1
                hours = hours + 3;
                exit = 1;
            case 2
                hours = hours + 5;
                exit = 0;
            otherwise
                hours = hours + 7;
                exit = 0;
        end
    end
    total_hours(i,1) = hours;
end

answer = mean(total_hours)
 
Last edited:
Back
Top