Last active
January 24, 2021 07:38
-
-
Save HumanRupert/3d5a570f28dd2f764a1f3b94025a8575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latest_factors = factors.tail(1).to_dict('r')[0] | |
RRR = latest_factors["RF"] | |
RRR += betas["Mkt-RF"] * latest_factors["Mkt-RF"] | |
RRR += betas["SMB"] * latest_factors["SMB"] | |
RRR += betas["HML"] * latest_factors["HML"] | |
print(f"Required rate of return is: {RRR}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment