12. Modeling Stock Prices in Continuous-Time#
12.1. Stochastic Processes#
A stochastic process describes the evolution of a random variable over time. In finance we use stochastic processes to model the evolution of stock prices, interest rates, volatility, foreign exchange rates, commodity prices, etc. We distinguish between:
Discrete-time processes: The values of the process \(\left\{ S_{n} \right\}\) are allowed to change only at discrete time intervals, i.e. \(n \in \{ 0, 1, 2, \ldots, N \} \) or \(n \in \mathbb{N}.\)
Continuous-time processes: The stochastic process \(\left\{ S_{t} \right\}\) is defined for all \(t \in [0, T].\)
We wil now consider several stochastic processes that are commonly found in the finance literature. We start by understanding discrete-time processes and then we extend the analysis to include continuous-time processes. The analysis is mainly informal, as the theory of stochastic process in continuous-time requires the use of advanced mathematical concepts, which is beyond the scope of these notes.
12.1.1. Random Walks#
A one-dimensional random walk \(\left\{ X_{n} \right\}\) is a stochastic process defined as:
where \(\left\{ e_{n} \right\}\) are independent and identically distributed (i.i.d.) random variables such that \(\ev(e_{n}) = 0\) for all \(n \geq 1.\) Note that \(e_{n}\) need not be normally distributed. For example, \(e_{n}\) could be such:
We can see that the different paths diverge as \(n\) grows larger. Indeed, we have that:
Denoting \(\var(e_{n}) = \sigma^{2}\), and since we have that \(\{e_{n}\}\) are independent, we have that:
Therefore, the variance of \(X_{n}\) increases linearly with \(n\) as \(n \rightarrow \infty.\)
12.1.2. Martingales#
A martingale is a closely related process to the random walk but slighty more general. A discrete-time martingale \(\left\{Z_{n}\right\}_{n \geq 0}\) is a stochastic process such that:
Intuitively, the history of the process \(\{Z_{n}\}\) is irrelevant to forecast \(Z_{n+1}\). The only thing that matters is the current value of \(Z_{n}\). A random walk is of course a martingale, but note that a martingale need not be a random walk. For example, consider the process \(\left\{ Z_{n} \right\}\):
where \(\left\{ \varepsilon_{n} \right\}\) is an i.i.d. sequence such that \(\ev\left(\varepsilon_{n}\right) = 1\) for all \(n \geq 1\). It is a martingale since:
12.1.3. Wiener Processes#
A very useful random walk can be defined as follows:
where \(W_{0} = 0\) and \(\left\{ e_{t} \right\}\) are i.i.d. such that \(e_{t} \sim N(0, 1)\). Note that here time increases each step by \(\Delta t\). Letting \(\Delta t \rightarrow 0,\) the resulting process \(\left\{ W_{t} \right\}\) for \(t \in [0, T]\) is called a Wiener process or Brownian motion.
The Wiener process has the following properties:
The sample paths are continuous.
For \(s < t\), the increment \(W_{t} - W_{s} \sim N(0, t - s)\), i.e. is normally distributed with mean \(0\) and variance \(t - s.\)
Increments are independent of each other.
In particular, note that \(W_{t} \sim N(0, t)\) for \(0 < t \leq T\).
12.1.4. Geometric Brownian Motion#
Now we turn our attention to modeling stock prices \(\left\{ S_{t} \right\}\). We need to be careful, though, as stock prices cannot be negative. We also would like to allow the model to display a certain drift \(\mu\) and volatility \(\sigma\).
To achieve this, we model the percentage change of a stock price between \(t\) and \(t + \Delta t\) as:
Note that the percentage change in price over an interval \(\Delta t\) is normally distributed with mean \(\mu \Delta t\) and variance \(\sigma^{2} \Delta t\). Letting \(\Delta t \rightarrow 0\), the resulting process \(\left\{ S_{t} \right\}\) for \(t \in [0, T]\) is called a geometric Brownian motion (GBM).
12.2. Stochastic Calculus#
Once we have defined how \(S_{t}\) behaves over time, we now turn our attention to model how a function of \(S_{t}\) behaves over time. The reason why we are interested in this is because we want to find a way to price derivatives as a function of the relevant state variables. We will see later that when the stock price is driven by a single source of uncertainty, then the value of a call or put option depends only on the stock price itself and time-to-maturity, i.e. the price of the derivative when the stock price is \(S\) and the time-to-maturity is \(T\) will be of the form \(F(S, T)\).
We will start studying how \(X_{t} = F(S_{t})\) behaves over time and we will add later the time dimension to the problem. In what follows we assume that \(F(\cdot)\) is a smooth function such that its first and second derivatives exist.
12.2.1. Ito’s Lemma#
Remember that the Wiener process increment is defined as:
Consider a GBM process \(\left\{S_{t}\right\}\) and a smooth function \(F(\cdot)\). A second order Taylor approximation around \(S_{t}\) implies:
Using the results derived in the Appendix, we have that:
We can finally conclude that:
The continuous-time analog of the previous analysis is as follows.
(Ito’s Lemma for GBM)
Consider a GBM process \(\left\{S_{t}\right\}\) given by:
and a twice-differentiable function \(F(S)\). Then we have that:
It is usually more convenient to use the box calculus when working with stochastic processes defined through Brownian motions.
(Box Calculus)
Consider the GBM process \(\left\{S_{t}\right\}\) defined in \(\eqref{gbm}\). The box calculus rules for Ito processes are:
Furthermore, denote \(F_{S} = F'(S)\) and \(F_{SS} = F''(S).\) Ito’s Lemma can then be restated as:
where
12.2.2. Solving for GBM#
Define \(X = \ln(S)\), which implies \(S = e^{X}\). We have that \(F_{S} = 1/S\) and \(F_{SS} = -1/S^{2}\), which implies that:
We can then solve for \(X_{T}\):
and conclude that:
12.3. Properties of Stock Prices Following a GBM#
Equation \(\eqref{gbm_solution}\) can be rewritten as:
We can conclude that \(\ln(S_{T}) \sim N(m, s^{2})\), where:
In other words, \(S_{T}\) is lognormally distributed with mean \(m\) and variance \(s^{2}\).
Consider a stock whose price at time \(t\) is given by \(S_{t}\) and that follows a GBM. The expected return is 12% per year and the volatility is 25% per year. The current spot price is $25. If we denote \(X_{T} = \ln(S_{T})\) and take \(T = 0.5\), we have that:
Hence, the 95% confidence interval for \(S_{T}\) is given by:
Therefore, there is a 95% probability that the stock price in 6 months will lie between $18.48 and $36.96.
12.3.1. Moments of the Stock Price#
The fact that the stock price at time \(T\) is log-normally distributed allows us to compute the mean and standard deviation of \(S_{T}\).
(Moments of the Stock Price)
The expectation and standard deviation of \(S_{T}\) are given by:
Proof
Since \(\ln(S_{T}) \sim \Normal(m, s^{2})\), Property 11.3 implies that:
Therefore, the expected stock price grows at a rate \(\mu\). The variance of \(S_{T}\), however, is large and increases exponentially with time.
Consider a stock whose price at time \(t\) is given by \(S_{t}\) and that follows a GBM. The expected return is 12% per year and the volatility is 25% per year. The current spot price is $25. The expected price and standard deviation 6 months from now are:
12.3.2. Computing Partial Expectations#
Since \(\ln(S_{T}) \sim \Normal(m, s^{2})\), we can use Property 11.4 introduced in Statistics Preliminaries to show the following property.
(Partial Expectations of the Stock Price)
Consider a non-dividend paying stock that follows a GBM as defined in \(\eqref{gbm}\). Then we have that:
Proof
It turns out that these results are everything we need in order to derive the Black-Scholes pricing formulas!
12.4. A Generalized Form of Ito’s Lemma#
Most derivatives not only depend on the underlying asset but also depend on time since they have fixed expiration dates. The analysis we did before for Ito’s Lemma generalizes easily to handle this case. Consider a non-dividend paying stock that follows a GBM:
and a smooth function \(F(S, t)\). Ito’s Lemma in this case applies in the following form:
where \((dS)^{2} = \sigma^{2} S^{2} dt\).
12.5. Appendix#
Remember that we defined the Brownian motion or Wiener process as a random walk driven by normally distributed shocks:
where \(\{e_{t}\}\) is an i.i.d. sequence of random variables distributed \(\Normal(0, 1).\)
Let’s start by splitting the interval \([0, T]\) into \(n\) intervals of length \(\Delta t = t_{i+1} - t_{i}.\)
Note that \(t_{i} = i \Delta t\) and \(T = t_{n} = n \Delta t.\) The Brownian motion increments are then defined as \(\Delta W_{t_{i}} = W_{t_{i+1}} - W_{t_{i}}.\)
The first question one might have is why using normally distributed increments. There are two answers for that. First, a sum of normally distributed random variables is also normal and in this case we have:
The variance of \(\sum_{i=0}^{n-1} \sqrt{\Delta t} e_{t + \Delta t}\) is given by \(\sum_{i=0}^{n-1} \Delta t = n \Delta t = T\), which implies that \(W_{T} \sim \Normal(0, T)\). So by using normally distributed increments we guarantee that the resulting process for Brownian motion is also normal.
Second, imagine that we use a different distribution for the i.i.d. increments while still requiring \(\ev(e_{t}) = 0\) and \(\var(e_{t}) = 1\). For example, \(e_{t}\) could take the values \(1\) and \(-1\) with equal probability. Nevertheless, the central limit theorem guarantees that:
In other words, even if we use a different distribution for the increments, as \(n \rightarrow \infty\) we have that \(W_{T} \sim \Normal(0, T).\) Therefore, there is no loss in generality in assuming normally distributed increments for the Brownian motion.
A second question that one might have, and one of the most puzzling facts in stochastic calculus in my opinion, is the fact that when we apply Ito’s lemma we use the fact that \((dW_{t})^{2} = dt.\) Clearly, \((\Delta W_{t})^{2} = \Delta t e_{t}^{2} \neq \Delta t\) where \(e_{t} \sim \Normal(0, 1).\) Indeed, if \(\Delta W_{t}\) is random, then \((\Delta W_{t})^{2}\) must also be random. However, we will see in a moment that it is fine to say that \((\Delta W_{t})^{2} \approx \Delta t\) as \(\Delta t \rightarrow 0.\)
Let’s start by computing the mean and variance of \((\Delta W_{t})^{2}\):
In computing the variance of \((\Delta W_{t})^{2}\) we used the fact that if \(X \sim \Normal(0, \sigma^{2}),\) then \(\ev(X^{4}) = 3\sigma^{4}.\) Since \(\Delta W_{t} \sim \Normal(0, \Delta t),\) we have that \(\ev\left[(\Delta W_{t})^{4}\right] = 3 (\Delta t)^{2}.\)
Consider now the following sum:
Clearly, \(S_{n}\) is a sum of \(n\) independent random variables so its variance is the sum of the variance of each \(\Delta W_{t}:\)
Since \(\lim_{n \rightarrow \infty} \var(S_{n}) = 0,\) we have that \(S_{n} \rightarrow T\) as \(n \rightarrow \infty\) in probability. Intuitively, the previous result is really the weak-law of large numbers since we can re-write it as \(\frac{S_{n}}{n} \rightarrow \Delta t\) as \(n \rightarrow \infty\) in probability. However, when you apply the weak-law of large numbers to an arbitrary sequence of i.i.d. random variables, you cannot say that you can approximate each random variable by its mean just because its average converges to their mean. In our case, since the variance of \((\Delta W_{t})^{2}\) is so small compared to its mean, we can safely say that \((\Delta W_{t})^{2}\) behaves as if \((\Delta W_{t})^{2} = \Delta t\) as \(n \rightarrow \infty\). In other words, we have that \((\Delta W_{t})^{2} \approx \Delta t\) for small \(\Delta t.\)
We can apply the same analysis to study the behavior of \((\Delta t)(\Delta W_{t})\) as \(\Delta t \rightarrow 0.\) Since:
Consider now the following sum:
The mean and variance of \(U_{n}\) are given by:
Since \(\lim_{n \rightarrow \infty} \var(C_{n}) = 0,\) we have that \(C_{n} \rightarrow 0\) as \(n \rightarrow \infty\) in probability, implying that \((\Delta t)(\Delta W_{t}) \approx 0\) for small \(\Delta t.\)
12.6. Practice Problems#
Consider a stock whose price at time \(t\) is given by \(S_{t}\) and that follows a geometric Brownian motion (GBM). The expected return is 18% per year and the volatility is 32% per year. The current spot price is $60.
Compute the expected price 9 months from now.
Compute the mean and standard deviation of the log-spot price 9 months from now.
Compute the 95% confidence interval of \(\ln(S_{T})\) 9-months from now, and report the corresponding values for \(S_{T}\).
Solution to Exercise 12.1
\(\ev(S_{T}) = 60 e^{0.18(9/12)} = \$68.67.\)
The mean and standard deviation can be computed as follows:
The confidence interval of \(\ln(S_{T})\) 9-months from now satisfies:
Therefore, the 95% confidence interval for \(\ln(S_{T})\) is \([3.6478, 4.7341]\) and the corresponding values for \(S_{T}\) are \([38.39, 113.76]\).
Consider a stock whose price at time \(t\) is given by \(S_{t}\) and that follows a GBM. The expected return is 11% per year and the volatility is 27% per year. The current spot price is $60.
Compute the expected price of \(S_{t}\) 1 year from now.
Compute the expected price of \(X_{t}=1/S_{t}\) year from now.
Solution to Exercise 12.2
\(\ev(S_{T}) = 60 e^{0.11(1)} = \$66.98\)
We have that \(\ln(S_{T}) \sim \Normal(m, s^{2}),\) where:
Using the fact that if \(X \sim \Normal(\mu, \sigma^{2}),\) then \(\alpha X \sim \Normal(\alpha\mu, \alpha^{2}\sigma^{2})\) and \(\ev(Y^{\alpha}) = \ev(e^{\alpha X}) = e^{\alpha\mu+\frac{1}{2} \alpha^{2}\sigma^{2}},\) we can take \(\alpha=-1\) to conclude:
Consider a stock whose price at time \(t\) is given by \(S_{t}\) and that follows a GBM. The expected return is 12% per year and the volatility is 35% per year. The current spot price is $55. Let \(T=18\) months.
Compute \(\ev(S_{T})\).
Compute the mean and standard deviation of the log-spot price at \(T\).
Find \(C\) such that \(\prob(S_{T} \leq C)=0.01\).
Solution to Exercise 12.3
\(\ev(S_{T}) = 55 e^{0.12(18/12)} = \$65.85\)
We have that \(\ln(S_{T}) \sim \Normal(m, s^{2})\), where:
We want to find \(C\) such that:
Hence, \(\dfrac{\ln(C) - 4.0955}{0.4287} = -2.326,\) which implies that:
Therefore, \(C = e^{3.0982} = \$22.16.\)
Consider a stock whose price at time \(T\) is given by \(S_{T}\) and that follows a GBM, i.e.,
The expected return is 12% per year and the volatility is 35% per year. The current spot price is $100.
Compute the expected price in 2 years from now.
Compute the mean and standard deviation of the log-spot price in 2 years from now.
Compute the probability that the spot price is less than $100 in 2 years from now.
Compute the probability that the spot price is greater than $120 in 2 years from now.
Solution to Exercise 12.4
\(\ev(S_{T}) = 100 e^{0.12(2)} = \$127.12\)
We have that \(\ln(S_{T}) \sim \Normal(m, s^{2})\), where:
The probability that \(S_{T} \leq 100\) is:
The probability that \(S_{T} > 120\) is:
Hence, \(\prob(S_{T} > 120) = 1 - 0.5518 = 0.4482\).
Suppose that the stock price follows a geometric Brownian motion (GBM) with drift \(\mu\) and instantaneous volatility \(\sigma\), i.e.,
Show that \(Y = S^{\alpha}\) also follow a GBM and determine the drift and volatility as a function of \(\mu\), \(\sigma\), and \(\alpha\).
Solution to Exercise 12.5
We have that \(Y_{S} = \alpha S^{\alpha - 1}\) and \(Y_{SS} = \alpha (\alpha - 1) S^{\alpha - 2}.\) Therefore,
Hence, \(Y\) follows a GBM with drift \(\alpha \mu + \frac{1}{2} \alpha (\alpha - 1) \sigma^{2}\) and volatility \(\alpha \sigma\).
Suppose that the stock price follows a geometric Brownian motion (GBM) with drift \(\mu\) and instantaneous volatility \(\sigma\). Show that \(Y = S e^{-\mu t}\) also follow a GBM and determine the drift and volatility as a function of \(\mu\) and \(\sigma\).
Solution to Exercise 12.6
We have that \(Y_{S} = e^{-\mu t},\) \(Y_{SS} = 0\) and \(Y_{t} = -\mu S e^{-\mu t}.\) Therefore,
Hence, \(Y\) follows a GBM with zero drift and volatility \(\sigma\).
Suppose that the stock price follows a geometric Brownian motion (GBM) with drift \(r\) and instantaneous volatility \(\sigma\), where \(r\) is the risk-free rate. Consider the futures price of \(S\) at time \(t\) and expiring at \(T\), given by \(f = S e^{r (T -t)}\). Show that \(f\) has zero drift and hence is a martingale.
Solution to Exercise 12.7
We have that \(f_{S} = e^{r (T - t)},\) \(f_{SS} = 0\) and \(f_{t} = -r S e^{r (T - t)}.\) Therefore,
Hence, \(f\) follows a GBM with zero drift which proves that it is a martingale.
Suppose that the stock price follows a geometric Brownian motion (GBM) with drift \(\mu = 10\%\) and instantaneous volatility \(\sigma = 25\%\). Compute \(\ev(S_{T} \1{S_{T} > K})\) and \(\ev(\1{S_{T} > K}) = \prob(S_{T} > K)\) if \(S_{0} = 100\), \(K = 95\) and \(T = 2\).
Solution to Exercise 12.8
Let:
so that \(\cdf(d_{1}) = 0.8126\) and \(\cdf(d_{2}) = 0.7033\). Then,
and \(\ev(\1{S_{T} > K}) = \prob(S_{T} > K) = \cdf(d_{2}) = 0.7033\).