The script here is quick basic implementation of the unified factor model described in the paper below: http://www.samssara.com/pdf/WhitePaper_On_Technical_S&P500_FactorModel.pdf One can pickle the data downloaded from Yahoo to reduce the running time for further modifications of this script
as4456/Technical-Factor-Model
A quick basic implementation of a unified technical factor model for SP500
Python