/hodrick_prescott_filter

Project developed in the context of the macroeconomics course of the Bsc. in Economics from UFPE. It aims to implement the HP filter to better understand times series economic data from Brazil

Primary LanguageJupyter Notebook

Macroeconomics with the HP Filter using Python

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.

About

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.

Data Source

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.