Skip to content

Instantly share code, notes, and snippets.

@HumanRupert
Last active January 24, 2021 07:38
Show Gist options
  • Save HumanRupert/3d5a570f28dd2f764a1f3b94025a8575 to your computer and use it in GitHub Desktop.
Save HumanRupert/3d5a570f28dd2f764a1f3b94025a8575 to your computer and use it in GitHub Desktop.
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