Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 31

Estimating Lognormal Model Parameters from Historical Prices

Recommended resources

Introduction

In our previous lesson, we successfully solved the stochastic differential equation for Geometric Brownian Motion (GBM), arriving at the explicit formula for a future stock price, . This revealed the foundational principle that stock prices are assumed to follow a lognormal distribution. The solution, which should be fresh in your mind, is:

This formula is a powerful theoretical tool, but its practical use hinges entirely on the values of the drift parameter and the volatility parameter . Today, we bridge the gap between this theory and real-world application. Our objective is to learn how to estimate these crucial parameters from historical stock price data. As a statistician, you'll recognize this as a classic parameter estimation problem: we have a model and a dataset, and we need to find the model parameters that best fit the data.


The Foundation: Log-Returns

The key to estimating and lies in the properties of logarithmic returns, which we established in the last lesson. We found that the continuously compounded return over a period , , is normally distributed. Let's adapt this insight for discrete time steps, which is how we receive real-world data (e.g., daily closing prices).

Let's consider a series of historical stock prices recorded at regular intervals of length . For daily data, would represent one day. We define the log-return for each period as:

From the solution to the GBM SDE, we can say that over a small time step , each log-return is an independent draw from a normal distribution:

This is the central pillar of our estimation strategy. We have transformed the complex, non-stationary price series into a series of log-returns that are assumed to be independent and identically distributed (i.i.d.) normal random variables. Your expertise in probability theory makes the next step straightforward: we can use standard statistical methods to estimate the mean and variance of this normal distribution.


Estimating Daily Parameters

Let's denote the mean and variance of the daily log-returns as and , respectively. These are simply the sample mean and sample variance of our calculated log-return series :

  • Sample Mean:
  • Sample Variance:

These sample statistics are our estimators for the parameters of the daily log-return distribution.

  • is our estimate for .
  • is our estimate for .

The following video provides a detailed mathematical derivation that shows why the sample mean and sample variance of log-returns are the correct estimators for the parameters of the underlying GBM model.

Brownian Motion Share Price Modelling

This video, "Brownian Motion Share Price Modelling" from Mathematics with Plymouth University, rigorously walks through the mathematics linking the GBM model to the distribution of log-returns.

Please watch the section from this derivation. The presenter takes the logarithm of the GBM price formula and analyzes the difference between consecutive log-prices. The key conclusion, reached around this point, is that the expected value of these log-differences is the drift parameter (in his notation) and the variance is the volatility parameter squared. This justifies using the sample mean and sample variance as estimators. Note that the video assumes a time step of 1, so the parameters derived are per-period (e.g., daily) parameters, which we will annualize next.


Annualizing the Parameters

While we estimate parameters from daily data, the conventions in finance require and to be expressed as annualized figures. To do this, we need to scale our daily estimates. Let's assume there are trading days in a year (a common value is ). This means our time step in years is .

1. Estimating Volatility ()

We start with our estimate for the variance of daily log-returns:

Since variance scales linearly with time, the annualized variance is:

Therefore, the annualized volatility is:

This "square-root-of-time" rule for scaling volatility is one of the most fundamental concepts in quantitative finance.

2. Estimating Drift ()

The process for the drift is slightly more involved. We first estimate the daily mean of the log-returns:

This is our estimate for the term . Let's call this term .

Now we use the relationship and substitute our annualized estimates:

This gives us the annualized drift parameter consistent with the SDE .


A Practical Walkthrough

Let's solidify this with a practical example, showing how you would perform these calculations in a tool like Excel.

Step 1: Obtain Historical Prices
First, you gather a time series of adjusted closing prices for an asset.

Step 2: Calculate Daily Log-Returns
In a new column, calculate the daily log-return for each day (except the first). The formula for cell D5 in the image below would be LN(C5/C4).

Step 3: Calculate Sample Statistics
Calculate the sample mean () and sample standard deviation () of the entire column of log-returns.

  • AVERAGE(D5:Dn) would give .
  • STDEV.S(D5:Dn) would give . The .S is important as it specifies a sample standard deviation, using in the denominator, which is what we need.
