6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb....

21
Applied Econometrics Seminar 6 GARCH models cont. (Empirical modeling) Please note that for interactive manipulation you need Mathematica 6 version of this .pdf. Mathematica 6 will be available soon at all Lab's Computers at IES http://staff.utia.cas.cz/barunik Jozef Barunik ( barunik @ utia. cas . cz ) |

Transcript of 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb....

Page 1: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Applied Econometrics

Seminar 6GARCH models cont.(Empirical modeling)

Please note that for interactive manipulation you need Mathematica 6 version of this .pdf. Mathematica 6 will be available soon at all Lab's Computers at IES

http://staff.utia.cas.cz/barunikJozef Barunik ( barunik @ utia. cas . cz )

|

barunik
Typewritten Text
barunik
Typewritten Text
barunik
Typewritten Text
barunik
Typewritten Text
barunik
Typewritten Text
Page 2: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Outline

We went through most of the theory during last 2 lectures and 1 seminar

So we know empirical strategy of fitting ARIMA-GARCH models

We will introduce TGARCH modeling and see how it can improve our results

We will introduce other forms of GARCH - EGARCH, IGARCH, GARCH-M

We will also test Multivariate GARCH model

|

2 Seminar6.nb

Page 3: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

ARIMA-GARCH on SAX

Today we will begin with following data:SAX_1998_2008.txt - Slovak index

|

Seminar6.nb 3

Page 4: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

ARIMA-GARCH on SAX cont.

ACF and PACF does not show any significant dependen-cies:

If we fit ARIMA, we can see, that ARIMA(1,1,1) is not notably better than ARIMA(0,1,0) Forecasting??? model is useless !!!

|

4 Seminar6.nb

Page 5: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

ARIMA-GARCH on SAX cont.

ARCH-LM test strongly rejects the null hypothesis of no conditional heteroskedasticity in SAXresiduals from ARIMA(1,1,1), Let's have a look at SQUARED RESIDUALS ACF ANDPACF !!!

|

Seminar6.nb 5

Page 6: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

GARCH

from ACF and PACF of squared residuals from ARIMA(1,1,1) and from ARCH-LM test wecan see, that there are further dependencies in the data, thus we will model them by allowing forheteroskedasticity: ARCH, and GARCH models.

please note that ARCH and GARCH is able to model all the empirically found properties ofstock market returns as excess volatility, volatility clusters, also fat tails which tells us that thereis greater probability of unexpected events

BUT these effects are much weaker then AR dependencies, so we will not expect high degree ofvariance explained !

|

6 Seminar6.nb

Page 7: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

ARIMA-GARCH on SAX cont.

We will fit the ARCH, GARCH until there is no dependencies left in residuals: ARIMA(1,1,1)-GARCH(1,1) best describes the data. BUT ARCH-LM test still shows some degree of dependen-cies... so maybe TGARCH ?Let's have a look at how we modeled volatility of the SAX index: (resp. residuals - second plot)

|

Seminar6.nb 7

Page 8: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

TGARCH

We will find that certain assymetries might govern the financial time series

leverage effect:What happends when bad news / good news arrive to the market?Does it have the same effect? Or it's assymetric?How does it affect our model?

Commonly, returns are assymetric, and if we do not allow for such assymetry, we have assymet-ric residuals.

|

8 Seminar6.nb

Page 9: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

TGARCH on SAX index

Following model allows for assymetries in resudials: TGARCH - Treshold GARCH:

st2 = w+ g1 ut-1

2 + g1- ut-1

2IHut-1<0L + b1 st-1

2 ,

where IH.L denotes indicator function which is 1 for past innovations with negative effect. Assy-

metric effect is covered by the TGARCH model if g1->0

Back to SAX index:

We can see that g1- is not significant, thus TGARCH does not improve our estimate, and data

does not seem to have significant asymmetry effect|

Seminar6.nb 9

Page 10: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Other Extensions of GARCH - More Theory

You can see, that GARCH is just special case of TGARCH, it is TGARCH without assymetries.

We also know other models which can deal with different observations in data. Most importantextensions to GARCH are following:

GARCH-M: GARCH in mean, when the returns are dependent directly on their volatilityEGARCH: Exponential GARCH - leverage effect is exponentialIGARCH: unit-root GARCH, the key is that past squared shocks are persistent

Let's have a look at demonstrations on how does these forms look like (using power of Mathemat-ica 6)(Unfortunatelly we are not able to estimate these using JMulti, so we will have to use anothersoftware, i.e. Eviews

|

10 Seminar6.nb

Page 11: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Example of AR(1)-TAR-GARCH(1,1)

Let's consider another form of AR(1)-TAR-GARCH(1,1) model, which is AR(1), Two regimeGARCH(1,1) model:

rt = f0 + f1 rt-1 + at ,at = st et

st2 = : a0 + a1 at-1

2 + b1 st-12

at-1 § 0

a2 + a3 at-12 + b2 st-1

2at-1 > 0

we choose Treshold, which will switch between two processes, or two regimes, and deal differ-ently with assymetries

|

Seminar6.nb 11

Page 12: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Example of AR(1)-TGARCH(1,1) cont.

ARH1L-TAR-GARCHH1,1L

Simulated series Simulated Volatility

treshold - k -4.8

f0 0.6

f1 0.5

a0 0.5

a1 0.3

b1 0.2

a2 0.5

a3 0.3

b2 0.5

New Random Case

Export

Simulated Series

100 200 300 400 500

10

20

30

40

50

60

70

|

12 Seminar6.nb

Page 13: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

GARCH-M

The return of a security may sometimes depend directly on volatility. To model this, we useGARCH in mean (GARCH-M) model. GARCH(1,1) - M is formalized as:

rt = m + cst2 + at

at = st et ,st2 = a0 + ai at-1

2 + b1 st-12 ,

where m and are constant. is also called risk premium|

Seminar6.nb 13

Page 14: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Example GARCH(1,1)-M artificial processes

Note, that with positive risk premium c, returns are positively skewed, as they are positivelyrelated to its past volatility

Sample GARCHH1,1L-M ACF function of at

2 PACF function of at

2

risk premium c -0.405

a0 0.552

a1 0.324

b1 0.578

New Random Case

Export

Simulated Series

100 200 300 400 500

-30

-20

-10

|

14 Seminar6.nb

Page 15: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

IGARCHIGARCH models are unit-root GARCH models, their key feature is, that past squared shocks ispersistent. IGARCH(1,1) is formalized as:at = st et ,st2 = a0 + b1 st-1

2 + H1 - b1L at-12

Example IGARCH(1,1) artificial processes

IGARCHH1,1L

Simulated series Simulated Volatility

a0 0.808

b1 0.308

New Random Case

Export

Simulated Series

100 200 300 400 500

-10

-5

5

10

|

Seminar6.nb 15

Page 16: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

EGARCH

more complicated (only for interested students as refer-ence)

logHst2L = w+⁄i=1q b j logIst- j2 M+⁄i=1p aiet-i

st-i+⁄k=1r gk

et-k

st-k,

while left side is log of the conditional variance, leverage effect is expected to be exponential,rather than quadratic, and forecasts will be nonnegative.

We can test for presence of leverage effect by testing the null hypothesis that gi < 0, the impactwill be asymmetric if g 0.

|

16 Seminar6.nb

Page 17: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Multivariate GARCH

Straighforward generalization of univariate models.

Modeling of covariances and correlations - forecasting.We allow covariances and correlations to be time-varying.

Problem? very large number of parameters to be estimated.

In JMulTi - BEKK form, quasi maximum likelihood estimator (you should know other formsfrom lecture).

|

Seminar6.nb 17

Page 18: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Multivariate GARCH on PX and WIG

load PX_WIG_2005_2009.txt dataset - Prague and Warsaw indices in 2005-2009 years

|

18 Seminar6.nb

Page 19: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Multivariate GARCH on PX and WIG cont.

|

Seminar6.nb 19

Page 20: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Multivariate GARCH on PX and WIG cont.

and look at the residuals left, do all the necessary testing...

|

20 Seminar6.nb

Page 21: 6 Seminar - CASstaff.utia.cas.cz/barunik/files/appliedecono/Seminar6.pdf · 6 Seminar .nb. ARIMA-GARCH on SAX cont. We will fit the ARCH, GARCH until there is no dependencies left

Questions

Now you know how proceed with your Term paper !

Good Luck :-)|

Seminar6.nb 21