TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Estimating realized volatility

Calculate a sample volatility from explicitly supplied log returns.

0%

What you will learn

Prerequisites: Logarithms, sample standard deviation and annualization conventions.

Mechanism and decision rules

Realized volatility summarizes observed price variability over a defined sample. One common estimator begins with log returns, ln(current price divided by prior price), at equally spaced observations. Calculate their mean, sum the squared deviations from that mean, divide by n minus one for the sample variance, then take the square root. A population or zero-mean estimator is a different declared convention, not an interchangeable shortcut.

Annualization multiplies the daily standard deviation by the square root of the assumed number of trading observations per year. This scaling relies on a simplified relationship between time and variance; serial dependence, jumps and changing volatility can limit it. Use adjusted prices consistent with the economic return being measured, inspect missing dates and corporate actions, and state whether the series contains overnight movement.

Historical volatility is backward-looking and depends on the selected window. Implied volatility comes from option prices and a model over a forward expiry interval. The two can be compared only with attention to sampling, horizons and conventions. A large gap does not by itself establish that an option is mispriced, because future conditions and compensation for risk may differ from the observed historical sample.

Worked example · synthetic data

Four hypothetical daily log returns are +0.01, −0.01, +0.02 and −0.02 in decimal units. The mean is zero and squared deviations sum to 0.001. Sample variance is 0.001/3, so daily volatility is about 1.8257%. With an assumed 252 observations per year, annualized volatility is about 28.9828%. Dividing by four instead would give a population estimate of about 25.0998% annualized. The difference comes from the estimator, not a change in the underlying observations.

Failure modes and limits

Four observations are far too few for a stable real-world volatility conclusion; the small dataset exists to make every arithmetic step visible. A stock can trend upward with identical daily log returns and have zero sample standard deviation about that mean, so volatility is not synonymous with the total price move. Invalid nonpositive prices make log returns undefined and should trigger a data check rather than a forced zero return.

Practice case

Five daily log returns are +0.02, −0.02, +0.01, −0.01 and 0. Use sample standard deviation and 252 observations per year. Calculate the mean, squared-deviation sum, daily volatility and annualized volatility. Separately consider four identical +0.005 daily log returns: what is their sample volatility about their own mean, and does that imply the price was unchanged?

Reveal the worked answer

The five-return mean is zero and squared deviations sum to 0.001. Divide by four to obtain sample variance 0.00025; daily volatility is about 1.5811% and annualized volatility 25.0998%. Four identical +0.005 returns have zero deviations from their mean, hence zero sample volatility, although price rises each day. Their cumulative log return is 0.02, corresponding to a price gain of exp(0.02) − 1, approximately 2.02%.

Check your understanding

Which divisor is used for the stated four-return sample variance?


Explanation

After estimating the sample mean, the stated sample-variance convention divides squared deviations by n − 1.

Does zero standard deviation about a positive constant return mean the price is unchanged?


Explanation

Identical positive returns have no variability around their mean while still compounding into a price increase.

What does historical volatility measure directly?


Explanation

It summarizes the supplied past returns under a specified estimator; forecasts require additional assumptions.

Sources and next steps

The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.

Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library