Home   >   User Resources   >   Online Help   >   apaHPFilter
 

 

Function index Version 3.0.0

apaHPFilter(TimeSeries, Lambda)

Excel=apaHPFilter(TimeSeries, Lambda)

Result

Applies the Hodrick-Prescott filter to a time series and returns the trend component.

Syntax

TimeSeries: r x 1 data vector containing a time series

Lambda: smoothing parameter (common practice is 1600 for quarterly, 100 for annual and 14'400 for monthly data)

Algorithm

Assuming that a time series yt consists of a trend taut and a cyclical component ct, the Hodrick-Prescott filter determines taut such that…

Formula

Remarks

See the econometric literature for details. The HP filter is frequently used in business cycle analysis (e.g. determination of the output gap).

As a rule of thumb, Lambda is typically set to 1600 for quarterly data.