Yang-Zhang Volatility Calculator

Volatility estimators

Yang-Zhang volatility31.79 %
Weight k on close variance0.1390
Overnight share of variance32.77 %
Rogers-Satchell share58.91 %
How this was calculated
  1. Three variances: overnight 18.20 %, open-to-close 24.60 % and Rogers-Satchell 26.30 % each measure a different slice of the day.
  2. The k weight: with n = 20 sessions, k = 0.34 / (1.34 + (n+1)/(n-1)) = 0.1390 balances the close-based term against the drift-robust intraday term.
  3. Combination: 331.24 + 0.1390 x 605.16 + 0.8610 x 691.69 = 1010.90 (% squared).
  4. Yang-Zhang volatility result: 31.79 % per period - the only classic estimator that prices the overnight jump.

Every classic volatility estimator has a blind spot, and by 2000 the map of blind spots was well drawn: close-to-close sees overnight jumps but wastes the day's path; Parkinson and Garman-Klass read the path beautifully but assume the open continues the last close, so jumps vanish; Rogers-Satchell handles drift but not jumps. Yang and Zhang's estimator, published in the Journal of Business in 2000, was built to have no blind spot: it is the first classic estimator unbiased in the presence of both drift and opening jumps, assembled from three variance components that each cover one slice of the day.

The components are the overnight variance (close to next open), the open-to-close variance, and the Rogers-Satchell intraday variance, combined with a weight k that depends only on the sample size n and is chosen to minimise the estimator's own variance. This calculator works at the level of the combined statistic: enter the three component standard deviations - each computed from your price history over n sessions, annualised consistently - and n itself, and it returns the Yang-Zhang volatility with the k weight and each component's share of the total variance.

Yang and Zhang's 2000 paper closed a twenty-year research programme that began with Parkinson: each successor estimator had repaired one assumption of its predecessors - range for closes, drift corrections, jump corrections - and theirs was the first to satisfy all the standard desiderata at once while remaining a closed-form combination of OHLC statistics. Later work moved to high-frequency realised measures, but realised volatility needs tick data; Yang-Zhang remains the strongest statement extractable from the daily bars that every data vendor supplies and every archive preserves.

Worked examples

Twenty sessions with a real overnight share

(18.2 % · 24.6 % · 26.3 % · 20)

Yang-Zhang volatility31.79 %
Weight k on close variance0.1390
Overnight share of variance32.77 %
Rogers-Satchell share58.91 %

A calm name over sixty sessions

(9.4 % · 13.1 % · 14.25 % · 60)

Yang-Zhang volatility16.94 %
Weight k on close variance0.1432
Overnight share of variance30.80 %
Rogers-Satchell share60.64 %

Ten wild sessions

(41 % · 55.5 % · 58.2 % · 10)

Yang-Zhang volatility70.90 %
Weight k on close variance0.1327
Overnight share of variance33.44 %
Rogers-Satchell share58.43 %

Three variances, one estimate

The decomposition mirrors how a trading day actually happens. Prices jump overnight on news (the overnight component), travel during the session (the open-to-close component), and wiggle within it in ways the endpoints forget (the Rogers-Satchell component, built from high/low/open/close geometry and immune to drift by construction). Yang-Zhang's variance is sigma_o^2 + k sigma_c^2 + (1 - k) sigma_RS^2: the overnight piece enters whole, while the two daytime pieces share a budget split by k.

In the first worked example the shares tell the market's story: overnight variance contributes 32.77 percent of the total, Rogers-Satchell 58.91 percent, the close-based term the remainder. This is a market that moves mostly within its sessions but gaps materially - precisely the profile the older estimators would each have misread in opposite directions.

  • sigma^2 = sigma_o^2 + k sigma_c^2 + (1-k) sigma_RS^2.
  • Unbiased with drift and opening jumps - the first classic estimator to manage both.
  • Efficiency in simulations runs to about fourteen times close-to-close.

The k weight

k = 0.34 / (1.34 + (n+1)/(n-1)). The constants come from minimising the variance of the combined estimator; the n-dependence is a small-sample refinement - with 10 sessions k is 0.1327, with 20 it is 0.1390, with 60 it is 0.1432, gliding toward the asymptote 0.34/2.34 = 0.1453 as n grows. The weight always favours the Rogers-Satchell component heavily, because that component carries the most information per session; the close-to-close term is kept at a minority share for its jump sensitivity at the session level.

Because k moves so little, practitioners often fix it at 0.145 and lose almost nothing. The calculator computes the exact value for your n anyway - when you are reconciling against a published figure, the difference between k conventions is a classic source of third-decimal mismatches, and seeing the weight printed beside the result ends the guessing.

Sessions nkWeight on Rogers-Satchell
100.13270.8673
200.13900.8610
600.14320.8568
Very large0.1453 (limit)0.8547

Worked examples

The opening example sets 31.79 % as the headline Yang-Zhang volatility, with supporting values Weight k on close variance 0.1390; Overnight share of variance 32.77 %; Rogers-Satchell share 58.91 %.

