Filters
Learn two techniques to decompose time series, the Hodrick-Prescott filter and the STL decomposition.
Calculating moving averages or using statsmodels’ seasonal_decompose
function should be our first approach when exploring the components of our time series. However, these methods often fall short of fully decomposing the data. In this lesson, we’ll learn about two filters that help us better separate the elements of our series: the Hodrick-Prescott Filter and the Seasonal-Trend decomposition using LOESS (STL), where LOESS is the acronym for locally estimated scatterplot smoothing.
The Hodrick-Prescott filter
The Hodrick-Prescott (HP) filter is a filtering method used to separate the trend and the cyclical components of a series (
Get hands-on with 1400+ tech skills courses.