Skip to main content
Derivatives Compass

Mathematical PreliminariesPractitionerEstimated reading timeAbout 10 min

Random Walks and Brownian Motion

A random walk is a stochastic process whose value moves at fixed intervals by an amount determined independently of its past moves. Brownian motion is a stochastic process that moves continuously over time, obtained as the limit of a random walk with ever shorter intervals and smaller steps. Random walks and Brownian motion underlie the models used in derivatives valuation to describe how the price of the underlying asset moves.

Market risk staff use this when converting standard deviations between periods, and valuation model developers use it when generating price paths with random numbers. If you build up daily moves, why does the spread over a period grow with the square root of time?

Prerequisites

  • Probability and Statistics Basics IntroductoryKnowing random variables, expected value, variance, the normal distribution, and correlation lets you follow the formulas below.

Key points

  • A symmetric random walk moving +1 or −1 at each step has variance n after n steps, so its standard deviation is √n.
  • Setting the step size to the square root of the time step and taking the limit gives Brownian motion, with continuous paths.
  • Brownian motion's standard deviation grows with the square root of time, so 20% a year is 10% over 3 months and 40% over 4 years.
  • In geometric Brownian motion, the mean log return is smaller than the expected price growth μ by σ²/2.

Mean and variance of a symmetric random walk

A stochastic process is a sequence of quantities whose values are determined by probability as time passes. A symmetric random walk is one such process: it starts at 0 and, at each step, moves +1 or −1 with probability 1/2 each1. The steps are independent of one another. After just two steps, the value is +2, 0, or −2, with a mean of 0 and a variance of 2.

Value after two steps Probability Value × probability Value squared × probability
+2 0.25 0.50 1.00
0 0.50 0.00 0.00
−2 0.25 −0.50 1.00
Total 1.00 0.00 2.00

The value ends at 0 in two ways, up then down or down then up, so its probability is 0.25 + 0.25 = 0.50. Because the mean is 0, the sum of each squared value times its probability, 2, is the variance.

As the number of steps grows to n, the mean stays at 0 and the variance becomes n. Each step has a mean of 0 and a variance of 1 (the average of 1 squared and −1 squared), and the variance of a sum of independent random variables is the sum of their variances2. Writing XnX_n for the value after n steps and YiY_i for the move at step i, the relationships are as follows.

Xn=Y1+Y2+⋯+YnX_n = Y_1 + Y_2 + \cdots + Y_n E[Xn]=0E[X_n] = 0 V[Xn]=nV[X_n] = n

The standard deviation is the square root of the variance, n\sqrt{n}. Consider a hypothetical example in which a price rises 1 yen or falls 1 yen each day with equal probability, independently of the previous day. Its standard deviation is 10 yen after 100 days and 20 yen after 400 days. Four times as many days only doubles the spread.

Steps n Mean Variance Standard deviation
1 0 1 1
4 0 4 2
25 0 25 5
100 0 100 10
400 0 400 20

The same kind of relationship holds even if each step is not just +1 or −1, as long as the steps are independent and follow the same distribution. A random walk can describe the change in price over one period as the sum of a mean μ\mu and a disturbance term (a random move with mean 0 and variance σ2\sigma^2)3. In that case, the expected price after t periods moves away from the starting point by μt\mu t, and the variance is σ2t\sigma^2 t. A component such as the average move μ\mu, which shifts the value in proportion to time, is called the drift4. Adding a drift does not change the fact that the variance grows in proportion to the number of steps (time).

Brownian motion as the limit of finer steps

Brownian motion is a stochastic process in continuous time, obtained as the limit of a symmetric random walk when the time per step is shortened and the step size is reduced to match5. If you divide one year into n steps and set the step size to the square root of the time step (the time per step), the variance after one year stays at 1 whatever n is.

Steps in one year n Time step (years) Step size Variance after one year
4 0.25 0.5 1
100 0.01 0.1 1
10,000 0.0001 0.01 1

