Where does the HP-filter estimates come from?
Posted: Wed Aug 24, 2011 7:39 am
Dear all,
I was trying to replicate the results obtained from the Eviews built-in Hodrick-Prescott filter, but I am a bit puzzled with some very small discrepancies.
I tried the matrix solution as in http://forums.eviews.com/viewtopic.php? ... k+prescott, but the results are not exaclty the same as those obtained directly from the hpf function (or by the series Proc menu), with some very small differences I agree, but still not the same. This led me to conclude that Eviews does not use this solution, which is more computationally expensive for long series due to the matrix inversion.
Then I tried with a state space formulation of an unobserved components model, with the following specification:
where lambda is a scalar object set to 1600.
Still, there are discrepancies with those obtained from the hpf function. I can see that my specification of the sspace may be innapropriate due to the lack of specification of initial state values. Thus, my guess is that Eviews function hpf computes the HP-filter using a sspace approach, but I wonder what would then be the correct specification to mimic this function?
Regards,
Jaqueson
I was trying to replicate the results obtained from the Eviews built-in Hodrick-Prescott filter, but I am a bit puzzled with some very small discrepancies.
I tried the matrix solution as in http://forums.eviews.com/viewtopic.php? ... k+prescott, but the results are not exaclty the same as those obtained directly from the hpf function (or by the series Proc menu), with some very small differences I agree, but still not the same. This led me to conclude that Eviews does not use this solution, which is more computationally expensive for long series due to the matrix inversion.
Then I tried with a state space formulation of an unobserved components model, with the following specification:
Code: Select all
@signal y = x + [var = c(1)]
@state x = x(-1) + x_change(-1)
@state x_change = x_change(-1) + [var = c(1)/lambda]
Still, there are discrepancies with those obtained from the hpf function. I can see that my specification of the sspace may be innapropriate due to the lack of specification of initial state values. Thus, my guess is that Eviews function hpf computes the HP-filter using a sspace approach, but I wonder what would then be the correct specification to mimic this function?
Regards,
Jaqueson