Assignment 1 - MAB261: Figure 1: Random Walk Plot
Assignment 1 - MAB261: Figure 1: Random Walk Plot
PART 1
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