The variance after one year is the number of steps × the step size squared (for 100 steps, 100 × 0.1 × 0.1 = 1). If you set the step size to 0.01, equal to the time step rather than its square root, the variance after 100 steps is 100 × 0.01 × 0.01 = 0.01, and the spread shrinks toward zero as the time step gets finer. With the square root, the spread after one year is preserved however fine the time step.

As the number of steps grows, the distribution of the value after n steps divided by n\sqrt{n} approaches the normal distribution with mean 0 and variance 1, by the central limit theorem1. In the same way, the distribution of the value at time t approaches the normal distribution with mean 0 and variance t6.

Brownian motion WtW_t, the limit, has the following properties7.

  • It starts at 0 (W0=0W_0 = 0).
  • Increments over non-overlapping periods (the changes in value over those periods) are independent of one another.
  • The increment from time s to t, Wt−WsW_t - W_s, follows a normal distribution with mean 0 and variance t − s.
  • Its path (the value traced over time) is continuous and never jumps.

The path is continuous but cannot be differentiated at any point8. As a result, changes in quantities that involve Brownian motion cannot be calculated with the ordinary rules of differentiation, and Ito's lemma is used instead. That calculation is covered on the Introduction to Stochastic Calculus (Ito's Lemma) page.

The first person to consider Brownian motion was L. Bachelier, who used it to value stocks and options in his 1900 doctoral thesis9. Brownian motion is also called the Wiener process, after Norbert Wiener, who was a professor at MIT5.

Spread proportional to the square root of time

The standard deviation of the value of Brownian motion is proportional to the square root of elapsed time. Because the variance of the value at time t is t, the standard deviation is t\sqrt{t}. In geometric Brownian motion, covered in the next section, the spread of a price's log return (the continuously compounded return) is expressed as σ\sigma times Brownian motion. Here σ\sigma is the standard deviation per year, in other words the annual volatility10. The standard deviation of the log return over T years is given by the following formula.

σT=σT\sigma_T = \sigma \sqrt{T}

Consider a hypothetical example in which the annual volatility is 20%. Converting it into the standard deviation for each period gives the following table11.

Period Years T Standard deviation for the period (20% a year)
1 month 0.0833 5.77%
3 months 0.25 10.00%
1 year 1 20.00%
4 years 4 40.00%

The 3-month standard deviation of 10% is 20% multiplied by 0.5, the square root of 0.25. Going the other way, if you know the 3-month standard deviation is 10%, one year is 4 times 3 months, so the annual figure is 10% multiplied by 2, the square root of 4, or 20%.

Plotting this conversion as curves gives Figure 1.

3 months (10%)1 year (20%)4 years (40%)−50050Log return (%)
Figure 1Distribution of log returns by period (annual volatility 20%, mean set to 0)
Figure description

These curves overlay the distributions over 3 months, 1 year, and 4 years, assuming an annual volatility of 20% and a log return that follows a normal distribution with mean 0. The mean is set to 0 to remove the drift and compare only the spread for each period. Each time the period is multiplied by 4, the standard deviation doubles (a 16-fold period gives 4 times). Every curve is a symmetric bell shape centered on 0, and the longer the period, the lower and wider it is. The area under a curve is the probability.

Stock price models and geometric Brownian motion

Geometric Brownian motion is a stochastic process in which the logarithm of the price follows Brownian motion with drift, and it is used to model stock prices. If you move the price itself by normally distributed increments (this is called arithmetic Brownian motion3), the price can turn negative. In modeling a stock price, the percentage change in price, not the change itself, is matched to the increment of Brownian motion12. If you assume a normal distribution for the log return, the price never turns negative. Returns over successive periods can simply be added, and the approach is consistent with lognormal models such as Black-Scholes13.

Writing StS_t for the price at time t, geometric Brownian motion is expressed by the following formula14.

dStSt=μ dt+σ dWt\frac{dS_t}{S_t} = \mu \, dt + \sigma \, dW_t

Here μ\mu is the expected growth of the price per year (the drift), σ\sigma is the annual volatility, dtdt is a very short time, and dWtdW_t is the increment of Brownian motion over that time. A price that satisfies this formula is obtained from today's price S0S_0 as follows15.

ST=S0exp⁡((μ−σ22)T+σWT)S_T = S_0 \exp\left( \left( \mu - \frac{\sigma^2}{2} \right) T + \sigma W_T \right)

The log return ln⁡(ST/S0)\ln(S_T / S_0) follows a normal distribution with mean (μ−σ2/2)T(\mu - \sigma^2/2)T and standard deviation σT\sigma \sqrt{T}14. The expected price grows at an annual rate of μ\mu, but the mean log return is smaller by σ2/2\sigma^2/2. This is because Brownian motion cannot be differentiated, which adds one term to the ordinary rules of differentiation15.

Consider a hypothetical example in which today's price is 100 yen, the drift is 5% a year, the annual volatility is 20%, and the period is one year. The log return after one year follows a normal distribution with a mean of 0.05 − 0.2 × 0.2 ÷ 2 = 0.03 (3%) and a standard deviation of 20%.

Case Log return Price after one year (yen)
Mean − one standard deviation −17% 84.37
Mean 3% 103.05
Mean + one standard deviation 23% 125.86

The price is 100 × exe^{x}, where x is the log return (at the mean, 100 × e0.03e^{0.03} ≈ 103.05)16. The expected price, on the other hand, is 100 × e0.05e^{0.05} ≈ 105.13 yen, today's price grown at 5% a year (μ\mu)17. The price of 103.05 yen, reached when the log return equals its mean, is smaller than this expected value. The difference is set by σ2/2\sigma^2/2, and in a lognormal distribution the expected value is eσ2/2e^{\sigma^2/2} times the median (103.05 yen). Figure 2 shows the shape of this distribution18.

Left of median 103.05 (50%)50100150200Expected value 105.13Price after 1 year (yen)
Figure 2Distribution of the price after 1 year (geometric Brownian motion)
Figure description

This is the distribution of a price that follows geometric Brownian motion, after 1 year. The curve lies only to the right of zero, with its peak on the left side and a right tail longer than the left tail. The shaded part has a probability of one half, and its right end is the median. The dashed vertical line marks the expected value, just to the right of the median. The area under the curve is the probability.

For systems professionals: The one-step formula for generating paths

To generate paths of geometric Brownian motion with random numbers, you can advance the price at each time step Δt\Delta t as follows. The formula follows from the one above and the properties of Brownian motion increments. ZZ is a new random number drawn at each step from a normal distribution with mean 0 and variance 1.

St+Δt=Stexp⁡((μ−σ22)Δt+σΔt Z)S_{t+\Delta t} = S_t \exp\left( \left( \mu - \frac{\sigma^2}{2} \right) \Delta t + \sigma \sqrt{\Delta t} \, Z \right)

If you hold μ\mu and σ\sigma as annual rates, measure Δt\Delta t in years too (1/12 for one month). Because the increments are independent and normally distributed, the price at each time generated by this formula has the same distribution as under geometric Brownian motion, however coarse the time step.

Assumptions and limitations

Random walk and Brownian motion models assume that price moves are independent of the past and that the size of the spread is constant. A random walk can also be used as a model of stock prices, but the MIT lecture notes add that it is "rather inaccurate"1. Geometric Brownian motion assumes normally distributed returns. Actual stock returns have fatter tails than the normal distribution, making extreme values more likely19.

If each day's move is not independent, square-root scaling breaks down. In a market where moves tend to go in the same direction as the previous day (a positive covariance with the previous day), the variance over the period exceeds the sum of the daily variances by twice the sum of the covariances between days20.

Consider a hypothetical example in which the daily standard deviation is 1%, the period is 20 business days, and the correlation between adjacent days is 0.2 (0 for all other pairs of days). There are 19 adjacent pairs, so the variance is 20 × 1 + 2 × 19 × 0.2 = 27.6 and the standard deviation is about 5.25%21. The square-root figure, √20 ≈ 4.47%, is about 15% smaller than the 5.25% above, which includes the covariance, so it understates the spread. In a market where moves tend to reverse (a negative covariance), it overstates the spread.

When the size of the spread changes over time, one model used is the ARCH model, which lets the variance vary from period to period19.

Notes

  1. Massachusetts Institute of Technology, "Lecture 5: Stochastic Processes I" (external site) (18.S096 Topics in Mathematics with Applications in Finance, Fall 2013), section 1 (page 1) and section 2 (page 2). ↩ ↩2 ↩3

  2. National Institute of Advanced Industrial Science and Technology (AIST), "期待値・分散の定義および演算" (external site) (Definitions and operations of expected value and variance), "平均値(期待値)・分散の演算" section (in Japanese). When random variables are independent, the variance of their sum is the sum of their variances. ↩

  3. Tokuo Iwaisako, "Lecture 2: ランダム・ウォーク仮説のテスト" (external site) (Lecture 2: Testing the random walk hypothesis), Institute of Economic Research, Hitotsubashi University (revised October 2008; hereafter "Iwaisako's lecture notes"), equation (4) on slide 5 and equations (6) and (7) on slide 6 (in Japanese). The special case in which the disturbance term follows a normal distribution is called arithmetic Brownian motion; μ\mu is the average change per period. ↩ ↩2

  4. Massachusetts Institute of Technology, "Lecture 17: Stochastic Processes II" (external site) (18.S096 Topics in Mathematics with Applications in Finance, Fall 2013; hereafter "MIT's Lecture 17"), Example 2.6 (page 5). The notes write Brownian motion as B; this site writes it as W. ↩

  5. MIT's Lecture 17 (external site), section 2 (page 2). It describes Brownian motion as a limit of random walks and also calls it the Wiener process. ↩ ↩2

  6. MIT's Lecture 17 (external site), section 2 (page 2), the paragraph after Theorem 2.1. Setting the step size to the square root of the time step is the same relationship as Xn/nX_n / \sqrt{n} in Lecture 5 (external site). ↩

  7. MIT's Lecture 17 (external site), Theorem 2.1 (page 2). The notes write Brownian motion as B; this site writes it as W. ↩

  8. MIT's Lecture 17 (external site), the paragraph after Proposition 2.4 (page 4). The path is continuous but nowhere differentiable. ↩

  9. MIT's Lecture 17 (external site), section 2 (page 2) and reference [3] (page 6). The paper is L. Bachelier, "Théorie de la spéculation" (Annales Scientifiques de l'École Normale Supérieure). ↩

  10. Japan Exchange Group, "ヒストリカル・ボラティリティ(HV)" (external site) (Historical volatility (HV)), glossary (in Japanese). The figure is the standard deviation of the daily rate of change, converted to an annual rate. ↩

  11. The number of years T for one month is 1/12 (0.0833 is rounded to four decimal places). The square root of 1/12 is 0.288675, and 20% multiplied by it, 5.7735%, is rounded to two decimal places. ↩

  12. MIT's Lecture 17 (external site), page 6. The formula dSt=σSt dBtdS_t = \sigma S_t \, dB_t is in the same place; B is replaced with W. ↩

  13. Iwaisako's lecture notes (external site), "基本的な概念の復習" (Review of basic concepts), slide 2 (in Japanese). It gives three reasons why log returns are preferable. ↩

  14. Takashi Kawakami, "ヘッジ取引におけるデリバティブ信用評価調整の影響についての考察" (external site) (A study of the effect of credit valuation adjustments for derivatives on hedging transactions), Kinyu Kenkyu, Bank of Japan (April 2018), Appendix 2, equations (A-25) and (A-26) (page 160) (in Japanese). The paper's firm value V(t)V(t) is replaced with the price SS and tt with 0. ↩ ↩2

  15. Massachusetts Institute of Technology, "Lecture 18: Itō Calculus" (external site) (18.S096, Fall 2013), Example 1.3 (iii) (page 3). The formula in the text replaces the notes' μ\mu with μ−σ2/2\mu - \sigma^2/2 and multiplies by S0S_0. ↩ ↩2

  16. The prices are 100 multiplied by e−0.17=0.843665e^{-0.17} = 0.843665, e0.03=1.030455e^{0.03} = 1.030455, and e0.23=1.258600e^{0.23} = 1.258600, rounded to two decimal places. ↩

  17. National Institute of Standards and Technology, "Lognormal Distribution," (external site) section 1.3.6.6.9 of the NIST/SEMATECH e-Handbook of Statistical Methods, "Common Statistics." The expected value is e0.5σ2e^{0.5\sigma^2} times the median mm. ↩

  18. Figure 2 is a lognormal distribution with log mean mu = ln 100 + 0.03 = 4.63517 and log standard deviation sigma = 0.2. The median is exp(4.63517) = 103.05 and the expected value is exp(4.63517 + 0.2² ÷ 2) = 105.13. ↩

  19. Iwaisako's lecture notes (external site), "対数正規分布" (Lognormal distribution), slide 4 (in Japanese). It shows the fat tails of stock returns and the ARCH model. ↩ ↩2

  20. National Institute of Advanced Industrial Science and Technology (AIST), "期待値・分散の定義および演算," (external site) "平均値(期待値)・分散の演算" section (in Japanese). The variance of a sum is the sum of the variances plus twice the sum of the covariances. ↩

  21. The daily variance is 1 (a standard deviation of 1%), and the covariance between adjacent days is 0.2 × 1 × 1 = 0.2. The variance is 20 + 2 × 19 × 0.2 = 27.6, the standard deviation is 5.25%, and √20 is 4.47%. ↩

