FinanceToolkit v1.4.0 #70
JerBouma
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This releases includes the Fama and French 5-factor model. Something I've been wanting to add into the Finance Toolkit for some time now. This allows you to understand the explanatory power of the following factors on each ticker included in the Toolkit on any period, let it be yearly, quarterly, monthly or weekly:
on the risk of investing in the overall market as opposed to a risk-free asset.
low profitability stocks.
high investment stocks.
I've added correlation functions that help you understand how factors correlate with each other over time. For example, the following GIF is created with data from the function
performance.get_factor_correlations
.Next to that, you can perform Linear Regressions on each factor and each factor combination to discover sensitivities of individual assets to each factor (this is not only limited to companies but can also be currencies, commodities, ETFs and more):
Which returns regression coefficients for all factors for each individual stock:
You have the option to show both the results from a simple linear regression (which is defined as
Excess Return = Intercept + Slope * Factor Value + Residuals
) or a multi linear regression (which is defined asExcess Return = Intercept + Beta1 * Mkt-RF + Beta2 * SMB + Beta3 * HML + Beta4 * RMW + Beta5 * CMA + Residuals
) the latter is the default. E.g. you can show the explanatory power of each individual factor for example for Microsoft as follows:Which returns the following:
This discussion was created from the release FinanceToolkit v1.4.0.
Beta Was this translation helpful? Give feedback.
All reactions