Question: This is Mathematica project. Just need few codes, but I cant figure out. Help me Setup a random walk experiment where the step size is
This is Mathematica project. Just need few codes, but I cant figure out. Help me
Setup a random walk experiment where the step size is a "Normal Distribution". randomwalk = Join [{0}, Accumulate [Randomvariate ["your distribution goes here", steps]]]; (* set up an array of accumulated random steps *) steparray = Range [O, steps]; (* set up the step array for plotting *) ListLinePlot [Transpose [{steparray, randomwalk}], PlotRange rightarrow {All, {-20, 20 read about the Transpose command *) Setup a random walk experiment where the step size is a "Normal Distribution". randomwalk = Join [{0}, Accumulate [Randomvariate ["your distribution goes here", steps]]]; (* set up an array of accumulated random steps *) steparray = Range [O, steps]; (* set up the step array for plotting *) ListLinePlot [Transpose [{steparray, randomwalk}], PlotRange rightarrow {All, {-20, 20 read about the Transpose command *)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
