Regression Equations, Generalized Least Squares, Correlation Matrices, Python, Statsmodels.
to turn it into what is essentially a panel data set of trailing 3-month risk adjusted returns for each stock, and the same for the corresponding market index. The processed data set is available for download over here. This is the data set that we will train the GLS model on. Here’s how a slice of