A rat faces three doors on each attempt:
Door #1: exit in 1 minute,
Door #2: back in 3 minutes,
Door #3: back in 5 minutes.
The rat picks uniformly at random on each try ($1/3$ each).
Theoretical mean
—
Simulation mean
—
Trials
0
Maze Animation
🐭
Exited! Total time: — min
Door #1 Exit
Door #2 Back (3m)
Door #3 Back (5m)
Start
Theory via Conditional Expectation
Let $E$ be the expected time (minutes) from the start. Condition on the first door the rat chooses: