Hello Gareth, thanks for your answer!
Assuming that a is the actual series, and f the forecast series, the definition you posted is the same I was using.
However, I didn't manage to replicate the U2 computed by Eviews (I'm using Eviews 10).
I've made a small program to illustrate it, it's in the end of the post.
The scalar "U2", calculated as you told me, is 0.943587.
And the "Theil U2" presented in the forecast evaluation results is 0.971317.
Can you please check if I've made some mistake?
Thanks! Best,
Sergio
Assuming that a is the actual series, and f the forecast series, the definition you posted is the same I was using.
However, I didn't manage to replicate the U2 computed by Eviews (I'm using Eviews 10).
I've made a small program to illustrate it, it's in the end of the post.
The scalar "U2", calculated as you told me, is 0.943587.
And the "Theil U2" presented in the forecast evaluation results is 0.971317.
Can you please check if I've made some mistake?
Thanks! Best,
Sergio
Code:
wfcreate m 2013M12 2014M12
series a
series f
a.fill 1.66, 1.93, 1.95, 2.12, 2.48, 2.62, 2.35, 2.16, 2.12, 1.73, 1.45, 1.24, 0.62
f.fill NA, 1.84, 1.92, 1.96, 2.31, 3.61, 2.45, 2.01, 1.99, 1.81, 1.65, 1.21, 1.13
genr sq_fpe = ((f-a)/a(-1))^2
genr sq_ape = ((a(-1)-a)/a(-1))^2
scalar fpe2 = @sum(sq_fpe)
scalar ape2 = @sum(sq_ape)
scalar U2 = @sqrt(fpe2/ape2)
a.fcasteval f
show U2