IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2004.11697.html
   My bibliography  Save this paper

A Time Series Analysis-Based Stock Price Prediction Using Machine Learning and Deep Learning Models

Author

Listed:
  • Sidra Mehtab
  • Jaydip Sen

Abstract

Prediction of future movement of stock prices has always been a challenging task for the researchers. While the advocates of the efficient market hypothesis (EMH) believe that it is impossible to design any predictive framework that can accurately predict the movement of stock prices, there are seminal work in the literature that have clearly demonstrated that the seemingly random movement patterns in the time series of a stock price can be predicted with a high level of accuracy. Design of such predictive models requires choice of appropriate variables, right transformation methods of the variables, and tuning of the parameters of the models. In this work, we present a very robust and accurate framework of stock price prediction that consists of an agglomeration of statistical, machine learning and deep learning models. We use the daily stock price data, collected at five minutes interval of time, of a very well known company that is listed in the National Stock Exchange (NSE) of India. The granular data is aggregated into three slots in a day, and the aggregated data is used for building and training the forecasting models. We contend that the agglomerative approach of model building that uses a combination of statistical, machine learning, and deep learning approaches, can very effectively learn from the volatile and random movement patterns in a stock price data. We build eight classification and eight regression models based on statistical and machine learning approaches. In addition to these models, a deep learning regression model using a long-and-short-term memory (LSTM) network is also built. Extensive results have been presented on the performance of these models, and the results are critically analyzed.

