MATHEMATICAL MODEL FOR STOCK PRICE PREDICTION USING LSTM NETWORKS IN PYTHON JUPYTER NOTEBOOK

Title

MATHEMATICAL MODEL FOR STOCK PRICE PREDICTION USING LSTM NETWORKS IN PYTHON JUPYTER NOTEBOOK

Authors

1. VIVEK PARKASH, Dyal Singh College, Assistant Professor, India

Abstract

Long short-term memory abbreviated as LSTM is an artificial neural network used in the fields of artificial intelligence and deep learning. I am going to LSTM (long short term memory) networks and python coding in jupyter notebook for price movement predictions for TCS stock listed on NSE. In the end it will be concluded that the predicted movement of TCS stock price is similar to the actual one. Moreover next 20 days opening prices will be calculated based on previous few days price data.

Keywords

yahoo finance long short term memory networks keras pandas dataframe deep learning neural network

PDF

This browser does not support PDFs. Please download the PDF to view it: View the PDF.

Conclusion

So, our model has successfully predicted stock TCS move for the next 20 days. This graph shows that how well the share has moved during the prediction period. This above described model is for TCS stock. This model can be applied to any other stock. All we have to do is to import the corresponding stock data from yahoo finance. We can change other parameters accordingly and tweak the parameters to get better results.

Reference

1. [1] https://www.analyticsvidhya.com/blog/2021/12/stock-price-prediction-using-lstm/ [2] https://towardsdatascience.com/lstm-for-google-stock-price-prediction-e35f5cc84165 [3] https://www.datacamp.com/tutorial/lstm-python-stock-market [4] https://www.kaggle.com/code/faressayah/stock-market-analysis-prediction-using-lstm [5]HongjuYan and Hongbing Ouyang. Financial time series prediction based on deep learning. Wireless Personal Communications, 102(2):683–700, 2018. [6] https://en.wikipedia.org/wiki/Long_short-term_memory [7]https://www.analyticsvidhya.com/blog/2021/03/introduction-to-long-short-term-memory-lstm/

Author Contribution

Sole author Dr. Vivek Parkash has done work in this research paper himself and fully own the responsibility.

Funding

Got funding from nowhere for this paper.

Software Information

used LSTM Python with different libraries and functions

Conflict of Interest

No Conflict of Interest

Acknowledge

I thank my family for the cooperation.

Data availability

 data will be shared as required