How it works...
In this recipe, we used the same data as in the previous recipe, in order to compare the results of the CCC- and DCC-GARCH models. For more information on downloading the data, please refer to Step 1 to 4 in the Implementing CCC-GARCH model for multivariate volatility forecasting recipe.
To work with Python and R at the same time, we used the rpy2 library. Here, we presented how to use the library in combination with Jupyter Notebook. For more details on how to use the library in a .py script, please refer to the official documentation (https://rpy2.readthedocs.io). Also, we do not delve into the details of R code in general, as this is outside the scope of this book.
In Step 1, aside from loading any libraries, we also had ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access