Comparing a forecast to the mean
Moderators: EViews Gareth, EViews Moderator
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Comparing a forecast to the mean
Can someone tell me how I can compare a forecasts RMSE to the unconditional mean?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Comparing a forecast to the mean
Regress on just a constant?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Comparing a forecast to the mean
Code: Select all
series ymean = @mean(y)
scalar rmse = @rmse(yf, ymean)
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
Great idea startz, thanks.
EViews Gareth, I tried your code and it says yf is not defined
EViews Gareth, I tried your code and it says yf is not defined
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Comparing a forecast to the mean
Gareth meant
Code: Select all
scalar rmse = @rmse(y, ymean)-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
Amazing. Thank you both! :D
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Comparing a forecast to the mean
No, I meant yf, where yf is your forecast of y.
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
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?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Comparing a forecast to the mean
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?
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
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.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Comparing a forecast to the mean
Then y, not yf.
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
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?
scalar rmse = @rmse(yf, y)
is to find the RMSE of the forecast?
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Comparing a forecast to the mean
Wonderful, thank you very much
Who is online
Users browsing this forum: No registered users and 2 guests
