Skip to content

Linear Regression Model to Predict S&P 500 Index Future Close From Historical Data

Notifications You must be signed in to change notification settings

jessedeans/Stock_Market_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Predicting the Stock Market

This repository contains a notebook and dataset used to predict the future price of the S&P 500 Index from historical data. The model is built with scikit-learn's linear regression functions. The S&P 500 is a stock market index that aggregates the stock prices of 500 large companies, more information on the S&P 500 can be found here. Predicting whether the index will go up or down helps forecast how the stock market as a whole will perform.

Note: You shouldn't make trades with any models developed in this notebook. Trading stocks has risks, and nothing in this notebook constitutes stock trading advice.

The Dataset

I'll be working with a csv file containing index prices. Each row in the file contains a daily record of the price of the S&P 500 Index from 1950 to 2015. The dataset is stored in sphist.csv.

I'll be using this dataset to develop the predictive model. I'll train the model with data from 1950-2012, and try to make predictions from 2013-2015.

About

Linear Regression Model to Predict S&P 500 Index Future Close From Historical Data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published