Skip to content

Stock Market Analysis and Prediction #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions intern-basics/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Part3: Any Project-Numpy&Pandas - Julian

Part4: Basic functions in OpenCV - Nirmal

Stock Market Analysis & Prediction - Shalaka

Grayscaling
Image Translations
Rotation
Expand Down
36 changes: 36 additions & 0 deletions intern-basics/Stock Market Analysis and Prediction/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Stock Market Analysis & Prediction
In this project, we used some algorithm to forecast stock market prices for NSE India stock market. Main goal is to compare various algorithms and evaluate models by comparing prediction accuracy. We examined different models - Random Forest, Linear Regression and ARIMA based on the accuracy (RMSE) and predicted the price of different industries.

## Content
A data frame with 8 variables: index, date, time, open, high, low, close and id. For each year from 2013 to 2016, the number of trading data of each minute of given each date. The currency of the price is Indian Rupee (INR).

* Code : market id
* Date : numerical value (Ex. 20151203- to be converted as 2015-12-03)
* Time : factor (Ex. 09:16)
* Open : numeric (opening price)
* High : numeric (high price)
* Low : numeric (low price)
* Close : numeric (closing price)
* Volume : numeric (total volume traded)

## Implementation

Dataset:
Dataset can be found [here](https://www.kaggle.com/ramamet4/nse-company-stocks).

Code file:
[Code for Random Forest & Linear Regression](https://github.com/shalakasaraogi/Contribution-program/blob/master/intern-basics/Stock%20Market%20Analysis%20and%20Prediction/Stock_Market_Prediction-%20(Random%20Forest%20%26%20Linear%20Regression).ipynb)
[Code for ARIMA](https://github.com/shalakasaraogi/Contribution-program/blob/master/intern-basics/Stock%20Market%20Analysis%20and%20Prediction/Stock_Market_Prediction-%20(ARIMA).ipynb)


## Prediction

We have used following algorithm for time series analysis:

* Random Forest
* Linear Regression
* Autoregressive Integrated Moving Average (ARIMA)

## Conclusion

We have compared algorithms by RMSE. We found that ARIMA model gave lowest RMSE and accurate prediction.
Loading