> For the complete documentation index, see [llms.txt](https://docs.riskprotocol.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riskprotocol.io/protocol-design-and-specifications/risk-engine/forecasting-volatility.md).

# Forecasting Volatility

One of the most important variables in determining the prices of the RiskON and RiskOFF instruments is the volatility of the underlying assets, such as BTC or ETH. TRP has conducted a systematic study on various attributes of cryptocurrency return volatilities for the top 50 cryptocurrencies (see [Gosal, McMurran, and Ding 2022 ](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4954736)for details). Our research shows that most stylized facts observed in other financial market instruments, such as equities, bonds, and foreign exchange rates, also hold for cryptocurrency returns.

For BTC and ETH, there are two significant features of return volatility that are commonly found in other financial data:

1. The leverage effect, which states that future volatility is usually higher if the underlying price goes down than when it goes up by the same amount (see Black 1976).
2. The long-memory property of speculative returns (see Ding, Granger, and Engle 1993), which shows that autocorrelations in absolute or squared returns decay hyperbolically instead of exponentially. The long-memory property is especially evident in high-frequency financial data.

To capture these stylized facts in the return and volatility generating process, we use the two-component GARCH-GJR specification (see [Ding, Gosal, and McMurran 2024](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4921210)) to model the volatility process. The conditional variance equation is specified as follows:

$$
\begin{align\*}
\sigma\_t^2 &= \frac{\alpha\_0}{(1-\beta\_1)(1-\beta\_2)} + \frac{\alpha\_1 + \varphi\_1 S\_{t-1}}{1-\beta\_1 B} \varepsilon\_{t-1}^2 + \frac{\alpha\_2 + \varphi\_2 S\_{t-1}}{1-\beta\_2 B} \varepsilon\_{t-1}^2 \\
&= \alpha\_0 + \left\[ (\alpha\_1 + \alpha\_2) + (\varphi\_1 + \varphi\_2)S\_{t-1} \right] \varepsilon\_{t-1}^2 \\
&\quad - \left\[ (\alpha\_1 \beta\_2 + \alpha\_2 \beta\_1) + (\beta\_2 \varphi\_1 + \beta\_1 \varphi\_2)S\_{t-2} \right] \varepsilon\_{t-2}^2 + (\beta\_1 + \beta\_2)\sigma\_{t-1}^2 - \beta\_1 \beta\_2 \sigma\_{t-2}^2
\end{align\*} (1)
$$

$$
\text{where } \varepsilon\_t \text{ is the de-meaned returns (residuals) with conditional mean 0 and standard deviation of } \ \sigma\_t,
\text{and } S\_{t-k} = \begin{cases}
1 & \text{if } \varepsilon\_{t-k} < 0, \\
0 & \text{if } \varepsilon\_{t-k} \geq 0
\end{cases} \quad \text{for } k=1,2
$$

is the GJR term (see Glosten, Jaganathan, and Runkle 1993) in the conditional variance equation to capture the asymmetric leverage effect of the volatility process. The two volatility components capture both long-term memory and short-term fluctuations in the volatility process.

*Our research shows that the two-component GARCH-GJR model captures the volatility dynamics in cryptocurrencies quite well*. Among the GARCH family of models, the two-component GARCH-GJR model performed best in backtesting, as measured by both the Bias-stat and Q-stat. It also outperformed implied volatility overall.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.riskprotocol.io/protocol-design-and-specifications/risk-engine/forecasting-volatility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
