Most people who estimate volatility from daily data use one price per day, the close, and throw away the three other numbers printed on the same bar. That is an expensive habit. The high and the low carry information about the path the price took during the day. Under textbook assumptions, a range-based estimator can match the precision of close-to-close variance with a fifth to an eighth of the data. In practice that means a 20-day window that behaves like a 100- to 160-day one, without the staleness.

The catch is that each estimator buys its efficiency with assumptions: zero drift, no overnight gap, continuous monitoring, no bid-ask bounce. Real data breaks all of them to some degree. This article derives the four classical OHLC estimators, then runs a Monte Carlo that measures bias and efficiency under each violation. It then moves to intraday realized variance, where the same trade-off reappears as microstructure noise. Every number below comes from the code shown, run with fixed seeds.

1. Notation and the baseline

Work in log prices. For day tt let Ot,Ht,Lt,CtO_t, H_t, L_t, C_t be the open, high, low and close, and define

ot=ln⁡Ot−ln⁡Ct−1,ut=ln⁡Ht−ln⁡Ot,dt=ln⁡Lt−ln⁡Ot,ct=ln⁡Ct−ln⁡Ot.o_t = \ln O_t - \ln C_{t-1}, \qquad u_t = \ln H_t - \ln O_t, \qquad d_t = \ln L_t - \ln O_t, \qquad c_t = \ln C_t - \ln O_t .

So oto_t is the overnight gap, ut≥0u_t \ge 0 and dt≤0d_t \le 0 are the normalised high and low, and ctc_t is the open-to-close return. The close-to-close return is rt=ot+ctr_t = o_t + c_t.

The baseline is the sample variance over a window of nn days:

σ^CC2=1n−1∑t=1n(rt−rˉ)2.\hat\sigma^2_{\mathrm{CC}} = \frac{1}{n-1}\sum_{t=1}^{n} (r_t - \bar r)^2 .

If returns are i.i.d. Gaussian with variance σ2\sigma^2, then (n−1)σ^CC2/σ2∼χn−12(n-1)\hat\sigma^2_{\mathrm{CC}}/\sigma^2 \sim \chi^2_{n-1} and Var⁡(σ^CC2)=2σ4/(n−1)\operatorname{Var}(\hat\sigma^2_{\mathrm{CC}}) = 2\sigma^4/(n-1). With n=20n = 20 the standard error of the variance estimate is 2/19≈32%\sqrt{2/19} \approx 32\% of the true value, or about 16% on volatility. Close-to-close vol over a month is a noisy number.

We define the relative efficiency of an estimator σ^X2\hat\sigma^2_X as

Eff(X)=Var⁡(σ^CC2)Var⁡(σ^X2).\mathrm{Eff}(X) = \frac{\operatorname{Var}(\hat\sigma^2_{\mathrm{CC}})}{\operatorname{Var}(\hat\sigma^2_X)} .

An efficiency of 5 means one day of XX is worth five days of squared close-to-close returns. One subtlety affects the comparison with published numbers. Textbook efficiencies (Parkinson 5.2, Garman–Klass 7.4) are quoted against the zero-mean estimator 1n∑rt2\frac1n\sum r_t^2, whose variance is 2σ4/n2\sigma^4/n. Against the demeaned estimator used here, every efficiency is scaled up by n/(n−1)=20/19≈1.053n/(n-1) = 20/19 \approx 1.053.

2. The four OHLC estimators

2.1 Parkinson (1980)

For a driftless Brownian motion with variance σ2\sigma^2 per unit time, the range R=sup⁡s≤1Xs−inf⁡s≤1XsR = \sup_{s\le 1} X_s - \inf_{s \le 1} X_s satisfies E[R2]=4ln⁡2 σ2\mathbb{E}[R^2] = 4\ln 2 \,\sigma^2. Inverting gives

σ^P2=14ln⁡2⋅1n∑t=1n(ut−dt)2.\hat\sigma^2_{P} = \frac{1}{4\ln 2}\cdot\frac{1}{n}\sum_{t=1}^n (u_t - d_t)^2 .

Efficiency is about 5.2 under continuous monitoring. Assumptions: zero drift, no gap, and the high and low are the true extremes of a continuous path. Drift inflates the range, so with a trend the estimator is biased upward. It also measures only the trading session.

2.2 Garman–Klass (1980)

Garman and Klass looked for the minimum-variance estimator that is quadratic in (u,d,c)(u, d, c) and scale invariant. The practical form they recommend is

σ^GK2=1n∑t=1n[12(ut−dt)2−(2ln⁡2−1) ct2],\hat\sigma^2_{\mathrm{GK}} = \frac{1}{n}\sum_{t=1}^n \left[ \tfrac12 (u_t - d_t)^2 - (2\ln 2 - 1)\, c_t^2 \right],

with a quoted efficiency of about 7.4. Subtracting a multiple of ct2c_t^2 removes part of the range's variance that comes from where the day happens to close. The assumptions are the same as Parkinson's: no drift, no gap, continuous monitoring. Their paper also gives a variant that blends in the overnight return, weighted by the share of variance that accrues while the market is closed.

2.3 Rogers–Satchell (1991)

Rogers and Satchell built an estimator whose expectation does not depend on the drift:

σ^RS2=1n∑t=1n[ut(ut−ct)+dt(dt−ct)].\hat\sigma^2_{\mathrm{RS}} = \frac{1}{n}\sum_{t=1}^n \left[ u_t (u_t - c_t) + d_t (d_t - c_t) \right].

Each term is non-negative, since ut≥max⁡(0,ct)u_t \ge \max(0,c_t) and dt≤min⁡(0,ct)d_t \le \min(0, c_t). For Brownian motion with arbitrary constant drift, its expectation is exactly σ2\sigma^2. It gives up some efficiency compared with Garman–Klass when the drift really is zero, and it still ignores the overnight gap.

2.4 Yang–Zhang (2000)

Yang and Zhang combine three pieces. They take the sample variance of the overnight returns, the sample variance of the open-to-close returns, and the Rogers–Satchell term. They then choose the weights to minimise variance:

σ^YZ2=σ^o2+k σ^c2+(1−k) σ^RS2,k=0.341.34+n+1n−1,\hat\sigma^2_{\mathrm{YZ}} = \hat\sigma^2_{o} + k\,\hat\sigma^2_{c} + (1-k)\,\hat\sigma^2_{\mathrm{RS}}, \qquad k = \frac{0.34}{1.34 + \frac{n+1}{n-1}},

where σ^o2\hat\sigma^2_o and σ^c2\hat\sigma^2_c are the usual (n−1)(n-1)-denominator variances of oto_t and ctc_t. For n=20n=20, k≈0.139k \approx 0.139. The estimator is drift-independent and, unlike the other three, it targets the full close-to-close variance, overnight gap included. It needs n≥2n \ge 2, so it is inherently a window estimator.

EstimatorInputsHandles driftHandles gapTextbook efficiency
Close-to-closeCyes (demeaned)yes1
ParkinsonH, Lnono≈ 5.2
Garman–KlassO, H, L, Cnono≈ 7.4
Rogers–SatchellO, H, L, Cyesno—
Yang–ZhangO, H, L, C, prev Cyesyes—

3. The discrete-monitoring problem

Every range estimator assumes the observed high and low are the true extremes of a continuous path. They are not. The recorded high is the maximum over the prices at which trades actually happened, and that is always at or below the supremum of the latent path. Broadie, Glasserman and Kou (1997) show that for Brownian motion sampled every Δt\Delta t, the expected discrete maximum is lower by roughly β σΔt\beta\,\sigma\sqrt{\Delta t}, with β=−ζ(1/2)/2π≈0.5826\beta = -\zeta(1/2)/\sqrt{2\pi} \approx 0.5826. The low is biased up by the same amount. The range shrinks, and every estimator built on it is biased downward, with the leading error term scaling like Δt\sqrt{\Delta t}.

How big is the bias? We simulate driftless GBM at 20% annualised vol, sample the path at MM equally spaced points per day, and average each estimator over 5,000 non-overlapping 20-day windows (3,000 for the 1-second case):

Points per dayParkinsonGarman–KlassRogers–SatchellYang–Zhang
13 (30-min)−30.4%−42.1%−43.3%−37.3%
78 (5-min)−13.9%−19.4%−19.7%−16.9%
390 (1-min)−6.5%−9.0%−9.1%−7.8%
23,400 (1-sec)−1.1%−1.1%−0.9%−0.9%

Close-to-close stays within ±1% at every resolution, as it must: it never looks at the path. Two practical points follow. First, the effective monitoring frequency is set by how often the instrument trades, not by the bar size you downloaded. A 1-minute bar's high is the maximum over every trade in that minute, but a thinly traded stock with a few hundred prints a day is effectively sampled coarsely, and its range estimators are biased low by the amounts in the middle rows. Second, Garman–Klass and Rogers–Satchell suffer more than Parkinson, because they subtract terms in ctc_t that do not shrink with the range.

Bias of five variance estimators against price observations per day on a log axis; range estimators start 30 to 43 percent low at 13 observations and converge to about minus 1 percent at 23,400, while close-to-close stays near zero.
Figure 1. Every range estimator converges from below, with error shrinking roughly like the square root of the sampling interval. Garman–Klass and Rogers–Satchell are hit hardest because their close-related terms do not shrink with the range. Close-to-close never looks at the path, so it stays flat. Simulated data, seed 11.

Range estimators are biased low by an amount that depends on trading intensity. Comparing Parkinson vol across a liquid and an illiquid name compares the liquidity as much as the volatility.

4. The Monte Carlo

The simulator generates log-price paths at a chosen intraday resolution. It optionally adds a constant drift, a Gaussian overnight gap, and i.i.d. additive noise on the observed prices. It returns (ot,ut,dt,ct)(o_t, u_t, d_t, c_t) per day. Highs and lows are taken from the observed (possibly noisy) path, as they would be from a tape.

import numpy as np

LN2 = np.log(2.0)

def simulate_days(n_days, steps, sigma, mu=0.0, overnight_frac=0.0,
                  noise=0.0, seed=0, chunk=5000):
    """Per-day OHLC (log, relative to the open) plus overnight gap.
    sigma: intraday vol per day; mu: intraday drift per day (log);
    overnight_frac: overnight variance as a fraction of intraday variance;
    noise: std of additive i.i.d. noise on observed log prices."""
    rng = np.random.default_rng(seed)
    dt = 1.0 / steps
    out = {k: [] for k in ("o", "u", "d", "c")}
    for start in range(0, n_days, chunk):
        m = min(chunk, n_days - start)
        incr = (mu - 0.5 * sigma**2) * dt + sigma * np.sqrt(dt) * rng.standard_normal((m, steps))
        path = np.concatenate([np.zeros((m, 1)), np.cumsum(incr, axis=1)], axis=1)
        if noise > 0:
            path = path + noise * rng.standard_normal(path.shape)
        o_gap = np.sqrt(overnight_frac) * sigma * rng.standard_normal(m)
        out["o"].append(o_gap)
        rel = path - path[:, :1]          # measured relative to the observed open print
        out["u"].append(rel.max(axis=1))
        out["d"].append(rel.min(axis=1))
        out["c"].append(rel[:, -1])
    return {k: np.concatenate(v) for k, v in out.items()}

def estimators(day, n):
    """Variance estimates over non-overlapping windows of n days."""
    o, u, d, c = (day[k].reshape(-1, n) for k in ("o", "u", "d", "c"))
    r = o + c
    cc = r.var(axis=1, ddof=1)
    park = ((u - d) ** 2 / (4 * LN2)).mean(axis=1)
    gk = (0.5 * (u - d) ** 2 - (2 * LN2 - 1) * c ** 2).mean(axis=1)
    rs = (u * (u - c) + d * (d - c)).mean(axis=1)
    k = 0.34 / (1.34 + (n + 1) / (n - 1))
    yz = o.var(axis=1, ddof=1) + k * c.var(axis=1, ddof=1) + (1 - k) * rs
    return {"Close-to-close": cc, "Parkinson": park, "Garman-Klass": gk,
            "Rogers-Satchell": rs, "Yang-Zhang": yz}

def report(name, est, true_var, batches=10):
    base = est["Close-to-close"]
    print(f"\n{name}  (true daily variance {true_var:.3e}, {len(base)} windows)")
    for k, v in est.items():
        eff = base.var() / v.var()
        parts = [b.var() / e.var() for b, e in
                 zip(np.array_split(base, batches), np.array_split(v, batches))]
        se = np.std(parts, ddof=1) / np.sqrt(batches)
        print(f"{k:<16}{100*(v.mean()/true_var-1):>9.1f}{eff:>12.2f}{se:>8.2f}")

sigma = 0.20 / np.sqrt(252)               # 20% annualised
n, windows = 20, 5000
day = simulate_days(n * windows, 390, sigma, seed=1)
report("A: GBM, 1-min bars", estimators(day, n), sigma**2)

The windows do not overlap, so the 5,000 estimates are independent and their sample variance is a clean efficiency estimate. The standard error comes from splitting the windows into ten batches. The other scenarios reuse the same functions: simulate_days(..., steps=23400, chunk=1000) with 3,000 windows, mu=0.5*sigma, overnight_frac=0.25, and noise=0.0002 or 0.0005.

4.1 Results

Bias is E[σ^2]/σ2−1\mathbb{E}[\hat\sigma^2]/\sigma^2 - 1 against the true variance of the target. That target is intraday variance in every scenario except the overnight-gap one, where it is the full close-to-close variance 1.25 σ21.25\,\sigma^2. Efficiency is measured against demeaned close-to-close over the same 20-day windows. The standard error on each efficiency is between 0.07 and 0.6.

ScenarioClose-to-closeParkinsonGarman–KlassRogers–SatchellYang–Zhang
A GBM, 1-min: bias−0.3%−6.6%−9.1%−9.1%−7.9%
A GBM, 1-min: eff.1.005.438.376.577.76
A′ GBM, 1-sec: bias+0.7%−0.5%−0.9%−1.0%−0.8%
A′ GBM, 1-sec: eff.1.005.488.386.617.82
B1 drift μ=σ/2\mu=\sigma/2/day: bias+0.4%+2.8%−5.9%−9.4%−8.0%
B1 drift: eff.1.004.047.876.617.87
B2 gaps (25% of intraday var): bias−0.0%−25.2%−27.2%−27.3%−6.4%
B2 gaps: eff.1.008.53*13.33*10.33*8.21
C noise ω=2\omega = 2bp: bias+0.2%−5.4%−7.5%−7.5%−6.4%
C noise ω=5\omega = 5bp: bias+0.2%−0.8%−1.2%−1.1%−0.9%

* These are efficiencies of estimators that are aiming at the wrong quantity. A low-variance estimate of the wrong number is not a feature.

4.2 Reading the table

Efficiency against the textbook values. At 1-second resolution, Parkinson comes out at 5.48. The textbook 5.2, scaled by 20/1920/19 for the demeaned benchmark, predicts 5.47, which is a direct match. Garman–Klass comes in at 8.38 against a scaled benchmark of 7.4×1.053≈7.87.4 \times 1.053 \approx 7.8. That is about 1.8 standard errors high, which is consistent with sampling error plus a little residual discretisation: a range that is biased slightly low is also slightly less variable. At 1-minute resolution the efficiencies barely move (5.43, 8.37). Discrete monitoring costs you bias, not precision, so a fixed multiplicative correction recovers most of the loss.

Histograms of 20-day annualised volatility estimates from 5,000 windows: close-to-close is wide, spanning about 10 to 30 percent, while Parkinson, Yang–Zhang and Garman–Klass are narrow and centred slightly below the true 20 percent.
Figure 2. Each range estimator's distribution is two to three times narrower than close-to-close: that is what an efficiency of 5 to 8 means. Their centres sit just below 20%, because 1-minute monitoring biases the range low. Simulated GBM at 1-minute resolution, seed 1.

Garman–Klass is the most efficient on clean data. Without gaps, Yang–Zhang (7.76) is slightly less efficient than Garman–Klass (8.37). It spends part of its weight on the open-to-close variance term, which is redundant when there is no gap. Rogers–Satchell gives up about two efficiency points to Garman–Klass in exchange for drift robustness.

Drift. With a drift of half a daily standard deviation per day, a deliberately extreme trend, Parkinson's bias moves from −6.6% to +2.8%. Its efficiency falls from 5.43 to 4.04. Garman–Klass moves by about three points (−9.1% to −5.9%). Rogers–Satchell and Yang–Zhang do not move at all (−9.1% vs −9.4%, −7.9% vs −8.0%), exactly as the theory says. For comparison, a zero-mean close-to-close estimator would be biased by μ2/σ2=+25%\mu^2/\sigma^2 = +25\% in this scenario. That is why the demeaned version is the right benchmark. Realistic daily drifts are far smaller than σ/2\sigma/2, so for most equities drift is a second-order issue for Parkinson and Garman–Klass. It matters for strongly trending series and for long bars (weekly, monthly ranges).

Overnight gaps dominate everything else. When the overnight variance is 25% of the intraday variance, the overnight return carries 0.25/1.25=20%0.25/1.25 = 20\% of the total. Parkinson, Garman–Klass and Rogers–Satchell never see it. Their biases of −25% to −27% are that 20% hole compounded with the discrete-monitoring bias. Yang–Zhang lands at −6.4%, which is just its discrete-monitoring bias applied to the intraday part, and it keeps an efficiency of 8.21. The ad hoc patch of adding the sample variance of oto_t to Parkinson works on bias (−5.4%) but reaches an efficiency of only 6.44. Yang–Zhang's optimal weighting is worth the extra two lines.

Noise flatters the range. Additive noise on observed prices pushes the recorded high up and the low down, which works against the discrete-monitoring bias. At ω=5\omega = 5bp per print the two effects almost cancel (Parkinson −0.8%). This is a coincidence of parameters, not robustness. In real data the corresponding effect is bid-ask bounce: highs print at the ask, lows at the bid, and the range is inflated by roughly a spread. That inflation is negligible for a large-cap index future and material for a small-cap stock with a 30bp spread on a quiet day.

Grouped bars of variance bias for five estimators in four scenarios: clean GBM, strong drift, overnight gaps and 5 basis point noise; under overnight gaps Parkinson, Garman–Klass and Rogers–Satchell fall 25 to 27 percent low while Yang–Zhang stays near minus 6 percent.
Figure 3. Drift pushes Parkinson up and leaves Rogers–Satchell and Yang–Zhang unchanged. Overnight gaps sink every estimator that cannot see the gap. 5bp noise happens to cancel the discrete-monitoring bias. Simulated data, seeds 1, 2, 3 and 5.

On clean data Garman–Klass is the most efficient. On data with gaps, only Yang–Zhang estimates the right thing. On any data, range estimators are biased by trading frequency and spread, and that bias is not constant across instruments.

5. Choosing an estimator

Some notes on the branches:

  • Equities and anything with a session close: Yang–Zhang, always. The overnight gap is a large part of single-stock variance around earnings, and an estimator that cannot see it will systematically understate risk exactly when risk is highest.
  • Continuous markets (FX, crypto, index futures on a near-24h session with a synthetic daily cut): the gap term vanishes. Garman–Klass is the efficient choice. Switch to Rogers–Satchell if the bars are long or the series trends hard.
  • Cross-sectional comparisons: calibrate the discrete-monitoring bias per liquidity bucket, or rank by vol rather than comparing levels. Otherwise an illiquid name looks calmer than it is.
  • Regressions and forecasting: the log of a range-based variance is close to Gaussian (Alizadeh, Brandt and Diebold, 2002), which makes range-based proxies attractive as state variables in stochastic-volatility models and as targets in forecast evaluation.

6. When you have intraday data: realized variance

With intraday prices, the efficiency argument becomes overwhelming. Realized variance over a day sampled at nn equal intervals,

RV(n)=∑i=1n(Xti−Xti−1)2,\mathrm{RV}^{(n)} = \sum_{i=1}^{n} \left( X_{t_i} - X_{t_{i-1}} \right)^2 ,

converges to the integrated variance IV=∫σs2 ds\mathrm{IV} = \int \sigma_s^2\,ds as n→∞n \to \infty. Its discretisation variance is 2Q/n2Q/n, where Q=∫σs4 dsQ = \int \sigma_s^4\,ds is the integrated quarticity. With constant volatility, a single 5-minute RV (n=78n = 78) has the variance of 78 squared daily returns. That is roughly ten times better than Garman–Klass, and it needs no assumption about drift or the shape of the path.

6.1 Microstructure noise

The problem is that observed prices are not the efficient price. Model them as Yti=Xti+εtiY_{t_i} = X_{t_i} + \varepsilon_{t_i}, with ε\varepsilon i.i.d., mean zero and variance ω2\omega^2, independent of XX. Each observed return picks up εti−εti−1\varepsilon_{t_i} - \varepsilon_{t_{i-1}}, so

E[RVY(n)]=IV+2nω2.\mathbb{E}\left[\mathrm{RV}^{(n)}_Y\right] = \mathrm{IV} + 2n\omega^2 .

The bias grows linearly in the sampling frequency. Sampling more finely, which was the whole point, eventually makes the estimate worse. Plotting average RV against sampling interval gives the volatility signature plot of Andersen, Bollerslev, Diebold and Labys. It is flat for a noise-free price and rises sharply at high frequency when noise is present.

import numpy as np

def simulate_paths(n_days, steps, sigma, noise, seed):
    rng = np.random.default_rng(seed)
    dt = 1.0 / steps
    incr = -0.5 * sigma**2 * dt + sigma * np.sqrt(dt) * rng.standard_normal((n_days, steps))
    x = np.concatenate([np.zeros((n_days, 1)), np.cumsum(incr, axis=1)], axis=1)
    return x + noise * rng.standard_normal(x.shape)

def rv(x, k):
    """Realized variance sampling every k-th observation."""
    r = np.diff(x[:, ::k], axis=1)
    return (r ** 2).sum(axis=1)

sigma = 0.20 / np.sqrt(252); iv = sigma ** 2
for omega in (0.0, 0.0002, 0.0005):
    x = simulate_paths(20000, 390, sigma, omega, seed=7)
    for k in (1, 2, 5, 10, 15, 30, 65, 130, 390):
        est = rv(x, k)
        print(omega, k, 100 * (est.mean() / iv - 1), np.sqrt(((est - iv) ** 2).mean()) / iv)

The results over 20,000 simulated days, with the 1-minute grid as the finest observation scale:

SamplingnnBias, ω=0\omega=0RMSE/IV, ω=0\omega=0Bias, ω=2\omega=2bpRMSE/IV, ω=2\omega=2bpBias, ω=5\omega=5bpRMSE/IV, ω=5\omega=5bp
1 min3900.0%0.071+19.7%0.215+122.9%1.241
2 min1950.0%0.101+9.8%0.149+61.4%0.637
5 min78+0.1%0.161+4.0%0.172+24.6%0.318
10 min39+0.1%0.226+2.0%0.231+12.3%0.283
15 min260.0%0.276+1.3%0.280+8.2%0.310
30 min13+0.1%0.391+0.8%0.393+4.3%0.409
65 min6+0.3%0.580+0.6%0.581+2.2%0.590
daily1+0.8%1.420+0.8%1.423+1.1%1.423

The 1-minute biases (+19.7% and +122.9%) match the theoretical 2nω2/IV2n\omega^2/\mathrm{IV} (19.7% and 122.8%) to the first decimal. The bottom row is the familiar single-day squared return, with RMSE ≈2⋅IV\approx \sqrt 2 \cdot \mathrm{IV}. The ratio (1.420/0.161)2≈78(1.420/0.161)^2 \approx 78 confirms the "78 squared daily returns" figure for noise-free 5-minute RV.

Two panels against sampling interval on a log axis. Left: mean realized variance bias, flat at zero without noise and rising to 20 and 123 percent at 1 minute for 2 and 5 basis point noise. Right: RMSE relative to IV, with the minimum at 1, 2 and 10 minutes for 0, 2 and 5 basis points of noise.
Figure 4. Left: the signature plot. Noise bias grows linearly with sampling frequency. Right: the error is lowest (green rings) at the finest grid without noise, at 2 minutes with ω = 2bp and at 10 minutes with ω = 5bp. Simulated data, 20,000 days, seed 7.

6.2 Optimal sparse sampling

The RMSE column shows the bias–variance trade-off. Ignoring higher-order noise terms, the mean squared error of sparse RV is approximately

MSE(n)≈2Qn+4n2ω4,⟹n∗≈(Q4ω4)1/3,\mathrm{MSE}(n) \approx \frac{2Q}{n} + 4n^2\omega^4 , \qquad\Longrightarrow\qquad n^* \approx \left( \frac{Q}{4\omega^4} \right)^{1/3},

which is the rule of Bandi and Russell (2008). With our parameters, Q=IV2Q = \mathrm{IV}^2. For ω=2\omega = 2bp this gives n∗≈158n^* \approx 158, an interval of about 2.5 minutes, and the simulated RMSE minimum sits at the 2-minute grid point. For ω=5\omega = 5bp it gives n∗≈47n^* \approx 47, about 8.4 minutes, and the simulated minimum sits at 10 minutes. The classic 5-minute convention, popularised by the early realized-volatility literature, is a robust compromise. It is near-optimal for moderately noisy liquid instruments and never catastrophic.

6.3 Using all the data: two scales

Sparse sampling throws away most of the observations. The two-scale realized variance (TSRV) of Zhang, Mykland and Aït-Sahalia (2005) uses them all. It averages RV over all KK-lag returns, a slow scale dominated by signal, and subtracts a multiple of the tick-level RV, a fast scale dominated by noise, chosen so the noise terms cancel. Our implementation rescales for the edge effect, so the slow-scale term has expectation IV+2ω2n/K\mathrm{IV} + 2\omega^2 n/K and the fast-scale term IV+2nω2\mathrm{IV} + 2n\omega^2. A linear combination then removes the noise exactly:

def tsrv(x, K):
    """Two-scale realized variance with edge and small-sample adjustment."""
    n = x.shape[1] - 1
    lagK = ((x[:, K:] - x[:, :-K]) ** 2).sum(axis=1)       # n-K+1 overlapping K-lag returns
    slow = lagK * n / (K * (n - K + 1))                    # E = IV + 2*omega^2*n/K
    fast = rv(x, 1)                                        # E = IV + 2*omega^2*n
    return (slow - fast / K) / (1 - 1 / K)

On the same 20,000 days:

ω\omegaTSRV K=5K=5: bias / RMSEK=10K=10K=20K=20Best sparse RV RMSE
0−0.0% / 0.157+0.1% / 0.205+0.2% / 0.2800.071 (1 min)
2bp−0.0% / 0.159+0.1% / 0.205+0.2% / 0.2800.149 (2 min)
5bp−0.0% / 0.168+0.1% / 0.208+0.2% / 0.2810.283 (10 min)

TSRV is unbiased at every noise level, and its RMSE barely depends on ω\omega. At 5bp noise, K=5K=5 cuts the error by 40% relative to the best sparse grid (0.168 vs 0.283). In the noise-free case it pays for that insurance: 0.157 against 0.071 for plain 1-minute RV. One warning on the naive formula: without the edge and small-sample adjustments, the textbook combination came out about 12% low in our runs at n=390n=390, K=10K=10. The correction factors matter at realistic sample sizes.

Realized kernels (Barndorff-Nielsen, Hansen, Lunde and Shephard, 2008) go further. They add weighted autocovariances of high-frequency returns, are robust to some dependence in the noise, and converge faster. In production they are the default for liquid instruments with tick data. Sparse 5-minute RV remains the default benchmark because nobody argues about how it was computed.

7. Summary

  1. Close-to-close variance over 20 days has a standard error of about 32% of its own value. Any estimator that uses more of the bar is worth considering.
  2. On clean, gap-free data, Garman–Klass delivers an efficiency of about 8 against demeaned close-to-close in simulation. Parkinson delivers about 5.5, matching the textbook values once you account for the benchmark's degrees of freedom.
  3. Discrete monitoring biases every range estimator downward: roughly −7% to −9% at 390 observations per day and −14% to −20% at 78. The real driver is trading intensity, so the bias varies across instruments.
  4. Drift breaks Parkinson and, less so, Garman–Klass. Rogers–Satchell and Yang–Zhang are immune.
  5. Overnight gaps break every estimator except Yang–Zhang. For equities, Yang–Zhang is the only defensible daily OHLC choice.
  6. With intraday data, use realized variance. Sample sparsely, at the frequency where noise bias and discretisation variance balance, or use a noise-robust estimator such as TSRV or a realized kernel. The signature plot tells you which regime you are in.

References

  • Alizadeh, S., Brandt, M. W., & Diebold, F. X. (2002). Range-based estimation of stochastic volatility models. Journal of Finance, 57(3), 1047–1091.
  • Andersen, T. G., Bollerslev, T., Diebold, F. X., & Labys, P. (2000). Great realizations. Risk, 13, 105–108.
  • Andersen, T. G., Bollerslev, T., Diebold, F. X., & Labys, P. (2001). The distribution of realized exchange rate volatility. Journal of the American Statistical Association, 96(453), 42–55.
  • Bandi, F. M., & Russell, J. R. (2008). Microstructure noise, realized variance, and optimal sampling. Review of Economic Studies, 75(2), 339–369.
  • Barndorff-Nielsen, O. E., Hansen, P. R., Lunde, A., & Shephard, N. (2008). Designing realized kernels to measure the ex post variation of equity prices in the presence of noise. Econometrica, 76(6), 1481–1536.
  • Broadie, M., Glasserman, P., & Kou, S. (1997). A continuity correction for discrete barrier options. Mathematical Finance, 7(4), 325–349.
  • Garman, M. B., & Klass, M. J. (1980). On the estimation of security price volatilities from historical data. Journal of Business, 53(1), 67–78.
  • Parkinson, M. (1980). The extreme value method for estimating the variance of the rate of return. Journal of Business, 53(1), 61–65.
  • Rogers, L. C. G., & Satchell, S. E. (1991). Estimating variance from high, low and closing prices. Annals of Applied Probability, 1(4), 504–512.
  • Yang, D., & Zhang, Q. (2000). Drift-independent volatility estimation based on high, low, open, and close prices. Journal of Business, 73(3), 477–491.
  • Zhang, L., Mykland, P. A., & Aït-Sahalia, Y. (2005). A tale of two time scales: Determining integrated volatility with noisy high-frequency data. Journal of the American Statistical Association, 100(472), 1394–1411.

Research and education, not investment advice.