Skip to content
All library documents

Implementing Time-Shifted Power-Law Kernels for Volatility

Article Quant Q&A · Author: s5s

Summary

The document asks how to implement time-shifted power-law kernels used in a path-dependent volatility model. The model forms volatility from a baseline plus weighted past returns and weighted squared returns. Separate kernels assign the lag-dependent weights to those two histories. A positive time shift prevents the power law from becoming singular at very small lags, while the exponent controls its decay. The normalization term is the integral of the shifted power law over the continuous time domain.

The reply clarifies that this normalization is not related to a normal-distribution density. Under the stated continuous-time formulation, the integral has a closed-form expression, so numerical integration is unnecessary for that factor. In implementation, the kernel weights recent observations more heavily and diminish for older ones; the model’s parameters must be calibrated from market data. The answer illustrates the weighting with a toy price path but reports no validation or predictive results. Practical discretization, sampling frequency, and calibration details remain dependent on the paper’s method and the data being modeled.

Key ideas

  • The first kernel weights past returns, while the second weights past squared returns.
  • The time shift keeps the power-law kernel finite at small lags.
  • The normalization factor is the integral of the shifted power law, not a normal probability density.
  • The continuous-time normalization has a closed form, while kernel parameters still require calibration.
  • The kernel gives greater weight to recent observations and less to distant history.

Tags

Full text
# Time-shifted power law in path dependent volatility


# Time-shifted power law in path dependent volatility












I can't understand a function which is part of a volatility model.

This is all explained in an open access paper titled "Volatility is (mostly) path-dependent" by Guyon and Lekeufack. My understanding after reading the paper is that we can model volatility as a simple regression of

$$ \sigma_t = \beta_0 + \beta_1 R_{1,t} + \beta_2 \sqrt{R_{2,t}} $$

The paper fits this equation on realized volatility (RV) and implied volatility (IV). This means that $\sigma_t$ is RV or IV and

$$ r_{t_i} = \frac{S_{t_i} - S_{t_{i-1}}}{S_{t_{i-1}}} $$

$$ R_{1,t} = \sum_{t_i \le t} K_1(t-t_i)r_{t_i} $$

and

$$ R_{2,t} = \sum_{t_i \le t} K_2(t-t_i)r_{t_i}^2 $$

Now, $K_1(t)$ and $K_2(t)$ can be one of a number of decay function but the one the model uses is a time-shifted power law (see p. 8 of paper):

$$ K(\tau) = K_{\alpha, \delta}(\tau) = Z^{-1}_{\alpha, \delta}(\tau + \delta)^{-\alpha}, \quad \tau \ge 0, \quad \alpha > 1, \delta > 0 $$

where in the continuous time limit

$$ Z_{\alpha, \delta} = \int_0^\infty (\tau + \delta)^{-\alpha} d \tau = \frac{\delta^{1-\alpha}}{\alpha -1} $$

Now, I can't understand how to implement the $K(\tau)$ functions. I just don't understand what $Z^{-1}_{\alpha, \delta}(\tau)$ is and how to implement it numerically. Is $Z(t)$ connected to the normal distribution pdf?

## Answer by alexbougias (score 1)

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

The time-shifted power-law kernels $K_1 (t)$ and $K_2 (t)$ assign a weight to past returns and squared returns, respectively. Each kernel is a function of the following parameters: lag parameter $\tau>0$, time-shift $\delta>0$ that ensures that the kernel does not blow up when $\tau$ becomes very small, and $\alpha>1$ is the scaling exponent of the power-law distribution. The term $Z_{\alpha,\delta}$ is a component of this kernel, which integrates the time-shifted power-law function over the time domain. As the author uses a continuous limit, there is no need for numerical integration. To implement the kernel functions in practice, one needs to calibrate the parameters $\alpha$ and $\delta$. I will treat them as known, since the paper describes how these parameters can be calibrated from market data.

To calculate the $K(\tau)$ function in practice, I created a toy example in Excel, considering a random path for the stock price $S_t$. As we can see, the kernel function assigns higher weights to the most recent returns, and vanishes over time.

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.