Why Do Random Walks Get Lost in 3D? — Transcript
Full transcript
- 0:00imagine standing at the origin of an
- 0:02infinite number line
- 0:03you begin flipping a fair coin that
- 0:05tells you where you should move
- 0:07if you get tails you take one step to
- 0:09the left and if you get heads
- 0:11one step to the right this is a random
- 0:14walk in one dimension and more
- 0:16specifically this is a symmetric
- 0:18random walk where we have equal
- 0:19probability of moving in either
- 0:21direction
- 0:23we can generalize this type of walk to
- 0:25any number of dimensions
- 0:27randomly selecting a unit step in any
- 0:29axis direction
- 0:31so in two dimensions we can take a step
- 0:33along the x or y axis
- 0:35and in three dimensions along the x y or
- 0:37z axis
- 0:41in the early 1900's hungarian
- 0:43mathematician
- 0:44george poglia was interested in the
- 0:46following question
- 0:48once we begin our random walk are we
- 0:50guaranteed to eventually return
- 0:52to where we started we might think that
- 0:56if we walk forever we'll surely come
- 0:58back at some point
- 1:00however long it takes but when it comes
- 1:02to infinity
- 1:03our intuitions can mislead us it turns
- 1:06out while this is correct in the
- 1:08one and two dimensional cases in three
- 1:10dimensions this is suddenly no
- 1:12longer true and in fact it's more likely
- 1:14that we never return
- 1:16our probability of returning drops from
- 1:18a clean one
- 1:19to .34 as it's often summarized
- 1:23a drunk man will find his way home but a
- 1:25drunk bird
- 1:26may get lost forever now you're probably
- 1:30asking why
- 1:31why this abrupt change in behavior as we
- 1:34jump from two dimensions
- 1:35to three sure as we move to higher
- 1:38dimensional space we have
- 1:39more choices for our steps and it makes
- 1:42sense that it would probably take
- 1:43longer to return but to never return
- 1:46that's strange in this video
- 1:49we'll try to gain some intuition about
- 1:51this awesome result
- 1:53known as polia's recurrence theorem
- 1:56let's first formalize the question a bit
- 1:59let s
- 1:59n be our location at step n then
- 2:02sn is the sum of each of our individual
- 2:05steps x
- 2:05i as i ranges from 1 to n
- 2:09each step x i is drawn uniformly among
- 2:12the axis aligned unit steps
- 2:14so for a given dimension d there are two
- 2:17times d
- 2:18possible steps and each has an equal
- 2:20chance of selection
- 2:23now familiarity with markov chains won't
- 2:26be required to understand anything in
- 2:28this video
- 2:29but if you have seen them before you
- 2:30know that we can view the walk as a
- 2:32markov chain
- 2:33with an infinite set of possible states
- 2:36every d
- 2:36dimensional lattice point with
- 2:38transition probabilities 1 over 2d
- 2:41for jumping to each neighboring state
- 2:43and 0 for jumping to any farther state
- 2:46we're concerned with this probability
- 2:49the probability
- 2:50of returning to the origin at least once
- 2:53if this probability equals 1 the origin
- 2:55will be called a recurrent state
- 2:57but if there's some non-zero chance of
- 2:59never returning
- 3:00it's transient suppose the origin is
- 3:04known to be recurrent
- 3:05then when we eventually do return we
- 3:08will basically begin a brand new walk
- 3:10again with the guarantee of returning
- 3:13naturally we might expect to visit the
- 3:15origin
- 3:15infinitely many times over an infinite
- 3:17time frame
- 3:19for these types of systems this
- 3:21condition turns out to be both necessary
- 3:23and sufficient
- 3:24we have recurrence if and only if the
- 3:27expected number of returns
- 3:28is infinite let's take a look at some
- 3:31walks in one dimension
- 3:33and see if we notice anything about
- 3:34their behavior
- 3:36we'll set a hundred walkers to each take
- 3:3810 steps and record their final
- 3:44positions
- 3:50one thing we see of course is that since
- 3:52we had an even number of time steps
- 3:54we have zero walkers on the odd
- 3:56coordinates but there also seems to be a
- 3:58higher concentration of walkers near the
- 4:00origin
- 4:02let's try a thousand steps with ten
- 4:04thousand walkers
- 4:06our walkers are more spread out now but
- 4:08we still see this bell-shaped curve
- 4:10which may remind you of a normal or
- 4:12gaussian distribution
- 4:14the central limit theorem tells us that
- 4:17the distribution of the sum
- 4:18of independent and identically
- 4:20distributed random variables
- 4:22with finite mean and variance ultimately
- 4:24converges to a normal distribution
- 4:27well we definitely meet those conditions
- 4:29here the mean of our two step choices
- 4:32is zero and our squared step length is
- 4:34always one
- 4:36so if the sum of our individual steps is
- 4:38approaching a normal distribution
- 4:40what is its width how far do we expect
- 4:43to get
- 4:45let's compute the average squared
- 4:47distance from the origin at step n
- 4:49this is also equivalent to the variance
- 4:51of sn because
- 4:53sn is a centered random variable the
- 4:55expected position
- 4:57no matter how many steps we take is
- 4:59still zero the origin
- 5:04the squared distance will just be the
- 5:05square of the sum of our steps
- 5:11linearity of expectation allows us to
- 5:13bring the expectation operator
- 5:15inside these two summations
- 5:19we already know that the square of each
- 5:21step length is one
- 5:22but what is the expectation of x i times
- 5:25xj
- 5:26that is the product of two independent
- 5:28steps
- 5:30well half the time the step directions
- 5:32will be the same
- 5:33and half different likewise the product
- 5:36is
- 5:36negative one or one with equal frequency
- 5:39so the expectation of this product is
- 5:41zero and overall
- 5:43we end up with a sum of n ones
- 5:46so our average square distance is just n
- 5:49and our root mean squared distance the
- 5:52standard deviation of sn
- 5:54is the square root of n you're likely
- 5:57familiar with the
- 5:586895 99.7 rule
- 6:01where we expect 68 95 and 99.7
- 6:05of the values of a normal distribution
- 6:08to lie within one
- 6:09two and three standard deviations of the
- 6:11mean respectively
- 6:13so let's first think heuristically about
- 6:15our probability of being at the origin
- 6:17at a given step since it's only possible
- 6:20to return
- 6:21in an even number of steps we'll ask
- 6:24what's the probability of returning on
- 6:26step
- 6:262n well if our distribution is
- 6:29approximately normal
- 6:31we expect to end up within one standard
- 6:33deviation of the mean
- 6:34the majority of the time for two n steps
- 6:38our standard deviation is radical two n
- 6:40and there are about
- 6:41two times radical two n positions within
- 6:43this distance from the origin
- 6:45with half of them being even if we treat
- 6:48these options uniformly
- 6:50we might guess that our probability of
- 6:52being at the origin is on the order of
- 6:541 over radical 2n now this constant is
- 6:57probably a bit off because
- 6:59we only expect to be within this
- 7:00interval 68
- 7:02of the time and in truth we should have
- 7:04a bit more probability mass
- 7:06for positions closer to the origin but
- 7:08it turns out this is a pretty good
- 7:10approximation
- 7:11to be a little more accurate let's
- 7:13determine how many possible trajectories
- 7:15there are
- 7:16of length two n for each step we have
- 7:19two choices
- 7:20negative and positive so that's two
- 7:22raised to the two nth power
- 7:24distinct trajectories how many of these
- 7:27have us back at the origin
- 7:28at step 2 n well such a trajectory would
- 7:32be required to have exactly as many
- 7:34negative steps
- 7:35as positive steps we can simply focus on
- 7:38which steps will be designated as
- 7:40positive while the rest will be negative
- 7:43so how many ways are there to select n
- 7:45indices out of 2n
- 7:47total indices that would be the binomial
- 7:50coefficient
- 7:512n choose n so our probability of being
- 7:54back at the origin
- 7:55is 2n choose n over 2 to the 2n
- 7:59the number of suitable trajectories
- 8:01divided by the total number of
- 8:03trajectories
- 8:04great but now we have several factorials
- 8:07which are difficult to evaluate
- 8:09to help we can bring in sterling's
- 8:11formula which is known to be
- 8:12asymptotically equivalent to the
- 8:14factorial
- 8:16the derivation for sterling's formula is
- 8:18a bit involved and deserves its own
- 8:20separate video
- 8:21at the moment let's just take it off the
- 8:23shelf and plug it in
- 8:33after simplifying we end up with this
- 8:34one over radical pi
- 8:36n so we were pretty close the
- 8:39probability decreases proportionally
- 8:41to 1 over radical n with this in hand
- 8:44let's evaluate the expectation of the
- 8:47number of visits
- 8:48in one dimension the summand here is an
- 8:51indicator variable where it equals 1 if
- 8:54s2n
- 8:55is the origin and 0 otherwise
- 9:04we end up with a p series where p our
- 9:07power
- 9:08is one half if we remember from calculus
- 9:11a p
- 9:11series with p less than or equal to one
- 9:14ends up diverging because the summand
- 9:16decreases too slowly
- 9:17regardless of any constant factor
- 9:19multiplying it
- 9:21the expected number of returns to the
- 9:22origin is therefore infinite
- 9:24and our probability of returning is one
- 9:28what happens in two dimensions consider
- 9:31two one-dimensional walkers taking steps
- 9:33simultaneously
- 9:35one confined to the x-axis and the other
- 9:37to the y-axis
- 9:39this is actually equivalent to a single
- 9:42two-dimensional walk
- 9:43but rotated by 45 degrees and slightly
- 9:48rescaled
- 9:50back to the origin requires both walkers
- 9:52to return
- 9:53at the exact same time step if we take
- 9:56the expected number of returns now
- 9:58our p series has power one grows like
- 10:01the harmonic series
- 10:03and diverges again
- 10:08you might guess where this is going is a
- 10:10three-dimensional walk equivalent to
- 10:12three simultaneous one-dimensional walks
- 10:16well it isn't exactly an actual
- 10:18three-dimensional walk has six
- 10:20options at each step two for each of the
- 10:23three axes
- 10:24but three one-dimensional walks have
- 10:26eight possible options at each step
- 10:29still for the purposes of recurrence the
- 10:31behavior is equivalent
- 10:33we won't do the full derivation here
- 10:34which is a bit more involved than in one
- 10:36and two dimensions
- 10:38but the return probability for the
- 10:39three-dimensional walk on step two n
- 10:41ends up decreasing proportionally to n
- 10:44to the negative three halves
- 10:46our p series now has a power greater
- 10:48than one and converges
- 10:51in 3d we expect to only return a finite
- 10:54number of times
- 10:57in these calculations we focused on the
- 10:59origin but it's easy to see that in
- 11:01one and two dimensions every other
- 11:03location will be visited as well
- 11:06why consider some point a and a single
- 11:09path from the origin
- 11:11to a for example in one dimension this
- 11:14could be the straight line path from the
- 11:16origin to a
- 11:18well every time we're at the origin
- 11:20we'll have
- 11:21some positive probability of following
- 11:23this path
- 11:24and therefore visiting a if we view this
- 11:27as a bernoulli trial
- 11:28where success is defined as following
- 11:31this path
- 11:32we'll have probability of one of getting
- 11:34a success over an infinite number of
- 11:36trials
- 11:37and when we do reach a we can view it as
- 11:39the initial state of a new walk
- 11:42so in one and two dimensions we have
- 11:44probability one
- 11:45of visiting every point with infinite
- 11:48expected visits for each
- 11:50recurrence at the origin implies
- 11:52recurrence everywhere
- 11:55now algebraically this all might be
- 11:57convincing
- 11:58but still why this abrupt change from
- 12:01two to three dimensions
- 12:03what ultimately clicked for me was
- 12:05understanding that higher dimensional
- 12:07walks
- 12:08only behave like two-dimensional objects
- 12:10expanding over time
- 12:13alright what does that mean
- 12:16to understand let's revisit the question
- 12:18of average distance traveled
- 12:21before we proved that the root mean
- 12:23squared distance of a one-dimensional
- 12:25walker's position
- 12:26at step n is root n
- 12:29it turns out that this square root
- 12:31relationship holds in any number of
- 12:33dimensions
- 12:34let s n i be the i-coordinate of the
- 12:37walker at step n
- 12:40the expected squared distance along the
- 12:42i-axis
- 12:43will be equal to the number of steps
- 12:45taken along that axis
- 12:48so the expected squared total distance
- 12:50is n
- 12:51regardless of the dimensionality of the
- 12:53walk
- 12:55what if we ask a related question when
- 12:57we first reach a distance r
- 12:59how many steps do we expect to have
- 13:01taken
- 13:02similarly this ends up being r squared
- 13:05steps
- 13:06this is really the key suppose that
- 13:09optimistically
- 13:10when a three-dimensional walk reaches
- 13:12distance r
- 13:14all of its r-squared expected steps
- 13:16visited distinct points
- 13:17with zero repeats but the total number
- 13:21of points within this distance will grow
- 13:23like r
- 13:23cubed as time goes on the walk will
- 13:26cover an ever decreasing fraction of
- 13:28these points
- 13:29proportional to r squared over r cubed
- 13:32or one over r and won't be able to catch
- 13:35up
- 13:36so the rate at which three-dimensional
- 13:38walks move away from the origin
- 13:40is too great relative to this coverage
- 13:42rate
- 13:43in the limit even though a
- 13:44three-dimensional walk will visit
- 13:46infinitely many points
- 13:47it will only visit zero percent of the
- 13:50entire state space
- 13:52the origin can't be recurrent because we
- 13:54know
- 13:55as with the one and two dimensional
- 13:56cases recurrence would imply
- 13:59visiting every point and while sure it's
- 14:02possible for it to return to the origin
- 14:04a few times by chance
- 14:05eventually it will get lost forever the
- 14:08walk is like
- 14:09an expanding two-dimensional object
- 14:11because they exhibit similar ratios of
- 14:14distance reached versus expected
- 14:16coverage
- 14:17if a circle lying on the z equals zero
- 14:20plane begins expanding
- 14:21when it reaches distance r it will only
- 14:24have encompassed roughly
- 14:25pi r-squared points an ever-decreasing
- 14:28fraction of the bounding sphere
- 14:30of radius r in two dimensions
- 14:34the expected r squared steps ensure that
- 14:36the walk never falls too far behind
- 14:39the coverage rate ends up being
- 14:41sufficient to eventually visit all the
- 14:42points
- 14:43infinitely many times with probability
- 14:451.
- 14:47for some more on random walks and
- 14:49various proofs of polio's recurrence
- 14:51theorem
- 14:51check out the links in the description
- 14:53thanks for watching
About this transcript
This page contains the full transcript of Why Do Random Walks Get Lost in 3D? by Ari Seff, generated from the public captions YouTube serves with the video. The transcript has 2,242 words across 416 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.