σμ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
  • 日本語
  • 中文
Stochastic Calculus skill›Module 1 · Random paths and integrals›Topic 1.2·~50 minAdvanced

Quadratic variation

Skill positionModule 1 of 5 · Topic 2 of 3
1.2 Quadratic variation
—Lab score— / 100Total XP—Streak—

What the squared steps add up to

Take a Brownian path on [0,t][0,t][0,t] and cut the time into nnn equal pieces of length h=t/nh=t/nh=t/n. In each piece the path makes a random step ΔW\Delta WΔW, a normal number with mean 000 and variance hhh. Square every step and add the squares. For a smooth curve the sum shrinks to 000 as the pieces get smaller, because its steps are of size hhh and their squares of size h2h^{2}h2. A random path is different: each squared step is about hhh on average and there are nnn of them, so the sum settles at n⋅h=tn\cdot h=tn⋅h=t. This limit is the quadratic variation of the path.

[W]t=lim⁡n→∞∑i=1n(ΔWi)2=t,(dW)2=dt,dW dt=0,(dt)2=0[W]_t=\lim_{n\to\infty}\sum_{i=1}^{n}(\Delta W_i)^{2}=t,\qquad (dW)^{2}=dt,\quad dW\,dt=0,\quad (dt)^{2}=0[W]t​=n→∞lim​i=1∑n​(ΔWi​)2=t,(dW)2=dt,dWdt=0,(dt)2=0(1)

This one fact is what makes stochastic calculus different. In ordinary calculus a tiny step squared is so small that you drop it. Here the squared step is as large as time itself, so you must keep it. It is also something you can measure. Add up the squared daily returns of a stock and you get an estimate of its variance over that period, which is exactly how realised volatility is computed.

Volatility from 252 daily returnsSay each of 252 daily returns has size about 1%1\%1%. The sum of squares is 252×0.0001=0.0252252\times0.0001=0.0252252×0.0001=0.0252, and its square root is 0.15870.15870.1587. So the yearly volatility is about 15.9%15.9\%15.9%. No model was needed, only the squared steps.
  • Quadratic variation: the sum of squared steps. It is 000 for a smooth curve and ttt for Brownian motion.
  • Multiplication table: (dW)2=dt(dW)^{2}=dt(dW)2=dt, while dW dtdW\,dtdWdt and (dt)2(dt)^{2}(dt)2 are 000.
  • Realised variance is the sum of squared returns. It estimates σ2\sigma^{2}σ2 times the length of the period.

Lab · what's graded

  • Add the squared steps15 pts
  • A yearly volatility15 pts
  • How random is the sum?15 pts
  • The rule for a squared step15 pts
  • Match the vocabulary15 pts
  • Estimating a yearly volatility10 pts
  • Why Itô has an extra term15 pts
0/ 7 answered
Tasks
1Numeric answer15 ptsNot answered

A path moves by the four steps 0.5, −0.3, 0.4, −0.20.5,\,-0.3,\,0.4,\,-0.20.5,−0.3,0.4,−0.2. What is the sum of the squared steps?

q=q =q=accepted: ± 0.005
2Numeric answer15 ptsNot answered

Each of 252 daily returns is ±1%\pm1\%±1%, so each squared return is 0.00010.00010.0001. What is the yearly volatility, the square root of the sum of squares? Give it to four decimals.

vol=vol =vol=accepted: ± 0.0005
3Numeric answer15 ptsNot answered

Cut [0,1][0,1][0,1] into n=50n=50n=50 pieces. Each squared step (ΔW)2(\Delta W)^{2}(ΔW)2 has variance 2h22h^{2}2h2 with h=1/50h=1/50h=1/50. What is the variance of the sum of the 50 independent squared steps?

v=v =v=accepted: ± 0.001
4Choice15 ptsNot answered

In Itô calculus, what can you replace (dW)2(dW)^{2}(dW)2 with?

5Match15 ptsNot answered

Match each item with its value.

Pick the partner of each item on the left.

Quadratic variation of a smooth curve
Quadratic variation of Brownian motion on [0,t]
(dW)2(dW)^{2}(dW)2
Realised variance
6Order the steps10 ptsNot answered

Put the steps in order.

Drag to reorder, or focus an item, press Space to lift it, the arrow keys to move it and Space to drop it.

  1. 1Take the square root
  2. 2Square each return
  3. 3Compute the daily log returns
  4. 4Add them up and scale to a year
7Explain in words15 ptsNot answered

In one or two sentences, explain why Itô's calculus keeps a second-order term that ordinary calculus drops.

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