Question: 1.Modify the random walk R simulation discussed in class (variation is given in randomWalkPoints.rin the R Computational Toolbox folder downloaded from the textbook website) to
1.Modify the random walk R simulation discussed in class (variation is given in randomWalkPoints.rin the R Computational Toolbox folder downloaded from the textbook website) to make the probability of incrementing x bepx = .3 and the probability of incrementing y be py = .8.
(a)Create 25 random steps and list the results
(b)Modify the simulation to compute the distance of the last step from the starting point.
(c)Repeat the simulation 10 times computing the final distance after 25 steps in each run and using the ten data points compute a 95% confidence interval on themean distance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
