I used the free API from Quandl which provides data regarding the S&P500 stock market up until 2018. Using the sklearn library and matplotlib, I used the linear regression functionality to predict the next 30 days with a very strong confidence (~0.9) of the machine learning. While antiquated data, a fun and hypothetically very useful piece of software.
lydiafarag / linerarregression_stockmarket Goto Github PK
View Code? Open in Web Editor NEWI used the free API from Quandl which provides data regarding the SNP500 stock market up until 2018. Using the sklearn library and matplotlib, I used the linear regression functionality to predict the next 30 days with a very strong confidence (~0.9) of the machine learning. While antiquated data, a fun and hypothetically very useful piece of software.