We will start with the following configuration of the environment, using our standard import and configuration of pandas. In addition to the normal imports and formatting, we will also import the S&P 500 data and the monthly stock data:

We will start with the following configuration of the environment, using our standard import and configuration of pandas. In addition to the normal imports and formatting, we will also import the S&P 500 data and the monthly stock data: