I write a function to simulate a random walk in the plane


(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.

Request for Solution File

Ask an Expert for Answer!!
Management Theories: I write a function to simulate a random walk in the plane
Reference No:- TGS01485206

Expected delivery within 24 Hours