Non-invertible Matrix - Diebold and Yilmaz(2009)

Questions and discussions on Vector Autoregressions
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

Hi everyone,

I have used (with small modification) the example RATS code for Diebold and Yilmaz (2009) to estimate a VAR. When I use the generalized spillover measure setting to compute the rolling window spillover index, I got the error message: "Non-invertible Matrix". I was wondering whether somebody knows how to modify the code FactorMatrix=%sigma*inv(%diag(%sqrt(%xdiag(%sigma)))) to fix the "non-invertiable matrix" problem?

many thanks
anozman
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by TomDoan »

That matrix can only be singular if %SIGMA has zero diagonal elements. Are you sure you aren't using a rolling window which is too small? You should probably take the NOPRINT option off the ESTIMATE so you can see what's going on.
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

Hi Tom,

You are right. When I set the weekly series rolling window to 150 weeks for a one lag eight variable VAR, the model started to produce results. But I was wondering whether the 150 week window is sufficiently long for me to produce the reliable weekly spillover index. Any suggestions?

Many thanks,
Anozman
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

Hi Tom,

is it possible to use MS-VAR (@MSVARSetup) as the base model to estimate Diebold et al's spillover index?

Best regards,
anozman
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by TomDoan »

anozman wrote:Hi Tom,

is it possible to use MS-VAR (@MSVARSetup) as the base model to estimate Diebold et al's spillover index?

Best regards,
anozman
You can. The spillover index is a function of a VAR (coefficients and covariance matrix) and it doesn't really matter how that gets estimated. Obviously, you'll get different measures for the different regimes.
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

Hi Tom,

Many thanks for your confirmation. All my variables are I(1) variables. Would this be an issue if I set up the MS-VAR for the level, not the difference. What I can see is that all I(1) variables have a shift in both mean and variance. What I need to check to ensure the MS-VAR is acceptable?

Best regards,
Jin
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by TomDoan »

I(1) processes have no mean, so I assume you intend that it has switching intercepts (which will be innovational shifts).

There is nothing wrong with a MS VAR being I(1). You want to check that the standardized residuals are serially uncorrelated, that there isn't any obvious sign that the switch is either unnecessary or uninteresting (one-time switch rather than MS) and that you can make sense out of both regimes.
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

thank you very much Tom. Am I right to say VECM can also be used to produce DY's spillover index? Could you please tell me whether any things I need to check if I use a VECM instead of a VAR, as I have found a couple of co integration relations in the data by using trace tests?

Regards,
Anozman
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by TomDoan »

There's nothing you need to check. It's a calculation which doesn't depend upon stationarity of the process. The only difference between stationary and non-stationary processes would be that the spillover measures would eventually converge with a stationary process as the horizon gets larger, and won't necessarily if the process is non-stationary. However, you fix a specific horizon anyway, so that doesn't really come into play.
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by anozman »

Thank you very much Tom for your timely feedback!

I have another question: would the spillover index be influenced if I just use a simple VAR without taking into account the co-integration relationships and why (I would think the MA representation is going to different, so is the variance decomposition)?

cheers,
anozman
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Non-invertible Matrix - Diebold and Yilmaz(2009)

Unread post by TomDoan »

If "influenced" means would you get a different answer, yes. The VECM is a restricted form of the VAR, so the coefficients and covariance matrix are different. Theoretically, the differences should be minor since if the VECM is correctly specified the VAR coefficients should converge to it at rate T.
Post Reply