Question: (i) Write a function to simulate a random walk in the plane that moves up, down, left, and right with equal probability. Use your function

(i) Write a function to simulate a random walk in the plane that moves up, down, left, and right with equal probability. Use your function to estimate the average distance from the origin after n = 1000 steps. 

(ii) Modify your function to simulate a three-dimensional random walk that moves in one of six directions with equal probability. Estimate the average distance from the origin after n = 1000 steps.

Step by Step Solution

3.29 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution i In general the movement of a random walk up down left and right will be random with const... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Probability With Applications Questions!