The Hodrick-Prescott (HP) filter is the optimal estimator of the trend component in a smooth trend model with signal-to-noise ratio parameter fixed at 1/1600. It gives the detrended observations, , for large samples and t not near the beginning or end of the series
Bear in mind that if the smooth trend model was believed to be the true model there would be no reason to apply the HP filter. The filtered data of a smooth trend model contain nothing more than white noise. The belief here is clearly different.
We can easily show that the gain from the detrending filter is given by:
Note that the smaller the the more the filter concentrates on removing low frequencies.