@pyquantnews: The recession.The news talks...
@pyquantnews
9 views
Feb 15, 2024
1
The recession.
The news talks about it.
Investors cry over it.
And in the end, we’re the ones that lose money.
But you can prepare.
Here’s how:
The news talks about it.
Investors cry over it.
And in the end, we’re the ones that lose money.
But you can prepare.
Here’s how:
2
Analyze the yield curve.
The yield curve plots the yield of US treasuries against their maturity.
“Inverted” yield curves have been shown to reliably predict recessions.
It’s key to understanding investors’ predictions about the economy.
But what’s an inverted yield curve?
The yield curve plots the yield of US treasuries against their maturity.
“Inverted” yield curves have been shown to reliably predict recessions.
It’s key to understanding investors’ predictions about the economy.
But what’s an inverted yield curve?
3
The inverted yield curve:
• Normally, longer-dated treasuries yield more than shorter-dated ones
• The market expects the Fed to lower rates to fight recessions
• Longer-dated maturities yield less than shorter-dated ones
Let’s check it out in Python.
• Normally, longer-dated treasuries yield more than shorter-dated ones
• The market expects the Fed to lower rates to fight recessions
• Longer-dated maturities yield less than shorter-dated ones
Let’s check it out in Python.
8
Animating the chart makes it easy to visualize the evolution of the yield curve through time.
You can change which maturities to use for the yield curve, adjust the time frame, and experiment with different maturities to use to define inverted.
You can change which maturities to use for the yield curve, adjust the time frame, and experiment with different maturities to use to define inverted.
9
By reading this thread:
• You have a reliable predictor of recessions
• Can get the data from the OpenBB SDK
• Animate a plot of the yield curve
All without an expensive research department or spending a dollar.
• You have a reliable predictor of recessions
• Can get the data from the OpenBB SDK
• Animate a plot of the yield curve
All without an expensive research department or spending a dollar.
10
To come back to this step-by-step guide later:
• Click the link below
• Retweet the top tweet
That's it!
• Click the link below
• Retweet the top tweet
That's it!
View Tweet



