13.08.2022 Views

advanced-algorithmic-trading

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

199

prices = pd.DataFrame(index=etf_df1.index)

prices[etfs[0]] = etf_df1["Adj Close"]

prices[etfs[1]] = etf_df2["Adj Close"]

draw_date_coloured_scatterplot(etfs, prices)

state_means, state_covs = calc_slope_intercept_kalman(etfs, prices)

draw_slope_intercept_changes(prices, state_means)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!