Volatility is the most common measure of risk, but it comes in several flavors. In a previous article, we showed how to calculate simple historical volatility. (To read this article, see Using Volatility To Gauge Future Risk.) We used Google's actual stock price data in order to compute daily volatility based on 30 days of stock data. In this article, we will improve on simple volatility and discuss the exponentially weighted moving average (EWMA).

Historical Vs. Implied Volatility
First, let's put this metric into a bit of perspective. There are two broad approaches: historical and implied (or implicit) volatility. The historical approach assumes that past is prologue; we measure history in the hope that it is predictive. Implied volatility, on the other hand, ignores history; it solves for the volatility implied by market prices. It hopes that the market knows best and that the market price contains, even if implicitly, a consensus estimate of volatility. (For related reading, see The Uses And Limits Of Volatility.)


If we focus on just the three historical approaches (on the left above), they have two steps in common:

  1. Calculate the series of periodic returns
  2. Apply a weighting scheme

First, we calculate the periodic return. That's typically a series of daily returns where each return is expressed in continually compounded terms. For each day, we take the natural log of the ratio of stock prices (i.e., price today divided by price yesterday, and so on).


This produces a series of daily returns, from ui to ui-m, depending on how many days (m = days) we are measuring.

That gets us to the second step: This is where the three approaches differ. In the previous article (Using Volatility To Gauge Future Risk), we showed that under a couple of acceptable simplifications, the simple variance is the average of the squared returns:


Notice that this sums each of the periodic returns, then divides that total by the number of days or observations (m). So, it's really just an average of the squared periodic returns. Put another way, each squared return is given an equal weight. So if alpha (a) is a weighting factor (specifically, a = 1/m), then a simple variance looks something like this:


The EWMA Improves on Simple Variance
The weakness of this approach is that all returns earn the same weight. Yesterday's (very recent) return has no more influence on the variance than last month's return. This problem is fixed by using the exponentially weighted moving average (EWMA), in which more recent returns have greater weight on the variance.

The exponentially weighted moving average (EWMA) introduces lambda, which is called the smoothing parameter. Lambda must be less than one. Under that condition, instead of equal weights, each squared return is weighted by a multiplier as follows:


For example, RiskMetricsTM, a financial risk management company, tends to use a lambda of 0.94, or 94%. In this case, the first (most recent) squared periodic return is weighted by (1-0.94)(.94)0 = 6%. The next squared return is simply a lambda-multiple of the prior weight; in this case 6% multiplied by 94% = 5.64%. And the third prior day's weight equals (1-0.94)(0.94)2 = 5.30%.

That's the meaning of "exponential" in EWMA: each weight is a constant multiplier (i.e. lambda, which must be less than one) of the prior day's weight. This ensures a variance that is weighted or biased toward more recent data. (To learn more, check out the Excel Worksheet for Google's Volatility.) The difference between simply volatility and EWMA for Google is shown below.


Simple volatility effectively weighs each and every periodic return by 0.196% as shown in Column O (we had two years of daily stock price data. That is 509 daily returns and 1/509 = 0.196%). But notice that Column P assigns a weight of 6%, then 5.64%, then 5.3% and so on. That's the only difference between simple variance and EWMA.

Remember: After we sum the entire series (in Column Q) we have the variance, which is the square of the standard deviation. If we want volatility, we need to remember to take the square root of that variance.

What's the difference in daily volatility between the variance and EWMA in Google's case? It's significant: The simple variance gave us a daily volatility of 2.4% but the EWMA gave a daily volatility of only 1.4% (see the spreadsheet for details). Apparently, Google's volatility settled down more recently; therefore, a simple variance might be artificially high.

Today's Variance Is a Function of Pior Day's Variance
You'll notice we needed to compute a long series of exponentially declining weights. We won't do the math here, but one of the best features of the EWMA is that the entire series conveniently reduces to a recursive formula:


Recursive means that today's variance references (i.e. is a function of the prior day's variance). You can find this formula in the spreadsheet also, and it produces the exact same result as the longhand calculation! It says: Today's variance (under EWMA) equals yesterday's variance (weighted by lambda) plus yesterday's squared return (weighed by one minus lambda). Notice how we are just adding two terms together: yesterday's weighted variance and yesterdays' weighted, squared return.

