Fast Hodrick Prescott Filter

Detrending a time series.

You are now following this Submission

The Hodrick Prescott Filter (HP-Filter) is the most popular method to separate a time series x_t into its components. Let's suppose that the original series is composed of a trend component g_t and a cyclical component c_t.
Solving the minimization problem is quite simple. This program decomposes a times series by the Hodrick Prescott Filter. To accelerate the computation the Add-In makes use of the penta-diagonal structure of the coefficient-matrix. So detrending a lot of data points is not a problem for this program.

Cite As

Kurt Annen (2026). Fast Hodrick Prescott Filter (https://www.mathworks.com/matlabcentral/fileexchange/5745-fast-hodrick-prescott-filter), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Bad english