The Drunkard's Walk
Version 1.0.0.0 (1,52 ko) par
Bud Kelly
Plots the location a drunkard taking n random steps that begin at a lamp post.
The drunkard's walk is a commonly-used metaphor to explain the behavior of many natural events, the stock market, and more. This script plots a number (steps) of randomly-directed steps of a given length, to show that after a large number of steps the drunkard tends to remain in vicinity of the lamp post.
Citation pour cette source
Bud Kelly (2026). The Drunkard's Walk (https://fr.mathworks.com/matlabcentral/fileexchange/66922-the-drunkard-s-walk), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2018a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Exploration and Visualization >
En savoir plus sur Exploration and Visualization dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
