Pythonで学ぶ推測の基礎
Paul Savala
Assistant Professor of Mathematics
| Date | SP500 Close | Daily Change |
|---|---|---|
| 2017-08-07 | 2480.91 | 6.14 |
| 2017-08-08 | 2474.92 | -5.99 |
| 2017-08-09 | 2474.02 | -0.90 |
| 2017-08-10 | 2438.21 | -35.81 |
平均日次変化: -$9.14
| Date | SP500 Close | Daily Change |
|---|---|---|
| 2017-08-07 | 2480.91 | 6.14 |
| 2017-08-08 | 2474.92 | -5.99 |
| 2017-08-09 | 2474.02 | -0.90 |
| 2017-08-10 | 2438.21 | -35.81 |
任意の日の平均日次変動 ~ $9.14

点推定: BTC日次変動 1158.95

btc_high = btc_sp_df['High_BTC'] btc_low = btc_sp_df['Low_BTC']np.mean(btc_high - btc_low)
1158.95
点推定はサンプルに依存する
btc_sp_first100 = btc_sp_df.iloc[:100]np.mean(btc_sp_first100['High_BTC'] - btc_sp_first100['Low_BTC'])
659.60
initial_row = np.random.choice(btc_sp_df.shape[0]-100)btc_sp_random_100 = btc_sp_df.iloc[initial_row:initial_row+100]np.mean(btc_sp_first100['High_BTC'] - btc_sp_first100['Low_BTC'])
943.83
Pythonで学ぶ推測の基礎