Skip to content

For a family of stocks, generally belonging to the same sector or industry, there exists a correlation between prices of each of the stocks. This is a machine learning model to predict stock data for a year

License

Notifications You must be signed in to change notification settings

Subham-Mishra/Statistical-arbitrage-model

Repository files navigation

Statistical-arbitrage-model

Machine learning model to predict stock data for a year

Statistical Arbitrage: For a family of stocks, generally belonging to the same sector or industry, there exists a correlation between prices of each of the stocks. There, though, exist anomalous times when for a small period of time, the correlation is broken. But the market self corrects in some time and the correlation is re-established. During this small window of time when correlation is anomalous, there exists a money-making opportunity for quantitative traders.

First, you have many types of data The stock market is like candy-land for any data scientists who are even remotely interested in finance. Hat you can choose from. You can find prices, fundamentals, global macroeconomic indicators, volatility indices, etc… the list goes on and on. Second, the data can be very granular. You can easily get time series data by day (or even minute) for each company, which allows you think creatively about trading strategies. Finally, the financial markets generally have short feedback cycles. Therefore, you can quickly validate your predictions on new data. Here is the equity data of stocks listed on NSE over 2016 and 2017.

Dataset (https://drive.google.com/file/d/1kyNXxSM-_MSW4kSUJ90HlPQaxPCVti5L/view)

From the data we extracted "20MICRONS" data and stored in csv file. The code for ectraction is in sam.py

I did time series analysis to seperate 2016 & 2017 reports as Training and Testing data respectively.

Then did regression with TheilSenRegressor.

The prediction graph over 2017 is plotted with an accuracy of 98.2%

The report for this model is present in STATISTICAL ARBITRAGE MODEL.pptx

About

For a family of stocks, generally belonging to the same sector or industry, there exists a correlation between prices of each of the stocks. This is a machine learning model to predict stock data for a year

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages