Skip to content
All library documents

Computing Integrated Variance Moments in the Heston Model

Article Quant Q&A · Author: Alex

Summary

The document asks how to calculate the variance of integrated variance in the Heston stochastic-volatility model. It connects the problem to the closely related Cox-Ingersoll-Ross square-root process, whose integrated state variable has a known characteristic function. Derivatives of that function at zero yield moments: the first derivative gives the mean, and the second derivative gives the second moment needed for variance.

The response also describes approximating the second derivative with a centered finite difference, avoiding lengthy symbolic differentiation. A separate answer gives a general Clark-Ocone representation of the variance through a Malliavin derivative, but notes that completing the resulting expectation may not be simple. The characteristic-function approach offers a route to moments, though numerical differentiation needs care, and the response flags possible root-sign subtleties analogous to those encountered in Heston calculations.

Key ideas

  • Integrated variance in the Heston model is related to an integrated CIR square-root process.
  • The characteristic function of the integrated process can be differentiated to obtain its moments.
  • The variance follows from the first and second moments of integrated variance.
  • A centered finite difference can approximate the second derivative numerically.
  • A Malliavin-calculus representation is available, though evaluating it may remain difficult.

Tags

Full text
# Heston: Variance of Integrated Variance


# Heston: Variance of Integrated Variance












Consider the standard Heston model\begin{align*} dX&=\left(r-\frac{1}{2}v\right)dt+\sqrt{v}dB,\\ dv&=\kappa(\theta-v)dt+\xi\sqrt{v}dW, \\ dBdW&=\rho dt. \end{align*} Computing $\mathbb{E}\int_0^t v_sds$ is simple but does anyone have a reference for \begin{align} Var\left(\int_0^t v_sds\right) \end{align} or is there a simple trick to solve this integral and compute its second moment?

Using Ito's Lemma ($d(tv)=vdt+tdv$) and using the SDE for $dv$, I only got \begin{align} \int_0^t v_udu=tv_t-\frac{1}{2}\kappa\theta t^2+\kappa\int_0^t u v_udu-\xi\int_0^t u\sqrt{v_u}dW_u, \end{align} which doesn't look too helpful.

## Answer by Kevin (score 5, accepted)

https://quant.stackexchange.com/a/66183

Studying zero-coupon bond prices in the CIR (1985) short rate model, $\text{d}r_t=\kappa(\theta-r_t)\text{d}t+\xi\sqrt{r_t}\text{d}W_t$, Hirsa (2013, Section 1.2.6.2) states that the characteristic function of the realised interest rate $R_t=\int_0^t r_s\text{d}s$ is \begin{align*} \varphi_{R_t}(u)=\mathbb{E}\left[e^{iuR_t}\right] = A_t(u)e^{B_t(u)r_0}, \end{align*} where \begin{align*} A_t(u) &= \frac{\exp\left(\frac{\kappa^2\theta t}{\xi^2}\right)}{\left(\cosh\left(\frac{1}{2}\gamma t\right)+\frac{\kappa}{\gamma}\sinh\left(\frac{1}{2}\gamma t\right)\right)^{2\kappa\theta/\xi^2}}, \\ B_t(u) &= \frac{2iu}{\kappa+\gamma\coth\left(\frac{1}{2}\gamma t\right)},\\ \gamma &= \sqrt{\kappa^2-2\xi^2iu}. \end{align*}

As you say, $\mathbb{E}[R_t]$ can be easily computed using Fubini's theorem but from here you also have $$\mathbb{E}[R_t]=-i\varphi_{R_t}'(0).$$ The variance is \begin{align} \mathbb{V}\text{ar}[R_t] &= \mathbb{E}[R_t^2] - \mathbb{E}[R_t]^2 \\ &=-\varphi_{R_t}''(0) + \varphi_{R_t}'(0)^2. \end{align} Computing these derivatives may be ugly. You could use finite differences instead, $$\mathbb{E}[R_t^2]\approx-\frac{\varphi_{R_t}(-h)-2\varphi_{R_t}(0)+\varphi_{R_t}(h)}{h^2}=\frac{2-\varphi_{R_t}(-h)-\varphi_{R_t}(h)}{h^2}.$$

Note A similar term to $\gamma$ appears in the characteristic function of the log stock price of the Heston (1993) model. One needs to be careful with the sign of the root (``little Heston trap''). I'm not sure whether the same applies here.

## Answer by user34971 (score 4)

https://quant.stackexchange.com/a/66181

A partial but general answer:

Let $\mathcal{F}_t^W$ be the filtration generated by $W$. Since $X_T = \int_t^T v_u du$ is $\mathcal{F}_T^W$ measurable, the Clark-Ocone-Haussman formula states $$ X_T = E_t[X_T] + \int_t^T E_u \left[ D_u^W X_T \right] dW_u $$ with $D_u^W X_T$ denoting the Malliavin derivative of $X_T$ with respect to $W_u$.

Hence, $$ Var(X_T) = E_t \left[ \left( X_T - E_t[X_T] \right)^2 \right] = E_t \left[ \int_t^T \left( E_u \left( D_u^W X_T \right) \right)^2 du \right] $$

I think the Malliavin derivative $D_u^W X_T$ can be calculated explicitly for the Heston model, and perhaps then also the expectation of integral on the right hand side. If I have time I'll check this for you and for myself.

I do not think there is a simpler way to calculate the variance exactly and in full generality.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.