Question: Implement an algorithm to run a 1D random walk with 1000 jumps. Take all constants equal to 1 (duration and length of each step). Plot
Implement an algorithm to run a 1D random walk with 1000 jumps. Take all constants equal to 1 (duration and length of each step). Plot x and x2 with respect to the step number. 2) By averaging multiple simulations, check that the mean-square displacement tends to a linear function of the number of steps, with a slope of 1. 3) Check the effect of a biased random-walk, that is, when the probability to jump to the right is not 50% (try values between 0 and 100%). How does it affect the shape of the average mean-square displacement with respect to the step number? Please help me to code this using matlab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
