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.
引用
Bud Kelly (2025). The Drunkard's Walk (https://www.mathworks.com/matlabcentral/fileexchange/66922-the-drunkard-s-walk), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2018a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Exploration and Visualization >
Help Center および MATLAB Answers で Exploration and Visualization についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |