Pythonで学ぶポートフォリオ分析入門
Charlotte Werger
Data Scientist
Annual Return: 1暦年で得たトータルリターン
Annualized return: 任意の期間から推定した年間の利回り
Average Return: 長期のトータルリターンを(短い)各期間に平均配分
Cumulative (compounding) return: 利息・配当・キャピタルゲインの再投資効果を含むリターン
$$

$$
$$
Nが年: $rate= (1 +Return)^{1/N} -1$
Nが月: $rate= (1+Return)^{12/N} -1$
任意の期間を年率に変換:
# 時系列の開始と終了を確認
apple_price.head(1)
date
2015-01-06 105.05
Name: AAPL, dtype: float64
apple_price.tail(1)
date
2018-03-29 99.75
Name: AAPL, dtype: float64
# 月数を設定
months = 38
# トータルリターンを計算
total_return = (apple_price[-1] - apple_price[0]) /
apple_price[0]
print (total_return)
0.5397420653068692
# 月数から年率換算を計算
annualized_return=((1 + total_return)**(12/months))-1
print (annualized_return)
0.14602501482708763
# 3年間の期間を選択
apple_price = apple_price.loc['2015-01-01':'2017-12-31']
apple_price.tail(3)
date
2017-12-27 170.60
2017-12-28 171.08
2017-12-29 169.23
Name: AAPL, dtype: float64
# 3年間の年率換算リターンを計算
annualized_return = ((1 + total_return)**(1/3))-1
print (annualized_return)
0.1567672968419047
Pythonで学ぶポートフォリオ分析入門