The variance shares beside it are the diagnostic payload: they show whether this market's risk lives overnight or inside the session, which decides which simpler estimator would have lied least.

The opening example sets 16.94 % as the headline Yang-Zhang volatility, with supporting values Weight k on close variance 0.1432; Overnight share of variance 30.80 %; Rogers-Satchell share 60.64 %.

The variance shares beside it are the diagnostic payload: they show whether this market's risk lives overnight or inside the session, which decides which simpler estimator would have lied least.

The opening example sets 70.90 % as the headline Yang-Zhang volatility, with supporting values Weight k on close variance 0.1327; Overnight share of variance 33.44 %; Rogers-Satchell share 58.43 %.

The variance shares beside it are the diagnostic payload: they show whether this market's risk lives overnight or inside the session, which decides which simpler estimator would have lied least.

Why overnight jumps matter

For equities, a substantial share of total variance arrives while the exchange is closed - earnings, guidance, macro news, and the world's other time zones all land at the open. An estimator blind to that share does not merely lose precision; it is biased, systematically, in the direction of calm. Risk models fed on Parkinson or Garman-Klass alone will understate the risk of holding through announcements, which is when understatement is most expensive.

The third worked example is the extreme case: components of 41, 55.5 and 58.2 percent combine to 70.90 percent - a high-volatility name where the overnight share still claims a third of the variance. Even there, ignoring the jump term would have mispriced the total by a wide margin. Yang-Zhang's extra inputs are the price of seeing the whole day; where you have the data, it is the classic estimator to beat.

Component SDs must be computed over the same n sessions and on the same annualisation basis - mixing a daily overnight SD with annualised intraday SDs is the classic way to break this estimator.

Yang-Zhang in forecasting practice

In volatility-forecasting comparisons - the HAR and GARCH horse races that fill the empirical literature - Yang-Zhang estimates serve as the standard daily proxy for latent volatility when tick data are unavailable, and models evaluated against them rank more sensibly than models evaluated against close-to-close proxies, whose measurement noise contaminates the comparison. Options desks similarly use Yang-Zhang as the historical cross-check against implied volatility: a persistent gap between the two is either a volatility risk premium being earned or a mis-specified estimator, and the component shares on this page help tell which.

The component decomposition doubles as market intelligence. A name whose overnight share is climbing is becoming news-driven - its risk increasingly arrives while holders cannot act - while a name dominated by the Rogers-Satchell share is moved by intraday flows. Risk managers read those shares the way doctors read a blood panel: the total matters, but the composition is the diagnosis.

Estimation detail: the three components must be estimated over the same window of n sessions, and the overnight returns should use the same adjustment conventions (splits, dividends) as the intraday ones. A dividend paid overnight is not a jump, and counting it as one inflates the overnight share with phantom risk.

A note on annualisation discipline: the three component SDs are usually estimated as daily quantities from daily returns and then combined, with the annualisation applied once, at the end, to the combined daily figure. Applying root-time scaling to each component first and then combining gives the same answer only because the combination is a weighted sum of variances - the weights act on variances, and root-time acts on their sum's root. Where practitioners go wrong is mixing: an annualised overnight SD beside daily intraday SDs silently inflates the overnight share by a factor of 252 in variance terms, and the resulting Yang-Zhang figure is fiction. Keep one basis until the final step.

FAQs

What Yang-Zhang volatility does the first example give?

31.79 percent, from overnight SD 18.20, open-to-close SD 24.60 and Rogers-Satchell SD 26.30 over 20 sessions. The overnight component supplies 32.77 percent of the total variance.

What weight k does the first sample size give?

0.1390 for n = 20: k = 0.34 / (1.34 + 21/19). The Rogers-Satchell component takes the complementary 0.8610 of the daytime budget.

Why does k depend on the sample size?

It is chosen to minimise the variance of the combined estimator, and the optimal split shifts slightly with n. The movement is small - 0.1327 at n = 10 to 0.1432 at n = 60, limiting at 0.1453 - so fixing k at 0.145 is a common harmless shortcut.

What makes Yang-Zhang different from Garman-Klass?

The overnight term and the drift handling. Garman-Klass assumes the open continues the previous close and corrects drift within the bar; Yang-Zhang prices the overnight jump explicitly and uses the drift-robust Rogers-Satchell intraday component.

How many sessions does the second example use?

60 sessions, with calmer components (9.40, 13.10, 14.25) combining to 16.94 percent - a utility-like name next to the first example's livelier profile.

Can I enter daily instead of annualised components?

Yes, provided all three components share the same basis: the combination is homogeneous, so daily inputs give the daily Yang-Zhang volatility. What breaks it is mixing bases across components.

Sources

Related calculators

Implied Volatility Calculator
The volatility the market is pricing into an option: Black-Scholes solved backwards from the premium until the model price matches the market.
Sortino Ratio Calculator
Return per unit of bad risk: like the Sharpe ratio, but it only penalises downside volatility below your target instead of all volatility.
Value at Risk (VaR) Calculator
Parametric (variance-covariance) VaR: the loss a portfolio is not expected to exceed over a chosen horizon at 90%, 95% or 99% confidence, assuming normally distributed returns.