Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.The wandering ant
An ant on a long stick flips a coin each second: heads, one step right; tails, one step left. Where is it after 100 seconds? On average, right where it started, because left and right cancel. But it’s usually about 10 steps away in one direction or the other. After 10,000 seconds it’s typically about 100 steps away. The distance grows like the square root of the time.
That’s a random walk. It describes a wandering robot, a drifting compass, a stock price, and molecules spreading in air.
A gyroscope’s tiny random errors add up, so a robot’s heading drifts like a random walk and grows with √time. Knowing that law tells you how long you can navigate without GPS or a star tracker before the error is too big. Random walks also model exploration, search and the noise inside learning algorithms.
- 1. After 100 fair coin-flip steps the ant is typically about how far from the start?
- 2. To wander twice as far you need about…
- 3. The ant's average position (over many ants) is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition and moments
with iid steps . The simple random walk has with probability and otherwise.
- Symmetric walk (): and .
- Drift beats noise: the drift grows like and the spread like .
- Distribution: (symmetric case) for even. By the CLT, .
A random walk is a Markov chain on the integers (A4.4-1): the next position depends only on the current one.
- 1. E S₁₀₀ for p = 0.6?
- 2. Var S_n for the symmetric walk?
- 3. P(S₂ = 0) for the symmetric walk?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.The reflection principle
For the symmetric walk and a level ,
Why: reflect any path after it first touches . Paths that hit and end below it pair up one-to-one with paths that end above it. Reaching a level at some point is about twice as likely as being above it at the end.
Gambler’s ruin
Start at and stop at or . With ,
A small disadvantage () cuts the chance of going from 5 to 10 from 50% to 27%. Derive these by first-step analysis: .
Recurrence: Pólya’s theorem
The simple random walk on returns to the origin with probability 1 for (recurrent). For it doesn’t: the return probability in 3-D is about 0.3405 (transient). Reason: , whose sum diverges exactly when . In Kakutani’s phrase, a drunk man will find his way home, but a drunk bird may get lost forever.
- 1. The reflection principle says P(max ≥ a) is about…
- 2. Fair gambler's ruin, start 3, target 10. P(reach 10 first)?
- 3. The 3-D simple random walk is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof of the reflection principle
Fix and . Let be the first time .
- The bijection. Map each path with and to the path that agrees until and is mirrored in afterwards. It ends at . Every path ending at must have hit , so this is a bijection.
- Equal probabilities. All paths have probability , so .
- Sum up. Sum over and add the paths that end at or above : . That’s the formula. ∎
Proof of Pólya in 1-D
The expected number of returns is . Stirling’s formula gives , so the sum diverges. If is the probability of ever returning, the number of returns is geometric with mean . That mean is infinite, so . ∎
From walks to Brownian motion
Rescale time by and space by : . Donsker’s invariance principle says converges in distribution, as a whole random function, to Brownian motion (A4.4-4). The reflection principle carries over: .
Exercise 3.1: Derive the fair gambler’s-ruin probability by first-step analysis
means is linear in . With and , .
- 1. P(S₂ₙ = 0) for the 1-D walk decays like…
- 2. Rescaled walks S_{nt}/√n converge to…
- 3. The reflection bijection maps paths ending at b < a to paths ending at…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Gyro drift: angle random walk and Allan deviation
A MEMS gyro’s output contains white rate noise. Integrating it to get heading gives a random walk. The heading error’s standard deviation grows like , where is the angle random walk (ARW) coefficient, quoted in on datasheets. The Allan deviation (Allan, 1966; IEEE Std 952), the standard tool for characterizing inertial sensors, separates noise types by their slope on a log-log plot: white rate noise gives slope , and its value at s reads off . Bias instability and rate random walk show up as flat and segments. This √t law sets how long a rover, drone or spacecraft can dead-reckon before it needs an absolute fix.
Random walks in AI, robotics and aerospace
- Inertial navigation error budgets. ARW, bias instability and rate random walk are all random-walk models. Allan-variance analysis sets Kalman-filter process noise for IMUs (El-Sheimy, Hou and Niu, 2008).
- Exploration. Random-walk exploration covers a 2-D area slowly, with cover time on the order of for an -cell grid. That’s why ε-greedy struggles in large state spaces and systematic or curiosity-driven exploration helps.
- Random-walk Metropolis proposals (A4.4-1). In dimensions the optimal step scales like , with acceptance rate about 0.234 (Roberts, Gelman and Gilks, 1997).
- Graph learning. DeepWalk and node2vec embed graph nodes using random-walk co-occurrences (Perozzi et al., 2014). Spectral clustering’s link to random walks explains its cuts.
- Process noise in filters. “Constant velocity plus random-walk acceleration” is the default motion model in tracking (Bar-Shalom, Li and Kirubarajan, 2001).
References
- W. Feller (1968). An Introduction to Probability Theory and Its Applications, Vol. I, 3rd ed., Ch. III and XIV. Wiley.
- G. Pólya (1921). “Über eine Aufgabe der Wahrscheinlichkeitsrechnung betreffend die Irrfahrt im Straßennetz.” Mathematische Annalen, 84.
- G. Lawler, V. Limic (2010). Random Walk: A Modern Introduction. Cambridge University Press.
- M. Donsker (1951). “An invariance principle for certain probability limit theorems.” Memoirs of the AMS, 6.
- D. Allan (1966). “Statistics of atomic frequency standards.” Proceedings of the IEEE, 54(2).
- IEEE Std 952-1997 (R2008). IEEE Standard Specification Format Guide and Test Procedure for Single-Axis Interferometric Fiber Optic Gyros.
- N. El-Sheimy, H. Hou, X. Niu (2008). “Analysis and modeling of inertial sensors using Allan variance.” IEEE Transactions on Instrumentation and Measurement, 57(1).
- G. Roberts, A. Gelman, W. Gilks (1997). “Weak convergence and optimal scaling of random walk Metropolis algorithms.” Annals of Applied Probability, 7(1).
- B. Perozzi, R. Al-Rfou, S. Skiena (2014). “DeepWalk: online learning of social representations.” KDD.
- Y. Bar-Shalom, X. R. Li, T. Kirubarajan (2001). Estimation with Applications to Tracking and Navigation. Wiley.