🔍 One of the major goals of modern macroeconomics is to understand how shocks affect the economy and how their effects propagate over time.
But explaining these dynamics remains a challenge—even for experts. As any microeconomist will tell you: sometimes, explaining what an instrumental variable is to a non-economist is harder than the econometrics behind it! 😅
GDP doesn’t follow a straight path. It fluctuates, reacts, and deviates—these are business cycles.
Understanding these fluctuations is essential to:
I illustrated this by decomposing Canadian GDP using the Hodrick–Prescott filter, which separates:

Legend:
pandas, statsmodels, matplotlib)Whether in cooking, medicine, or macroeconomics—precision matters.
#Macroeconomics, #HPFilter, #BusinessCycle, #EconomicPolicy, #CanadaGDP, #Python, #TimeSeries, #Blanchard, #Ramey, #NBER