This notebook creates a heap map showing the correlation matrix of the asset returns of our choosing. The historical data comes from the Yahoo Finance API
The notebook uses these two external libraries, it is very important to have the last version of yfinance
.
!pip install yfinance
!pip install ipywidgets
In some types of notebooks (like Colab) the %matplotlib
widget can create headaches so it is better to just comment it like this:
- Run the
Setup
andInteraction
groups - Choose the assets and the period of interest
- Run the
Calculations
andPlot
groups