This spreadsheet demonstrates the calculation of daily log returns from closing prices. The highlighted formula shows the use of `STDEV.S` to calculate the sample standard deviation of these log returns, which is our \(\hat{s}\).

Step 4: Annualize the Parameters
Using the calculated and , and assuming :

  • Annualized Volatility:
  • Annualized Drift: (where )

The following video provides a clear, step-by-step guide to performing these calculations in Excel.

Stock Annual Return & Standard Deviation in Excel | FREE FILE

The video "Stock Annual Return & Standard Deviation in Excel" by Ryan O'Connell, CFA, FRM is a perfect practical guide for this process.

First, watch how to calculate daily logarithmic returns. This corresponds to our Step 2. Next, observe the calculation of the annual standard deviation (\hat{\sigma}). The presenter correctly calculates the sample standard deviation of daily returns and scales it by the square root of 252. This is exactly our formula for \hat{\sigma}. Finally, review the calculation of the annual return. The method shown here, SUM(daily returns) * 252 / N, is equivalent to AVERAGE(daily returns) * 252, which is the first part of our drift calculation (\hat{m} \times T_A). Note that for a complete GBM drift estimate, you would still need to add the \frac{1}{2}\hat{\sigma}^2 term. The video calculates the average log-return, which corresponds to \hat{\nu}, not the full SDE drift \hat{\mu}. This is a common simplification, but for the CM2 exam, it's crucial to know the full formula.


Clarifying Different 'Drift' Notations

It is essential to address a common point of confusion regarding the drift parameter . You will encounter different, seemingly contradictory formulas for estimating it. The discrepancy arises from two different (but related) ways of expressing the model.

  1. SDE Form:

    • Here, is the instantaneous expected return. The corresponding log-return mean is .
    • To estimate this , you must use the formula we derived: .
  2. Solution Form:

    • Here, is the drift of the log-price process.
    • The mean of the log-returns directly estimates . So, .

Many practitioners work directly with because it's simpler to estimate. However, the parameter in the standard SDE definition requires the addition of the term. For your exam, you must be clear which parameter is being asked for.

This reading from a quantitative finance forum provides an excellent discussion of exactly this issue, confirming the correct approach.

equities - Simulate stock prices with Geometric Brownian Motion ...

This StackExchange answer directly addresses the confusion between different ways of calculating \mu and \sigma.

Focus on the section of the answer that starts with the solution to the GBM model: log-returns are normal. The author shows that the mean of the log-returns is (\mu - 0.5\sigma^2)\delta t. Then, pay close attention to the formulas for calibrating the model. The author explains how to get \sigma and then \mu from the estimated mean and variance of the log-returns (the formula for mu). This confirms the method we have just discussed and highlights why simply taking the average of returns is insufficient for estimating the \mu of the SDE.

This image visually confirms our core assumption. The histogram on the left shows the distribution of daily log returns from a simulation, which closely matches a normal distribution. The histogram on the right shows that the cumulative log returns over a longer period are also normally distributed, with a larger variance, as predicted by our model (\(\sigma^2 T\)).

Conclusion

In this lesson, we have built the essential practical skill of calibrating our theoretical GBM model to real-world data. By leveraging the normality of log-returns, a property you are well-equipped to handle, we can use simple sample statistics to find the model's parameters.

Key Takeaways:

  • The estimation of GBM parameters is based on the assumption that daily logarithmic returns are i.i.d. normal random variables.
  • We first calculate the sample mean () and sample standard deviation () of the historical daily log-returns.
  • These daily statistics are then annualized to get the conventional drift () and volatility () parameters.
    • Annualized Volatility:
    • Annualized Drift:
  • It is crucial to distinguish between the drift of the SDE () and the drift of the log-price process (), as their estimation methods differ by the term.

Now that we have a fully specified model, we can use it to make quantitative statements about the future. In our next lesson, we will put our estimated parameters to work, using the lognormal model to calculate probabilities of future stock prices reaching certain levels and to determine price quantiles for risk management.