How to Calculate EWMA | PocketSense

How to Calculate EWMA

How to Calculate EWMA
Jul 27, 2017
1 minute read

An exponential weighted moving average is one of the metrics investors use to measure a stock's historical volatility. The weighting gives a higher value to more-recent data points. Weighting these items exponentially increases the difference in value between older and newer pieces of data.

Choosing a Smoothing Factor

Before you can calculate any type of weighted average, you must choose a smoothing factor between zero and one. The smoothing factor determines the impact of the weighting on each data point. You can express the smoothing factor as a decimal or a percentage.

Setting the Weights

To determine the weight for the first item, subtract the smoothing factor from one and convert the result to a percentage. Multiply the weight for the first item by the smoothing factor to find the weight for the next item. Repeat this step for each data point in your series. For example, if your smoothing factor is 0.90, the weight for the first item would be 10 percent. The second weight would be 90 percent of this, or 9 percent.

Calculating the EWMA

Multiply each data value by itself to get the square of the item. Multiply this result by the weighting factor you calculated for that item to find the EWMA variance. Take the square root of the variance to find the volatility of the stock.

Denise Sullivan

Denise Sullivan has been writing professionally for more than five years after a long career in business. She has been published on Yahoo! Voices and other publications. Her areas of expertise are business, law, gaming, home renovations,…

Sponsored
PocketSense Logo

PocketSense is the ultimate guide to managing your money, with expert information on how to decode your taxes, keep track of spending and stay financially responsible.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.