Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A rat is trapped in a maze. Initially it has to choose one of two directions. If

ID: 2960651 • Letter: A

Question

A rat is trapped in a maze. Initially it has to choose one of two directions. If it goes to the right, then it will wander around in the maze for three minutes and will then return to its initial position. If it goes to the left, then with probability 1/3 it will depart the maze after two minutes of traveling, and with probability 2/3, it will return to its initial position after five minutes of traveling. Assuming that the rat is at all times equally likely to go to the left or the right, what is the expected number of minutes that it will be trapped in the maze?

Explanation / Answer

This seems to be correct i've used this code view sourceprint? 01 void simulateTravelTime(int number_simulations){ 02 __int64 timeTotal = 0; 03 int time;//store time in 1 sim 04 __int64 E =0;//to hold E(X^2) to solve variance E(X^2) - E(X)^2 05 for(int i =1; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote