เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Fama French factor correlations

In this exercise you want to check how much correlation your portfolio returns have with the Fama French factors. With a quick correlation table, you can very easily gain insight into how your portfolio returns move with for example the excess market return or the size and value factors. Remember, the Fama French factor model was defined as follows:

$$ R_{pf} = \alpha + \beta_m MKT + \beta_s SMB + \beta_h HML $$

Available is the data containing the factor returns and your portfolio returns under factor_returns. Let's give it a try!

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Introduction to Portfolio Analysis in Python

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Print the correlation table 
print(____)
แก้ไขและรันโค้ด