January 2020
Beginner to intermediate
432 pages
11h 24m
English
Investigate this fourth fact by creating the ACF plots of squared and absolute returns.
fig, ax = plt.subplots(2, 1, figsize=(12, 10))smt.graphics.plot_acf(df.log_rtn ** 2, lags=N_LAGS, alpha=SIGNIFICANCE_LEVEL, ax = ax[0])ax[0].set(title='Autocorrelation Plots', ylabel='Squared Returns')smt.graphics.plot_acf(np.abs(df.log_rtn), lags=N_LAGS, alpha=SIGNIFICANCE_LEVEL, ax = ax[1])ax[1].set(ylabel='Absolute Returns', xlabel='Lag')
Executing the preceding code results in the following plots:

We can observe the small and decreasing values of autocorrelation ...
Read now
Unlock full access