HodrickPrescottDecomposition<T>

Models & Types ยท AiDotNet.DecompositionMethods.TimeSeriesDecomposition

Implements the Hodrick-Prescott filter for decomposing time series data into trend and cyclical components.

Inheritance: TimeSeriesDecompositionBase<T> โ†’ HodrickPrescottDecomposition<T>

How It Works

For Beginners: The Hodrick-Prescott filter is a mathematical tool that helps separate a time series (like stock prices or economic data over time) into two parts:

  1. A smooth trend component that shows the long-term direction
  2. A cyclical component that shows short-term fluctuations around the trend

Think of it like separating a bumpy road (your data) into the general path (trend) and the bumps along the way (cycles).

Constructors

Constructor Summary
HodrickPrescottDecomposition(Vector<T> timeSeries, double lambda, IMatrixDecomposition<T> decomposition, HodrickPrescottAlgorithmType algorithm) Initializes a new instance of the Hodrick-Prescott decomposition.