I am trying to simulate the following random walk equation:
Equation 1
However, when I run my code I can\'t append the results. I get the following error: