σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
Time Series skill›Module 3 · Volatility›Topic 3.3·~55 minAdvanced

Realised volatility estimators

Skill positionModule 3 of 5 · Topic 3 of 3
3.3 Realised volatility estimators
—Lab score— / 100Total XP—Streak—

Measuring volatility you cannot see

Volatility is never observed directly, only estimated. The simplest estimator is close-to-close: take the standard deviation of daily log returns and annualise it by multiplying by 252\sqrt{252}252​. It uses one number per day and ignores everything that happened between the open and the close. With intraday prices you can do much better. The realised variance of a day is the sum of its squared intraday returns, RVt=∑i=1mrt,i2RV_t=\sum_{i=1}^{m}r_{t,i}^{2}RVt​=∑i=1m​rt,i2​, and as the sampling gets finer it approaches the true variance of the day. In practice the finest sampling backfires, because bid-ask bounce and rounding add noise that inflates RVRVRV; returns every 5 minutes, or an average over several offset grids, are a common compromise.

RVt=∑i=1mrt,i2,σ^P2=(ln⁡(H/L))24ln⁡2,σA=σD252,RVt+1=β0+βdRVt+βwRVt(5)+βmRVt(22)+εRV_t=\sum_{i=1}^{m}r_{t,i}^{2},\qquad \hat\sigma^{2}_{P}=\frac{\big(\ln(H/L)\big)^{2}}{4\ln 2},\qquad \sigma_{A}=\sigma_{D}\sqrt{252},\qquad RV_{t+1}=\beta_0+\beta_dRV_t+\beta_wRV_{t}^{(5)}+\beta_mRV_{t}^{(22)}+\varepsilonRVt​=i=1∑m​rt,i2​,σ^P2​=4ln2(ln(H/L))2​,σA​=σD​252​,RVt+1​=β0​+βd​RVt​+βw​RVt(5)​+βm​RVt(22)​+ε(1)

Without intraday data, the daily high HHH and low LLL still carry information about the day's path. Parkinson's estimator σ^2=(ln⁡(H/L))2/(4ln⁡2)\hat\sigma^{2}=(\ln(H/L))^{2}/(4\ln2)σ^2=(ln(H/L))2/(4ln2) is about five times more efficient than close-to-close, and Garman-Klass adds the open and the close. They assume continuous trading, so they are biased down when prices jump or when the overnight gap is large. The reason to want a better measure is forecasting: the squared daily return is an unbiased but extremely noisy proxy for the day's variance, one draw from a wide distribution, while RVRVRV averages many draws. The HAR-RV model of Corsi regresses tomorrow's RVRVRV on today's value, the average of the last 5 days and the average of the last 22 days. Three terms are enough to reproduce the slow, long-memory decay of volatility, and the model is hard to beat as a benchmark.

Two small estimatesFour intraday returns of 0.10%0.10\%0.10%, −0.20%-0.20\%−0.20%, 0.15%0.15\%0.15% and 0.05%0.05\%0.05% give RV=0.01+0.04+0.0225+0.0025=0.075RV=0.01+0.04+0.0225+0.0025=0.075RV=0.01+0.04+0.0225+0.0025=0.075 in percent squared, a volatility of 0.27%0.27\%0.27% for the stretch they cover. A day with high 102102102 and low 999999 gives ln⁡(102/99)=0.0299\ln(102/99)=0.0299ln(102/99)=0.0299, so Parkinson's variance is 0.02992/(4ln⁡2)=0.0003210.0299^{2}/(4\ln2)=0.0003210.02992/(4ln2)=0.000321 and the daily volatility is 1.79%1.79\%1.79%, which annualises to 1.79%⋅252≈28.5%1.79\%\cdot\sqrt{252}\approx28.5\%1.79%⋅252​≈28.5%. A HAR forecast with β=(0.1,0.3,0.4,0.2)\beta=(0.1,0.3,0.4,0.2)β=(0.1,0.3,0.4,0.2) and RVRVRV values 222 (today), 1.51.51.5 (5-day mean) and 111 (22-day mean) is 0.1+0.6+0.6+0.2=1.50.1+0.6+0.6+0.2=1.50.1+0.6+0.6+0.2=1.5.
  • Close-to-close: standard deviation of daily returns times 252\sqrt{252}252​; it ignores the path within the day.
  • Realised variance sums squared intraday returns; very fine sampling adds microstructure noise.
  • Range estimators (Parkinson, Garman-Klass) use high, low, open and close; HAR-RV forecasts from daily, weekly and monthly averages.

Lab · what's graded

  • Realised variance15 pts
  • Annualising15 pts
  • Parkinson's estimator15 pts
  • A HAR forecast15 pts
  • Why not sample every second10 pts
  • Match the vocabulary15 pts
  • A better proxy than the squared return15 pts
0/ 7 answered
Tasks
1Numeric answer15 ptsNot answered

Four intraday returns, in percent, are 0.10, −0.20, 0.15, 0.050.10,\,-0.20,\,0.15,\,0.050.10,−0.20,0.15,0.05. What is their realised variance ∑r2\sum r^{2}∑r2 (in percent squared)?

rv=rv =rv=accepted: ± 0.002
2Numeric answer15 ptsNot answered

A stock has a daily volatility of 1%1\%1%. What is the annualised volatility σ252\sigma\sqrt{252}σ252​, in percent? Give it to two decimals.

ann=ann =ann=accepted: ± 0.02
3Numeric answer15 ptsNot answered

A day has a high of 102102102 and a low of 999999. What is Parkinson's daily volatility (ln⁡(H/L))2/(4ln⁡2)\sqrt{(\ln(H/L))^{2}/(4\ln2)}(ln(H/L))2/(4ln2)​, in percent? Give it to two decimals.

p=p =p=accepted: ± 0.02
4Numeric answer15 ptsNot answered

A HAR model has intercept 0.10.10.1 and coefficients 0.30.30.3 on today's RVRVRV, 0.40.40.4 on the 5-day mean and 0.20.20.2 on the 22-day mean. Today's RVRVRV is 222, the 5-day mean is 1.51.51.5 and the 22-day mean is 111. What is tomorrow's forecast?

f=f =f=accepted: ± 0.01
5Choice10 ptsNot answered

Why is realised variance usually computed from 5-minute returns instead of 1-second returns?

6Match15 ptsNot answered

Match each estimator with its description.

Pick the partner of each item on the left.

Close-to-close
Parkinson
Realised variance
HAR-RV
7Explain in words15 ptsNot answered

In one or two sentences, explain why realised variance is a better proxy for a day's true variance than the squared daily return.

Math modeKeyboard or LaTeX inputTask 1 of 7 · Ctrl ⏎ to check

Log in to run your code.

Every lecture is free to read. Create an account or log in to run code, run tests and submit this lab.

  • In-browser IDE with a bash terminal — nothing to install
  • Instant grading, XP and your place on the skill
Create an accountLog in
OR
Continue with GitHub