The proportion of walks that end up in either place should


Write a script to simulate the progress of the short-sighted student in Chapter 16 (Markov Processes). Start him at a given intersection, and generate a random number to decide whether he moves toward the internet cafe or home, according to the probabilities in the transition matrix. For each simulated walk, record whether he ends up at home or in the cafe. Repeat a large number of times. The proportion of walks that end up in either place should approach the limiting probabilities computed using the Markov model described in Chapter 16. Hint: If the random number is less than 2/3 he moves toward the cafe (unless he is already at home or in the cafe, in which case that random walk ends), otherwise he moves toward home.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The proportion of walks that end up in either place should
Reference No:- TGS02209239

Expected delivery within 24 Hours