Login
Login

Reply To: Question about VARMA forecast

Home 21090308 Forums Numerical Method Statistics Question about VARMA forecast Reply To: Question about VARMA forecast

#2668
hao.ding
Member

Hi ozcanalp,

Sorry for the late reply.

The model that is passed to VARMAForecastOneStep should be a zero mean model. You can get the demeaned model easily by (following your code): varmaModel.getDemeanedModel(). Therefore, changing
“instance = new VARMAForecastOneStep(X_T, varmaModel);”
to
“instance = new VARMAForecastOneStep(X_T, varmaModel.getDemeanedModel());”

should solve your problem. And finally add the mean back to get the forecast of the original VARMA model.

Please let me know if there is anything else I can help.

Best wishes,
Ding Hao