Page 1 of 1
Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 4:17 pm
by miorinnovo
Can someone tell me how I can compare a forecasts RMSE to the unconditional mean?
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 4:29 pm
by startz
Regress on just a constant?
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 4:36 pm
by EViews Gareth
Code: Select all
series ymean = @mean(y)
scalar rmse = @rmse(yf, ymean)
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 5:09 pm
by miorinnovo
Great idea startz, thanks.
EViews Gareth, I tried your code and it says yf is not defined
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 5:12 pm
by startz
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 5:18 pm
by miorinnovo
Amazing. Thank you both! :D
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:14 pm
by EViews Gareth
No, I meant yf, where yf is your forecast of y.
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:18 pm
by miorinnovo
Oh, ok. So is it the RMSE of using the mean to forecast though? If so why do we need the forecast variable in there?
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:20 pm
by startz
Do you want to find the rmse of your forecast compared to the mean, or do you want to compute the rmse of the mean compared to the original series?
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:29 pm
by miorinnovo
So I want to compare my forecasts RMSE compared to the RMSE that I would get if I just used the mean as my forecast.
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:33 pm
by startz
Then y, not yf.
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:35 pm
by miorinnovo
Ok, and that code gives the RMSE of the mean as a forecaster, and
scalar rmse = @rmse(yf, y)
is to find the RMSE of the forecast?
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:39 pm
by startz
yes
Re: Comparing a forecast to the mean
Posted: Fri Mar 06, 2015 6:45 pm
by miorinnovo
Wonderful, thank you very much