Quants use principal component analysis to find alpha.
Blackrock uses it to manage $100s of billions in factor funds.
Northfield uses it to earn $10s of millions selling factors to investors.
Hereβs how itβs done.
In a few lines of Python:
Blackrock uses it to manage $100s of billions in factor funds.
Northfield uses it to earn $10s of millions selling factors to investors.
Hereβs how itβs done.
In a few lines of Python:
By reading this thread, youβll be able to:
1. Get stock data
2. Fit a PCA model
3. Visualize the components
4. Isolate the alpha factors
But first, a quick primer on PCA if youβre unfamiliar:
1. Get stock data
2. Fit a PCA model
3. Visualize the components
4. Isolate the alpha factors
But first, a quick primer on PCA if youβre unfamiliar:
PCA is used in many ways including signal processing, image recognition, and of course quant finance.
PCA:
β’ Isolates factors that drive returns
β’ Explains the variance in a dataset
β’ Used for factor investing and risk management
Letβs dig in!
PCA:
β’ Isolates factors that drive returns
β’ Explains the variance in a dataset
β’ Used for factor investing and risk management
Letβs dig in!
This analysis covered the time period during covid.
Gold stocks were bid up strongly as a hedge against inflation and uncertainty.
Tech stocks crashed as worries about economic health began.
These factors are hidden in the data.
PCA helps you find them.
Gold stocks were bid up strongly as a hedge against inflation and uncertainty.
Tech stocks crashed as worries about economic health began.
These factors are hidden in the data.
PCA helps you find them.
Principal component analysis step by step:
All in Python.
If you need more time to read it, click the link and retweet the top tweet to save it for later.
Reply with any questions!
All in Python.
If you need more time to read it, click the link and retweet the top tweet to save it for later.
Reply with any questions!
Learn how quants use PCA, GARCH, and beta hedging.
Go from beginner to up and running with Python for quant finance in 30 days.
β’ Community
β’ Frameworks
β’ Live sessions
β’ Special guests
β’ Jupyter Notebooks
January cohort is open - limited spots.
gettingstartedwithpythonforquantfinance.com
Go from beginner to up and running with Python for quant finance in 30 days.
β’ Community
β’ Frameworks
β’ Live sessions
β’ Special guests
β’ Jupyter Notebooks
January cohort is open - limited spots.
gettingstartedwithpythonforquantfinance.com
Loading suggestions...