Hi Tom,
From your posts, you seem to support expanding window approach over rolling window. Is there any reference for this in the literature?
Note, BTW, that "rolling sample" GARCH models are really not a good idea. Fixing the start, and moving the end to do simulated out-of-sample forecasts has some value. Moving the start along with the end isn't well-motivated.
hasanov wrote:Hi Tom,
From your posts, you seem to support expanding window approach over rolling window. Is there any reference for this in the literature?
Note, BTW, that "rolling sample" GARCH models are really not a good idea. Fixing the start, and moving the end to do simulated out-of-sample forecasts has some value. Moving the start along with the end isn't well-motivated.
Many thanks
Fixed start-moving end is what the Kalman filter does for linear models and there is an obvious reason for using it, as the estimates through time T won't be correlated with out-of-sample forecast errors for T+1 to T+h. A better question is what the point is for a moving window for something like a GARCH model. Is there any model for the data that justifies it?
## REG11. Regression Position 11 Should Be Between 1 and 6
The Error Occurred At Location 1412, Line 67 of loop/block
What could be the cause for this error?
Thank you
That wouldn't be from those instructions---probably from a TEST instruction. Look at line 67 in the loop (note the information on the location of the error).
As indicated in the User's Guide, @MVGARCHFore procedure produces out-of-sample variance forecasts for many standard MGARCH models. Does this also apply to MGARCH model estimated with skew t distribution ?
I am facing the following issue after some the loop calculations:
## MAT14. Non-invertible Matrix. Using Generalized Inverse for SYMMETRIC.
The Error Occurred At Location 651, Line 59 of MVARCHTEST
C:\USERS\mvarchtest.src Line 87
Called From Location 2014, Line 38 of loop/block
Do you have any idea on how to settle this issue? Is it because I am using mvarchtest.src ? Was there any update in this source?
The cross products of the lags produce a singular matrix (@MVARCHTEST runs a multivariate regression of cross products on lagged cross products, so it can be pretty big). How long is your estimation window, and how many variables do you have in the model?
I am using the recursive (i.e., expanding) window with a three-variable model.
Initial estimation window size is 2300 observations then it increases by 5 in every iteration until it reaches 3850.
The problem arises when multivariate skew t and/or t distributions are used in the estimations. However, there is no issue with multivariate normal and GED.
I removed the loop part of the code to understand the following issue.
## MAT14. Non-invertible Matrix. Using Generalized Inverse for SYMMETRIC.
The Error Occurred At Location 651, Line 59 of MVARCHTEST
C:\Users\Public\Documents\Estima\WinRATS Std 10.0\mvarchtest.src Line 87
Would you please have a look at what is causing this problem with distrib=GED and distrib=t. The code is running with "distrib=norm" without any issue.
Have you looked at your data? RETS1 has a couple of one period 20+ standard deviation spikes followed by immediate corrections. Offhand they look like data typos. There is no way a GARCH model can explain that. Basically, maximum likelihood is going to do everything it can to explain 4 data points out of roughly 1200. Your t estimates don't converge because the t is going to push the degrees of freedom towards 2 (where the log likelihood is no longer computable). Your oil price series is basically step function for the last few years, rather than moving day to day. Again, that's not the behavior of a GARCH process.
The following piece of code works fine to forecast Ht matrix elements.
@MVGarchFore(MV=BEKK, steps=step) hh rv
*
do i=1,step
compute hhat11(regend+i) = hh(regend+i)(1,1)
compute hhat22(regend+i) = hh(regend+i)(2,2)
compute hhat12(regend+i) = hh(regend+i)(1,2)
end do i
In addition to the above, I want the code to compute VAR forecasts (returns) and save in the pre-created object in every window as I did with hhat11 or hhat22.
I would be appreciated if you could give some guidance on this matter.