Simulation of Random Walk

Random walk model is made to explain the Brownian motion.
2,9K download
Aggiornato 13 feb 2014

Visualizza la licenza

In this simulation, we assume that there's a group of drunkards walking from same area at the same time. Then we can make the following hypothesis. The walking speed is same and they cannot affect each other. The distance of a step they walk is distributed uniformly in a certain range. After some walks, it is obvious that there will be a distribution for the number of drunkards on the plain. What we do is to display the probability density function by simulation. It can be proved that the distribution is subject to the Weibull distribution.The function is,
f —— describes the probability density of the drunkards at distance r
n —— describes the number of steps they have walked
a —— describes the range of a drunkard walked each time

We can see from the simulation that the theoretical function is quite similar with the experimental function, showing the correctness of this model. If you want to know the theoretical model of this simulation, contact the author by email.

Cita come

QiQin Zhan (2024). Simulation of Random Walk (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2012b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Financial Toolbox in Help Center e MATLAB Answers

Ispirato da: Maximize window, export_fig

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!









Versione Pubblicato Note della release

html help file is updated