William Bernstein的智慧型資產配置 P49:
那些忽視投資史的人註定會重蹈歷史覆轍,
應該要研究各類資產的歷史投資報酬與風險,
一項資產的長期投資報酬結果(20年以上)
是該資產未來報酬與風險的適當指引
1995年初到2022年底
總共有28個完整年度
24個移動5年
抓下來的原始資料跟IRR計算機
您將輸入n年度末解約金?n=?
待使用者輸入下一筆資料或-9999離開
前傳為2016年撰寫:
當時手動抓了325次資料 ><“
本篇加入~2022年底的資料
並改用python計算
前篇:
檢視了美國小型/價值股vs 美國大型股
是否存在溢酬,
資料從1972年開始
改抓新興市場報酬率時
就只能從1995開始
資料較少
滾動五年,小型股勝出27次
有用excel驗算過無誤
但不保證無其他錯誤
若有人發現python code錯誤
致贈50元7咖啡*2杯
新興市場溢酬:

新興市場溢酬機率普遍低於50%,
少掉1972~1995年
23年的歷史資料
新興市場測不出有利的溢酬
推薦hahow線上學習python: https://igrape.net/30afN
![Python網路爬蟲requests 如何下載台灣證交所的opendata? rawData = requests. get (inputs) #<Response [200]> Python網路爬蟲requests 如何下載台灣證交所的opendata? rawData = requests. get (inputs) #<Response [200]>](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2022/10/20221004135740_43.png?quality=90&zoom=2&ssl=1&resize=350%2C233)



![Python提取2D array的一部份資料; import numpy; a[1: , 2:] ; a[1:-1 , 2:-1] Python提取2D array的一部份資料; import numpy; a[1: , 2:] ; a[1:-1 , 2:-1]](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2022/09/20220906122441_97.png?quality=90&zoom=2&ssl=1&resize=350%2C233)
![Python: matplotlib如何控制legend的位置? ax.legend(handles=[patch], loc=’upper left’, bbox_to_anchor=(6/10, 3/5) Python: matplotlib如何控制legend的位置? ax.legend(handles=[patch], loc=’upper left’, bbox_to_anchor=(6/10, 3/5)](https://i0.wp.com/savingking.com.tw/wp-content/uploads/2023/05/20230502163945_79.png?quality=90&zoom=2&ssl=1&resize=350%2C233)


![別把中文洗掉:Python `isalnum()` vs `[^A-Za-z0-9]` 含/不含 CJK中日韓 別把中文洗掉:Python `isalnum()` vs `[^A-Za-z0-9]` 含/不含 CJK中日韓](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2026/05/20260525082752_0_4776cd.png?quality=90&zoom=2&ssl=1&resize=350%2C233)

近期留言