Here's a Jupyter Notebook, which can be used for this exercise.
First, we start by creating an API key in AlphaVantage.
Next, we can display a downloaded financial dataset, which corresponds to MSFT historical data.
After this step, we run statistical analysis of dataset using Python stats library.
from scipy import stats
slope, intercept, r_value, p_value, std_err = stats.linregress(x, y)
Then, we can display the resulting data using Matplotlib. The chart will be displayed in the result window of Jupyter Notebook: