This repository contains a Python script demonstrating the application of the Hodrick-Prescott (HP) filter to analyze time-series data for the Brazilian economy. The HP filter is a commonly used method in macroeconomics to separate a time series into trend and cyclical components, aiding in economic analysis and forecasting.
The script provided offers a concise implementation of the HP filter, showcasing how to apply it to time-series data specific to the Brazilian economy. It serves as a practical guide for utilizing this filtering technique and understanding its implications within an economic context.
All data utilized in this application is publicly available on the SGS (Sistema Gerenciador de Séries Temporais) page of the Central Bank of Brazil. You can access the data directly through the following link: SGS - Central Bank of Brazil
Feel free to explore and adapt the script according to your analysis needs or for other economic datasets.