Python, Matplotlib, Animation, Statistics, Code.
only moved 1 space. In both of these cases, we would expect a net drift to the right. In other words, the random walk is biased toward the right. I’ve used the second method to plot a biased random walk. dims = 2 step_n = no_of_steps step_set = [-1, 0, 4] origin = np.zeros((1,dims)) # Simulate