比較股票報酬的分配
來看看如何在投資決策中運用偏度與峰度。這個練習中,你要將單一股票與投資組合的報酬「分配」做比較,並檢視把「多檔股票」放進同一個投資組合,是否能「改善」你的報酬「分配」。
本練習屬於課程
Python 投資組合分析入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Print the histograms of the stocks in the portfolio
stock_returns.hist()
# Print skewness and kurtosis of the stocks
print ("skew : ", stock_returns.____())
print ("kurt : ", stock_returns.____())