0% found this document useful (0 votes)
45 views

Assignment 1 - MAB261: Figure 1: Random Walk Plot

A random walk simulation was conducted with 1000 iterations to minimize outliers. Figure 1 shows the results of two cases - in Case 1, each step is a single unit in one of the four cardinal directions, while in Case 2 steps can also be diagonal at a length of √2 units. The figure demonstrates that Case 2 had a greater average displacement from the center than Case 1, since diagonal steps allow for greater maximum displacement per step.

Uploaded by

DomMMK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Assignment 1 - MAB261: Figure 1: Random Walk Plot

A random walk simulation was conducted with 1000 iterations to minimize outliers. Figure 1 shows the results of two cases - in Case 1, each step is a single unit in one of the four cardinal directions, while in Case 2 steps can also be diagonal at a length of √2 units. The figure demonstrates that Case 2 had a greater average displacement from the center than Case 1, since diagonal steps allow for greater maximum displacement per step.

Uploaded by

DomMMK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 1 MAB261

PART 1

Figure 1: Random Walk plot

Figure 1 shows the step data gained from a uniformly distributed random walk given two different
directional outputs. A number of iterations of N = 1000 was chosen to reduce the impact of statistical
outliers. The figure also shows that the greater the number of steps taken, the greater the average
displacement is from the center.
From the figure it is obvious that in all variances of M the average displacement is much greater in Case
2 than in Case 1. In Case 1, regardless of the direction the walker moves, he will only move a single unit
length at a time. In Case 2 the walker also has the chance to move diagonally, and when he does he
moves at 2 *unit length. As such, the walker will always have a greater chance of being displaced from
the center when in Case 2 than in Case 1, as shown in the Figure.

PART 2

You might also like