Simple Random Walk
We can construct a simple random walk by tossing a fair coin. If the outcome is heads we go up for 1 unit, if the outcome is tail we go down for 1 unit. We see an animated visualization of a simple Random Walk in the animation below:
The full source code behind this random walk animation can be found in this Python Notebook. For more information, please follow me on Twitter.
If you liked what you just saw, it would be really helpful to subscribe to the mailing list below. You will not get spammed that's a promise! You will get updates for the newest blog posts and visualizations from time to time.
Leave a comment