My Authors
Read all threads
Now how do the big boys do this in the real world? They use @AxiomaInc or @MSCI_Inc (formerly called MSCI BARRA but I think they dropped the name)
The main thing is we want a closed-form way to calculate factor exposures and the returns of those factors. We first start by defining our factors and their metrics.
I'm going to use four: market factor (i.e. everything has a beta of 1 to the market, this is fairly standard), size (log of mktcap), P/E for value, and 12mo total return for momentum.
Let's assume there are only five stocks: AAPL, CMCSA, DIS, WM, and LEN (because it seems all I do is watch content on my phone via cable in a home and generate garbage).
First we gather the raw data using my handy Bloomberg (or pay Capital IQ or Worldscope or something). The 'factor exposures' are then calculated as the Z scores of these values - they are converted to # of standard deviations from the mean. This becomes our factor loading matrix
To calculate the factor exposure of a portfolio, you multiply the portfolio weighting vector times this factor loading matrix. Here is a hypothetical 130/30 portfolio with an overall factor loading of (1.0, 1.0, 0.7, 0.6)
How do we get factor returns? Suppose the stocks do their stonk thing and go up and down. We have 5 stocks 4 factors. We have an underdetermined system and have to use least squares to solve it (or something else, if you're Axioma and fancy). (Ft F)^1 Ft y
Excel tells me these are the factor returns: market 0.2%, size 1.7%, PE -1.7%, momentum 0.4%. So each stock returns can be represented as a linear combination of factor returns. The whole thing can nicely be represented in matrices (hence the bio)
How do we calculate risk in this model? We calculate a covariance matrix of the factor returns (because IRL there are 30,000 stocks and maybe 100 factors in a big boy model) and a variance vector of the residual returns.
These two tweets are 99% of learning the basics of quant equity. It's really just basic linear algebra, statistics, and regression. It's so easy. Anybody can figure it out. They should teach this in 8th grade.
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Office of Unspecified Services

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!