Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simulation which will track the location of a random walker for 1,000 steps Use comet to generate a pseudo-animation of the walkers position

Create a simulation which will track the location of a random walker for 1,000 steps

Use comet to generate a pseudo-animation of the walkers position as a function of time (i.e. step #).

image text in transcribed

Random Walks-MATLAB Project (For Loop Programming - Histograms - Customizing Output) Background A random walk problem is a good way to start understanding the probability and statistics which underlie a lot of our understanding of Thermodynamics (and Process Control and Protein Kinematics and.. and and... there are tons of subjects and applications for this seemingly simple simulation) The simplest random walk simulation places a "walker" at the origin of a number line and then "tosses a coin" to determine if the walker would step to the left or the right. After each step the position of the walker is updated and the process repeated With these simulations questions can be addressed such as After X steps, what are the odds of the "walker" being a distance (Y) away from the origin? What are the odds of the "walker" crossing a point a distance (Y) away from the origin after X steps? This type of simulation can be enhanced by having the "walker" start halfway up a hill so that the odds of the "walker" stepping in one direction are greater than another Modifications like these can be used to model different situations which may occur in nature so that we can understand and predict and modify their behavior Modelin A single random-walk simulation by itself is enjoyable and cute but it does not enlighten since each walk is just a single representation of the possibility for the system. It is too unique to be representative of the system. The goal is to repeat the simulation many times over (how many is enough?) and then gather statistics on the set of simulations Instead of "tossing a coin" we can use rand from Matlab to generate a pseudo-random variable that is between 0 and 1 Assignment Part 1 Create a simulation which will track the location of a random walker for 1,000 steps Use comet to generate a pseudo-animation of the walker's position as a function of time (ie, step #)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions