Standard error calculation using log transformation
Posted: Fri Sep 03, 2010 8:33 am
Hi Everyone!!
I have a question about the standard errors which Eviews calculates when you make a forecast. A simple example:
When I have the regression
log(X) c
I can make a forecast of the variable X and of the variable log(X), and I can save the mean and standard error of them! I'm currently working with an more complex regression, but I want to transform the mean and standard error from the forecast from the variable log(X) to X. So I have mean_logx and se_logx. To get the mean for the variable x I make the calculation:
mean_x = @exp(mean_logx) This works, I get the identical mean_x which Eviews gives me.
But then the se... I assume log(X) is normal distributed, so X is lognormal distributed. So the standard deviation is then:
stdev_x = @sqrt(@exp(stdev_logx^2)-1)*@exp(mean_logx) When I use for stdev_logx the se_logx... I don't get the same results as Eviews gives me...
What's is the problem.. I really need an answer :) How does Eviews calculates the standard error when he makes a forecast..?
Thanks in advance!!
I have a question about the standard errors which Eviews calculates when you make a forecast. A simple example:
When I have the regression
log(X) c
I can make a forecast of the variable X and of the variable log(X), and I can save the mean and standard error of them! I'm currently working with an more complex regression, but I want to transform the mean and standard error from the forecast from the variable log(X) to X. So I have mean_logx and se_logx. To get the mean for the variable x I make the calculation:
mean_x = @exp(mean_logx) This works, I get the identical mean_x which Eviews gives me.
But then the se... I assume log(X) is normal distributed, so X is lognormal distributed. So the standard deviation is then:
stdev_x = @sqrt(@exp(stdev_logx^2)-1)*@exp(mean_logx) When I use for stdev_logx the se_logx... I don't get the same results as Eviews gives me...
What's is the problem.. I really need an answer :) How does Eviews calculates the standard error when he makes a forecast..?
Thanks in advance!!