Check your understanding of this page

Taken from the chapter quiz to check what this page explains.

  1. Question 1

    As a hypothetical example, a price moves up 1 yen or down 1 yen each day with equal probability, independently of the previous day, and its standard deviation 100 days after the starting point is 10 yen. What is the standard deviation 900 days after the starting point?

    Answer and explanation

    Answer: A

    The daily move has a mean of 0 and a variance of 1, and the variance of a sum of independent moves is the sum of their variances. After n days the variance is therefore n, and the standard deviation is its square root. After 100 days the variance is 100 and the standard deviation is 10 yen. After 900 days the variance is 900, and the standard deviation is its square root, 30 yen.

    90 yen assumes that the standard deviation grows 9 times because the number of days grows 9 times. What grows in proportion to the number of days is the variance, and the standard deviation grows in proportion to the square root of the number of days. 900 yen is the variance after 900 days. The variance is in yen squared, so the standard deviation is the square root, which returns the value to yen.

  2. Question 2

    Consider a market in which daily price moves tend to go in the same direction as the previous day's move. If you take the daily standard deviation and multiply it by the square root of the number of days to get the standard deviation over a period, how does the result compare with the actual spread?

    Answer and explanation

    Answer: B

    In a market where moves tend to follow the previous day's direction (the covariance with the previous day is positive), the variance over a period is larger than the sum of the daily variances by twice the sum of the covariances between days. A figure converted by the square root of time, treating the variance as proportional to the number of days, leaves out this covariance part, so it understates the actual spread.

    Overstating happens in a market where moves tend to reverse (the covariance is negative). The square-root conversion holds when daily moves are independent, so in a market where they are not independent, it does not equal the actual spread.

Take the full chapter quiz (6 questions)

Summary

  • A symmetric random walk moving +1 or −1 at each step has variance n after n steps, so its standard deviation is √n.
  • Setting the step size to the square root of the time step and taking the limit gives Brownian motion, with continuous paths.
  • Brownian motion's standard deviation grows with the square root of time, so 20% a year is 10% over 3 months and 40% over 4 years.
  • In geometric Brownian motion, the mean log return is smaller than the expected price growth μ by σ²/2.

Read next

Share this page

In the learning roadmaps