Rolling ARMA and forecast t+1
Posted: Wed Jan 18, 2012 8:29 am
Hi
i need to run a rolling regression for an arma model, forecast and compute the mean squared error.
For example, i take a sample of 100obs from a universe of 1000.
First i run the arma model for 100obs. Then i forecast the Y on t=101, E(Y_101/X_101). After that i compute the mean squared error with the actual observation, Y_100.
I'm not sure how to forecast only one step forward and then check the residual. That residual i'm losing it when i run my code.
Can you help me?
Thanks for your time.
i need to run a rolling regression for an arma model, forecast and compute the mean squared error.
For example, i take a sample of 100obs from a universe of 1000.
First i run the arma model for 100obs. Then i forecast the Y on t=101, E(Y_101/X_101). After that i compute the mean squared error with the actual observation, Y_100.
I'm not sure how to forecast only one step forward and then check the residual. That residual i'm losing it when i run my code.
Can you help me?
Thanks for your time.