Dasar-dasar Inferensi di 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 |
Rata-rata perubahan harian: -$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 |
Rata-rata ayunan harian untuk hari apa pun ~$9.14

Estimasi titik: ayunan harian 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
Estimasi titik bergantung pada sampel
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
Dasar-dasar Inferensi di Python