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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started