Suggested Citation

  • Sidra Mehtab & Jaydip Sen, 2020. "A Time Series Analysis-Based Stock Price Prediction Using Machine Learning and Deep Learning Models," Papers 2004.11697, arXiv.org, revised May 2021.
  • Handle: RePEc:arx:papers:2004.11697
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2004.11697
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Basalto, N. & Bellotti, R. & De Carlo, F. & Facchi, P. & Pascazio, S., 2005. "Clustering stock market companies via chaotic map synchronization," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 345(1), pages 196-206.
    2. Jaydip SEN & Tamal DATTA CHAUDHURI, 2016. "An Alternative Framework for Time Series Decomposition and Forecastingand its Relevance for Portfolio Choice – A Comparative Study of the Indian Consumer Durable and Small Cap Sectors," Journal of Economics Library, KSP Journals, vol. 3(2), pages 303-326, June.
    3. Jaydip SEN & Tamal DATTA CHAUDHURI, 2017. "A Predictive Analysis of the Indian FMCG Sector using Time Series Decomposition - Based Approach," Journal of Economics Library, KSP Journals, vol. 4(2), pages 206-226, June.
    4. Hutchinson, James M & Lo, Andrew W & Poggio, Tomaso, 1994. "A Nonparametric Approach to Pricing and Hedging Derivative Securities via Learning Networks," Journal of Finance, American Finance Association, vol. 49(3), pages 851-889, July.
    5. Basu, Sanjoy, 1983. "The relationship between earnings' yield, market value and return for NYSE common stocks : Further evidence," Journal of Financial Economics, Elsevier, vol. 12(1), pages 129-156, June.
    6. Jaydip Sen & Tamal Datta Chaudhuri, 2018. "Understanding the sectors of Indian economy for portfolio choice," International Journal of Business Forecasting and Marketing Intelligence, Inderscience Enterprises Ltd, vol. 4(2), pages 178-222.
    7. Bentes, Sónia R. & Menezes, Rui & Mendes, Diana A., 2008. "Long memory and volatility clustering: Is the empirical evidence consistent across stock markets?," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(15), pages 3826-3830.
    8. Sidra Mehtab & Jaydip Sen, 2019. "A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing," Papers 1912.07700, arXiv.org.
    9. M. Hanias & P. Curtis & E. Thalassinos, 2012. "Time Series Prediction with Neural Networks for the Athens Stock Exchange Indicator," European Research Studies Journal, European Research Studies Journal, vol. 0(2), pages 23-32.
    10. Jaydip Sen & Tamal Datta Chaudhuri, 2017. "A Time Series Analysis-Based Forecasting Framework for the Indian Healthcare Sector," Papers 1705.01144, arXiv.org.
    11. repec:bla:jfinan:v:44:y:1989:i:1:p:135-48 is not listed on IDEAS
    12. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries," Papers 2001.09769, arXiv.org.
    13. Fama, Eugene F & French, Kenneth R, 1995. "Size and Book-to-Market Factors in Earnings and Returns," Journal of Finance, American Finance Association, vol. 50(1), pages 131-155, March.
    14. Chui, Andy C. W. & Wei, K. C. John, 1998. "Book-to-market, firm size, and the turn-of-the-year effect: Evidence from Pacific-Basin emerging markets," Pacific-Basin Finance Journal, Elsevier, vol. 6(3-4), pages 275-293, August.
    15. Sidra Mehtab & Jaydip Sen & Abhishek Dutta, 2020. "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Papers 2009.10819, arXiv.org.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jaydip Sen, 2022. "Designing Efficient Pair-Trading Strategies Using Cointegration for the Indian Stock Market," Papers 2211.07080, arXiv.org.
    2. Jaydip Sen & Saikat Mondal & Gourab Nath, 2022. "Robust Portfolio Design and Stock Price Prediction Using an Optimized LSTM Model," Papers 2204.01850, arXiv.org.
    3. Jaydip Sen & Arpit Awad & Aaditya Raj & Gourav Ray & Pusparna Chakraborty & Sanket Das & Subhasmita Mishra, 2022. "Stock Performance Evaluation for Portfolio Design from Different Sectors of the Indian Stock Market," Papers 2208.07166, arXiv.org.
    4. Jaydip Sen & Hetvi Waghela & Sneha Rakshit, 2024. "Exploring Sectoral Profitability in the Indian Stock Market Using Deep Learning," Papers 2407.01572, arXiv.org.
    5. Jaydip Sen & Arup Dasgupta & Subhasis Dasgupta & Sayantani Roychoudhury, 2023. "A Portfolio Rebalancing Approach for the Indian Stock Market," Papers 2310.09770, arXiv.org.
    6. Jaydip Sen & Arup Dasgupta & Partha Pratim Sengupta & Sayantani Roy Choudhury, 2023. "A Comparative Study of Portfolio Optimization Methods for the Indian Stock Market," Papers 2310.14748, arXiv.org.
    7. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2021. "Analysis of Sectoral Profitability of the Indian Stock Market Using an LSTM Regression Model," Papers 2111.04976, arXiv.org.
    8. Jaydip Sen & Abhishek Dutta, 2022. "Design and Analysis of Optimized Portfolios for Selected Sectors of the Indian Stock Market," Papers 2210.03943, arXiv.org.
    9. Jaydip Sen & Ashwin Kumar R S & Geetha Joseph & Kaushik Muthukrishnan & Koushik Tulasi & Praveen Varukolu, 2022. "Precise Stock Price Prediction for Robust Portfolio Design from Selected Sectors of the Indian Stock Market," Papers 2201.05570, arXiv.org.
    10. Abhiraj Sen & Jaydip Sen, 2023. "Performance Evaluation of Equal-Weight Portfolio and Optimum Risk Portfolio on Indian Stocks," Papers 2309.13696, arXiv.org.
    11. Zheng Fang & Jianying Xie & Ruiming Peng & Sheng Wang, 2021. "Climate Finance: Mapping Air Pollution and Finance Market in Time Series," Econometrics, MDPI, vol. 9(4), pages 1-15, December.
    12. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries," Papers 2001.09769, arXiv.org.
    2. Sidra Mehtab & Jaydip Sen & Abhishek Dutta, 2020. "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Papers 2009.10819, arXiv.org.
    3. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    4. Sidra Mehtab & Jaydip Sen, 2019. "A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing," Papers 1912.07700, arXiv.org.
    5. Jaydip Sen & Ashwin Kumar R S & Geetha Joseph & Kaushik Muthukrishnan & Koushik Tulasi & Praveen Varukolu, 2022. "Precise Stock Price Prediction for Robust Portfolio Design from Selected Sectors of the Indian Stock Market," Papers 2201.05570, arXiv.org.
    6. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2021. "Analysis of Sectoral Profitability of the Indian Stock Market Using an LSTM Regression Model," Papers 2111.04976, arXiv.org.
    7. Jaydip Sen & Aditya Jaiswal & Anshuman Pathak & Atish Kumar Majee & Kushagra Kumar & Manas Kumar Sarkar & Soubhik Maji, 2023. "A Comparative Analysis of Portfolio Optimization Using Mean-Variance, Hierarchical Risk Parity, and Reinforcement Learning Approaches on the Indian Stock Market," Papers 2305.17523, arXiv.org.
    8. Ananda Chatterjee & Hrisav Bhowmick & Jaydip Sen, 2021. "Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models," Papers 2111.01137, arXiv.org.
    9. Jaydip Sen & Arpit Awad & Aaditya Raj & Gourav Ray & Pusparna Chakraborty & Sanket Das & Subhasmita Mishra, 2022. "Stock Performance Evaluation for Portfolio Design from Different Sectors of the Indian Stock Market," Papers 2208.07166, arXiv.org.
    10. Jaydip Sen & Arup Dasgupta & Partha Pratim Sengupta & Sayantani Roy Choudhury, 2023. "A Comparative Study of Portfolio Optimization Methods for the Indian Stock Market," Papers 2310.14748, arXiv.org.
    11. Jaydip Sen & Hetvi Waghela & Sneha Rakshit, 2024. "Exploring Sectoral Profitability in the Indian Stock Market Using Deep Learning," Papers 2407.01572, arXiv.org.
    12. Abhiraj Sen & Jaydip Sen, 2023. "Performance Evaluation of Equal-Weight Portfolio and Optimum Risk Portfolio on Indian Stocks," Papers 2309.13696, arXiv.org.
    13. Jaydip Sen & Tamal Datta Chaudhuri, 2017. "An Investigation of the Structural Characteristics of the Indian IT Sector and the Capital Goods Sector: An Application of the R Programming in Time Series Decomposition and Forecasting," Papers 1706.07821, arXiv.org.
    14. Tasnim Uddin Chowdhury & Md. Shahidul Islam, 2021. "ARIMA Time Series Analysis in Forecasting Daily Stock Price of Chittagong Stock Exchange (CSE)," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 5(6), pages 214-233, June.
    15. Michael E. Drew & Tony Naughton & Madhu Veeraraghavan, 2003. "Asset Pricing in China: Evidence from the Shanghai Stock Exchange," School of Economics and Finance Discussion Papers and Working Papers Series 128, School of Economics and Finance, Queensland University of Technology.
    16. Jaydip Sen & Subhasis Dasgupta, 2023. "Portfolio Optimization: A Comparative Study," Papers 2307.05048, arXiv.org.
    17. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using CNN and LSTM-Based Deep Learning Models," Papers 2010.13891, arXiv.org.
    18. Tran Phuoc & Pham Thi Kim Anh & Phan Huy Tam & Chien V. Nguyen, 2024. "Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam," Palgrave Communications, Palgrave Macmillan, vol. 11(1), pages 1-18, December.
    19. Hung, Weifeng & Chiao, Chaoshin & Liao, Tung Liang & Huang, Sheng-Tang, 2012. "R&D, risks and overreaction in a market with the absence of the book-to-market effect," International Review of Economics & Finance, Elsevier, vol. 22(1), pages 11-24.
    20. Jaydip Sen & Arup Dasgupta & Subhasis Dasgupta & Sayantani Roychoudhury, 2023. "A Portfolio Rebalancing Approach for the Indian Stock Market," Papers 2310.09770, arXiv.org.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2004.11697. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.