Jump to content
BrainDen.com - Brain Teasers
  • 0

Octodad Tries To Walk Straight


gavinksong
 Share

Question

(This puzzle is based off of a student-created problem on an exam for an undergraduate Intro to Discrete Mathematics course at UC Berkeley)

Octodad has trouble walking straight. When he takes a step, he moves one yard in any random direction.

He decides to try and practice moving around on an xy-coordinate plane. If he starts at the origin, what will be the mean and standard deviation of his distance from the origin after taking a large number of steps?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Let the walk begin at the origin of the complex plane and proceed with unit steps in an arbitrary direction.

Each step is sj = ei thetaj, where thetaj is uniformly taken from [0, 2pi).

The position on the complex plane after N steps is zN = Sum(j=1,N) sj.

Because the steps have random phase the position has a mean value of zero.

<zN> = 0.

 

To deal with real distances d we take the square of the norm of the (complex) displacement.

dN2 =   zNzN* where * denotes complex conjugate.

dN2 = (Sum(j=1,N) ei thetaj) (Sum(k=1,N) e-i thetak) = Sum of jk individual terms.

 

The individual terms have unit magnitude and random phase, except for the N instances when j=k and the phase is zero. A random walk of N unit steps in the x-y plane thus has an expected squared distance of N units.
<dN2>= N.

 

The rms distance after N steps is N1/2.
<dN2>1/2 = N1/2.

 

The first two moments of the two dimensional random walk are 0 and N.

To understand how the first moment can be zero, consider the coordinates xi, yi that result from a random walk of N steps. Average these coordinates over many such random walks. Since negative and positive values are equally likely, one sees that the means are both zero.

 

However, if a positive result is desired, the rms value provides it.

Link to comment
Share on other sites

  • 0

Define his walk. Is his azimuth not limited to vertical or horizontal steps?

 

[spoiler='I think it does not matter']1. Since the direction of each step is random, the mean distance traveled is zero.

 

2. Since the mean is zero, the standard deviation and rms (root mean square) of the distance

for large number of steps are the same, and equal to N0.5 yards, where N is the number of yard-steps taken.

To travel a distance s yards requires s2 steps.

Link to comment
Share on other sites

  • 0

Define his walk. Is his azimuth not limited to vertical or horizontal steps?

]1. Since the direction of each step is random, the mean distance traveled is zero.

2. Since the mean is zero, the standard deviation and rms (root mean square) of the distance

for large number of steps are the same, and equal to N0.5 yards, where N is the number of yard-steps taken.

To travel a distance s yards requires s2 steps.

Are you sure about that, bonanova?

If his mean distance is zero, that would mean that he is 100% likely to end up at the origin every time, since distance cannot be negative.

As for your question, I octodad is limited to moving around only on the xy-plane, but he may move in any direction (not just horizontally or vertically).

Cheers :)

Link to comment
Share on other sites

  • 0

Let the walk begin at the origin of the complex plane and proceed with unit steps in an arbitrary direction.

Each step is sj = ei thetaj, where thetaj is uniformly taken from [0, 2pi).

The position on the complex plane after N steps is zN = Sum(j=1,N) sj.

Because the steps have random phase the position has a mean value of zero.

<zN> = 0.

To deal with real distances d we take the square of the norm of the (complex) displacement.

dN2 = zNzN* where * denotes complex conjugate.

dN2 = (Sum(j=1,N) ei thetaj) (Sum(k=1,N) e-i thetak) = Sum of jk individual terms.

The individual terms have unit magnitude and random phase, except for the N instances when j=k and the phase is zero. A random walk of N unit steps in the x-y plane thus has an expected squared distance of N units.

<dN2>= N.

The rms distance after N steps is N1/2.

<dN2>1/2 = N1/2.

The first two moments of the two dimensional random walk are 0 and N.

To understand how the first moment can be zero, consider the coordinates xi, yi that result from a random walk of N steps. Average these coordinates over many such random walks. Since negative and positive values are equally likely, one sees that the means are both zero.

However, if a positive result is desired, the rms value provides it.

To be honest, I don't know the actual solution to this problem. It was a bonus problem on an exam, but I never got the exam back. :P

Your answer makes sense, bonanova. My reasoning is that as Octodad moves farther away from the origin, his chances of moving back toward the origin decreases, but stays strictly greater than 50%. To see this visually, you can draw a circle around the origin whose radius is the distance between Octodad and the origin, draw a unit circle around Octodad, and shade in the area of the unit circle that is within the larger circle. Thus, it makes sense that the mean distance would increase with N, but eventually begin flattening out with higher values of N.

Do you care to try and solve for the standard deviation, or is that too much?

Link to comment
Share on other sites

  • 0

I meant to say that Octodad's chances of moving

away from the origin decrease but remain strictly greater than 50% as he is father away from the origin.

 

Exactly right.

 

Even though:

 

His steps are memoryless. Kind of like me these days. :unsure:

At each step he does not know (a) where he is or (b) how he got there.

Or at least if he knows, it does not affect his next step. Like a coin toss.

At every point, his remaining walk is the same as the start of a new walk.

 

Nevertheless:

 

His expected total distance from the start does increase as he takes more steps.

Considering all his available steps, more than half of them increase his distance from the start.

On a circle, more than half of the 360-degree directions are outside the circle.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...