Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Popular topics and tags

    Shapes

    • Geometry
    • Vectors and matrices
    • Topology
    • Networks and graph theory
    • Fractals

    Numbers

    • Number theory
    • Arithmetic
    • Prime numbers
    • Fermat's last theorem
    • Cryptography

    Computing and information

    • Quantum computing
    • Complexity
    • Information theory
    • Artificial intelligence and machine learning
    • Algorithm

    Data and probability

    • Statistics
    • Probability and uncertainty
    • Randomness

    Abstract structures

    • Symmetry
    • Algebra and group theory
    • Vectors and matrices

    Physics

    • Fluid dynamics
    • Quantum physics
    • General relativity, gravity and black holes
    • Entropy and thermodynamics
    • String theory and quantum gravity

    Arts, humanities and sport

    • History and philosophy of mathematics
    • Art and Music
    • Language
    • Sport

    Logic, proof and strategy

    • Logic
    • Proof
    • Game theory

    Calculus and analysis

    • Differential equations
    • Calculus

    Towards applications

    • Mathematical modelling
    • Dynamical systems and Chaos

    Applications

    • Medicine and health
    • Epidemiology
    • Biology
    • Economics and finance
    • Engineering and architecture
    • Weather forecasting
    • Climate change

    Understanding of mathematics

    • Public understanding of mathematics
    • Education

    Get your maths quickly

    • Maths in a minute

    Main menu

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • Audiences

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Random walk

    Maths in a minute: Random walks

    5 December, 2024

    In mathematics a random walk (also called a drunkard's walk) is a succession of random steps. 

    You can generate a random walk quite easily by placing yourself in the middle of your garden or local park. Pick a random direction and walk one step in that direction. Then pick another direction at random and walk one step in that direction. And so on. The result, traced on a map, will look something like this:

     

    random walk

    10,000 steps of a random walk generated on a computer. Image: Zweistein~commonswiki, CC BY-SA 3.0 DEED.

     

    Similar random motion occurs in nature, for example with particles suspended in a liquid or gas. This was first observed in 1827 by the botanist Robert Brown, while looking through a microscope at pollen immersed in water. It's therefore called Brownian motion. The process described above, transposed into three dimensions and phrased in the language of maths, gives a mathematical model of Brownian motion.

    Variations on the theme above can lead to interesting models of other natural processes. Imagine that at each stage you don't only choose the direction at random, but also the distance you travel into that direction (so it's not just one step). However, you rig your random number generator in such a way that short distances are more likely to be picked than longer ones.

    The paths that result from these rules look like Brownian motion interspersed with long distances travelled in one direction only. That's because, even though long distances are less likely to be picked than shorter ones, they are still likely enough to get picked occasionally.

     

    Levy walk

    1,000 steps of a Lévy walks generated on a computer.

     

    These kinds of random walks are called Lévy walks, and are similar to what you see when you let your dog off the lead in a park. It'll sniff out a small patch, then dash off in a random direction to sniff out another patch, and so on. Indeed, a seminal paper published in 1999 suggested that Lévy walks provide the best strategy for searching for things that are sparsely distributed in space, like interesting tidbits a dog might be looking for in a park. The suggestion is that dogs, as well as many other animals that have been observed to move in this way, have evolved this behaviour as an optimal foraging strategy, although the theory remains controversial. You can find out more in this article.

    Another variation are reinforced random walks, where steps are more likely to be taken so as to follow paths that other "walkers" have taken before. This can be used to model, for example, the ants who lay down trails of pheromones which attract other ants. In a self-avoiding random walk it is not allowed to take steps that would lead to the path crossing itself. Self-avoiding random walks play an important in the study of chain-like structures such as polymers (find out more in this article).

    In summary, random walks are great for modelling motion, be it of particles, animals, or even people. They are great for mathematical exploration — it's quite easy to construct your own random walks and play around with the results you get, but understanding their overall structure can quickly bring you up against some hard maths. The patterns you see emerge when playing with random walks can be surprising and beautiful (you may even hit upon a fractal). If you like to play with freedom and constraint, then random walks are for you!


    This article forms part of our collaboration with the Isaac Newton Institute for Mathematical Sciences (INI) – you can find all the content from the collaboration here.

    The INI is an international research centre and our neighbour here on the University of Cambridge's maths campus. It attracts leading mathematical scientists from all over the world, and is open to all. Visit www.newton.ac.uk to find out more.

    INI logo

     

    • Log in or register to post comments

    You might also like

    article

    To know how it works, see how it moves

    The mathematics of movement can describe the behaviour of all types of organisms, from cancer cells to humans.
    article

    The Fields Medals 2022: Hugo Duminil-Copin

    Hugo Duminil-Copin has been awarded a Fields Medal for solving longstanding problems in statistical physics. He told us about how his work brings together his two loves – maths and physics.
    article

    The power of ants

    Find out how these humble animals have inspired computer algorithms to solve complex real-world problems.

    Read more about...

    INI
    random walk
    mathematical modelling
    Brownian motion
    Maths in a minute

    Our Podcast: Maths on the Move

    Our Maths on the Move podcast brings you the latest news from the world of maths, plus interviews and discussions with leading mathematicians and scientists about the maths that is changing our lives.

    Apple Podcasts
    Spotify
    Podbean

    Plus delivered to you

    Keep up to date with Plus by subscribing to our newsletter or following Plus on X or Bluesky.

    University of Cambridge logo

    Plus is part of the family of activities in the Millennium Mathematics Project.
    Copyright © 1997 - 2025. University of Cambridge. All rights reserved.

    Terms