Page 1 of 1

Forecasting Formula Normalized

Posted: Thu Jan 21, 2016 11:04 am
by sfawver@archmi.com
Can someone point me to more detail on what Eviews does when normalizing a series when forecasting? I would like to be able to hand calculate the forecast to check it.

This is from the Eviews help documentation.

If the formula can be normalized, EViews will compute the forecasts of the transformed dependent variable by first forecasting the normalized series and then transforming the forecasts of the normalized series. This methodology has important consequences when the formula includes lagged series. For example, consider the following two models:
series dhs = d(hs)
equation eq1.ls d(hs) c sp
equation eq2.ls dhs c sp

My estimation equation.

equation eq!i_2.ls dlog(hpi_fhfa)-dlog(hpif) dlog(hpi_fhfa(-1))-dlog(hpif(-1)) dlog(hpi_fhfa(-2))-dlog(hpif(-2)) dlog(hpi_fhfa(-3))-dlog(hpif(-3)) dlog(hpi_fhfa(-4))-dlog(hpif(-4)) log(hpi_fhfa(-1))-log(hpif(-1)) d(ur_sa)

My forecast.

eq!i_2.forecast hpa_fcst_!I

Eviews provides forecasts for hpi_fhfa

Re: Forecasting Formula Normalized

Posted: Thu Jan 21, 2016 11:41 am
by EViews Gareth
It just inverts whatever functional form you have.

Code: Select all

@dlog(Y) = log(Y)-log(Y(-1)) = log(Y/Y(-1)) take exponents of both sides exp(dlogy_hat) = exp(log(Yhat/Yhat(-1)) = Yhat/Yhat(-1) Yhat = exp(dlogy_hat) * Yhat(-1)
All you need to calculate Yhat is dlogy_hat (which you get from the equation) and the previous period's Yhat (or Y depending on dynamic or static forecast). For the first period of the forecast you just use the actual value of Y as Yhat.

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 9:00 am
by sfawver@archmi.com
I'm still not getting it. Can you take a look at my formula (column W) in the attached excel sheet?

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 10:11 am
by EViews Gareth
I think your algebra is wrong. You can't take the exp of both sides when you have two log terms like that.

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 10:21 am
by sfawver@archmi.com
Can you tell me what I need to change in the formula in column W?

=EXP(coef!$D$3*((E144/E143)-(L144/L143)))*E144

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 10:29 am
by EViews Gareth
That's outside the scope of what we here at EViews will provide. But perhaps some other forum user can help.

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 11:43 am
by sfawver@archmi.com
Ok, how would I do it in Eviews without using forecast?

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 11:58 am
by EViews Gareth
Same way, you'd invert the function.

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 12:40 pm
by sfawver@archmi.com
Figured it out. Thanks for all your great help Gareth. Great to see nothing has changed around here.

Re: Forecasting Formula Normalized

Posted: Fri Jan 22, 2016 2:26 pm
by sfawver@archmi.com
Here is the excel formula for anyone who is interested.

=L145*(E144/L144)*EXP((coef!$D$3*forecast!M145)+(coef!$E$3*forecast!N145)+(coef!$F$3*forecast!O145)+(coef!$G$3*forecast!P145)+(coef!$H$3*forecast!Q145)+(coef!$I$3*forecast!R145))