Even so, lambda is our smoothing parameter. A higher lambda (e.g., like RiskMetric's 94%) indicates slower decay in the series - in relative terms, we are going to have more data points in the series and they are going to "fall off" more slowly. On the other hand, if we reduce the lambda, we indicate higher decay: the weights fall off more quickly and, as a direct result of the rapid decay, fewer data points are used. (In the spreadsheet, lambda is an input, so you can experiment with its sensitivity).

Volatility is the instantaneous standard deviation of a stock and the most common risk metric. It is also the square root of variance. We can measure variance historically or implicitly (implied volatility). When measuring historically, the easiest method is simple variance. But the weakness with simple variance is all returns get the same weight. So we face a classic trade-off: we always want more data but the more data we have the more our calculation is diluted by distant (less relevant) data. The exponentially weighted moving average (EWMA) improves on simple variance by assigning weights to the periodic returns. By doing this, we can both use a large sample size but also give greater weight to more recent returns.

(To view a movie tutorial on this topic, visit the Bionic Turtle.)

Related Articles
  1. Retirement

    How Robo-Advisors Can Help You and Your Portfolio

    Robo-advisors can add a layer of affordable help and insight to most people's portfolio management efforts, especially as the market continues to mature.
  2. Mutual Funds & ETFs

    Top 3 Muni California Mutual Funds

    Discover analyses of the top three California municipal bond mutual funds, and learn about their characteristics, historical performance and suitability.
  3. Investing Basics

    What Does In Specie Mean?

    In specie describes the distribution of an asset in its physical form instead of cash.
  4. Economics

    Calculating Cross Elasticity of Demand

    Cross elasticity of demand measures the quantity demanded of one good in response to a change in price of another.
  5. Mutual Funds & ETFs

    Mutual Funds Are Not FDIC Insured: Here Is Why

    Find out why mutual funds are not insured by the FDIC, including why the FDIC was created and how to minimize your risk with educated mutual fund investments.
  6. Professionals

    How to Sell Mutual Funds to Your Clients

    Learn about the various talking points you should cover when discussing mutual funds with clients and how explaining their benefits can help you close the sale.
  7. Professionals

    Fund and ETF Strategies for Volatile Markets

    Looking for short-term fixes in reaction to market volatility? Here are a few strategies — and their downsides.
  8. Investing

    How Diversifying Can Help You Manage Market Mayhem

    The recent market volatility, while not unexpected, has certainly been hard for any investor to digest.
  9. Fundamental Analysis

    Emerging Markets: Analyzing Colombia's GDP

    With a backdrop of armed rebels and drug cartels, the journey for the Colombian economy has been anything but easy.
  10. Investing

    How to Win More by Losing Less in Today’s Markets

    The further you fall, the harder it is to climb back up. It’s a universal truth that is painfully apparent in the investing world.
  1. What licenses does a hedge fund manager need to have?

    A hedge fund manager does not necessarily need any specific license to operate a fund, but depending on the type of investments ... Read Full Answer >>
  2. Can mutual funds invest in hedge funds?

    Mutual funds are legally allowed to invest in hedge funds. However, hedge funds and mutual funds have striking differences ... Read Full Answer >>
  3. When are mutual funds considered a bad investment?

    Mutual funds are considered a bad investment when investors consider certain negative factors to be important, such as high ... Read Full Answer >>
  4. What fees do financial advisors charge?

    Financial advisors who operate as fee-only planners charge a percentage, usually 1 to 2%, of a client's net assets. For a ... Read Full Answer >>
  5. Can your car insurance company check your driving record?

    While your auto insurance company cannot pull your full motor vehicle report, or MVR, it does pull a record summary that ... Read Full Answer >>
  6. Is Colombia an emerging market economy?

    Colombia meets the criteria of an emerging market economy. The South American country has a much lower gross domestic product, ... Read Full Answer >>

You May Also Like

Hot Definitions
  1. Zero-Sum Game

    A situation in which one person’s gain is equivalent to another’s loss, so that the net change in wealth or benefit is zero. ...
  2. Capitalization Rate

    The rate of return on a real estate investment property based on the income that the property is expected to generate.
  3. Gross Profit

    A company's total revenue (equivalent to total sales) minus the cost of goods sold. Gross profit is the profit a company ...
  4. Revenue

    The amount of money that a company actually receives during a specific period, including discounts and deductions for returned ...
  5. Normal Profit

    An economic condition occurring when the difference between a firm’s total revenue and total cost is equal to zero.
  6. Operating Cost

    Expenses associated with the maintenance and administration of a business on a day-to-day basis.
Trading Center
You are using adblocking software

Want access to all of Investopedia? Add us to your “whitelist”
so you'll never miss a feature!