Exercise

Fit GARCH models to cryptocurrency

Financial markets tend to react to positive and negative news shocks very differently, and one example is the dramatic swings observed in the cryptocurrency market in recent years.

In this exercise, you will implement a GJR-GARCH and an EGARCH model respectively in Python, which are popular choices to model the asymmetric responses of volatility. You will work with a cryptocurrency dataset bitcoin_data, which contains two columns: "Close" price and "Return".

The bitcoin_data dataset has been preloaded for you, and the historical prices in the column "Close" have been plotted.

Instructions 1/2

undefined XP
  • 1
    • Define a GJR-GARCH model as gjr_gm.
    • Print and review the model fitting summary of gjrgm_result.
  • 2
    • Define an EGARCH model as egarch_gm.
    • Print and review the model fitting summary of egarch_result.